Ubic icon indicating copy to clipboard operation
Ubic copied to clipboard

ubic [stop|start|restart] --force fails to restart some or all of ubic.[ping|update|watchdog]

Open drmuey opened this issue 7 years ago • 1 comments

As non-root user (ICIM):

$ export PATH="/arbitrary/installation/path/of/perl/and/ubic/scripts/";
$ ubic-admin setup --batch-mode --local --no-sticky-777
… add a service called foo …
$ ubic status
$ ubic stop --force
Stopping foo... stopped
ubic
    Stopping ubic.ping... not running
    Stopping ubic.update... stopped
    Stopping ubic.watchdog... not running
$ ubic status
foo	off
ubic
    ubic.ping	off
    ubic.update	off
    ubic.watchdog	off
$ ubic start --force 
Starting foo... started
ubic
    Starting ubic.ping... started (pid 8423)
    Starting ubic.update... started (pid 8431)
    Starting ubic.watchdog... started (pid 8434)
$ ubic status
foo	running
ubic
    ubic.ping	not running
    ubic.update	running (pid 8431)
    ubic.watchdog	not running
$ ubic restart --force
Restarting foo... restarted
ubic
    Restarting ubic.ping... restarted
    Restarting ubic.update... restarted
    Restarting ubic.watchdog... restarted
$ ubic status
foo	running
ubic
    ubic.ping	not running
    ubic.update	running (pid 8548)
    ubic.watchdog	not running
$

ubic/log/watchdog.log show this apparently from the cronjob (but it does not get logged every minute && manually running the cronjob does not log that or get it started :/)

[Thu Oct  4 15:26:37 2018]	ubic.watchdog status is 'not running', restarting
[Thu Oct  4 15:26:37 2018]	ubic.ping status is 'not running', restarting

the cron job is:

* * * * * PATH=/arbitrary/installation/path/of/perl/and/ubic/scripts/:$PATH ubic-watchdog ubic.watchdog >>$HOME/ubic/log/watchdog.log 2>>$HOME/ubic/log/watchdog.err.log

drmuey avatar Oct 04 '18 19:10 drmuey

changing the shebang (so that there is no path confusion or @INC issues) line does not help

drmuey avatar Oct 04 '18 20:10 drmuey