-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: garbage collection aborted: could not retrieve some links #6207
Comments
First: there is: remove broken pins ( Second: internally in go-ipfs, no it shouldn't be possible but if the machine encountered power loss, filesystem corruption or disk failure it would be possible. Are you running default datastore config or for example badger? Can you share the output of |
Could you elaborate on this? If the node encountered power loss during pinning or adding of content? Or just in general? My database is showing these records as all having been successfully pinned, and that doesn't happen until the pinning process completes on IPFS's side.
|
We ensure that we send all the content to the disk before we add the pin to the pinset. In case of the power failure (and well-behaved filesystem), it should all be there or there shouldn't be a pin for it. It depends on the operating system and filesystem, whether in case of a power failure this content survives. You can try running |
Fix in #6288, we think. |
Version information:
go-ipfs version: 0.4.19-
Repo version: 7
System version: amd64/linux
Golang version: go1.11.5
Type:
Description:
When I ran
ipfs repo verify
everything worked fine and I received "verify complete, all blocks validated"When I ran
ipfs pin ls QmU1aLywufB7MwaXfFyj2Qy1v6w93fkA9xR34Kz1kZv3vX
(This is the first broken link) I received:QmU1aLywufB7MwaXfFyj2Qy1v6w93fkA9xR34Kz1kZv3vX indirect through QmYGCUXNzo1hZVhJKd2efhu3nJHy3He5o9QjFpmgy8TJwg
When I ran
ipfs object stat QmYGCUXNzo1hZVhJKd2efhu3nJHy3He5o9QjFpmgy8TJwg
I received:NumLinks: 5 BlockSize: 248 LinksSize: 222 DataSize: 26 CumulativeSize: 1109580
I have not been able to successfully retrieve QmYGCUXNzo1hZVhJKd2efhu3nJHy3He5o9QjFpmgy8TJwg from the node however. My node recognizes obviously recognizes it as pinned though.
I also have not been able to run a successful
ipfs pin ls
with any of the other broken hashes. OnlyQmU1aLywufB7MwaXfFyj2Qy1v6w93fkA9xR34Kz1kZv3vX
Upon running
ipfs pin verify --verbose
the following pins error out:First: Is there a way to recover from something like this?'
Second: Is there anything that can trigger such a state?
The text was updated successfully, but these errors were encountered: