Friday, 18 November 2016

Unable to open Asterisk Database.

[Nov 15 15:14:56] WARNING[23509]: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Nov 15 15:14:56] WARNING[23509]: db.c:649 ast_db_gettree: Database unavailable

First Check the disk space using df -h . If everything fine try to restart.

When suddenly permission issue received try to restart the machine once.
After restart everything works fine it is ok otherwise
do the following

Goautodial/vicidial runs asterisk in root permission only.
You can safely ignore those warnings. To fix them, ran the following and reboot:

1. chkconfig --level 2345 asterisk off
This turns off the default system Asterisk startup scripts which runs Asterisk as user Asterisk (that's why permission denied in /var/lib/asterisk/astdb). The default GOautodial Asterisk startup script is ran automatically if this is disabled.

2. chown asterisk:asterisk /var/lib/asterisk/astdb

1 comment: