[IPython-User] ipcontroller -> ZMQError: Address already in use

Jon Olav Vik jonovik@gmail....
Wed Sep 12 05:37:59 CDT 2012


After installing today's Git master of IPython (revision 8284282), I created a 
new default profile with 
ipython profile create --parallel
changed a few timeouts and the following setting in ipcontroller_config.py:
c.HubFactory.client_ip = '*'
then tried to do what used to work, namely "ipcluster start". However, that 
fails with "ZMQError: Address already in use". The tcp ports are different 
every time, so I don't understand why they would be "already in use". Any hints 
appreciated.

Below follow the output of "ipcontroller", then two attempts at "ipcontroller --
debug".

Best regards,
Jon Olav


[jonvi@c24-9 ~]$ ipcontroller
2012-09-12 12:27:53,252.252 [IPControllerApp] Using existing profile dir: u'/
home/jonvi/.ipython/profile_default'
2012-09-12 12:27:53.268 [IPControllerApp] Hub listening on tcp://*:55830 for 
registration.
2012-09-12 12:27:53.268 [IPControllerApp] Couldn't construct the Controller
Traceback (most recent call last):
  File "/home/jonvi/usr/lib/python2.7/site-packages/IPython/parallel/apps/
ipcontrollerapp.py", line 326, in init_hub
    self.factory.init_hub()
  File "/home/jonvi/usr/lib/python2.7/site-packages/IPython/parallel/controller/
hub.py", line 290, in init_hub
    q.bind(self.engine_url('registration'))
  File "socket.pyx", line 489, in zmq.core.socket.Socket.bind (zmq/core/
socket.c:4797)
ZMQError: Address already in use



