You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error though when trying to start the api:
# salt-api -l trace
[DEBUG ] Reading configuration from /etc/salt/master
[TRACE ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module.
[DEBUG ] Configuration file path: /etc/salt/master
[DEBUG ] Created pidfile: /var/run/salt-api.pid
[ERROR ] An un-handled exception was caught by salt's global exception handler:
AttributeError: 'module' object has no attribute '_create_loader'
Traceback (most recent call last):
File "/usr/local/bin/salt-api", line 11, in <module>
main()
File "/usr/local/bin/salt-api", line 8, in main
sapi.run()
File "/usr/local/lib/python2.7/dist-packages/saltapi/cli.py", line 67, in run
client.run()
File "/usr/local/lib/python2.7/dist-packages/saltapi/client.py", line 23, in run
netapi = saltapi.loader.netapi(self.opts)
File "/usr/local/lib/python2.7/dist-packages/saltapi/loader.py", line 16, in netapi
load = salt.loader._create_loader(
AttributeError: 'module' object has no attribute '_create_loader'
Traceback (most recent call last):
File "/usr/local/bin/salt-api", line 11, in <module>
main()
File "/usr/local/bin/salt-api", line 8, in main
sapi.run()
File "/usr/local/lib/python2.7/dist-packages/saltapi/cli.py", line 67, in run
client.run()
File "/usr/local/lib/python2.7/dist-packages/saltapi/client.py", line 23, in run
netapi = saltapi.loader.netapi(self.opts)
File "/usr/local/lib/python2.7/dist-packages/saltapi/loader.py", line 16, in netapi
load = salt.loader._create_loader(
AttributeError: 'module' object has no attribute '_create_loader'
That exception file path is for last stand-alone release of salt-api, from before the project was merged into mainline Salt. You may have both installed. How are you installing Salt?
If you're installing via Pip, there is no need to install salt-api in addition, it now ships with Salt. If you're installing via OS packages, what OS are you on? Some distros (CentOS, Ubuntu) have split packages which confuses things a tad.
If salt-api --version runs successfully the version should begin with "2014" or "2015". If it doesn't you have an old version installed.
and using the ppa repo for salt, which in answer to @whiteinge that commit is using the apt install of salt not pip. Also, the OS is trusty:
grep FROM Dockerfile
FROM ubuntu:14.04
@eversor1 are you still experiencing the same issue? Feel free to re-open (or perhaps start a new issue as it does sound as if yours might be unrelated), if you do, but it appears my issue has gone away.
I'm attempting to get saltpad running inside a docker container here:
https://github.com/joshuacox/docker-salt
I'm getting this error though when trying to start the api:
All info necessary should be in the repo, for example the master salt config:
https://github.com/joshuacox/docker-salt/blob/master/salt/master
anyone should be able to replicate my results by runing
./build && ./run
in the root of that repo (given you have docker installed).The text was updated successfully, but these errors were encountered: