Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandora_server error
#1
Hello,
I'm trying to get Pandora 1.3 B1 to work on a Fedora Core5 freshly installed. I've solved all the dependencies but when I try to run pandora_server it gives the following output:
======================
service pandora_server start
Can't locate Time/Format.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8 .8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-mult i /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_per l/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread -multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/sit e_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/ lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_per l/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thr ead-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl 5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i38 6-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /u sr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_per l/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/l ib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendo r_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-m ulti /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/site_perl/PandoraFMS/DB.pm line 2 2.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/PandoraFMS/DB.pm l ine 22.
Compilation failed in require at /usr/lib/perl5/site_perl/PandoraFMS/Config.pm l ine 24.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/PandoraFMS/Config. pm line 24.
Compilation failed in require at ./pandora_server.pl line 34.
BEGIN failed--compilation aborted at ./pandora_server.pl line 34.
Cannot start Pandora FMS Data Server. Aborted
=========================
It's strange because I've installed with yum all the perl modules it required and it installed perfectly after that from the rpm package.
Please advise since I'm not too good at perl. I've tried to search for that error at the beggining but no luck.
Thank you!
Chris V
 Reply
#2
Yep, that's quite common well known error in Fedora Core 5, I'm afraid.
Go to /usr/lib/perl5/5.XXXXX/ where the XXX is your perl version
And then, there, create the dir Time/ (maybe it's already created) and placed there your Format.pm (use locate Format.pm to see where do you have it now, but I guess you don't have it actually)
Just in case you don't have Format.pm take this one: http://search.cpan.org/src/GBARR/TimeDat.../Format.pm

Cheers
 Reply
#3
Hi manu,
I will be gone for 2 days but I'll test this as soon as I get back and let you know how it went. At a first look it appears that it will solve the problem.
Thanks!
Chris

PS: OpenSuSE 10.2 is a paint in the @@@ at the package management.
I was running from error into another. With Fedora 5 everything in went damn smooth until this error.
 Reply
#4
The problem with the perl-Time RPM package in Fedora is that it one which includes Format.pm is perl-TimeDate but it put the Format.pm into Date/ not into Time/ :-)

So, what I wrote will solve the problem, it's not as clean as we'd desired but it does the trick though

Let me know what happened in the end.

All the best
 Reply
#5
It worked! Big Grin
Ups, I've run in another problem....working on it right now. I'll let you know how I fixed it etc.
Thanks for the solution!
Chris
 Reply
#6
I'm talking here about getting the server component up&running.
Next come the console and the agent and I hope to get them running without too much pain.
So the error I was telling about above is something like:
"install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/sit"

A simple: yum install perl-DBD-MySQL and job done! Big Grin
More to come.
Update: yum install php-snmp to solve a dependency seen only when you try to configure pandora_console.
U2: There was a slightly thing because I've created manually the database and imported the .sql files. At the first configuration from pandora_console it failed to create the database again after it previously deleted it.
 Reply
#7
When I'm trying to start pandora_server I get the following :
[code:1][*] Pandora FMS Server [FedoraC5_Data] is running and operative
Cannot start Pandora FMS Data Server. Aborted[/code]
I've tried to run under pandora user and under root but no luck,
/var/log/pandora_server.error is empty
Here is the last 2 lines in /var/log/pandora_server.log:
[code:1]2007/07/05 03:49:19 FedoraC5_Data Launching Pandora FMS Data Server 1.3-dev PS070615
2007/07/05 03:49:19 FedoraC5_Data [V2] Config options: Logfile at /var/log/pandora_server.log, Basepath is /usr/share/pandora_server, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 15 sec, verbosity at 10, Alert Threshold at 45, ServerName is 'FedoraC5_Data'[/code]
Strange thing is that I could start it at first but now it gives this error.
Please advise.
Thanks!
 Reply
#8
Quote:When I'm trying to start pandora_server I get the following :
[code:1][*] Pandora FMS Server [FedoraC5_Data] is running and operative
Cannot start Pandora FMS Data Server. Aborted[/code]
I've tried to run under pandora user and under root but no luck,
/var/log/pandora_server.error is empty
Here is the last 2 lines in /var/log/pandora_server.log:
[code:1]2007/07/05 03:49:19 FedoraC5_Data Launching Pandora FMS Data Server 1.3-dev PS070615
2007/07/05 03:49:19 FedoraC5_Data [V2] Config options: Logfile at /var/log/pandora_server.log, Basepath is /usr/share/pandora_server, Checksum is 0, Master is 1, SNMP Console is 1, Server Threshold at 15 sec, verbosity at 10, Alert Threshold at 45, ServerName is 'FedoraC5_Data'[/code]
Strange thing is that I could start it at first but now it gives this error.
Please advise.
Thanks!

Try to run the server without the daemon option:

/usr/share/pandora_server/bin/pandora_server.pl /usr/share/pandora_server

And see what happen
 Reply
#9
Quote:I'm talking here about getting the server component up&running.
Next come the console and the agent and I hope to get them running without too much pain.
So the error I was telling about above is something like:
"install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/sit"

A simple: yum install perl-DBD-MySQL and job done! Big Grin
More to come.
Update: yum install php-snmp to solve a dependency seen only when you try to configure pandora_console.
U2: There was a slightly thing because I've created manually the database and imported the .sql files. At the first configuration from pandora_console it failed to create the database again after it previously deleted it.

Speaking about the console problem

You firstly created the database manually and then tried with the pandora_console?
Or you tried with the pandora_console, it failed and you did it manually?
What did the pandora_console say about the error? Your credentials were right?
 Reply
#10
Quote:Try to run the server without the daemon option:

/usr/share/pandora_server/bin/pandora_server.pl /usr/share/pandora_server

And see what happen

Yep, it started without a problem.
Ouch, I looked into the error log after it started and it was saying that
[FATAL] Cannot open Incoming data directory at /opt/pandora_server/data_in: No such file or directory at /usr/share/pandora_server/bin/pandora_server.pl line 77.
I've created the folder and restarted everything related to pandora and it appears to be working now as a daemon. Big Grin
You are the best!
 Reply


Users browsing this thread: 2 Guest(s)


(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes