I have a problem related to the Asterisk CLI, when I enter “asterisk -rv”, it cannot display the Asterisk CLI and instaed, I have this message “Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?).”
When I check with “locate asterisk.ctl”, it is indeed in the repertory “/var/run/”.
So after searching I have found we can enter “ps -A | grep asterisk” in order to find an asterisk “ghost” running and then kill it, and I have found:
1474 ? 00:00:14 asterisk
1615 pts/3 00:00:13 asterisk
31411 ? 00:00:00 safe_asterisk
31414 ? 01:08:53 asterisk
I don’t know if it’s the case and which one of these I should kill?
Furthermore, I can access to the CLI with “asterisk -cv” but I often got the following warning : “db.c:288 db_execute_sql: Error executing SQL (COMMIT): database is locked”. Otherwise, is there another way to fix my problem?
Thank you in advance!