Pandora FMS Community

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

JonRussell · 23 ene 2023, 10:51 · 9 mensajes · 77 visitas

  1. Inicio del debate

    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.

  2. PandoraError.png96 KB · PNG
    PandoraError.png
  3. 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.

  4. 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
    
  5. [root@pandora Thread]# yum install perl-threads-sharedLoaded plugins: fastestmirrorartica_pandorafms                                                                                                     | 2.9 kB  00:00:00Package perl-threads-shared-1.43-6.el7.x86_64 already installed and latest versionNothing to do
    
  6. 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.

  7. Wahoo ! That fixed it !

    Thanks.

    cpan output 1,000+ lines! :-)

    but Pandora is now all green.

    Thank you !

  8. 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.

  9. 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.

Entra en tu cuenta para publicar.