Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

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:06

    Hi,

    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
  • emilio

    Member
    November 2, 2015 at 14:27
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • gohone

    Member
    November 2, 2015 at 15:00
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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,

  • emilio

    Member
    November 2, 2015 at 15:12
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi gohone,

    Maybe it was a problem with the previous build… The installation output seems to be fine. So let’s hope everything works fine.
    Lemme’ know if something doesn’t work that way 😉

    Regards,
    Emilio.

  • gohone

    Member
    November 2, 2015 at 18:35
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • emilio

    Member
    November 2, 2015 at 20:21
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.

  • gohone

    Member
    November 3, 2015 at 14:17
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello,

    I already checked the dependencies and all seems to be correctly installed. however, I didn’t test using cpan.
    I try that and I let you know.

    Thanks.

  • emilio

    Member
    November 3, 2015 at 15:26
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello gohone,

    Yeah, try it with the cpan and let me know what happens, I’ll be around here 😉

    Regards,
    Emilio.

  • gohone

    Member
    November 5, 2015 at 20:52
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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

  • emilio

    Member
    November 6, 2015 at 16:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello gohone,

    Let me know if the crash comes up again, I’ll be around here 😉

    Regards,
    Emilio.

  • gohone

    Member
    November 9, 2015 at 13:03
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi,

    Still no crash so I can say it’s solved !

    Thank you very much.

    Regards.

  • jbarba

    Member
    November 9, 2015 at 20:10
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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 signal

    I tried to solve with cpan:
    cpan[1]>upgrade
    cpan[2]>install Encode:Locale

    But 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 ?

  • emilio

    Member
    November 10, 2015 at 16:16
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hello jbarba,

    Could you give me some further information? Linux OS used, Perl version…? 😉

    Regards,
    Emilio.

  • jbarba

    Member
    November 10, 2015 at 20:13
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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.