Unable to connect to remote asterisk - Rocky Linux

Hi Forum,

I’ve installed Asterisk 20 in Rocky Linux 9.2, and when I want to access to Asterisk CLI, the message is “Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)”.

I saw this line → /etc/rc.d/init.d/asterisk: line 42: /etc/rc.d/init.d/functions: No such file or directory

How to fix this?

Regards,
Mauro

Hi Forum,

I’ve installed Asterisk 20 in Rocky Linux 9.2

How did you install it?

when I want to access to Asterisk CLI, the message is “Unable to connect to
remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)”.

So, Asterisk is not running.

I saw this line → /etc/rc.d/init.d/asterisk: line 42:
/etc/rc.d/init.d/functions: No such file or directory

How to fix this?

That looks like an unusual pathname to me - I would have expected either
/etc/rc.d/asterisk (maybe with a digit included) or else /etc/init.d/asterisk

  • but maybe Rocky Linux does things differently from the distros I’m used to,…

Where did the file which reported this error /etc/rc.d/init.d/asterisk come
from? I think you need to ask whomever created that file what they expect to
find as /etc/rc.d/init.d/functions.

This certainly doesn’t feel like a “standard Asterisk” question to me.

Antony.

Did you try restart asterisk service ?

Pooh First thing you want to do here is run : asterisk -cvvvvvvvvvv
Check the error logs and proceed from there.
You might want to run this cmd. :slight_smile:
chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk

I believe this has come up before and there may be a legacy support packages for this, but basically Rocky Linux uses systemd, not init, so doesn’t respect the init type startup environment, by default.

I’d suggest either using an OS that is officially supported for Asterisk, or searching the forum for previous failures with Rocky.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.