• Forum has been upgraded, all links, images, etc are as they were. Please see Official Announcements for more information

Darkcoin daemon shuts down, any idea?

vertoe

Three of Nine
Around 5 minutes after I log out of my SSH session my daemon seems to shut down and I have no idea why. This is the tail of the debug.log:
Code:
2014-07-14 18:16:08 ERROR: CAddrman::Write() : open failed
2014-07-14 18:16:08 Flushed 10517 addresses to peers.dat  26ms
2014-07-14 18:16:44 CDarkSendPool::UpdateState() == 2 | 2
2014-07-14 18:16:44 DarkSendStatusUpdate - state: 2 entriesCount: 0 accepted: -1
2014-07-14 18:16:44 received block 00000000000ca3b86f6c67d519952b8ba2b54c176a82a9e2d8fc6cc8b3560f37 peer=7
2014-07-14 18:16:44 *** System error: boost::filesystem::create_directory: Permission denied: "/home/toe/.darkcoin"
2014-07-14 18:16:44 Error: System error: boost::filesystem::create_directory: Permission denied: "/home/toe/.darkcoin"
2014-07-14 18:16:44 ERROR: ProcessBlock() : AcceptBlock FAILED
2014-07-14 18:16:44 addcon thread interrupt
2014-07-14 18:16:44 opencon thread interrupt
2014-07-14 18:16:44 dumpaddr thread stop
2014-07-14 18:16:44 Shutdown : In progress...
2014-07-14 18:16:44 Flush(false)
2014-07-14 18:16:44 DBFlush(false) ended  0ms
2014-07-14 18:16:44 StopNode()
2014-07-14 18:16:44 msghand thread interrupt
2014-07-14 18:16:44 net thread interrupt
2014-07-14 18:16:44 ERROR: CAddrman::Write() : open failed
2014-07-14 18:16:44 Flushed 10517 addresses to peers.dat  35ms
Looks like a permission error. But why does that only happen after I log out? Any ideas?
 
Around 5 minutes after I log out of my SSH session my daemon seems to shut down and I have no idea why. This is the tail of the debug.log:
Code:
2014-07-14 18:16:08 ERROR: CAddrman::Write() : open failed
2014-07-14 18:16:08 Flushed 10517 addresses to peers.dat  26ms
2014-07-14 18:16:44 CDarkSendPool::UpdateState() == 2 | 2
2014-07-14 18:16:44 DarkSendStatusUpdate - state: 2 entriesCount: 0 accepted: -1
2014-07-14 18:16:44 received block 00000000000ca3b86f6c67d519952b8ba2b54c176a82a9e2d8fc6cc8b3560f37 peer=7
2014-07-14 18:16:44 *** System error: boost::filesystem::create_directory: Permission denied: "/home/toe/.darkcoin"
2014-07-14 18:16:44 Error: System error: boost::filesystem::create_directory: Permission denied: "/home/toe/.darkcoin"
2014-07-14 18:16:44 ERROR: ProcessBlock() : AcceptBlock FAILED
2014-07-14 18:16:44 addcon thread interrupt
2014-07-14 18:16:44 opencon thread interrupt
2014-07-14 18:16:44 dumpaddr thread stop
2014-07-14 18:16:44 Shutdown : In progress...
2014-07-14 18:16:44 Flush(false)
2014-07-14 18:16:44 DBFlush(false) ended  0ms
2014-07-14 18:16:44 StopNode()
2014-07-14 18:16:44 msghand thread interrupt
2014-07-14 18:16:44 net thread interrupt
2014-07-14 18:16:44 ERROR: CAddrman::Write() : open failed
2014-07-14 18:16:44 Flushed 10517 addresses to peers.dat  35ms
Looks like a permission error. But why does that only happen after I log out? Any ideas?

Definitively insufficient write permissions on .darkcoin/leveldb directory - deferred occurance IHMO not related to logout, but new block arrival (blocktime ~2.5min)
 
