Project

General

Profile

Asterisk error following upgrade from 3.0 to 3.3

Added by Greg Williams over 6 years ago

We are now getting the following error within the Asterisk Logs

WARNING24422: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied

This is following the upgrade process completing using yum update -y

Any ideas?


Replies (5)

RE: Asterisk error following upgrade from 3.0 to 3.3 - Added by Greg Williams over 6 years ago

We also get the following

Parsing '/etc/asterisk/iax-vicidial.conf': Found
Parsing '/etc/asterisk/users.conf': Found
[Oct 3 15:07:58] NOTICE6117: chan_iax2.c:13193 set_config: Ignoring bindport on reload
[Oct 3 15:07:58] NOTICE6117: chan_iax2.c:13254 set_config: Ignoring bindaddr on reload
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING6117: chan_iax2.c:3250 reload_firmware: Error opening firmware directory '/var/lib/asterisk/firmware/iax': No such file or directory
-- Reloading module 'cdr_manager.so' (Asterisk Manager Interface CDR Backend)
[Oct 3 15:07:58] WARNING3768: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
[Oct 3 15:07:58] WARNING3768: db.c:124 dbinit: Unable to open Asterisk database '/var/lib/asterisk/astdb': Permission denied
Parsing '/etc/asterisk/sip_notify.conf': Found

RE: Asterisk error following upgrade from 3.0 to 3.3 - Added by Demian Lizandro Biscocho over 6 years ago

You can safely ignore those warnings. To fix them, ran the following and reboot:

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.

RE: Asterisk error following upgrade from 3.0 to 3.3 - Added by Greg Williams over 6 years ago

Have tried that however following restart asterisk doesnt start. If I use the command service asterisk start I think get the same issues again.

If there a command I can use to start asterisk using Goautodial config?

RE: Asterisk error following upgrade from 3.0 to 3.3 - Added by Demian Lizandro Biscocho over 6 years ago

Can you check your /etc/rc.local? This should have the following entries:

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

### uncomment If kernel RAM drive is enabled
### mke2fs -m 0 /dev/ram0
### mount /dev/ram0 /var/spool/asterisk/monitor
### mkdir /var/spool/asterisk/monitor/DONE
### mkdir /var/spool/asterisk/monitor/ORIG

# OPTIONAL enable ip_relay(for same-machine trunking and blind monitoring)
/usr/share/astguiclient/ip_relay/relay_control start  2>/dev/null 1>&2

### Disable console blanking and powersaving
### /usr/bin/setterm -blank
### /usr/bin/setterm -powersave off
### /usr/bin/setterm -powerdown

### start time server
/usr/sbin/ntpdate -u pool.ntp.org

### roll the Asterisk logs upon reboot
/usr/share/astguiclient/ADMIN_restart_roll_logs.pl 2>/dev/null 1>&2

### clear the server-related records from the database
/usr/share/astguiclient/AST_reset_mysql_vars.pl 2>/dev/null 1>&2

### start up asterisk
/usr/share/astguiclient/start_asterisk_boot.pl 2>/dev/null 1>&2

### set message of the day
/usr/local/bin/motd.sh > /etc/motd

### update server IP address in Vicidial tables on first boot (reboot on upgrade)
### if [ -e /.firstboot ]; then
###    /usr/share/astguiclient/ADMIN_update_server_ip.pl --auto --old-server_ip="" 2>/dev/null 1>&2
###    rm /.firstboot
### fi

### make sure SELINUX is turned off
### echo 0 > /selinux/enforce

### sybsys local login
touch /var/lock/subsys/local
    (1-5/5)
    Go to top