Hello there.
I’m trying to start asterisk-18.10.0 on CentOS Stream release 9. Asterisk is installed but if i run systemctl start asterisk i get an error code. Maybe someone can help me out with the problem?
[root@localhost ~]# systemctl start asterisk
Job for asterisk.service failed because the control process exited with error code.
See "systemctl status asterisk.service" and "journalctl -xeu asterisk.service" for details.
[root@localhost ~]# journalctl -xeu asterisk.service
Mar 04 18:58:56 localhost.localdomain systemd[1]: Failed to start Asterisk PBX and telephony daemon..
░░ Subject: A start job for unit asterisk.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit asterisk.service has finished with a failure.
░░
░░ The job identifier is 21271 and the job result is failed.
Mar 04 18:59:00 localhost.localdomain systemd[1]: asterisk.service: Scheduled restart job, restart counter is at 199.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ Automatic restarting of the unit asterisk.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Mar 04 18:59:00 localhost.localdomain systemd[1]: Stopped Asterisk PBX and telephony daemon..
░░ Subject: A stop job for unit asterisk.service has finished
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A stop job for unit asterisk.service has finished.
░░
░░ The job identifier is 21363 and the job result is done.
Mar 04 18:59:00 localhost.localdomain systemd[1]: Starting Asterisk PBX and telephony daemon....
░░ Subject: A start job for unit asterisk.service has begun execution
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit asterisk.service has begun execution.
░░
░░ The job identifier is 21363.
Mar 04 18:59:00 localhost.localdomain systemd[3134]: asterisk.service: Failed to determine user credentials: No such process
Mar 04 18:59:00 localhost.localdomain systemd[3134]: asterisk.service: Failed at step USER spawning /usr/sbin/asterisk: No such process
░░ Subject: Process /usr/sbin/asterisk could not be executed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The process /usr/sbin/asterisk could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Mar 04 18:59:00 localhost.localdomain systemd[1]: asterisk.service: Main process exited, code=exited, status=217/USER
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ An ExecStart= process belonging to unit asterisk.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 217.
Mar 04 18:59:00 localhost.localdomain systemd[1]: asterisk.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The unit asterisk.service has entered the 'failed' state with result 'exit-code'.
Mar 04 18:59:00 localhost.localdomain systemd[1]: Failed to start Asterisk PBX and telephony daemon..
░░ Subject: A start job for unit asterisk.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit asterisk.service has finished with a failure.
░░
░░ The job identifier is 21363 and the job result is failed.