Hello Everyone,
I am new to a2billing, I read many related posts but unfortunately I cannot fix the issue with the callback daemon, hope someone can help...
My System info:
Code:
# uname -a
Linux 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release
CentOS release 6.7 (Final)
Code:
python-setuptools-0.6.10-3.el6.noarch
MySQL-python-1.2.3-0.3.c1.1.el6.x86_64
python-2.6.6-64.el6.x86_64
Asterisk 11.17.0
A2Billing 2.1.4
I installed a2billing 2.1.4 and I can log into the admin portal successfully. But for the callback daemon I cannot get it to work.
The steps I install callback daemon:
Code:
# yum -y install python-setuptools.noarch MySQL-python
# easy_install sqlalchemy
# cd /usr/local/src/a2billing-2.1.4/Callback/callback-daemon-py
# python setup.py build
# python setup.py bdist_egg
# easy_install dist/callback_daemon-1.1.prod-py2.6.egg
# cp callback_daemon/a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon
# chmod +x /etc/init.d/a2b-callback-daemon
# chkconfig --add a2b-callback-daemon
But when I do...
Code:
# /etc/init.d/a2b-callback-daemon start
a2b_callback_daemon is stopped
Starting a2b-callback-daemon: [ OK ]
# /etc/init.d/a2b-callback-daemon restart
Stopping a2b-callback-daemon: [FAILED]
a2b_callback_daemon is stopped
Starting a2b-callback-daemon: [ OK ]
# /etc/init.d/a2b-callback-daemon restart
Stopping a2b-callback-daemon: [FAILED]
a2b_callback_daemon is stopped
Starting a2b-callback-daemon: [ OK ]
And there is nothing in /var/log/a2b-callback-daemon.log
BTW, I saw there is a rpm "callback_daemon-1.0.prod_r1528-1.noarch.rpm" under the folder dist/
Can I install the callback daemon with it?
I tried to do:
Code:
# rpm -ivh callback_daemon-1.0.prod_r1528-1.noarch.rpm
error: Failed dependencies:
python(abi) = 2.5 is needed by callback_daemon-1.0.prod_r1528-1.noarch
But Centos 6.7 default comes with Python 2.6.6 instead of 2.5
Anyone please advise how to solve this issue and get callback daemon to work?
Thanks.