{"action":"created","issue":{"url":"https://api.github.com/repos/bitpay/bitcore-wallet-service/issues/128","labels_url":"https://api.github.com/repos/bitpay/bitcore-wallet-service/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/bitpay/bitcore-wallet-service/issues/128/comments","events_url":"https://api.github.com/repos/bitpay/bitcore-wallet-service/issues/128/events","html_url":"https://github.com/bitpay/bitcore-wallet-service/issues/128","id":60092302,"number":128,"title":"Throwing errors on Ubuntu both nodejs and nodejs-legacy","user":{"login":"dabura667","id":6586275,"avatar_url":"https://avatars.githubusercontent.com/u/6586275?v=3","gravatar_id":"","url":"https://api.github.com/users/dabura667","html_url":"https://github.com/dabura667","followers_url":"https://api.github.com/users/dabura667/followers","following_url":"https://api.github.com/users/dabura667/following{/other_user}","gists_url":"https://api.github.com/users/dabura667/gists{/gist_id}","starred_url":"https://api.github.com/users/dabura667/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabura667/subscriptions","organizations_url":"https://api.github.com/users/dabura667/orgs","repos_url":"https://api.github.com/users/dabura667/repos","events_url":"https://api.github.com/users/dabura667/events{/privacy}","received_events_url":"https://api.github.com/users/dabura667/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-06T11:47:04Z","updated_at":"2015-03-06T11:50:38Z","closed_at":null,"body":"```\r\n> bitcore-wallet-service@0.0.3 start /root/src/node_modules/bitcore-wallet-service\r\n> node app.js\r\n\r\nBitcore Wallet Service running on port 3001\r\n\r\nevents.js:72\r\n        throw er; // Unhandled 'error' event\r\n              ^\r\nOpenError: IO error: ./db/bws.db/LOCK: No such file or directory\r\n    at /root/src/node_modules/bitcore-wallet-service/node_modules/levelup/lib/levelup.js:118:34\r\n\r\nnpm ERR! bitcore-wallet-service@0.0.3 start: `node app.js`\r\nnpm ERR! Exit status 8\r\nnpm ERR!\r\nnpm ERR! Failed at the bitcore-wallet-service@0.0.3 start script.\r\nnpm ERR! This is most likely a problem with the bitcore-wallet-service package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR!     node app.js\r\nnpm ERR! You can get their info via:\r\nnpm ERR!     npm owner ls bitcore-wallet-service\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! System Linux 3.16.0-23-generic\r\nnpm ERR! command \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"start\"\r\nnpm ERR! cwd /root/src/node_modules/bitcore-wallet-service\r\nnpm ERR! node -v v0.10.25\r\nnpm ERR! npm -v 1.4.21\r\nnpm ERR! code ELIFECYCLE\r\nnpm WARN This failure might be due to the use of legacy binary \"node\"\r\nnpm WARN For further explanations, please read\r\n/usr/share/doc/nodejs/README.Debian\r\n\r\nnpm ERR!\r\nnpm ERR! Additional logging details can be found in:\r\nnpm ERR!     /root/src/node_modules/bitcore-wallet-service/npm-debug.log\r\nnpm ERR! not ok code 0\r\n```\r\n\r\nI followed instructions on http://stackoverflow.com/questions/21168141/can-not-install-packages-using-node-package-manager-in-ubuntu and installed legacy using `sudo apt-get install nodejs-legacy`\r\n\r\nStill does not fix the problem...\r\n\r\nAny tips?"},"comment":{"url":"https://api.github.com/repos/bitpay/bitcore-wallet-service/issues/comments/77547648","html_url":"https://github.com/bitpay/bitcore-wallet-service/issues/128#issuecomment-77547648","issue_url":"https://api.github.com/repos/bitpay/bitcore-wallet-service/issues/128","id":77547648,"user":{"login":"dabura667","id":6586275,"avatar_url":"https://avatars.githubusercontent.com/u/6586275?v=3","gravatar_id":"","url":"https://api.github.com/users/dabura667","html_url":"https://github.com/dabura667","followers_url":"https://api.github.com/users/dabura667/followers","following_url":"https://api.github.com/users/dabura667/following{/other_user}","gists_url":"https://api.github.com/users/dabura667/gists{/gist_id}","starred_url":"https://api.github.com/users/dabura667/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabura667/subscriptions","organizations_url":"https://api.github.com/users/dabura667/orgs","repos_url":"https://api.github.com/users/dabura667/repos","events_url":"https://api.github.com/users/dabura667/events{/privacy}","received_events_url":"https://api.github.com/users/dabura667/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T11:50:38Z","updated_at":"2015-03-06T11:50:38Z","body":"```\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]\r\n2 info using npm@1.4.21\r\n3 info using node@v0.10.25\r\n4 verbose run-script [ 'prestart', 'start', 'poststart' ]\r\n5 info prestart bitcore-wallet-service@0.0.3\r\n6 info start bitcore-wallet-service@0.0.3\r\n7 verbose unsafe-perm in lifecycle true\r\n8 info bitcore-wallet-service@0.0.3 Failed to exec start script\r\n9 error bitcore-wallet-service@0.0.3 start: `node app.js`\r\n9 error Exit status 8\r\n10 error Failed at the bitcore-wallet-service@0.0.3 start script.\r\n10 error This is most likely a problem with the bitcore-wallet-service package,\r\n10 error not with npm itself.\r\n10 error Tell the author that this fails on your system:\r\n10 error     node app.js\r\n10 error You can get their info via:\r\n10 error     npm owner ls bitcore-wallet-service\r\n10 error There is likely additional logging output above.\r\n11 error System Linux 3.16.0-23-generic\r\n12 error command \"/usr/bin/nodejs\" \"/usr/bin/npm\" \"start\"\r\n13 error cwd /root/src/node_modules/bitcore-wallet-service\r\n14 error node -v v0.10.25\r\n15 error npm -v 1.4.21\r\n16 error code ELIFECYCLE\r\n17 verbose exit [ 1, true ]\r\n```\r\nHere's the /bitcore-wallet-service/npm-debug.log"}}