saltstack/salt — Issue #383: Debian Wheezy: ZMQError: Invalid argument
Author: akaihola
Created: 2011-12-21 20:57:53+00:00
State: open

I did the following on a Debian Wheezy box.

sudo apt-get install libzmq-dev python-pip
sudo pip install pyzmq
sudo pip install salt
sudo salt-master

and got this:

Traceback (most recent call last):
File "/usr/local/bin/salt-master", line 17, in
main()
File "/usr/local/bin/salt-master", line 14, in main
master.start()
File "/usr/local/lib/python2.7/dist-packages/salt/__init__.py", line 97, in start
master.start()
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 129, in start
reqserv.run()
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 216, in run
self.__bind()
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 189, in __bind
self.clients.bind(self.uri)
File "socket.pyx", line 489, in zmq.core.socket.Socket.bind (zmq/core/socket.c:4797)
zmq.core.error.ZMQError: Invalid argument
Process Publisher-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 153, in run
pub_sock.bind(pub_uri)
File "socket.pyx", line 489, in zmq.core.socket.Socket.bind (zmq/core/socket.c:4797)
ZMQError: Invalid argument

I also tried `sudo apt-get install python-zmq` instead of installing pyzmq with pip, and got this:

$ sudo salt-master
Traceback (most recent call last):
File "/usr/local/bin/salt-master", line 17, in
main()
File "/usr/local/bin/salt-master", line 14, in main
master.start()
File "/usr/local/lib/python2.7/dist-packages/salt/__init__.py", line 97, in start
master.start()
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 129, in start
reqserv.run()
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 216, in run
self.__bind()
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 189, in __bind
self.clients.bind(self.uri)
File "socket.pyx", line 459, in zmq.core.socket.Socket.bind (zmq/core/socket.c:4552)
zmq.core.error.ZMQError: Invalid argument
Process Publisher-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/local/lib/python2.7/dist-packages/salt/master.py", line 153, in run
pub_sock.bind(pub_uri)
File "socket.pyx", line 459, in zmq.core.socket.Socket.bind (zmq/core/socket.c:4552)
ZMQError: Invalid argument

Also, installing salt from the current GitHub HEAD gives a similar error.