B2_Command_Line_Tool icon indicating copy to clipboard operation
B2_Command_Line_Tool copied to clipboard

Broken symlink returns warning but stops sync.

Open AlexanderProd opened this issue 7 years ago • 5 comments

When I'm running the b2 sync script without any arguments except for the thread count I'm getting this error. It ran perfect for a while though.

I'm using version 1.3.6 installed using pip3

WARNING: /Users/alexanderhoerl/Developer/react-spa/node_modules/fsevents/node_modules/.bin/node-pre-gyp could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-spa/node_modules/node-pre-gyp/node_modules/.bin/needle could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-spa/node_modules/node-pre-gyp/node_modules/.bin/detect-libc could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-spa/node_modules/node-pre-gyp/node_modules/.bin/nopt could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-spa/node_modules/svgo/node_modules/js-yaml/node_modules/.bin/esvalidate could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-spa/node_modules/svgo/node_modules/js-yaml/node_modules/.bin/esparse could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-upload/node_modules/fsevents/node_modules/.bin/node-pre-gyp could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-upload/node_modules/node-pre-gyp/node_modules/.bin/needle could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-upload/node_modules/node-pre-gyp/node_modules/.bin/detect-libc could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-upload/node_modules/node-pre-gyp/node_modules/.bin/nopt could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-upload/node_modules/svgo/node_modules/js-yaml/node_modules/.bin/esvalidate could not be accessed (broken symlink?)
WARNING: /Users/alexanderhoerl/Developer/react-upload/node_modules/svgo/node_modules/js-yaml/node_modules/.bin/esparse could not be accessed (broken symlink?)

After this the program stops.

AlexanderProd avatar Oct 03 '18 07:10 AlexanderProd

I've also tried --excludeDirRegex '(node_modules)' to escape the node modules since all of the broken symlinks seem to be in one of those. But its still happening.

AlexanderProd avatar Oct 03 '18 11:10 AlexanderProd

Could you please run the sync with detailed logs? Those warnings work as intended, but it seems strange that the sync has stopped.

ppolewicz avatar Oct 04 '18 20:10 ppolewicz

@ppolewicz Unfortunately I can't prove detailed logs at the moment because I deleted the broken symlinks so I could resume the sync process and therefore can't recreate the error. But I going to provide them if it happens again.

AlexanderProd avatar Oct 05 '18 18:10 AlexanderProd

HI, I've been having the same issue.

With --verbose, after the WARNINGs, I just get INFO:__main__:\\ ======================================== exit=0 ======================================== //, then it exits

dcowan-london avatar Mar 07 '22 18:03 dcowan-london

It would appear that you've already synced everything (except for the broken symlinks). Isn't that the case? To test this you could create a file such as ZZZZ and then run the sync again with debug to see if it will be uploaded.

ppolewicz avatar Mar 11 '22 12:03 ppolewicz

Please reopen if the problem still occurs with the current version. When reporting it, please attach detailed logs that way we can reduce back-and-forth and thus solve the issue together faster. The most important information here would be if sync indeed did not complete. Warnings should not stop the process, and seeing how process produced multiple of them indicates that was the case.

mjurbanski-reef avatar Nov 10 '23 09:11 mjurbanski-reef

An important piece of information for the user: these Warnings are printed at the end of the process by design.

mjurbanski-reef avatar Nov 10 '23 09:11 mjurbanski-reef