Last edited by a moderator:
Definitively insufficient write permissions on .darkcoin/leveldb directory - deferred occurance IHMO not related to logout, but new block arrival (blocktime ~2.5min)
But, but, ... this does not happen as long as I'm logged in. This is how it looks like when I'm logged in:
Code:
2014-07-14 19:34:27 CDarkSendPool::UpdateState() == 2 | 2
2014-07-14 19:34:27 DarkSendStatusUpdate - state: 2 entriesCount: 0 accepted: -1
2014-07-14 19:34:27 CDarkSendPool::UpdateState() == 2 | 2
2014-07-14 19:34:27 DarkSendStatusUpdate - state: 2 entriesCount: 0 accepted: -1
2014-07-14 19:34:27 received block 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=4
2014-07-14 19:34:27 Committing 696 changed transactions to coin database...
2014-07-14 19:34:27 SetBestChain: new best=0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f  height=102059  log2_work=59.129554  tx=438217  date=2014-07-14 19:37:25 progress=1.000004
2014-07-14 19:34:27 ProcessBlock: ACCEPTED
2014-07-14 19:34:27 CDarkSendPool::UpdateState() == 2 | 2
2014-07-14 19:34:27 DarkSendStatusUpdate - state: 2 entriesCount: 0 accepted: -1
2014-07-14 19:34:27 send last getblocks for 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=8
2014-07-14 19:34:27 send last getblocks for 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=1
2014-07-14 19:34:27 send last getblocks for 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=6
2014-07-14 19:34:27 getblocks -1 to 0 limit 500 peer=6
2014-07-14 19:34:28 send last getblocks for 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=3
2014-07-14 19:34:28 getblocks -1 to 0 limit 500 peer=3
 
But, but, ... this does not happen as long as I'm logged in. This is how it looks like when I'm logged in:
Code:
2014-07-14 19:34:27 CDarkSendPool::UpdateState() == 2 | 2
2014-07-14 19:34:27 DarkSendStatusUpdate - state: 2 entriesCount: 0 accepted: -1
2014-07-14 19:34:27 CDarkSendPool::UpdateState() == 2 | 2
2014-07-14 19:34:27 DarkSendStatusUpdate - state: 2 entriesCount: 0 accepted: -1
2014-07-14 19:34:27 received block 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=4
2014-07-14 19:34:27 Committing 696 changed transactions to coin database...
2014-07-14 19:34:27 SetBestChain: new best=0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f  height=102059  log2_work=59.129554  tx=438217  date=2014-07-14 19:37:25 progress=1.000004
2014-07-14 19:34:27 ProcessBlock: ACCEPTED
2014-07-14 19:34:27 CDarkSendPool::UpdateState() == 2 | 2
2014-07-14 19:34:27 DarkSendStatusUpdate - state: 2 entriesCount: 0 accepted: -1
2014-07-14 19:34:27 send last getblocks for 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=8
2014-07-14 19:34:27 send last getblocks for 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=1
2014-07-14 19:34:27 send last getblocks for 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=6
2014-07-14 19:34:27 getblocks -1 to 0 limit 500 peer=6
2014-07-14 19:34:28 send last getblocks for 0000000000061a1ebd441b832a92855b30cf7b20fc623b0e997f088fc125675f peer=3
2014-07-14 19:34:28 getblocks -1 to 0 limit 500 peer=3
Hmm, voodoo?
 
What account is the from in running under? Is it your account? If so, try making a new account and running the service under that account
 
How are you starting the daemon?

Try
Code:
./darkcoind & disown
and see what happens.
 
How are you starting the daemon?

Try
Code:
./darkcoind & disown
and see what happens.
I run it in daemon mode already.
Code:
darkcoin -daemon

It might be caused due to encrypted home directory.
 
Last edited by a moderator:
You need to be starting the daemon in a screen session.

apt-get install screen
login as the user who's going to run darkcoind
screen /bin/bash (to start the screen)
darkcoind (assuming darkcoind is in your $PATH)
ctrl a+d (to detach from the running screen)
 
Around 5 minutes after I log out of my SSH session my daemon seems to shut down and I have no idea why. This is the tail of the debug.log:
Code:
2014-07-14 18:16:08 ERROR: CAddrman::Write() : open failed
...
Looks like a permission error. But why does that only happen after I log out? Any ideas?
Hello ?
I see that that error is in the file db.cpp, CAddrDB::Write(..) where a temporary, empty version of peers.dat is created. That seems to be failing, though I can't see how the CAddrDB::CAddrDB(...) constructor can tell that
Code:
file
is NULL??

You would have to run long enough for the peers.dat to be rewritten again, to see if it happens then too. The peers.dat file is in the "datadir" directory, traditionally where the wallet.dat and error files are located.

As was stated, check your program's permissions in/on this directory (are you running Windows vista, 7 or 8?)

I compile bitcoin and a few other alternate crypto-currencies using MSVS, so that I can debug in the full IDE. That would show me what is going on. I'm running darkcoind.exe 0.9.11.6, gcc compiled on Windows and I don't see that problem, while running or exiting.

Ron
 
Back
Top