Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Mar 19, 2024 7:14 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Callback daemon fail to start at reboot
PostPosted: Fri Aug 17, 2012 3:52 pm 
Offline

Joined: Wed Aug 01, 2012 6:26 pm
Posts: 7
Hello,

I used with success the callback daemon.
I can start it, the automatic startup is enabled

a2b-callback-daemon 0:off 1:off 2:on 3:on 4:on 5:on 6:off

But when I reboot the server, the daemon fails to start.
I only have in /var/log/message
detected unhandled Python exception in '/usr/bin/a2b_callback_daemon'

callback-daemon log is more talkative.

2012-08-16 00:10:55,898 - root - MainThread - ERROR - stopping with an exception"
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/callback_daemon-1.0.prod_r1528-py2.6.egg/callback_daemon/daemon.py", line 200, in start
self.run()
File "/usr/lib/python2.6/site-packages/callback_daemon-1.0.prod_r1528-py2.6.egg/callback_daemon/a2b_callback_daemon.py", line 117, in run
run_action.perform()
File "/usr/lib/python2.6/site-packages/callback_daemon-1.0.prod_r1528-py2.6.egg/callback_daemon/a2b_callback_daemon.py", line 137, in perform
request_list = self.inst_cb_db.find_callback_request('PENDING', 11124)
File "/usr/lib/python2.6/site-packages/callback_daemon-1.0.prod_r1528-py2.6.egg/callback_daemon/database.py", line 180, in find_callback_request
((self.cc_callback_spool.c.callback_time==None) | (self.cc_callback_spool.c.callback_time < datetime.datetime.now()))
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6.egg/sqlalchemy/orm/query.py", line 2115, in all
return list(self)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6.egg/sqlalchemy/orm/query.py", line 2227, in __iter__
return self._execute_and_instances(context)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6.egg/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6.egg/sqlalchemy/engine/base.py", line 1449, in execute
params)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6.egg/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6.egg/sqlalchemy/engine/base.py", line 1698, in _execute_context
context)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6.egg/sqlalchemy/engine/base.py", line 1691, in _execute_context
context)
File "/usr/lib/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6.egg/sqlalchemy/engine/default.py", line 331, in do_execute
cursor.execute(statement, parameters)
File "/usr/lib/python2.6/site-packages/MySQLdb/cursors.py", line 173, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
OperationalError: (OperationalError) (2006, 'MySQL server has gone away') 'SELECT cc_callback_spool.id AS cc_callback_spool_id, cc_callback_spool.uniqueid AS cc_callback_spool_uniqueid, cc_callback_spool.entry_ti
me AS cc_callback_spool_entry_time, cc_callback_spool.status AS cc_callback_spool_status, cc_callback_spool.server_ip AS cc_callback_spool_server_ip, cc_callback_spool.num_attempt AS cc_callback_spool_num_attempt
, cc_callback_spool.last_attempt_time AS cc_callback_spool_last_attempt_time, cc_callback_spool.manager_result AS cc_callback_spool_manager_result, cc_callback_spool.agi_result AS cc_callback_spool_agi_result, cc
_callback_spool.callback_time AS cc_callback_spool_callback_time, cc_callback_spool.channel AS cc_callback_spool_channel, cc_callback_spool.exten AS cc_callback_spool_exten, cc_callback_spool.context AS cc_callba
ck_spool_context, cc_callback_spool.priority AS cc_callback_spool_priority, cc_callback_spool.application AS cc_callback_spool_application, cc_callback_spool.data AS cc_callback_spool_data, cc_callback_spool.time
out AS cc_callback_spool_timeout, cc_callback_spool.callerid AS cc_callback_spool_callerid, cc_callback_spool.variable AS cc_callback_spool_variable, cc_callback_spool.account AS cc_callback_spool_account, cc_cal
lback_spool.async AS cc_callback_spool_async, cc_callback_spool.actionid AS cc_callback_spool_actionid, cc_callback_spool.id_server AS cc_callback_spool_id_server, cc_callback_spool.id_server_group AS cc_callback
_spool_id_server_group \nFROM cc_callback_spool \nWHERE cc_callback_spool.status = %s AND cc_callback_spool.entry_time > %s AND (cc_callback_spool.callback_time IS NULL OR cc_callback_spool.callback_time < %s)' (
'PENDING', datetime.datetime(2011, 5, 10, 12, 10, 55, 889100), datetime.datetime(2012, 8, 16, 0, 10, 55, 889529))
"2012-08-16 00:10:55,951 - root - MainThread - INFO - stopped"
"2012-08-16 00:13:00,757 - callbackLogger - MainThread - INFO - info message"
"2012-08-16 00:13:00,781 - callbackLogger - MainThread - WARNING - warn message"
"2012-08-16 00:13:00,782 - callbackLogger - MainThread - ERROR - error message"
"2012-08-16 00:13:00,783 - callbackLogger - MainThread - CRITICAL - critical message"
"2012-08-16 00:13:01,466 - root - MainThread - ERROR - stopping with an exception"
2012-08-16 00:13:01,466 - root - MainThread - ERROR - stopping with an exception"
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/callback_daemon-1.0.prod_r1528-py2.6.egg/callback_daemon/daemon.py", line 200, in start
self.run()
File "/usr/lib/python2.6/site-packages/callback_daemon-1.0.prod_r1528-py2.6.egg/callback_daemon/a2b_callback_daemon.py", line 110, in run
inst_cb_db = CallBackDatabase()
File "/usr/lib/python2.6/site-packages/callback_daemon-1.0.prod_r1528-py2.6.egg/callback_daemon/database.py", line 83, in __init__
self.db_connect()
File "/usr/lib/python2.6/site-packages/callback_daemon-1.0.prod_r1528-py2.6.egg/callback_daemon/database.py", line 138, in db_connect
raise ConnectionError(error_message)
ConnectionError: (OperationalError) (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)") None None
"2012-08-16 00:13:01,504 - root - MainThread - INFO - stopped"
"2012-08-16 00:21:30,503 - callbackLogger - MainThread - INFO - info message"
"2012-08-16 00:21:30,504 - callbackLogger - MainThread - WARNING - warn message"
"2012-08-16 00:21:30,504 - callbackLogger - MainThread - ERROR - error message"
"2012-08-16 00:21:30,505 - callbackLogger - MainThread - CRITICAL - critical message"
"2012-08-16 00:21:30,886 - root - MainThread - INFO - ------ Starting Callback Daemon ------

After reboot I can start manually the daemon.

But I don't get why I don't have the automatic start is not working.

Thank you for your help

___jul


Top
 Profile  
 
 Post subject: [SOLVED] Re: Callback daemon fail to start at reboot
PostPosted: Fri Sep 07, 2012 3:38 pm 
Offline

Joined: Wed Aug 01, 2012 6:26 pm
Posts: 7
ok my bad
a2b-callback-daemon was starting before mysql.
I change the order to start after it and now it's ok.

chkconfig: 2345 98 2


Top
 Profile  
 
 Post subject: Re: Callback daemon fail to start at reboot
PostPosted: Sat Jul 27, 2013 12:59 pm 
Offline

Joined: Mon Mar 28, 2011 12:52 am
Posts: 39
I've done the same thing but Callback daemon still fail to start


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group