Error: .ini file does not include supervisorctl section

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

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

[supervisorctl]

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

The same error troubled me.

There is an issue in their github https://github.com/Supervisor/supervisor/issues/376

Find out the path matters.

In /etc/supervisor/ path of my server.

/etc/supervisor# ls
conf.d  supervisord.conf

Some change was made in /etc/supervisor/conf.d. I did most change from the issue above, not helping.

Then I inspired by this comment https://github.com/Supervisor/supervisor/issues/376#issuecomment-404385767
After cd .. ie. move to /etc/supervisor/ it works fine.

Hope this can help others.