I am trying to follow this guide here to implement django channels with nginx. But the supervisor daemon won't start. It shows BACKOFF or FATAL status.
The log at /var/log/supervisor.log shows:
2020-08-28 13:34:10,606 INFO spawnerr: can't find command 'daphne'
2020-08-28 13:34:11,854 INFO spawnerr: can't find command 'daphne'
2020-08-28 13:34:13,857 INFO spawnerr: can't find command 'daphne'
If I give full path for daphne in the command, then I get a different error:
2020-08-28 14:22:28,789 INFO spawned: 'CS_WS_00' with pid 701485
2020-08-28 14:22:29,956 INFO exited: CS_WS_00 (exit status 0; not expected)
2020-08-28 14:22:30,961 INFO spawned: 'CS_WS_00' with pid 701499
2020-08-28 14:22:32,089 INFO exited: CS_WS_00 (exit status 0; not expected)
2020-08-28 14:22:34,094 INFO spawned: 'CS_WS_00' with pid 701514
2020-08-28 14:22:35,206 INFO exited: CS_WS_00 (exit status 0; not expected)
2020-08-28 14:22:38,211 INFO spawned: 'CS_WS_00' with pid 701517
2020-08-28 14:22:39,337 INFO exited: CS_WS_00 (exit status 0; not expected)
2020-08-28 14:22:40,339 INFO gave up: CS_WS_00 entered FATAL state, too many start retries too quickly
Also, on trying to start the daemon manually I see:
The Supervisor Manager/App itself doesn't shows any log.
Also, following the above mentioned guide and try to run the following commands:
$ sudo supervisorctl reread
$ sudo supervisorctl update
Gives me the following error:
-bash: supervisorctl: command not found
Supervisor daemon configuration:
My server configuration:
CentOs 8 (latest updated), 4 GB RAM, 2 Core CPU, 60GB Storage.