-
-
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
IPFS 0.4.5 datastore migration 4 -> 5 failure. #3681
Comments
Please remove the .DS_Store from the directory, we probably can add an exception for Mac in this case. |
Thanks for the quick answer @Kubuxu but the issue remains:
|
@kevina can you take a look at it? |
The contents of the directory it complains about seem reasonable: https://gist.github.com/NeoTeo/138bccbddb02b9cc2f12583ab9b9cf32 |
It probably complains about: put-675353937, which is left over from atomic put operation that didn't go through. |
Is there any way of telling what it belongs to and whether it's safe to remove? |
Files with long string of capital letters and extension
|
Ok, that did it. There were three of those put- files, as hinted at by this not-as-useful-as-could-be message:
Moving those and rerunning the daemon & migration worked. |
Yeah, |
Note, this is just a warning. The file was moved. There is a formatting problem with the error message though. |
It is mostly connected with this: ipfs/go-ds-flatfs#16 |
Hey all, mind verifying that the new binaries for fs-repo-migrations 1.2.1 here fix the issue? https://ipfs.io/ipfs/QmZMzC8ihgybDLzstWm9iYTEbrhVEeBtevWE6vLjdci3Ay/#fs-repo-migrations |
My original repo is now converted so I can't check on that. I have an old repo on a separate machine that doesn't have the offending files in it so it'd probably convert just fine. Would making any bogus file in there cause the issue and would a test with that be useful? |
You can try to make go-ipfs create file like that by force killing it (double Ctrl+C) while adding some files. |
Nope, that doesn't do it. |
Ok,Managed it by killing the daemon whilst adding. Will test. |
Failed. The output:
|
Now it looks like something else (too many open files). |
Ahh, I see. We are using deffer calls to Close, but those functions run for a long time which will cause a failure. This should be quite easy to fix by doing manual close calls. @kevina will you have time to fix it? |
@Kubuxu yes, sorry I missed the message, part of of been my fought for misunderstanding how defer works in go (I assumed it would execute at the end of the scope (like C++ would) not the end of the function). Expect something in a few hours. |
@Kubuxu okay, I just created a p.r. that should help. ipfs/go-ds-flatfs#18. This will need to be bubbled up once merged. |
Getting a lot of these. Related?
|
No, but it is interesting either way. Can you open another issue. |
Opened as issue #3706 |
This should be resolved now (as well as #3706 ) |
@lgierth can you test migrations on our gateways? |
I think it was fixed. |
I can confirm the fix. Had the same issue as OP with 0.4.5 and was fixed after updating to 0.4.7. |
Version information:
go-ipfs version: 0.4.5-
Repo version: 5
System version: amd64/darwin
Golang version: go1.7.4
Type:
Bug
Priority:
P0
Description:
Running
ipfs daemon
automatically initiates the datastore migration.The migration fails with the following log output:
The text was updated successfully, but these errors were encountered: