I have installed asterisk 13.23.1. I have tried to start the asterisk ‘using service asterisk start’. Getting the below error. Please help me to get started.
service asterisk restart
Restarting asterisk (via systemctl): Job for asterisk.service failed because a configured resource limit was exceeded. See “systemctl status asterisk.service” and “journalctl -xe” for details.
[root@localhost ld.so.conf.d]# journalctl -xe
– The result is failed.
Sep 28 00:59:25 localhost.localdomain systemd[1]: Unit asterisk.service entered
Sep 28 00:59:25 localhost.localdomain systemd[1]: asterisk.service failed.
Sep 28 00:59:25 localhost.localdomain polkitd[608]: Unregistered Authentication
Sep 28 01:01:02 localhost.localdomain systemd[1]: Started Session 3 of user root
– Subject: Unit session-3.scope has finished start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit session-3.scope has finished starting up.
– The start-up result is done.
Sep 28 01:01:02 localhost.localdomain systemd[1]: Starting Session 3 of user roo
– Subject: Unit session-3.scope has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit session-3.scope has begun starting up.
Sep 28 01:01:02 localhost.localdomain CROND[22584]: (root) CMD (run-parts /etc/c
Sep 28 01:01:02 localhost.localdomain run-parts(/etc/cron.hourly)[22587]: starti
Sep 28 01:01:02 localhost.localdomain anacron[22593]: Anacron started on 2018-09
Sep 28 01:01:02 localhost.localdomain run-parts(/etc/cron.hourly)[22595]: finish
Sep 28 01:01:02 localhost.localdomain anacron[22593]: Normal exit (0 jobs run)
lines 2273-2295/2295 (END)
– The result is failed.
Sep 28 00:59:25 localhost.localdomain systemd[1]: Unit asterisk.service entered failed state.
Sep 28 00:59:25 localhost.localdomain systemd[1]: asterisk.service failed.
Sep 28 00:59:25 localhost.localdomain polkitd[608]: Unregistered Authentication Agent for unix-process:22490:161197 (system bus name :1.32, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale
Sep 28 01:01:02 localhost.localdomain systemd[1]: Started Session 3 of user root.
– Subject: Unit session-3.scope has finished start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit session-3.scope has finished starting up.
– The start-up result is done.
Sep 28 01:01:02 localhost.localdomain systemd[1]: Starting Session 3 of user root.
– Subject: Unit session-3.scope has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit session-3.scope has begun starting up.
Sep 28 01:01:02 localhost.localdomain CROND[22584]: (root) CMD (run-parts /etc/cron.hourly)
Sep 28 01:01:02 localhost.localdomain run-parts(/etc/cron.hourly)[22587]: starting 0anacron
Sep 28 01:01:02 localhost.localdomain anacron[22593]: Anacron started on 2018-09-28
Sep 28 01:01:02 localhost.localdomain run-parts(/etc/cron.hourly)[22595]: finished 0anacron
Sep 28 01:01:02 localhost.localdomain anacron[22593]: Normal exit (0 jobs run)
You’ve actually asked for a restart, not a start, but the error doesn’t look restart specific.
What OS and distribution are you using?
Unfortunately, I have no experience of running Asterisk on systemd based systems, nor of start up scripts for anything else, on such systems, but this seems to be more of as systemd issue than an Asterisk one.
You should look at the systemd configuration for Asterisk and make sure it isn’t exceeding hard limits on memory, of file descriptors, for example.