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 Help! Updated to 768, and my whole system is down!?

  • Help! Updated to 768, and my whole system is down!?

    Posted by JonRussell on January 23, 2023 at 10:51

    Hi,

    I ran “yum update” this morning, and it updated FMS Server to 768. This version forced me to update to PHP 8.0 too. Which I also did, via Remi.

    But all my severs are now grey? and the error log is full of :

    Can't locate object method "down_timed" via package "Thread::Semaphore" at /usr/lib/perl5/PandoraFMS/ProducerConsumerServer.pm line 237.
    Can't locate object method "down_timed" via package "Thread::Semaphore" at /usr/lib/perl5/PandoraFMS/ProducerConsumerServer.pm line 237.
    Can't locate object method "down_timed" via package "Thread::Semaphore" at /usr/lib/perl5/PandoraFMS/ProducerConsumerServer.pm line 237.
    Can't locate object method "down_timed" via package "Thread::Semaphore" at /usr/lib/perl5/PandoraFMS/ProducerConsumerServer.pm line 237.

    Any ideas?

    Thanks.

    Sergio replied 1 year, 2 months ago 3 Members · 8 Replies
  • 8 Replies
  • JonRussell

    Member
    January 23, 2023 at 10:53
    273 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
  • Sergio

    Administrator
    January 23, 2023 at 11:13
    909 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    1
    Down
    Drop it
    ::

    Hello JonRussell,

    Can you please check if you have the dependency perl-Thread-Semaphore installed on your system?

    You can run the following find command in the terminal:

    find / -name Semaphore.pm

    If there is no result, this may be the cause of the errors.

    You can try and install the package perl-threads-shared

    Please let us know if this solves your issue.

    Kind regards,

    Sergio B.

    • JonRussell

      Member
      January 23, 2023 at 11:20
      273 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Thanks for the fast reply.

      I do have Semaphore.pm

      # find / -name Semaphore.pm

      /usr/lib64/perl5/IPC/Semaphore.pm
      /usr/share/perl5/Thread/Semaphore.pm

    • JonRussell

      Member
      January 23, 2023 at 11:21
      273 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::
      [root@pandora Thread]# yum install perl-threads-shared
      Loaded plugins: fastestmirror
      artica_pandorafms | 2.9 kB 00:00:00
      Package perl-threads-shared-1.43-6.el7.x86_64 already installed and latest version
      Nothing to do
  • Sergio

    Administrator
    January 23, 2023 at 11:25
    909 Karma points
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    1
    Down
    Drop it
    ::

    Hello,

    Can you run the following cpan command in your terminal?

    cpan -i Thread::Semaphore

    This will install some necessary files left out in the yum installation.

    After this the problem should be resolved.

    Let us know how it went.

    Kind regards,

    Sergio B.

    • JonRussell

      Member
      January 23, 2023 at 11:46
      273 Karma points
      Community rank: tentacle-noob-1 Tentacle noob
      Like it
      Up
      0
      Down
      Drop it
      ::

      Wahoo ! That fixed it !

      Thanks.

      cpan output 1,000+ lines! 🙂

      but Pandora is now all green.

      Thank you !

    • aeleus

      Member
      January 24, 2023 at 23:02
      409 Karma points
      Community rank: tentacle-rookie Tentacle rookie
      Like it
      Up
      0
      Down
      Drop it
      ::

      I had the same issue after updating to 768 using Warp Update Online.

      The fix also worked for me, but I had to first install perl-CPAN (CentOS 7).

      yum install perl-CPAN

      BTW, Pandora was running for several hours in this error state before I applied the fix. The /var/log/pandora/pandora_server.error file grew to over 8GB in that time.

      Pandora was just writing the following line as fast as it could over and over:

      Can’t locate object method “down_timed” via package “Thread::Semaphore” at /usr/lib/perl5/PandoraFMS/ProducerConsumerServer.pm line 237.

      • Sergio

        Administrator
        January 25, 2023 at 08:09
        909 Karma points
        Community rank: tentacle_master_icon Tentacle Master
        Like it
        Up
        1
        Down
        Drop it
        ::

        Hello,

        The log grew over the time because it was trying to perform the tasks in hand used by the Semaphore.pm dependency and by not having it installed was giving notice about the error.

        You can simply remove most of those log lines in order to reduce the log size easily with vim.

        Also it’s always recommended to use logrotate to rotate any log that might potentally grow in size in order to avoid to fill up the disks.

        Kind regards,

        Sergio B.