Error messages when reload is done

Hi,

When i run reload in CLI, i get all these warings and error messages. Could anybody tell me how i can fix them all or some of them?

[quote]asteriskCLI> Logger Warning: Unable to open log file ‘/var/log/asterisk/messages’: Permission denied
[Feb 7 13:47:01] ERROR[1146]: logger.c:709 reload_logger: Unable to create queue log: Permission denied
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:122 pbx_load_module: Starting AEL load process.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:135 pbx_load_module: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:138 pbx_load_module: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:145 pbx_load_module: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:150 pbx_load_module: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:153 pbx_load_module: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] WARNING[1146]: pbx.c:7907 add_pri_lockopt: Unable to register extension ‘1234’, priority 1 in ‘test’, already in use
[Feb 7 13:47:01] NOTICE[1146]: chan_skinny.c:7156 config_load: Configuring skinny from skinny.conf
[Feb 7 13:47:01] NOTICE[1146]: app_queue.c:6297 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
[Feb 7 13:47:01] WARNING[1146]: chan_iax2.c:3228 reload_firmware: Error opening firmware directory ‘/var/lib/asterisk/firmware/iax’: No such file or directory
[Feb 7 13:47:01] WARNING[1146]: db.c:112 dbinit: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Feb 7 13:47:01] WARNING[1146]: db.c:112 dbinit: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Feb 7 13:47:01] WARNING[1146]: db.c:112 dbinit: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Feb 7 13:47:01] ERROR[1146]: logger.c:709 reload_logger: Unable to create queue log: Permission denied
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:122 pbx_load_module: Starting AEL load process.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:135 pbx_load_module: AEL load process: parsed config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:138 pbx_load_module: AEL load process: checked config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:145 pbx_load_module: AEL load process: compiled config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:150 pbx_load_module: AEL load process: merged config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] NOTICE[1146]: pbx_ael.c:153 pbx_load_module: AEL load process: verified config file name ‘/etc/asterisk/extensions.ael’.
[Feb 7 13:47:01] WARNING[1146]: pbx.c:7907 add_pri_lockopt: Unable to register extension ‘1234’, priority 1 in ‘test’, already in use
[Feb 7 13:47:01] NOTICE[1146]: chan_skinny.c:7156 config_load: Configuring skinny from skinny.conf
[Feb 7 13:47:01] NOTICE[1146]: app_queue.c:6297 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.
[Feb 7 13:47:01] WARNING[1146]: chan_iax2.c:3228 reload_firmware: Error opening firmware directory ‘/var/lib/asterisk/firmware/iax’: No such file or directory
[Feb 7 13:47:01] WARNING[1146]: db.c:112 dbinit: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Feb 7 13:47:01] WARNING[1146]: db.c:112 dbinit: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Feb 7 13:47:01] WARNING[1146]: db.c:112 dbinit: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
asterisk
CLI> [Feb 7 13:47:01] WARNING[1140]: db.c:112 dbinit: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Feb 7 13:47:01] WARNING[1140]: db.c:553 ast_db_gettree: Database unavailable
[Feb 7 13:47:01] WARNING[1140]: db.c:112 dbinit: Unable to open Asterisk database ‘/var/lib/asterisk/astdb’: Permission denied
[Feb 7 13:47:01] WARNING[1140]: db.c:553 ast_db_gettree: Database unavailable[/quote]

Did you try to change permissions?
chown asterisk.asterisk /var/log/asterisk/
Some of the errors can be disablead by not loading the modules if you are not using them.
You can add each module that you dont’t want to be loaded to modules.conf with noload => in front of it.

Hi,

Thanks, the chown solved some of the problems.

But regarding noload i modules.conf, what names should i use after => ?

Is there a list of correct names to use in noload => ???

I found them in /usr/lib/asterisk/modules

But is there any modules i must not disable? Iam only using SIP lines

Well you could stop auto loading and them just load what you need. I just ignore most of errors if you look in your logs the you will see what modules are not configure and then you can disable them. Play with logger.conf mine lookslike this :
[general]
dateformat=%F %T
appendhostname = yes
[logfiles]
console => warning,notice,error
messages => warrning,notice,error
full => warning,notice,error
syslog.local0 => warning,notice,error