Submitted by thetitan on Thu, 04/30/2009 - 12:46
My root accoutn receive cron report messages every time /etc/webmin/virtual-server/collectinfo.pl is processed.
The body of the message is
sh: ifconfig: command not found
Any idea how this can be fixed?
Thank you.
Status:
Closed (fixed)
Comments
Submitted by fatbox on Fri, 09/04/2009 - 02:07 Comment #10
I have about 15 servers running virtualmin now, the two latest ones I installed were experiencing this same issue as described in the ticket.
From: root@xxx (Cron Daemon)
To: root@xxx
Subject: Cron <root@xxx> /etc/webmin/virtual-server/collectinfo.pl
Date: Fri, 4 Sep 2009 03:00:04 -0400 (EDT)
sh: ifconfig: command not found
As a work around I have linked ifconfig into /bin.
My guess here is that since cron is using /bin/sh the environment it's getting doesn't have /sbin in the PATH.
Let me know if you need anymore info.
Submitted by JamieCameron on Fri, 09/04/2009 - 18:24 Comment #11
Is /sbin in the path shown at Webmin -> Webmin Configuration -> Operating System and Environment?
Submitted by fatbox on Sun, 09/06/2009 - 13:41 Comment #12
On one of the machines that was generating these cron errors there is nothing for Program Search Path and Include Systems's own search path is checked.
I checked another machine that is working fine and Program Search Path contains:
/bin
/usr/bin
/sbin
/usr/sbin
/usr/local/bin
Include System's own search path is also checked.
The difference between the two machines is that the one throwing the error had 3.73gpl installed as it's initial Virtualmin version and the other had 3.72gpl as it's initial version.
I upgraded the machine running 3.72gpl to 3.73gpl and the proper path remained in Operating System and Environment so maybe it's something to do with a clean install of 3.73gpl?
Submitted by JamieCameron on Sun, 09/06/2009 - 14:18 Comment #13
So if you copy the search path across to the problem system, does that fix the ifconfig issue?
Submitted by fatbox on Sun, 09/06/2009 - 14:44 Comment #14
Yes it does.
I'm wondering where Webmin gets this info from. I'm going to create a new VM instance and see if another fresh install of 3.73gpl yields the same results.
Submitted by JamieCameron on Sun, 09/06/2009 - 15:09 Comment #15
Thanks, please let us know. That list should be populated by default when Webmin/Virtualmin are installed, and should never be empty .. unless some bug is clearing it.
Submitted by fatbox on Thu, 09/10/2009 - 16:53 Comment #16
Hi Jamie,
We did some more testing today.
When creating a Xen instance from Cloudmin 3.1 and selecting Install Webmin and set login to above each time the Program Search path is empty on the newly created machine.
Let me know if there's someway to provide you with more (useful) info as this is reproducible.
Submitted by JamieCameron on Thu, 09/10/2009 - 18:23 Comment #17
Which Xen image did you create this instance from?
Also, is the /etc/webmin/config file completely empty on this instance?
Submitted by fatbox on Fri, 09/11/2009 - 13:25 Comment #18
Hey Jamie,
This turned out to be something with our bootstrapping process. Still trying to sort all the details out so I'm not 100% sure what the change was that fixed this but it looks like at some point the /etc/webmin/config file got clobbered.
You can re-close this one.
Submitted by JamieCameron on Fri, 09/11/2009 - 15:49 Comment #19
Ok .. let me know if this turns out to be some kind of Webmin bug.
Submitted by Issues on Fri, 09/25/2009 - 20:18 Comment #20
Automatically closed -- issue fixed for 2 weeks with no activity.