hello! this is the code I'm running from nodeexec('/usr/local/bin/bitcoin-cli getnewaddress', [ '--uid 1000 --gid 1000' ], (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); return response.json({ error: 'unable to get new Bitcoin address' }); } console.log(`stdout: ${stdout}`); console.log(`stderr: ${stderr}`); }); the error I get isOct 16 21:32:02 sb node[14141]: exec error: Error: Command failed: /usr/local/bin/bitcoin-cli getnewaddress Oct 16 21:32:02 sb node[14141]: ************************ Oct 16 21:32:02 sb node[14141]: EXCEPTION: N5boost10filesystem16filesystem_errorE Oct 16 21:32:02 sb node[14141]: boost::filesystem::create_directory: Permission denied: "/root/.bitcoin" Oct 16 21:32:02 sb node[14141]: bitcoin in AppInitRPC() node runs as root until after it reserves port 80 and 443 then I change the user to same user (1000) that owns /usr/local/bin/bitcoin-cli but for some reason it looks like it's still trying to run as root???? the bitcoind is also running as same user. anyone have any ideas?
Submitted October 16, 2018 at 10:56PM by superfake123
No comments:
Post a Comment