Grandchild failed with exit status 127

13 posts / 0 new
Last post
#1 Wed, 06/22/2011 - 07:36
naoli

Grandchild failed with exit status 127

Hey,

I've got this in my logs, could you please help ?

Jun 13 10:25:01 universe CRON[9700]: (CRON) error (grandchild #9703 failed with exit status 127)
Jun 13 10:26:01 universe CRON[9733]: (CRON) error (grandchild #9734 failed with exit status 127)
Jun 13 10:30:01 universe CRON[9846]: (CRON) error (grandchild #9848 failed with exit status 127)
Jun 13 10:30:01 universe CRON[9845]: (CRON) error (grandchild #9852 failed with exit status 1)
Jun 13 10:31:01 universe CRON[9880]: (CRON) error (grandchild #9881 failed with exit status 127)

It seems webmin is guilty :

crontab -l
1,6,11,16,21,26,31,36,41,46,51,56 * * * * /etc/webmin/virtual-server/collectinfo.pl
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /etc/webmin/status/monitor.pl

For your info :

uname -a
Linux universe 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
% cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
Wed, 06/22/2011 - 11:17
andreychek

What happens if you run those commands from the command line as root?

You should be able to run "/etc/webmin/virtual-server/collectinfo.pl" and "/etc/webmin/status/monitor.pl" from the command line -- and what you should see, after a few moments, is it just going back to the command line.

Do you instead get any sort of error?

Also, you may want to take a look in /var/webmin/miniserv.error to see if any errors show up in there.

-Eric

Thu, 06/23/2011 - 01:35
naoli

Hi,

well I can't run these scripts as they do not show up in the list of /etc/webmin files and directories :

ls /etc/webmin
total 624K
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 acl
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 adsl-client
drwx--x--x 2 root bin  4,0K 2011-06-21 16:49 apache
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 at
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 backup-config
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 bacula-backup
drwx--x--x 2 root bin  4,0K 2010-09-24 17:34 bandwidth
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 bind8
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 burner
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cfengine
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 change-user
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cluster-copy
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cluster-cron
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cluster-passwd
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cluster-shell
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cluster-software
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cluster-useradmin
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cluster-usermin
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cluster-webmin
-rw-r--r-- 1 root root  427 2010-09-23 18:17 config
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cpan
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 cron
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 custom
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 dfsadmin
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 dhcpd
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 dnsadmin
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 dovecot
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 exim
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 exports
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 fdisk
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 fetchmail
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 file
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 filter
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 firewall
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 frox
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 fsdump
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 grub
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 heartbeat
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 htaccess-htpasswd
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 idmapd
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 inetd
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 init
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 inittab
-rw-r--r-- 1 root root 1,1K 2010-09-23 18:51 installed.cache
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 ipfilter
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 ipfw
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 ipsec
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 jabber
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 krb5
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 ldap-client
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 ldap-server
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 ldap-useradmin
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 lilo
drwx--x--x 2 root bin  4,0K 2011-06-21 16:50 logrotate
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 lpadmin
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 lvm
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 mailboxes
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 mailcap
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 majordomo
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 man
-rw------- 1 root bin   706 2010-09-23 18:17 miniserv.conf
-rw------- 1 root bin  1,4K 2010-09-23 17:42 miniserv.pem
-rw------- 1 root bin    31 2011-06-02 15:04 miniserv.users
-rw-r--r-- 1 root root 110K 2010-09-23 18:17 module.infos.cache
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 mon
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 mount
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 mysql
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 net
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 nis
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 openslp
drwx--x--x 2 root bin  4,0K 2011-06-23 08:29 package-updates
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 pam
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 pap
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 passwd
-rw-r--r-- 1 root root   14 2010-09-23 17:42 perl-path
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 phpini
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 postfix
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 postgresql
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 ppp-client
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 pptp-client
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 pptp-server
drwx--x--x 2 root bin  4,0K 2010-09-23 18:18 proc
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 procmail
drwx--x--x 2 root bin  4,0K 2010-09-23 18:18 proftpd
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 pserver
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 qmailadmin
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 quota
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 raid
-rwxr-xr-x 1 root root  164 2010-09-23 17:42 reload
-rwxr-xr-x 1 root root   48 2010-09-23 17:42 restart
drwx--x--x 2 root bin  4,0K 2011-06-21 17:18 samba
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 sarg
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 sendmail
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 sentry
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 servers
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 shell
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 shorewall
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 smart-status
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 smf
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 software
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 spam
drwx--x--x 2 root bin  4,0K 2010-09-23 18:51 squid
drwx--x--x 2 root bin  4,0K 2011-04-11 08:57 sshd
-rwxr-xr-x 1 root root  231 2010-09-23 17:42 start
drwx--x--x 3 root bin  4,0K 2011-06-06 17:34 status
-rwxr-xr-x 1 root root  157 2010-09-23 17:42 stop
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 stunnel
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 syslog
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 syslog-ng
drwx--x--x 3 root bin  4,0K 2011-06-23 08:29 system-status
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 tcpwrappers
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 telnet
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 time
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 tunnel
-rwxr-xr-x 1 root root  198 2010-09-23 17:42 uninstall.sh
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 updown
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 useradmin
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 usermin
-rw-r--r-- 1 root root   12 2010-09-23 17:42 var-path
-rw-r--r-- 1 root root    6 2010-09-23 17:42 version
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 vgetty
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 webalizer
drwx--x--x 2 root bin  4,0K 2011-06-21 16:49 webmin
-rw------- 1 root root  955 2010-09-23 18:17 webmin.acl
drwx--x--x 3 root bin  4,0K 2010-09-23 17:42 webmincron
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 webminlog
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 wuftpd
drwx--x--x 2 root bin  4,0K 2010-09-23 17:42 xinetd
Thu, 06/23/2011 - 01:36
naoli

And :

sudo ls /etc/webmin/status
config  services
Thu, 06/23/2011 - 08:20
andreychek

Hmm, well, that looks like a bit of a pickle... not having the "virtual-server" directory there means it doesn't think Virtualmin is installed at all.

When you access port 10000 on your server and log in, do you see Virtualmin? Or is it just Webmin?

-Eric

Thu, 06/23/2011 - 10:38
naoli

Hum it seems it's just webmin...

I don't have any use of virtualmin... any way to get rid of this message ?

Thank you

Thu, 06/23/2011 - 10:43
andreychek

Howdy,

Since you aren't using Virtualmin, you wouldn't need either of those cron jobs.

You could simply remove those from cron, and you should stop seeing those errors.

-Eric

Fri, 06/24/2011 - 01:49
naoli

Great thanks.

Fri, 07/01/2011 - 08:07
naoli

HI,

in fact, problem is not solved. I still have these message even if I removed the lined and restarted cron.

Any idea ?

Fri, 07/01/2011 - 09:05
andreychek

Well, according to this here, the error code 127 is a "command not found" error:

http://tldp.org/LDP/abs/html/exitcodes.html

If you're still getting that error, there's likely other entries in your crontab that are calling programs that don't exist. You may need to review your cron entries and make sure the commands they're running exist.

Since you aren't using Virtualmin on your system -- if there's any other commands pointing to to something in the dir /etc/webmin/virtual-server/, you may want to be suspicious of those.

-Eric

Fri, 07/01/2011 - 11:31
naoli

Oh I see.

Well the error code changed since I removed the crontab entry, it's now a "code 1" error, which basically could mean anything.

My cron is now empty, by the way.

So strange !

Fri, 07/01/2011 - 12:52
andreychek

Well, it could be another users cron... there's also all the cron jobs in /etc/crontab and the directories /etc/cron*.

I'd look at the errors you're getting, and try and figure out what cron jobs they correspond with by the time they're running.

-Eric

Sat, 07/02/2011 - 03:42
naoli

Hi Eric, thank you very much for your help.

Well indeed, there are so many files in /etc/cron*

I figured out that it seems to be this one, running every 10 minutes :

0,10,20,30,40,50 * * * * www-data [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null

I tried

sudo apt-get remove awstats

but it just said awstats is not installed... Strange.

Anyway, I commented out the line, we'll see what it does...

Topic locked