asterisk2billing.org http://forum.asterisk2billing.org/ |
|
1.7:package init file 'callback_daemon/__init__.py not found http://forum.asterisk2billing.org/viewtopic.php?f=33&t=7711 |
Page 2 of 2 |
Author: | GeekBoy [ Thu May 27, 2010 6:43 pm ] |
Post subject: | Re: 1.7:package init file 'callback_daemon/__init__.py not found |
I must have missed a step. I have gotten a bit further. Now at: service a2b-callback-daemon start Quote: a2b_callback_daemon is stopped
Traceback (most recent call last): File "/usr/bin/a2b_callback_daemon", line 7, in ? sys.exit( File "build/bdist.linux-x86_64/egg/callback_daemon/a2b_callback_daemon.py", line 269, in main File "build/bdist.linux-x86_64/egg/callback_daemon/daemon.py", line 98, in main File "build/bdist.linux-x86_64/egg/callback_daemon/daemon.py", line 135, in read_basic_config File "build/bdist.linux-x86_64/egg/callback_daemon/daemon.py", line 358, in get_uid_gid File "/usr/lib64/python2.4/ConfigParser.py", line 511, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'daemon-info' Starting a2b-callback-daemon: [FAILED] |
Author: | kelptan [ Thu Aug 26, 2010 9:49 am ] |
Post subject: | Re: 1.7:package init file 'callback_daemon/__init__.py not found |
#I managed to resolved the problem for installing callback-daemon on centos, version 1.7.1 of a2billing. (this should work for other back dated version) #I am assuming you've retrieved the trunk package using svn and stored all the files under /usr/local/src/a2billing/ #Also your a2billing.conf file is stored here --> /etc/a2billing.conf else take note of the additional steps marked in red #goto target directory (1) cd /usr/local/src/a2billing/CallBack/callback-daemon-py/dist/ #untar the r1528 file to create callback_daemon-1.0.prod-r1528 directory (2) tar -xvf callback_daemon-1.0.prod-r1528.tar.gz #Go down into the newly untared directory (3) cd callback_daemon-1.0.prod-r1528 #excute the following python commands as per a2billing doc site (4) python setup.py build (5) python setup.py bdist_egg #additional steps to correct the path for the a2billing.conf file (5b) vi callback_daemon/a2b_callback_daemon.py (5c) replace the path to which your a2billing.conf resides in your system, the line should be --> CONFIG_FILE = #execute the installation (6) easy_install dist/callback_daemon-1.0.prod_r1528-py2.4.egg #install the init script and daemon service (still at your current directory level) (7) cp build/lib/callback_daemon/a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon (8) chmod +x /etc/init.d/a2b-callback-daemon (9) chkconfig --add a2b-callback-daemon (10) chkconfig a2b-callback-daemon on # finally start the service u can either use the init script or service command (11a) service a2b-callback-daemon start (11b) /etc/init.d/a2b-callback-daemon start #hopefully this solves your problem |
Author: | GeekBoy [ Tue Aug 31, 2010 3:12 pm ] |
Post subject: | Re: 1.7:package init file 'callback_daemon/__init__.py not found |
Thanks a LOT for this info. I still have to get the new 1.7 package functioning. Seems the install is completly new compared to the older versions. This my copy is not functioning at all. I think it is hanging at some point in the code. Only way to try to find out is to trace where it hangs at. I will give your fix a try as soon as I am able to. thanks |
Author: | mos33 [ Wed Nov 28, 2012 1:08 pm ] |
Post subject: | Re: 1.7:package init file 'callback_daemon/__init__.py not found |
i have the same problem using A2billing 2.0.1 Code: /bin/bash: /usr/bin/a2b_callback_daemon: No such file or directory
Starting a2b-callback-daemon: [FAILED] |
Page 2 of 2 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |