Error: positional arguments are not supported

user1086337 picture user1086337 · Mar 17, 2014 · Viewed 12.2k times · Source
[program:sam_reports_uwsgi]
command=uwsgi --ini /var/www/phis-ng/server_config/staging_wsgi.ini
autostart=true
autorestart=true
stopsignal=QUIT
stdout_logfile=/var/log/sam_reports/stdout.log
stderr_logfile=/var/log/sam_reports/stderr.log
user=ubuntu
directory=/var/www/phis-ng/src/imam

This is the conf file I have for supervisord but when I try to run supervisord staging_supervisor.conf in the folder it is located, it gives me this error:

Error: positional arguments are not supported

I can't see what I am doing wrong comparing it against what I've found via Google and supervisord docs. I'm using supervisord 3.0.

Answer

Andrey.Kozyrev picture Andrey.Kozyrev · Mar 29, 2014

Change:

ENTRYPOINT ["/usr/bin/supervisord"]

to

CMD ["/usr/bin/supervisord"]

Unfortunately cannot yet explain why that helps.