Skip to content

Replay error - file not in commit but in history #117

@tennox

Description

@tennox

What did you do?

I think my text editor's .swp file created a race condition.

What did you expect to see?

consistent state, either with the file or without it

What did you see instead?

another machine tried to sync and errored with this:

Syncing with `acer`...
20.01.2022/04:50:00 ⚡ cmd/parser.go:594:  fetch: replay: lookup: /tools/fish/functions/.gh-latest.fish.swp: No such file or directory: /tools/fish/functions/.gh-latest.fish.swp
$ brig diff acer 2W9rNbdLxpRk
20.01.2022/04:55:56 ⚡ cmd/parser.go:594: diff: fetch-remote: replay: lookup: /tools/fish/functions/.gh-latest.fish.swp: No such file or directory: /tools/fish/functions/.gh-latest.fish.swp

debugging details

on the machine where the error occurred:

$ brig hst /tools/fish/functions/.gh-latest.fish.swp
WARNING: This file is not part of this commit, but there's still history for it.
         Most likely this file was moved or removed in the past.

CHANGE   FROM          TO              WHEN                          PIN
removed  2W9rNbdScaMy  2W9rNbfcL5XA    Thu Jan 20 04:34:25 CET 2022       sync with lab-1 on 2022-01-20T03:34:45Z
added    2W9rNbWDnwJm  2W9rNbdScaMy    Thu Jan 20 04:33:15 CET 2022  ✔    auto commit at »20 Jan 22 04:33 CET«
$ brig diff -s 2W9rNbdScaMy 2W9rNbfcL5XA
•
└──tools
   └──fish
      └──functions
         ├── * .gh-latest.fish.swp
         └── gh-latest.fish → gh-latest.fish
0 directories, 2 files
$ brig diff -s 2W9rNbWDnwJm 2W9rNbdScaMy
(empty)

... not sure what else to run

Do you still see this issue with a development binary?

Yes, this is the latest develop binary - #116

Did you check if a similar bug report was already opened?

yes

System details:

go version: ````
uname -s -v -m: Linux #67-Ubuntu SMP Tue Jan 5 18:31:36 UTC 2021 x86_64
IPFS config: { "API": { "HTTPHeaders": {} }, "Addresses": { "API": "/ip4/127.0.0.1/tcp/5001", "Announce": [], "AppendAnnounce": [], "Gateway": "/ip4/127.0.0.1/tcp/8080", "NoAnnounce": [], "Swarm": [ "/ip4/0.0.0.0/tcp/4001", "/ip6/::/tcp/4001", "/ip4/0.0.0.0/udp/4001/quic", "/ip6/::/udp/4001/quic" ] }, "AutoNAT": {}, "Bootstrap": [ "/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt", "/ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", "/ip4/104.131.131.82/udp/4001/quic/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", "/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN", "/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa", "/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb" ], "DNS": { "Resolvers": {} }, "Datastore": { "BloomFilterSize": 0, "GCPeriod": "1h", "HashOnRead": false, "Spec": { "mounts": [ { "child": { "path": "blocks", "shardFunc": "/repo/flatfs/shard/v1/next-to-last/2", "sync": true, "type": "flatfs" }, "mountpoint": "/blocks", "prefix": "flatfs.datastore", "type": "measure" }, { "child": { "compression": "none", "path": "datastore", "type": "levelds" }, "mountpoint": "/", "prefix": "leveldb.datastore", "type": "measure" } ], "type": "mount" }, "StorageGCWatermark": 90, "StorageMax": "10GB" }, "Discovery": { "MDNS": { "Enabled": true, "Interval": 10 } }, "Experimental": { "AcceleratedDHTClient": false, "FilestoreEnabled": false, "GraphsyncEnabled": false, "Libp2pStreamMounting": true, "P2pHttpProxy": false, "StrategicProviding": false, "UrlstoreEnabled": false }, "Gateway": { "APICommands": [], "HTTPHeaders": { "Access-Control-Allow-Headers": [ "X-Requested-With", "Range", "User-Agent" ], "Access-Control-Allow-Methods": [ "GET" ], "Access-Control-Allow-Origin": [ "*" ] }, "NoDNSLink": false, "NoFetch": false, "PathPrefixes": [], "PublicGateways": null, "RootRedirect": "", "Writable": false }, "Identity": { "PeerID": "REDACTED" }, "Internal": {}, "Ipns": { "RecordLifetime": "", "RepublishPeriod": "", "ResolveCacheSize": 128 }, "Migration": { "DownloadSources": [], "Keep": "" }, "Mounts": { "FuseAllowOther": false, "IPFS": "/ipfs", "IPNS": "/ipns" }, "Peering": { "Peers": null }, "Pinning": { "RemoteServices": {} }, "Plugins": { "Plugins": null }, "Provider": { "Strategy": "" }, "Pubsub": { "DisableSigning": false, "Router": "" }, "Reprovider": { "Interval": "1h", "Strategy": "all" }, "Routing": { "Type": "dht" }, "Swarm": { "AddrFilters": null, "ConnMgr": { "GracePeriod": "60s", "HighWater": 900, "LowWater": 600, "Type": "basic" }, "DisableBandwidthMetrics": false, "DisableNatPortMap": false, "EnableAutoRelay": true, "RelayClient": {}, "RelayService": {}, "Transports": { "Multiplexers": {}, "Network": {}, "Security": {} } } }

brig client version: v0.5.3-develop+6b7eccf [build: 2022-01-20T02:41:09+00:00]
brig server version: v0.5.3-develop+6b7eccf+6b7eccf8fcbd907fc759f8ca8aa814df8499e2ed
IPFS Version: 0.11.0+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions