Grandchild failed with exit status 127

  • naoli
  • 06/22/11
  • Offline
Posted: Wed, 2011-06-22 06:36

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"


What happens if you run those

  • andreychek
  • 01/04/09
  • Offline
  • Wed, 2011-06-22 10:17

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


Hi, well I can't run these

  • naoli
  • 06/22/11
  • Offline
  • Thu, 2011-06-23 00:35

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


And : sudo ls

  • naoli
  • 06/22/11
  • Offline
  • Thu, 2011-06-23 00:36

And :

sudo ls /etc/webmin/status
config  services


Hmm, well, that looks like a

  • andreychek
  • 01/04/09
  • Offline
  • Thu, 2011-06-23 07:20

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


Hum it seems it's just

  • naoli
  • 06/22/11
  • Offline
  • Thu, 2011-06-23 09:38

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


Howdy, Since you aren't

  • andreychek
  • 01/04/09
  • Offline
  • Thu, 2011-06-23 09:43

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


Great thanks.

  • naoli
  • 06/22/11
  • Offline
  • Fri, 2011-06-24 00:49

Great thanks.


HI, in fact, problem is not

  • naoli
  • 06/22/11
  • Offline
  • Fri, 2011-07-01 07:07

HI,

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

Any idea ?


Well, according to this here,

  • andreychek
  • 01/04/09
  • Offline
  • Fri, 2011-07-01 08:05

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


Oh I see. Well the error

  • naoli
  • 06/22/11
  • Offline
  • Fri, 2011-07-01 10:31

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 !


Well, it could be another

  • andreychek
  • 01/04/09
  • Offline
  • Fri, 2011-07-01 11:52

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


Hi Eric, thank you very much

  • naoli
  • 06/22/11
  • Offline
  • Sat, 2011-07-02 02:42

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...