Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › Pandora Server service is randomly crashing
-
Pandora Server service is randomly crashing
Posted by gohone on October 31, 2015 at 15:06Hi,
I updated Pandora FMS to version 6 (running on ubuntu 14.04 server using the deb packages) but I meet an issue. The pandora server service stops randomly since this update.
When I check the log file I have the same error each time (panda is the hostname of my server):
[V1] [E] ‘panda’: Undefined subroutine &PandoraFMS::Core::encode called at /usr/lib/perl5/PandoraFMS/Core.pm line 1062,
line 5
[V1] Pandora FMS Server ‘panda’ unhandled error.
[V1] Pandora FMS Server ‘panda’ Shutdown by signal.If I restart the service it’s up and running again many hours until I have another crash.
Do you have an idea how to solve this issue ?Thanks for your help.
jbarba replied 9 years, 2 months ago 3 Members · 13 Replies -
13 Replies
-
::
Hello gohone,
Did you force the deb update of Pandora? Because it seems to me that you forced or didn’t install some of the dependencies.
I’m saying this because of the “PandoraFMS::Core::encode” line. It seems a problem with Perl’s dependencies.
Try to check it out 😉Regards,
Emilio. -
::
Hello,
To update this service, I stopped the pandora server service and I used simply this command: dpkg -i “pandorafms.server_6.xxx.deb”
I just tested the last build this morning to see if it’s more stable for me. “pandorafms.server_6.0-151102.deb”.
For the moment the service didn’t crash but I have to wait more long time to be sure if the service is OK.FYI Below the output of the last installation:
$sudo /etc/init.d/pandora_server stop
$sudo dpkg -i pandorafms.server_6.0-151102.deb
Préparation du décompactage de pandorafms.server_6.0-151102.deb …
Removing any system startup links for /etc/init.d/pandora_server …
/etc/rc0.d/K20pandora_server
/etc/rc1.d/K20pandora_server
/etc/rc2.d/S20pandora_server
/etc/rc3.d/S20pandora_server
/etc/rc4.d/S20pandora_server
/etc/rc5.d/S20pandora_server
/etc/rc6.d/K20pandora_server
Removing any system startup links for /etc/init.d/tentacle_serverd …
/etc/rc0.d/K20tentacle_serverd
/etc/rc1.d/K20tentacle_serverd
/etc/rc2.d/S20tentacle_serverd
/etc/rc3.d/S20tentacle_serverd
/etc/rc4.d/S20tentacle_serverd
/etc/rc5.d/S20tentacle_serverd
/etc/rc6.d/K20tentacle_serverd
Décompactage de pandorafms-server (6.0-151102) sur (6.0-151026) …
Paramétrage de pandorafms-server (6.0-151102) …
Linking pandora_exec…
Creating common Pandora FMS directories
Giving proper permission to /var/spool/pandora
Creating setup directory in /etc/pandora
Skipping creation of pandora_server.conf: there is already one.
Linking startup script to /etc/rc2.d
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match pandora_server Default-Start values (2 3 5)
Adding system startup for /etc/init.d/pandora_server …
/etc/rc0.d/K20pandora_server -> ../init.d/pandora_server
/etc/rc1.d/K20pandora_server -> ../init.d/pandora_server
/etc/rc6.d/K20pandora_server -> ../init.d/pandora_server
/etc/rc2.d/S20pandora_server -> ../init.d/pandora_server
/etc/rc3.d/S20pandora_server -> ../init.d/pandora_server
/etc/rc4.d/S20pandora_server -> ../init.d/pandora_server
/etc/rc5.d/S20pandora_server -> ../init.d/pandora_server
Installing tentacle server in /etc/rc2.d/S80tentacle_serverd
update-rc.d: warning: default start runlevel arguments (2 3 4 5) do not match tentacle_serverd Default-Start values (2 3 5)
Adding system startup for /etc/init.d/tentacle_serverd …
/etc/rc0.d/K20tentacle_serverd -> ../init.d/tentacle_serverd
/etc/rc1.d/K20tentacle_serverd -> ../init.d/tentacle_serverd
/etc/rc6.d/K20tentacle_serverd -> ../init.d/tentacle_serverd
/etc/rc2.d/S20tentacle_serverd -> ../init.d/tentacle_serverd
/etc/rc3.d/S20tentacle_serverd -> ../init.d/tentacle_serverd
/etc/rc4.d/S20tentacle_serverd -> ../init.d/tentacle_serverd
/etc/rc5.d/S20tentacle_serverd -> ../init.d/tentacle_serverd
Create the Cron script to run hourly Pandora DB tool
Please, now, edit the /etc/pandora/pandora_server.conf and launch the Pandora Server with /etc/init.d/Pandora .
Traitement déclenché pour man-db (2.6.7.1-1ubuntu1) …
Traitement déclenché pour ureadahead (0.100.0-16) …$sudo /etc/init.d/pandora_server start
Pandora FMS Server 6.0 Build 151102 Copyright (c) 2004-2014 ArticaST
This program is OpenSource, licensed under the terms of GPL License version 2.
You can download latest versions and documentation at http://www.pandorafms.org- Backgrounding Pandora FMS Server process.
Pandora Server is now running with PID 10848
Regards,
-
-
::
Unfortunately, I just got the same error 🙁
2015-11-02 15:28:11 panda [V1] [E] ‘panda’: Undefined subroutine &PandoraFMS::Core::encode called at /usr/lib/perl5/PandoraFMS/Core.pm line 1062.
2015-11-02 15:28:11 panda [V1] Pandora FMS Server ‘panda’ unhandled error.About perl I’m using the version provided with ubuntu 14.04 v5.18.2
-
::
Hello gohone,
I don’t actually know what your problem is, but let’s try to work something out! 🙂
First, try this: “dpkg-deb -I package_name_deb”, this should actually tell us which dependencies are needed from the deb installation package, try that one out and install manually everyone of them!
And then try to install the Encode:Locale through Cpan.Let me know how everything goes 😉
Regards,
Emilio. -
-
-
::
Hi,
I tried your suggestion and the service is up and running since 2 days without crash.
So I guess that install the perl module with cpan was the solution. It’s strange because the ubuntu package “libencode-locale-perl” was already installed…
I ‘m waiting again a few days to be sure that the service is stable.I let you know.
Thanks again.
Regards
-
-
-
::
Hi,
I have the same error (Pandora FMS v6.0):
2015-11-09 15:36:00 paper [V1] [E] ‘paper’: Undefined subroutine &PandoraFMS::Core::encode called at /usr/lib/perl5/PandoraFMS/Core.pm line 1062.
2015-11-09 15:36:00 paper [V1] Pandora FMS Server ‘paper’ unhandled error.
2015-11-09 15:36:00 paper [V1] Pandora FMS Server restarting () in 60 seconds.
2015-11-09 15:36:20 paper [V1] Pandora FMS Server ‘paper’ Shutdown by signalI tried to solve with cpan:
cpan[1]>upgrade
cpan[2]>install Encode:LocaleBut the error persists.
Trying many things. I think the error occurs only when an alarm is triggered with sending email. In other situations, no alarm trigger an alarm or whose action is “nothing”, the error does not happen.
Do you have an idea how to solve this issue ?
-
-
::
Hello Emilio:
OS: Debian 8 (Debian 3.16.7-ckt11-1+deb8u5)
Install with apt, from sources:
deb http://ftp.us.debian.org/debian/ jessie main non-free
deb http://www.artica.es/debian/squeeze /Perl: This is perl 5, version 20, subversion 2 (v5.20.2) built for x86_62-linux-gnu-thread-multi
The mail server is properly configured (exim4 in localhost), with forwarding through google, and successfully send email from console.