[ec2-beta] apt-get install autofs hangs

Paul Cullum paul at cullum.ca
Fri Mar 13 13:52:53 GMT 2009


My ec2-run-user-data script does a number of things including installing
some packages.  The last package it tries to install is autofs and for
whatever reason, this hangs when installed from the script.

I'm going to take a wild guess here but... what happens to the stdout and
stderr of this script and processes called by these scripts?  I know a
process will hang when it can't write anymore to stdout and stderr.  That
output needs to be consumed.

Or is there something else going on here?  If it is an issue with stdout
then perhaps my "apt-get update" is too verbose.  I might try this again
with some some stdout redirects to /dev/null.

root      3108  0.0  0.0   1848   568 ?        S    09:30   0:00 /bin/sh
/etc/rc2.d/S90ec2-init start
root      3131  0.0  0.2   6512  4136 ?        S    09:30   0:00
/usr/bin/python /usr/sbin/ec2-run-user-data
root      3132  0.0  0.0   1768   536 ?        S    09:30   0:00 logger -t
user-data
root      3133  0.0  0.0   1848   492 ?        S    09:30   0:00 sh -c
/tmp/tmpjNVKT2 | logger -t "user-data"
root      3134  0.0  0.0   2844  1244 ?        S    09:30   0:00 /bin/bash
/tmp/tmpjNVKT2
root      3136  0.0  0.0   1768   536 ?        S    09:30   0:00 logger -t
user-data
root      3190  0.0  0.1   8580  3032 ?        Ss   09:30   0:00 sshd:
root at pts/0
root      3194  0.0  0.1  16708  2812 ?        Ssl  09:30   0:00
/usr/sbin/console-kit-daemon
root      3264  0.0  0.1   4212  1816 pts/0    Ss   09:30   0:00 -bash
root      3312  0.4  0.9  19312 16420 ?        S    09:31   0:04 apt-get
install autofs
root      3467  0.0  0.0   2748  1008 pts/0    R+   09:50   0:00 ps aux

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/mailman/private/ec2-beta/attachments/20090313/16147f53/attachment.htm 


More information about the Ec2-beta mailing list