Pages:
Author

Topic: debug.log runCommand error - page 3. (Read 3366 times)

legendary
Activity: 2058
Merit: 1452
March 11, 2015, 03:25:04 PM
#4
as in, ssh into your server (I seriously hope you have ssh access)
type:
Code:
curl https://mydomain.com/blocknotify.php/?blockhash=00000000000000000dd3c33eaf1a2746ebe841418b98cb15f4a0bb71f3330d5e
echo $?
the echo on the last line is to check the exit status. I'm suspecting that the culprit is your script failing and thus returning -1 to bitcoind when it's executed.
jlp
sr. member
Activity: 266
Merit: 264
March 11, 2015, 01:16:56 PM
#3
does it run successfully in in shell? as in, run the command, then do "echo $?" to check the return status.

Are you referring to this?:

Code:
https://mydomain.com/blocknotify.php/?blockhash=00000000000000000dd3c33eaf1a2746ebe841418b98cb15f4a0bb71f3330d5e

If so, then yes, that program executes when I invoke it from a browser.

If you are suggesting that I add the following command in bitcoin.conf:

Code:
blocknotify=/home/bitcoin/block.sh %s

...then that means I need to create a shell file.  If you are suggesting that I have "echo $?" in the shell file, then I'm not sure how I would see the output.  Doesn't the echo output go to the screen?  If the shell program is running on the server, how do I see the output?




legendary
Activity: 2058
Merit: 1452
March 11, 2015, 12:32:57 PM
#2
does it run successfully in in shell? as in, run the command, then do "echo $?" to check the return status.
jlp
sr. member
Activity: 266
Merit: 264
March 11, 2015, 12:08:36 PM
#1
I have used the following successfully in bitcoin.conf for about a year:

Code:
walletnotify=curl https://mydomain.com/walletnotify.php/?tanshash=%s
blocknotify=curl https://mydomain.com/blocknotify.php/?blockhash=%s

They seemed to stop working a few months ago.  The following is in debug.log:

Code:
2015-03-11 14:05:53 runCommand error: system(curl https://mydomain.com/blocknotify.php/?blockhash=00000000000000000dd3c33eaf1a2746ebe841418b98cb15f4a0bb71f3330d5e) returned -1

I changed my code in bitcoin.conf to this:

Code:
blocknotify=/usr/bin/php /home/mydomain/public_html/blocknotify.php %s

But I'm still getting the same error:

Code:
2015-03-11 16:28:57 runCommand error: system(/usr/bin/php /home/mydomain/public_html/blocknotify.php 000000000000000015a51b99f54a611b2a88c096d1091e13933346431c17b2be) returned -1

Can anyone tell me what "runCommand error: ... returned -1" means and how to fix this?

Pages:
Jump to: