Hi
If I command ubic-periodic --rotate-logs --period=60 ubic-watchdog manulally( detatch stderr,stdout options for
immediate check ) I got same result for every minute
$ ubic-periodic --rotate-logs --period=60 ubic-watchdog
> Use of uninitialized value $file in -e at /home/ircbot/.perlbrew/libs/perl-5.18.2@ircbot/bin/ubic-periodic line 52.
> Use of uninitialized value $file in -e at /home/ircbot/.perlbrew/libs/perl-5.18.2@ircbot/bin/ubic-periodic line 52.
> [Wed Feb 19 09:32:41 2014] ubic.watchdog status is 'not running', restarting
> [Wed Feb 19 09:32:41 2014] Failed to revive ubic.watchdog: not running
> Use of uninitialized value $file in -e at /home/ircbot/.perlbrew/libs/perl-5.18.2@ircbot/bin/ubic-periodic line 52.
> Use of uninitialized value $file in -e at /home/ircbot/.perlbrew/libs/perl-5.18.2@ircbot/bin/ubic-periodic line 52.
> [Wed Feb 19 09:33:41 2014] ubic.watchdog status is 'not running', restarting
> [Wed Feb 19 09:33:41 2014] Failed to revive ubic.watchdog: not running
But as your privious email, I got some other clues about my perlbrew env
I use 'LIB' command of perlbrew for separate clean as-is copy of perl installation libs and
my working libs
https://metacpan.org/pod/release/GUGOD/App-perlbrew-0.67/bin/perlbrew#COMMAND:-LIB
so when I setup perlbrew, my steps might like below
> $ perlbrew install 5.18.2 --thread --switch
> - install successfuly complete -
> $ perlbrew lib create work
> $ perlbrew switch perl-5.18.2@work
> - starting to install cpanm, ubic, mojolicious, plack ...
and my current 'perl -V' is below
> %ENV:
> PERLBREW_BASHRC_VERSION="0.67"
> PERLBREW_HOME="/home/ircbot/.perlbrew"
> PERLBREW_MANPATH="/home/ircbot/perl5/perlbrew/perls/perl-5.18.2/man"
> PERLBREW_PATH="/home/ircbot/perl5/perlbrew/bin:/home/ircbot/perl5/perlbrew/perls/perl-5.18.2/bin"
> PERLBREW_PERL="perl-5.18.2"
> PERLBREW_ROOT="/home/ircbot/perl5/perlbrew"
> PERLBREW_VERSION="0.67"
> @INC:
> /home/ircbot/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux
> /home/ircbot/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2
> /home/ircbot/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/x86_64-linux
> /home/ircbot/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2
It seems Env problem as you said, ( I already have been seprated env passing problem because I used to use
djb's daemontools before I start supervisord. as you know daemontools is very very strict for Env variables ) but
most weird thing at this time is why even CLI invok of 'ubic-watchdog ubic.watchdog' is fail
to be sure, I do same test in switched normal perlbrew installation (perlbrew switch perl-5.18.2),then it's
ubic-watchdog ubic.watchdog and even cron invoked ubic-periodic ubic-watchdog working we expected.