Asterisk start via systemd fails, but its running
"TTT" <[email protected]>
| Newsgroups | gmane.comp.telephony.pbx.asterisk.user |
|---|---|
| Message-ID | <0100017f6766787e-ed33db95-cab7-415c-98bd-b8471d331235-000000@email.amazonses.com> |
I have a fresh Asterisk 18 install on a fresh OS (AWS Linux 2). I used the
service file from contrib directory and commented out user and group
settings so it runs under root.
When I start Asterisk via systemd it waits a long time and then times out.
Reporting failure to the command line. Result of journalctl -xe is below.
However, the asterisk executable has started and is running, I can connect
to it via 'asterisk -r'. Is there a change needed to the service file?
(Anyone tested under Amazon Linux 2)
Mar 08 02:33:04 ip-172-31-25-10.us-east-2.compute.internal dhclient[2858]:
XMT: Solicit on eth0, interval 119780ms.
Mar 08 02:33:55 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
asterisk.service start operation timed out. Terminating.
Mar 08 02:33:55 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
Failed to start Asterisk PBX and telephony daemon..
-- Subject: Unit asterisk.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit asterisk.service has failed.
--
-- The result is failed.
Mar 08 02:33:55 ip-172-31-25-10.us-east-2.compute.internal systemd[1]: Unit
asterisk.service entered failed state.
Mar 08 02:33:55 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
asterisk.service failed.
Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
asterisk.service holdoff time over, scheduling restart.
Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
Stopped Asterisk PBX and telephony daemon..
-- Subject: Unit asterisk.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit asterisk.service has finished shutting down.
Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
Starting Asterisk PBX and telephony daemon....
-- Subject: Unit asterisk.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit asterisk.service has begun starting up.
Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal kernel: xfs
filesystem being remounted at /tmp supports timestamps until 2038
(0x7fffffff)
Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal kernel: xfs
filesystem being remounted at /var/tmp supports timestamps until 2038
(0x7fffffff)
Mar 08 02:35:04 ip-172-31-25-10.us-east-2.compute.internal dhclient[2858]:
XMT: Solicit on eth0, interval 119400ms.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users