XMR error Failed to bind the ZMQ

Hello, I have some trouble with XMR…

I am trying to start the XMR service based on the tutorial on:
https://xibo.org.uk/docs/setup/xmr-push-messaging

but when I put in the command ‘php xmr.phar’
It gives the error:
[2019-06-18 08:26:54] xmr.ERROR: Failed to bind the ZMQ: No such device [] []
[2019-06-18 08:26:54] xmr.ERROR: #0 [internal function]: ZMQSocket->bind(‘tcp://localhost…’) #1 phar:///var/www/html/xibo/vendor/xibosignage/xibo-xmr/bin/xmr.phar/vendor/react/zmq/src/React/ZMQ/SocketWrapper.php(114): call_user_func_array(Array, Array) #2 phar:///var/www/html/xibo/vendor/xibosignage/xibo-xmr/bin/xmr.phar/index.php(64): React\ZMQ\SocketWrapper->__call(‘bind’, Array) #3 /var/www/html/xibo/vendor/xibosignage/xibo-xmr/bin/xmr.phar(10): require(‘phar:///var/www…’) #4 {main} [] []

my config.json is:
{
“listenOn”: “tcp://127.0.0.1:50001”,
“pubOn”: [“tcp://{my_IP}:9505”],
“debug”: false
}

my installation type is manual non docker,
OS: Centos 7

Can anyone help… been stuck here for a while now…

You need to correct config.json for your setup.

Your error message suggests you have tcp://localhost in config.json and not tcp://127.0.0.1 as you show in your post.

In general, you want to bind the listenOn to your loopback interface, so find the IP for that and put it there. pubOn you can bind to * or a specific IP at your option.

{
  “listenOn”: “tcp://127.0.0.1:50001”,
  “pubOn”: [“tcp://*:9505”],
  “debug”: false
}

Thanks for the reply,

after I’ve changed config.json as suggested to:

{
  “listenOn”: “tcp://127.0.0.1:50001”,
  “pubOn”: [“tcp://*:9505”],
  “debug”: false
}

then, I run php xmr.phar , nothing…
does this means that it is running or still processing?

when I try to use XMR (collect now function)
the log shows:

Please help thanks

1 Like