LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   IBSng Installation (https://www.linuxquestions.org/questions/linux-software-2/ibsng-installation-645904/)

RageD 05-30-2008 02:54 PM

IBSng Installation
 
Hey there, there are a few threads concerning IBSng but they are all vague, none of them even listing the software. (Seems IBSng could be a few things) Well, I'm talking about the software (NOT the ISO - well at least I don't think unless they just compressed it in ISO form)

The software is located here

I try to start the service and get this message:
Code:

[root@server1 sc]# service ibs start
Starting IBS Core: nice: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
                                                          [FAILED]
Starting IBS Checker process:
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
                                                          [FAILED]

I do have both of these files. Where do I need to copy them for them to be recognized by IBS?

So any ideas?

-RageD

knudfl 05-30-2008 04:17 PM

"IBSng :
Accounting and Billing program for ISPs with PrePaid VoIP/Dialup/Lan services."
How about reading all the files in folder 'docs' ?? e.g. 'INSTALL' for a start.
**The 'module' mentioned is a Python module, not at all to be loaded with modprobe,
and never to show up in 'dmesg'

RageD 05-30-2008 11:32 PM

ok, thanks I'm not sure how I kept overlooking that "docs" directory. I'm still having the python issue though :S

Code:

[root@server1 sc]# sh setup.sh
YOU MUST BE ROOT TO RUN THIS SCRIPT

Enter system (default admin) password:
********
/usr/local/ibs/lib.py:3: DeprecationWarning: Non-ASCII character '\xa0' in file /usr/local/ibs/IPy.py on line 745, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  import IPy
Traceback (most recent call last):
  File "/usr/local/ibs/sc/md5crypt.py", line 4, in ?
    import ibs_crypt
  File "/usr/local/ibs/ibs_crypt.py", line 3, in ?
    from lib import *
  File "/usr/local/ibs/lib.py", line 4, in ?
    from ibs_exceptions import *
  File "/usr/local/ibs/ibs_exceptions.py", line 3, in ?
    import defs
  File "/usr/local/ibs/defs.py", line 2, in ?
    import db_pg
  File "/usr/local/ibs/db_pg.py", line 2, in ?
    import pg
ImportError: No module named pg

-RageD

RageD 05-31-2008 01:13 AM

Doh! For anyone who is having similar issues, PyGreSQL is what you need to fix there error!

-RageD

RageD 05-31-2008 11:51 AM

I have a new error please look at the first post.

-RageD

RageD 05-31-2008 05:09 PM

Does the "service" (e.g.: service blah start) command dump its output in a log anywhere? Maybe I can solve the issue if I can find such a log file.

-RageD

RageD 06-01-2008 01:03 AM

Ok, I've gotten passed the minor speed bump by commenting out a line in the init.d script.

Now I have an interface issue:
Code:

108/4/31 12:56 errno: 8 str: Undefined index:  key on file: /usr/local/ibs/interface/ibs/inc/login.php line :12 localtime() [<a href='function.localtime'>function.localtime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead
108/4/31 12:56 errno: 8 str: Undefined index:  value on file: /usr/local/ibs/interface/ibs/inc/login.php line :23 localtime() [<a href='function.localtime'>function.localtime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead
108/4/31 12:58 errno: 8 str: Undefined index:  key on file: /usr/local/ibs/interface/ibs/inc/login.php line :12 localtime() [<a href='function.localtime'>function.localtime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead
108/4/31 12:58 errno: 8 str: Undefined index:  value on file: /usr/local/ibs/interface/ibs/inc/login.php line :23 localtime() [<a href='function.localtime'>function.localtime</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead

No idea how to fix this. It's a PHP error.

Here is the PHP code: (Consists of the whole function)
Code:

function login($username,$password,$type)
{
    $obj=new socket;
$ret=$obj->sockGet("login(auth_type={$type}\xffauth_name={$username}\xffauth_pass={$password}\xffauth_remoteaddr={$_SERVER["REMOTE_ADDR"]})",FALSE);
    if(!is_array($ret))
        return array(FALSE,"Internal error");
    if($ret["key"]=="login" and $ret["value"]=="OK") (Line 12)
    {
        $pass=$obj->parseOutput($obj->sockRead());
        if(is_array($pass) and $pass["key"]=="password")
            $password=$pass["value"];
        $_SESSION["auth_type"]=$type;
        $_SESSION["auth_name"]=$username;
        $_SESSION["auth_pass"]=$password;
        $_SESSION["perms"]=array();
        return array(TRUE,"");
    }
    return array(FALSE,$ret["value"]); (Line 23)
}

-RageD

miladmovie 06-27-2008 02:26 PM

Hello There,
I suggest to you get ISO format which is a Debian Linux + IBSng and check if IBSng matches your needed,

mehdi.sadighian 05-29-2009 07:00 AM

IBSng Installation problem soloution
 
Hello Dear RageD
I've got all of the errors possible during the IBSng installation,
so i know about them
first of all befor you install the postgresql and pygresql, downgrade your python to 2.3.7
IBSng has some codes that are not compatible with the newer versions of the python, in the other hand the newer versions of python has some bugs in xmlrpc server.
after you downgrade the python to 2.3.7 install the postgresql and pygresql from the source with new python.
then install the IBSng again.
it should work.
for any problems during the installation contact me (mail) and tell whats your platform.
Best regards

Mehdi.Sadighian@Hotmail.com
http://00p00.com

python downgrade example (Slackware 12.2):


root@slackbox:~# removepkg python
root@slackbox:~# rm -rf /usr/lib/python2.5/
root@slackbox:~# cd /usr/src/
root@slackbox:/usr/src# wget http://python.org/ftp/python/2.3.7/Python-2.3.7.tar.bz2
root@slackbox:/usr/src# tar -jxvf Python-2.3.7.tar.bz2
root@slackbox:/usr/src# cd Python-2.3.7
root@slackbox:/usr/src/Python-2.3.7#./configure --prefix=/usr/lib/python-2.3
root@slackbox:/usr/src/Python-2.3.7# make; make install
root@slackbox:/usr/src/Python-2.3.7# ln -sn /usr/lib/python-2.3/bin/python /usr/bin/


All times are GMT -5. The time now is 10:16 AM.