-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: IOLoop is already running #48892
Comments
Possibly related to #33697 |
This is probably related to #46905 Why are you trying to initialize a new caller client inside a module? You should already have access to all execution modules using
|
Using caller is how I'd learned to do it. Switching to |
I have the same error calling a execution module from pillar:
@gtmanfred I understand it might be related to issue #46905. However, I followed the suggestion there to upgrade pyzmq from 14.0.1 to 17.1.0 and I still have this problem. Do you want to reopen this and treat it as a separate problem? |
Can you show me the code you are using? |
|
What is in your my_module.my_method? |
Oh sorry, |
👍 |
Description of Issue/Question
The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1606, in _thread_return
return_data = minion_instance.executors[fname](opts, data, func, args, kwargs)
File "/usr/lib/python2.7/dist-packages/salt/executors/direct_call.py", line 12, in execute
return func(*args, **kwargs)
File "/var/cache/salt/minion/extmods/modules/io_loop_error.py", line 4, in test_func
caller = salt.client.Caller()
File "/usr/lib/python2.7/dist-packages/salt/client/init.py", line 2094, in init
self.sminion = salt.minion.SMinion(self.opts)
File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 793, in init
lambda: self.eval_master(self.opts, failed=True)
File "/usr/lib/python2.7/dist-packages/tornado/ioloop.py", line 440, in run_sync
self.start()
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 162, in start
super(ZMQIOLoop, self).start()
File "/usr/lib/python2.7/dist-packages/tornado/ioloop.py", line 731, in start
raise RuntimeError("IOLoop is already running")
RuntimeError: IOLoop is already running
Setup
Create custom module
io_loop_error.py
for testingSteps to Reproduce Issue
Both steps are taken on a salt master
Versions Report
The text was updated successfully, but these errors were encountered: