ubic-watchdog - environment bug

37 views
Skip to first unread message

David Djurberg

unread,
Jul 22, 2015, 7:19:52 AM7/22/15
to Ubic
Hi,

Just tried out Ubic and it looks promising. I did however get some problems starting the watchdog from crontab.

Checking the watchdog.log it stated:
Failed to revive ubic.watchdog: not running

Since I managed to start the watchdog when logged in through a terminal I started to suspect environment problems.

I opened the source-code for ubic-watchdog 1.58 to check if it did anything with the environment, and here's what I found:
unless (grep { $_ eq '/usr/local/bin' } split /:/, $ENV{PATH}) { $ENV{PATH} .= "/usr/local/bin:$ENV{PATH}"; }

It seems to me that the concatenation is wrong, shouldn't it be:
$ENV{PATH} = "/usr/local/bin:$ENV{PATH}";

giving me:
/usr/local/bin:/usr/bin:/bin

instead of:
$ENV{PATH} .= "/usr/local/bin:$ENV{PATH}";

giving me:
/usr/bin:/bin/usr/local/bin:/usr/bin:/bin


So I changed my local source-code and ubic-wathchdog started as normal.

Vyacheslav Matyukhin

unread,
Jul 23, 2015, 2:37:12 PM7/23/15
to ubic...@googlegroups.com
Hi!
Thanks, this was a very stupid bug.
I fixed it and uploaded 1.58_01 to CPAN.
 
22.07.2015, 14:19, "David Djurberg" <inp...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Ubic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ubic-perl+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Djurberg

unread,
Aug 10, 2015, 10:27:35 AM8/10/15
to Ubic
I tried to make an update from CPAN today, but still got version 1.58 with the ENV bug.

Is there any way to add 1.58.01 as the current release or add a 1.58.01.tar.gz file so I can choose which version I want to download.
Then I could just do:
cpan> install MMCLERIC/Ubic-1.58.01.tar.gz

dave.z...@gmail.com

unread,
Jan 26, 2016, 6:07:35 AM1/26/16
to Ubic
Reply all
Reply to author
Forward
0 new messages