Bitcoin Forum
November 14, 2024, 08:41:07 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: blocknotify not happening after logging out of SSH?  (Read 724 times)
Envrin (OP)
Sr. Member
****
Offline Offline

Activity: 318
Merit: 251



View Profile
November 03, 2015, 03:10:12 PM
 #1

Having an issue with blocknotify firing on one of the servers I'm responsible for, and am left scratching my head, especially since all other servers are working like a charm.  Quick rundown:

- Bitcoin Core v0.11.1 across all servers

- walletnotify works perfectly at all times

- Both, blocknotify and walletnotify commands are correctly configured, software is fine and tested, etc.  No issues there.

- bitcoind is setup to run under user "coind", all permissions and ownerships are set correctly.

- All servers fire blocknotify just fine, except for one.

- Within the problematic server, if I login and restart bitcoind, it begins firing blocknotify command just fine.  However, when I close that SSH session, it immediately stops firing the blocknotify command, but continues to fire the walletnotify command.

- All servers are set with "daemon=1" in the bitcoin.conf file, although with the problematic server I've tried, "server=1", "daemon=1", and both at the same time, with no luck.

- All servers are CentOS 6/7  64bit

Any idea why this would be happening?
monsterer
Legendary
*
Offline Offline

Activity: 1008
Merit: 1007


View Profile
November 03, 2015, 03:12:35 PM
 #2

This smacks of the bitcoind process being owned by the shell - are you sure that bitcoind itself is still running when you log out of SSH?
Envrin (OP)
Sr. Member
****
Offline Offline

Activity: 318
Merit: 251



View Profile
November 03, 2015, 03:19:57 PM
 #3

This smacks of the bitcoind process being owned by the shell - are you sure that bitcoind itself is still running when you log out of SSH?

bitcoind process is still running after I log out.  I can login with a different session and see it via "ps auxw | grep bitcoind", plus it continues to fire the walletnotify command flawlessly.  It stops firing the blocknotify command when I logout of the SSH session I restarted bitcoind with though for some reason.

I'm quite perplexed, and have to admit, am at a bit of a loss here.
monsterer
Legendary
*
Offline Offline

Activity: 1008
Merit: 1007


View Profile
November 03, 2015, 03:38:55 PM
 #4

This smacks of the bitcoind process being owned by the shell - are you sure that bitcoind itself is still running when you log out of SSH?

bitcoind process is still running after I log out.  I can login with a different session and see it via "ps auxw | grep bitcoind", plus it continues to fire the walletnotify command flawlessly.  It stops firing the blocknotify command when I logout of the SSH session I restarted bitcoind with though for some reason.

I'm quite perplexed, and have to admit, am at a bit of a loss here.


Is the thing which blocknotify triggers somehow tied to the login shell process/user?
Envrin (OP)
Sr. Member
****
Offline Offline

Activity: 318
Merit: 251



View Profile
November 03, 2015, 03:45:05 PM
 #5


Nope, not at all.  It's just a simple 3 line bash script, same as what walletnotify fires.

Plus I have about a dozen servers here, and they're all working fine, except this one.  The 'bitcoind' binary hasn't been modified, and I've verified the SHA hash on it, so it's not that.

monsterer
Legendary
*
Offline Offline

Activity: 1008
Merit: 1007


View Profile
November 03, 2015, 04:17:57 PM
 #6


Nope, not at all.  It's just a simple 3 line bash script, same as what walletnotify fires.

Plus I have about a dozen servers here, and they're all working fine, except this one.  The 'bitcoind' binary hasn't been modified, and I've verified the SHA hash on it, so it's not that.

Devil's advocate - swap the scripts around and see if the other script fails to execute
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!