Error ini file does not include supervisord section

Supervisorctl doesn't seem to let me in: $ supervisorctl -c /etc/supervisor/supervisord.conf Error: .ini file does not include supervisorctl section For help, use /usr/bin/supervisorctl -h $ cat /...

Supervisorctl doesn’t seem to let me in:

$ supervisorctl -c /etc/supervisor/supervisord.conf
Error: .ini file does not include supervisorctl section
For help, use /usr/bin/supervisorctl -h
$ cat /etc/supervisor/supervisord.conf 
[supervisord]
nodaemon=true

I have both specified the config and [supervisord]. Is it possible my config is in the wrong place?

asked May 4, 2017 at 18:54

Karl Morrison's user avatar

Karl MorrisonKarl Morrison

8,64622 gold badges57 silver badges89 bronze badges

2

Adding a blank [supervisorctl] section seems to resolve the issue for me:

$ cat /etc/supervisor/supervisord.conf 
[supervisord]
nodaemon=true

[supervisorctl]

answered Jul 6, 2017 at 13:24

Jason's user avatar

In the supervisor version 3+, I had to add the following in the conf file to make it work:

[inet_http_server]         
port=127.0.0.1:9001

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=http://127.0.0.1:9001

or you may use unix socket as:

[unix_http_server]
file=/run/supervisord.sock

[supervisorctl]
serverurl=unix:///run/supervisord.sock

answered Jul 13, 2019 at 22:15

atb00ker's user avatar

atb00keratb00ker

2013 silver badges4 bronze badges

I had duplicate supervisord.conf files. One empty file «/etc/supervisord.conf» which was being used, and the other one at «/etc/supervisor/supervisord.conf» which I thought was the one being used. I deleted the empty file (/etc/supervisord.conf) and the error was gone.

answered Mar 25, 2022 at 3:25

gachokaeric's user avatar

I have created a conf file for supervisor inside /etc/supervisor/conf.d/myproject-celery.conf

My configuration file looks like:

[program:celery]
command=/var/www/html/project/venv/bin/python  /var/www/html/project/manage.py celeryd --loglevel=INFO
environment=PYTHONPATH=/var/www/html/project
directory=/var/www/html/project
user=www-data
numprocs=1
stdout_logfile=/var/log/celeryd.log
stderr_logfile=/var/log/celeryd.log
autostart=true
autorestart=true
startsecs=10
stopwaitsecs = 600
priority=998

Here in my productin I want to start celery. For that I am doing

supervisord -c /etc/supervisor/conf.d/myproject-celery.conf

When I do this it says

Error: .ini file does not include supervisord section

What is the issue here?

Martijn Pieters's user avatar

asked Jul 27, 2015 at 15:08

varad's user avatar

1

Looks like you are missing you [supervisord] section in your config file, but that is likely because you are not loading the main conf file

see docs

You should not start supervisord with -c and a conf.d file — the files in that folder are usually loaded automatically. Usually, the -c is reserved for when your have a conf you created elsewhere other than the normal directory.

If you start supervisord without a -c, it should load your /etc/supervisor/supervisor.conf file

Your conf file should look something like this:

; supervisor config file

[unix_http_server]
file=/var/run/supervisor.sock   ; (the path to the socket file)
chmod=0700                       ; sockef file mode (default 0700)

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor            ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL  for a unix socket

; The [include] section can just contain the "files" setting.  This
; setting can list multiple files (separated by whitespace or
; newlines).  It can also contain wildcards.  The filenames are
; interpreted as relative to this file.  Included files *cannot*
; include files themselves.

[include]
files = /etc/supervisor/conf.d/*.conf

as you can see it automatically loads all the conf files in your conf.d folder

answered Jul 27, 2015 at 15:13

Sina Khelil's user avatar

Sina KhelilSina Khelil

2,0161 gold badge17 silver badges27 bronze badges

5

Add Answer
|
View In TPC Matrix

Technical Problem Cluster First Answered On
November 20, 2020

Popularity
8/10

Helpfulness
7/10


Contributions From The Grepper Developer Community

Contents

Code Examples

  • Error: .ini file does not include supervisorctl section
  • Related Problems

  • error: .ini file does not include supervisorctl section
  • TPC Matrix View Full Screen

    Error: .ini file does not include supervisorctl section

    Comment

    0


    Popularity

    8/10 Helpfulness
    7/10
    Language
    shell

    Source: Grepper

    Tags: file
    include
    shell

    Friendly Hawk

    Contributed on Nov 20 2020

    Friendly Hawk

    1,223 Answers  Avg Quality 8/10


    Понравилась статья? Поделить с друзьями:
  • Error information log entries растет
  • Error information has been collected world of tanks как исправить
  • Error information has been collected world of tanks виндовс 10
  • Error information has been collected world of tanks please confirm sending error report перевод
  • Error information has been collected world of tanks please confirm sending error report to the