Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Asterisk CLI and database problem


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
pierre.guyard at orang...
Guest





PostPosted: Tue Dec 22, 2015 4:48 am    Post subject: [asterisk-users] Asterisk CLI and database problem Reply with quote

Hello,

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!
_________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.
Back to top
mjordan at digium.com
Guest





PostPosted: Tue Dec 22, 2015 5:38 pm    Post subject: [asterisk-users] Asterisk CLI and database problem Reply with quote

On Tue, Dec 22, 2015 at 3:48 AM, <pierre.guyard@orange.com (pierre.guyard@orange.com)> wrote:
Quote:

Hello,

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!




I would suspect that you have installed Asterisk in such a fashion that a particular user or user with certain permissions is required to access the /var/run directory, as well as other directories Asterisk uses (such as where it stores the AstDB).


You are then probably running the safe_asterisk script under a user without sufficient permissions, and/or running/invoking the Asterisk CLI (via "asterisk -rv") as a user with insufficient permissions.


I would double check:

(1) What user/groups own the various Asterisk directories (specified in your asterisk.conf)

(2) What user/group you are running the safe_asterisk script under

(3) What user/group you are running as when you attempt to connect to Asterisk



--
Matthew Jordan

Digium, Inc. | Director of Technology

445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
Back to top
pierre.guyard at orang...
Guest





PostPosted: Wed Dec 23, 2015 5:47 am    Post subject: [asterisk-users] Asterisk CLI and database problem Reply with quote

Hello,

After I’ve checked, it was in fact my filesystem “var” full of inodes…

Thank you so much for tying to help me.

Have a nice day,
Regards,

Pierre






De : asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] De la part de Matthew Jordan
Envoyé : mardi 22 décembre 2015 23:38
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [asterisk-users] Asterisk CLI and database problem




On Tue, Dec 22, 2015 at 3:48 AM, <pierre.guyard@orange.com (pierre.guyard@orange.com)> wrote:
Hello,

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!





I would suspect that you have installed Asterisk in such a fashion that a particular user or user with certain permissions is required to access the /var/run directory, as well as other directories Asterisk uses (such as where it stores the AstDB).

You are then probably running the safe_asterisk script under a user without sufficient permissions, and/or running/invoking the Asterisk CLI (via "asterisk -rv") as a user with insufficient permissions.

I would double check:

(1) What user/groups own the various Asterisk directories (specified in your asterisk.conf)

(2) What user/group you are running the safe_asterisk script under

(3) What user/group you are running as when you attempt to connect to Asterisk


--
Matthew Jordan

Digium, Inc. | Director of Technology

445 Jan Davis Drive NW - Huntsville, AL 35806 - USA

Check us out at: http://digium.com & http://asterisk.org







_________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci. This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified. Thank you.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services