[jonvi@c24-9 ~]$ ipcontroller --debug
2012-09-12 12:22:34,376.376 [IPControllerApp] Config changed:
2012-09-12 12:22:34,376.376 [IPControllerApp] {'IPControllerApp': {'log_level': 
10}}
2012-09-12 12:22:34,379.379 [IPControllerApp] Using existing profile dir: u'/
home/jonvi/.ipython/profile_default'
2012-09-12 12:22:34,379.379 [IPControllerApp] Searching path [u'/home/jonvi', 
u'/home/jonvi/.ipython/profile_default'] for config files
2012-09-12 12:22:34,379.379 [IPControllerApp] Attempting to load config file: 
ipython_config.py
2012-09-12 12:22:34,380.380 [IPControllerApp] Loaded config file: /home/
jonvi/.ipython/profile_default/ipython_config.py
2012-09-12 12:22:34,381.381 [IPControllerApp] Attempting to load config file: 
ipcontroller_config.py
2012-09-12 12:22:34,382.382 [IPControllerApp] Loaded config file: /home/
jonvi/.ipython/profile_default/ipcontroller_config.py
2012-09-12 12:22:34,384.384 [IPControllerApp] Config changed:
2012-09-12 12:22:34,384.384 [IPControllerApp] {'HubFactory': {'client_ip': 
'*'}, 'IPControllerApp': {'clean_logs': True, 'log_level': 10}, 'ProfileDir': 
{}, 'TaskScheduler': {'hwm': 3}}
2012-09-12 12:22:34.387 [IPControllerApp] Config changed
2012-09-12 12:22:34.387 [IPControllerApp] {'IPControllerApp': {'clean_logs': 
True, 'log_level': 10}, 'HubFactory': {'client_ip': '*'}, 'Session': {'key': 
'd7f6716b-a6fc-45ff-ad42-529a62186439'}, 'ProfileDir': {}, 'TaskScheduler': 
{'hwm
': 3}}
2012-09-12 12:22:34.398 [IPControllerApp] Hub engine addrs: {'control': 38587, 
'task': 52050, 'hb_pong': 48909, 'registration': 33026, 'interface': 
u'tcp://127.0.0.1', 'iopub': 45692, 'hb_ping': 47953, 'mux': 54624}
2012-09-12 12:22:34.399 [IPControllerApp] Hub client addrs: {'control': 49468, 
'task': 34513, 'iopub': 45218, 'registration': 33026, 'interface': u'tcp://*', 
'notification': 57021, 'task_scheme': 'leastload', 'mux': 47020}
2012-09-12 12:22:34.400 [IPControllerApp] Hub listening on tcp://*:33026 for 
registration.
2012-09-12 12:22:34.400 [IPControllerApp] Couldn't construct the Controller
Traceback (most recent call last):
  File "/home/jonvi/usr/lib/python2.7/site-packages/IPython/parallel/apps/
ipcontrollerapp.py", line 326, in init_hub



    self.factory.init_hub()
  File "/home/jonvi/usr/lib/python2.7/site-packages/IPython/parallel/controller/
hub.py", line 290, in init_hub
    q.bind(self.engine_url('registration'))
  File "socket.pyx", line 489, in zmq.core.socket.Socket.bind (zmq/core/
socket.c:4797)
ZMQError: Address already in use
2012-09-12 12:22:34.402 [IPControllerApp] Exiting application: ipcontroller
[jonvi@c24-9 ~]$ ipcontroller --debug
2012-09-12 12:22:56,523.523 [IPControllerApp] Config changed:
2012-09-12 12:22:56,524.524 [IPControllerApp] {'IPControllerApp': {'log_level': 
10}}
2012-09-12 12:22:56,526.526 [IPControllerApp] Using existing profile dir: u'/
home/jonvi/.ipython/profile_default'
2012-09-12 12:22:56,526.526 [IPControllerApp] Searching path [u'/home/jonvi', 
u'/home/jonvi/.ipython/profile_default'] for config files
2012-09-12 12:22:56,526.526 [IPControllerApp] Attempting to load config file: 
ipython_config.py
2012-09-12 12:22:56,527.527 [IPControllerApp] Loaded config file: /home/
jonvi/.ipython/profile_default/ipython_config.py
2012-09-12 12:22:56,528.528 [IPControllerApp] Attempting to load config file: 
ipcontroller_config.py
2012-09-12 12:22:56,529.529 [IPControllerApp] Loaded config file: /home/
jonvi/.ipython/profile_default/ipcontroller_config.py
2012-09-12 12:22:56,530.530 [IPControllerApp] Config changed:
2012-09-12 12:22:56,530.530 [IPControllerApp] {'HubFactory': {'client_ip': 
'*'}, 'IPControllerApp': {'clean_logs': True, 'log_level': 10}, 'ProfileDir': 
{}, 'TaskScheduler': {'hwm': 3}}
2012-09-12 12:22:56.532 [IPControllerApp] Config changed
2012-09-12 12:22:56.532 [IPControllerApp] {'IPControllerApp': {'clean_logs': 
True, 'log_level': 10}, 'HubFactory': {'client_ip': '*'}, 'Session': {'key': 
'57032862-2ff8-47ed-ae69-fd1fa23ad7d2'}, 'ProfileDir': {}, 'TaskScheduler': 
{'hwm
': 3}}
2012-09-12 12:22:56.542 [IPControllerApp] Hub engine addrs: {'control': 44894, 
'task': 55408, 'hb_pong': 35857, 'registration': 38503, 'interface': 
u'tcp://127.0.0.1', 'iopub': 54768, 'hb_ping': 48814, 'mux': 54318}
2012-09-12 12:22:56.542 [IPControllerApp] Hub client addrs: {'control': 41520, 
'task': 37965, 'iopub': 44804, 'registration': 38503, 'interface': u'tcp://*', 
'notification': 56011, 'task_scheme': 'leastload', 'mux': 58068}
2012-09-12 12:22:56.543 [IPControllerApp] Hub listening on tcp://*:38503 for 
registration.
2012-09-12 12:22:56.543 [IPControllerApp] Couldn't construct the Controller
Traceback (most recent call last):
  File "/home/jonvi/usr/lib/python2.7/site-packages/IPython/parallel/apps/
ipcontrollerapp.py", line 326, in init_hub



    self.factory.init_hub()
  File "/home/jonvi/usr/lib/python2.7/site-packages/IPython/parallel/controller/
hub.py", line 290, in init_hub
    q.bind(self.engine_url('registration'))
  File "socket.pyx", line 489, in zmq.core.socket.Socket.bind (zmq/core/
socket.c:4797)
ZMQError: Address already in use
2012-09-12 12:22:56.545 [IPControllerApp] Exiting application: ipcontroller




More information about the IPython-User mailing list