Pages: [1]   Go Down
Author Topic: installing pandora on freebsd  (Read 590 times)
0 Members and 1 Guest are viewing this topic.
admin
Guest
« on: June 30, 2006, 09:38:46 AM »

Hi,

I want to know if is possible to install Pandora on Freebsd ?
Has some body installed it, and there is a manual for the installation.

Thanks a lot,
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #1 on: June 30, 2006, 10:18:23 PM »

No, it's the first time anybody plan to install it in a FreeBSD machine. I think this would be easy because all needed PERL modules are available in FreeBSD, and all the PHP and PHP modules. So... why not?, officially Pandora's Plattform is only Linux, because is the system where all the people is actually running it, and because is the development plattform, but one of our developers (RaulM) has a "un-official" way to make Pandora fully operational in a Win2K/XP enviroment.

If you made it and need some help, please write on this forum. And of course, if you want to write a "Guide to Pandora install in FreeBSD", you're welcome :-))
« Last Edit: January 01, 1970, 01:00:00 AM by nil » Logged

-- See you in the other screen.

admin
Guest
« Reply #2 on: July 05, 2006, 12:47:13 PM »

Thank's for the replay.

 The problem is in pandora_server (pandora_console Iinstalled adnd it works perfectly)
I installed all the perl modules required and that OK. But wheni try to start up the server it gave me this error

Pandora Server 1.2beta Build PS060103 Copyright (c) 2004-2006 <slerena@gmail.com>
You can download latest versions and documentation in http://pandora.sf.net

[ERROR] This isn't Linux. Pandora Server its only OFFICIALLY supported in Linux
Contact us if you require assistance running Pandora Server over other OS

Cannot start Pandora Data Server. Aborted


What can do??

Thank's a lot.
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #3 on: July 05, 2006, 01:07:22 PM »

Two hints:

a) Try to set the maximun debug level on pandora_server.conf and look the logs
b) Try to start the perl script manually to see the console errors:

cd $PANDORAHOME/bin
perl pandora_server.pl $PANDORAHOME

I think the most probably cause will be that incoming_dir doest exists, cannot write to logs or database could not be reached. Its usual, we are working on a "install" script who makes the basic directory structure, checks database, module compatibility, etc. Please write on your ideas and problems installing pandora :-)
« Last Edit: January 01, 1970, 01:00:00 AM by nil » Logged

-- See you in the other screen.

admin
Guest
« Reply #4 on: July 05, 2006, 02:09:14 PM »

Hi,

I resove the problem  above,
 (I comment the line  
# Check we are running Linux
##      die "[ERROR] This isn't Linux. Pandora Server its only OFFICIALLY supported in Linux
Contact us if you require assistance running Pandora Server over other OS


" unless ($^O =~ m/linux/i);


but I have another problem. When i run pandora server as pandora user:

pandora # pandora_server start
Pandora Server 1.2beta Build PS060103 Copyright (c) 2004-2006 <slerena@gmail.com>
You can download latest versions and documentation in http://pandora.sf.net

 
  • You are running Pandora Data Server
  • MD5 Security enabled
  • This server is in MASTER mode
  • This server is running in DAEMON mode
[E] Error connecting database in init Phase. Aborting startup

Cannot start Pandora Data Server. Aborted


???

thank's

P.S I am going to write a manual how to install pandora on FreeBSD .
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

admin
Guest
« Reply #5 on: July 05, 2006, 02:14:02 PM »

this is the output of log file on  "/opt/pandora_server/log/pandora_server.log"

2006/07/05 15:09:45 Launching Pandora Data Server 1.2beta PS060103
2006/07/05 15:09:45 [V2] Config options: Logfile at /opt/pandora_server/log/pandora_server.log, Basepath is /opt/pandora_server, Checksum is 1, Master is 1, SNMP Console is 1, Server Threshold at 1 sec, verbosity at 10, Alert Threshold at 60
2006/07/05 15:09:45 Error connecting database in init Phase. Aborting startup


 :rolleyes:
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #6 on: July 05, 2006, 02:53:54 PM »

2006/07/05 15:09:45 Error connecting database in init Phase. Aborting startup

For this problem I have an answer :), check your database settings and permissions in .conf file, test manually with a mysqlclient and run it again. It should work.
« Last Edit: January 01, 1970, 01:00:00 AM by nil » Logged

-- See you in the other screen.

admin
Guest
« Reply #7 on: July 05, 2006, 03:28:41 PM »

the permissions of pandora_server.conf ??  
they have 777 .

database setings are right
what dou you mean with "check your database settings and permissions in .conf file" ??

a questios:  the file under /opt/pandora_server/bin/ *.pm and .pl were I am going to put?? under /usr/local/lib/perl5  
or were they are?

I have two hosts apart
1) pandora server (192.168.0.1)
2) mysql  (192.168.0.2)

It simes  that can not contact mysql.
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #8 on: July 05, 2006, 11:57:10 PM »

Let's see your /opt/pandora_server/conf/pandora_server.conf

# incomingdir:  Defines directory where incoming data packets are stored
incomingdir /opt/pandora_server/data_in

It is very important that: exists and be writable by pandora user.

# dbuser:  Database user name (pandora by default)
dbuser pandora

Database user, could be any user you had defined in your MySQL database

# dbpass: Database password
dbpass pandora

Database pass, could be any user you had defined in your MySQL database. You must define this user/pass/host in mysql using the command "grant all privileges on pandora.* to pandora@192.168.0.1 identified by "password". For more information please read the docs about this, settings the remote hostname it's not easy because sometimes setting simple hostname doesnt work, you could need to setup the numeric ip address.

# dbhost: Database hostname or IP address
dbhost localhost

In your case, 192.168.0.2

About location of *.pm and *.pl, the whole package (including the startup scripts) are made for running in /opt/pandora_server, but of course, you can change the pathnames, but also need to change the startup process.
We are working on a possible cmake syntax configure/setup system or a single perl setup system to customize the path or set in a more "standard" path.

I hope this helps.
« Last Edit: January 01, 1970, 01:00:00 AM by nil » Logged

-- See you in the other screen.

admin
Guest
« Reply #9 on: July 06, 2006, 09:18:16 AM »

I think that i found the problem.
is missing a perl module "p5-DBD-Mysql" i have non installed.
So it can not make the conections whith the database.

The file pandora_server.conf its OK

i will write when I am done

Thank's,
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

admin
Guest
« Reply #10 on: July 06, 2006, 01:29:38 PM »

I did it  :-) .

I installed the module 'p5-DBD-Mysql' and it works.  

Now I'm going to write all the steps for the installation . Is no't  difficult but under BSD you have to install all perl modules one by one from the ports source.

Thank you again.
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

admin
Guest
« Reply #11 on: July 11, 2006, 10:48:55 AM »

I have installed pandoraon FreeBSD  :-) .

As soon as possible  i will put the documentatio for the installations. it's verry easy :-)

bye,
doku
« Last Edit: January 01, 1970, 01:00:00 AM by admin » Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST