-
-
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
Interoperability between go-ipfs@0.4.11 and js-ipfs@0.26 #4250
Comments
Also, run tests on js-ipfs-api just to double check and all good there. |
The go daemon would randomly die (no errors, it looks like it just shut down) but I think it was an issue with running the tests repeatedly (while the repo tests repeatedly failed). I'm guessing daemons or random files were getting left around from previous test runs. |
@Stebalien can you reproduce it? You will be able to |
Well, it doesn't look like anything is getting left behind but I still get the failure occasionally: stdout> ipfs@0.26.0 test:interop /home/steb/projects/go/src/github.com/ipfs/js-ipfs > npm run test:interop:node log 10 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'test:interop:node' ] 2 info using npm@5.3.0 3 info using node@v8.5.0 4 verbose run-script [ 'pretest:interop:node', 4 verbose run-script 'test:interop:node', 4 verbose run-script 'posttest:interop:node' ] 5 info lifecycle ipfs@0.26.0~pretest:interop:node: ipfs@0.26.0 6 info lifecycle ipfs@0.26.0~test:interop:node: ipfs@0.26.0 7 verbose lifecycle ipfs@0.26.0~test:interop:node: unsafe-perm in lifecycle true 8 verbose lifecycle ipfs@0.26.0~test:interop:node: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/steb/projects/go/src/github.com/ipfs/js-ipfs/node_modules/.bin:/usr/lib/node_modules/npm/bin/node-gyp-bin:/home/steb/projects/go/src/github.com/ipfs/js-ipfs/node_modules/.bin:/home/steb/.config/spacemacs/bin:/home/steb/projects/go/bin:/home/steb/.local/bin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl 9 verbose lifecycle ipfs@0.26.0~test:interop:node: CWD: /home/steb/projects/go/src/github.com/ipfs/js-ipfs 10 silly lifecycle ipfs@0.26.0~test:interop:node: Args: [ '-c', 'mocha -t 60000 test/interop/node.js' ] 11 silly lifecycle ipfs@0.26.0~test:interop:node: Returned: code: 9 signal: null 12 info lifecycle ipfs@0.26.0~test:interop:node: Failed to exec test:interop:node script 13 verbose stack Error: ipfs@0.26.0 test:interop:node: `mocha -t 60000 test/interop/node.js` 13 verbose stack Exit status 9 13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:289:16) 13 verbose stack at emitTwo (events.js:125:13) 13 verbose stack at EventEmitter.emit (events.js:213:7) 13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14) 13 verbose stack at emitTwo (events.js:125:13) 13 verbose stack at ChildProcess.emit (events.js:213:7) 13 verbose stack at maybeClose (internal/child_process.js:927:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 14 verbose pkgid ipfs@0.26.0 15 verbose cwd /home/steb/projects/go/src/github.com/ipfs/js-ipfs 16 verbose Linux 4.13.2-1-hardened 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "test:interop:node" 18 verbose node v8.5.0 19 verbose npm v5.3.0 20 error code ELIFECYCLE 21 error errno 9 22 error ipfs@0.26.0 test:interop:node: `mocha -t 60000 test/interop/node.js` 22 error Exit status 9 23 error Failed at the ipfs@0.26.0 test:interop:node script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 9, true ] log 20 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'test:interop' ] 2 info using npm@5.3.0 3 info using node@v8.5.0 4 verbose run-script [ 'pretest:interop', 'test:interop', 'posttest:interop' ] 5 info lifecycle ipfs@0.26.0~pretest:interop: ipfs@0.26.0 6 info lifecycle ipfs@0.26.0~test:interop: ipfs@0.26.0 7 verbose lifecycle ipfs@0.26.0~test:interop: unsafe-perm in lifecycle true 8 verbose lifecycle ipfs@0.26.0~test:interop: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/home/steb/projects/go/src/github.com/ipfs/js-ipfs/node_modules/.bin:/home/steb/.config/spacemacs/bin:/home/steb/projects/go/bin:/home/steb/.local/bin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl 9 verbose lifecycle ipfs@0.26.0~test:interop: CWD: /home/steb/projects/go/src/github.com/ipfs/js-ipfs 10 silly lifecycle ipfs@0.26.0~test:interop: Args: [ '-c', 'npm run test:interop:node' ] 11 silly lifecycle ipfs@0.26.0~test:interop: Returned: code: 9 signal: null 12 info lifecycle ipfs@0.26.0~test:interop: Failed to exec test:interop script 13 verbose stack Error: ipfs@0.26.0 test:interop: `npm run test:interop:node` 13 verbose stack Exit status 9 13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:289:16) 13 verbose stack at emitTwo (events.js:125:13) 13 verbose stack at EventEmitter.emit (events.js:213:7) 13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14) 13 verbose stack at emitTwo (events.js:125:13) 13 verbose stack at ChildProcess.emit (events.js:213:7) 13 verbose stack at maybeClose (internal/child_process.js:927:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 14 verbose pkgid ipfs@0.26.0 15 verbose cwd /home/steb/projects/go/src/github.com/ipfs/js-ipfs 16 verbose Linux 4.13.2-1-hardened 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "test:interop" 18 verbose node v8.5.0 19 verbose npm v5.3.0 20 error code ELIFECYCLE 21 error errno 9 22 error ipfs@0.26.0 test:interop: `npm run test:interop:node` 22 error Exit status 9 23 error Failed at the ipfs@0.26.0 test:interop script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 9, true ] |
Note: I commented out the repo tests here. |
Another failure stdout> ipfs@0.26.0 test:interop /home/steb/projects/go/src/github.com/ipfs/js-ipfs > npm run test:interop:node One interesting thing I've noticed is that these failures tend to happen in runs. |
I'm seeing this error currently - the node modules are up to date. Its totally reproducable, the file is at https://dweb.me/examples/example_academic.html?verbose=true and errors show up in the console (with the verbose option set like this). |
Narrowing this down to just one line: So until this is fixed maybe use that specific github commit. |
@mitra42 these errors are unrelated. This is about js<->go interop, not the repo version change in js-ipfs master. |
@Stebalien reported during the last all hands that he has seen file transfer errors between latest go-ipfs and latest js-ipfs.
I've been unable to reproduce these locally. The only failing tests I see are due to a repo version update:
@Stebalien were there any other errors? If yes, how to reproduce them? What is your testing environment?
The text was updated successfully, but these errors were encountered: