[rancid] Issues running rancid from cron on Ubuntu..
Howard Leadmon
howard at leadmon.net
Thu Jun 16 17:33:00 UTC 2016
Maybe this will be an easy one for someone to answer, I can hope. I had
rancid for years running on FBSD, but recently moved over on to a current
Ubuntu server. I moved my configs across, and have it so if from a shell
prompt I perform a rancid-run life is good, it's seeing all the gear, and
saving cofigs, and emailing updates to me.
The problem is when I toss rancid-run into cron, it spits errors and will
not read the configs. So it's for sure an issue of this being kicked into
cron, but using google-fu I am finding nothing. I even tried not calling
the symlink but calling the main executable directly, but still no
difference.
Here is the error I see in the rancid.log file if I let this execute from
cron:
starting: Thu Jun 16 12:31:02 EDT 2016
Trying to get all of the configs.
no such variable
(read trace on "env(USER)")
invoked from within
"add user * $env(USER)"
("eval" body line 1)
invoked from within
"eval $line"
(procedure "source_password_file" line 21)
invoked from within
"source_password_file $password_file"
(file "/usr/lib/rancid/bin/clogin" line 853)no such variable
(read trace on "env(USER)")
invoked from within
"add user * $env(USER)"
("eval" body line 1)
invoked from within
"eval $line"
(procedure "source_password_file" line 21)
invoked from within
"source_password_file $password_file"
(file "/usr/lib/rancid/bin/clogin" line 853)
switch-1: missed cmd(s): all commands
switch-1: End of run not found
!
This ONLY happens when I execute from cron, if done locally in a shell, all
works perfectly.
In crontab, I simply have the time and path to rancid-run.
Any ideas?
---
Howard Leadmon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20160616/5c347c22/attachment.html>
More information about the Rancid-discuss
mailing list