Author Topic: Failover problem  (Read 1064 times)

maximilianobeltritti

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +5/-0
    • View Profile
Failover problem
« on: July 27, 2017, 12:49:25 pm »
Hi, we have an issue with Zentyal 5, the failover isnt working. In the logs we can see that the check script run with cron each minute (/usr/share/zentyal-network/failover-checker) give us this error message:
 
Can't locate TryCatch/Lite.pm in @INC (you may need to install the TryCatch::Lite module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /usr/share/zentyal-network/failover-checker line 28.
BEGIN failed--compilation aborted at /usr/share/zentyal-network/failover-checker line 28.

How can we resolve this problem? Maybe we can try to install the Perl module called TryCatch with cpan console?

Thanks in advance!

maximilianobeltritti

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +5/-0
    • View Profile
Re: Failover problem
« Reply #1 on: August 16, 2017, 04:16:47 am »
Solved!!! After a long research i do this:

Edit the file:

/usr/share/zentyal-network/failover-checker

At line 28 we change:

use TryCatch::Lite;

With this:

use TryCatch;

Save and exit. Done all works fine only have a warning that said:"my" variable $network masks earlier declaration in same scope at /usr/share/zentyal-network/failover-checker line 42.

Laurent Dinclaux

  • Zen Monk
  • **
  • Posts: 80
  • Karma: +4/-0
    • View Profile
    • Gecka
Re: Failover problem
« Reply #2 on: May 06, 2019, 08:25:16 am »
I have this last error you say, it fills up my mailbox with cron errors:



Laurent

doncamilo

  • Zen Samurai
  • ****
  • Posts: 388
  • Karma: +109/-1
    • View Profile
Re: Failover problem
« Reply #3 on: May 26, 2019, 09:48:33 pm »
Solved!!! After a long research i do this:

Edit the file:

/usr/share/zentyal-network/failover-checker

At line 28 we change:

use TryCatch::Lite;

With this:

use TryCatch;

Save and exit. Done all works fine only have a warning that said:"my" variable $network masks earlier declaration in same scope at /usr/share/zentyal-network/failover-checker line 42.

This issue was fixed on Zentyal 5.1 version
"Tanta salud goces como bondad abrigues en tu corazón"

Don Camilo.

"That place... is strong with the
dark side of the Force.  A domain
of evil it is.  In you must go."

Yoda.