Watchdog doesn't starts after reboot

16 views
Skip to first unread message

blinov.s...@gmail.com

unread,
Jan 15, 2020, 6:48:27 AM1/15/20
to Ubic
Hi,
I have problems restarting watchdog after reboot.
I have this line in crontab:

PERL5LIB="/root/perl5/lib/perl5:" /root/perl5/bin/ubic-watchdog ubic.watchdog    >>/var/log/ubic/watchdog.log 2>>/var/log/ubic/watchdog.err.log

After reboot I have:

    ubic.ping not running
    ubic.update not running
    ubic.watchdog not running

In ubic logs:

/bin/sh: line 0: export: `/root/perl5/bin/ubic-watchdog': not a valid identifier
/bin/sh: line 0: export: `ubic.watchdog': not a valid identifier
[Wed Jan 15 11:32:01 2020]      ubic.watchdog status is 'not running', restarting
[Wed Jan 15 11:32:01 2020]      Failed to revive ubic.watchdog: not running


When I do manually /root/perl5/bin/ubic-watchdog ubic.watchdog it works ok.

The problem can be PERL5LIB not exported in crontab, because when doing
env -i /root/perl5/bin/ubic-watchdog ubic.watchdog
I have:
Can't locate Ubic/Watchdog.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /root/perl5/bin/ubic-watchdog line 13.

However this is only an assumption and ubic logs doesn't contain this error.

Anything can be done with this?

Reply all
Reply to author
Forward
0 new messages