collectinfo.pl sh: ifconfig: command not found

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

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.

Is /sbin in the path shown at Webmin -> Webmin Configuration -> Operating System and Environment?

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?

So if you copy the search path across to the problem system, does that fix the ifconfig issue?

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.

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.

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.

Which Xen image did you create this instance from?

Also, is the /etc/webmin/config file completely empty on this instance?

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.

Ok .. let me know if this turns out to be some kind of Webmin bug.

Automatically closed -- issue fixed for 2 weeks with no activity.