From: Jamie C. <jca...@we...> - 2012-04-21 17:34:24
|
On 20/Apr/2012 23:04 Berni Elbourn <ber...@gm...> wrote .. > On 20/04/12 21:01, Jamie Cameron wrote: > > On 20/Apr/2012 12:45 Berni Elbourn<ber...@gm...> wrote .. > >> On 20/04/12 20:30, Berni Elbourn wrote: > >>> On 20/04/12 19:18, Jamie Cameron wrote: > >>>> On 20/Apr/2012 05:06 Berni Elbourn<ber...@gm...> wrote .. > >>>>> Hi > >>>>> > >>>>> miniserv.pl seems to loop forever when a folder called Desktop with some > >>>>> links are present in the /etc/skel > >>>>> > >>>>> Note: the normal useradd -m does not hang > >>>>> > >>>>> Versions: Webmin 1.580 on Debian Squeeze amd64 > >>>> > >>>> Is this when creating a user, or just when opening the list of users? > >>>> > >>>> - Jamie > >>> > >>> Sorry for the brevity .. I found and reported the problem at a customer > >>> site. > >>> > >>> It is the create new user operation ... after letting the process run > >>> for a few minutes I restarted webmin. The passwd files and /home > >>> directory are created but .lock files are left behind. Some of the > >>> /etc/skel files are in the home directory but are owned by root. > >>> > >>> I have just tried the operation on another system...same result. > >>> Aborting after a few minutes. The Desktop folder is present in the new > >>> user but it is still owned by root... > >>> > >>> sudo ls -l /home/test99/ > >>> > >>> lrwxrwxrwx 1 test99 users 11 Apr 20 20:27 data4 -> /data/data4 > >>> drwxr-xr-x 2 root root 4096 Apr 20 20:19 Desktop > >>> > >>> ...maybe it is something to do with setting the ownership? > >>> > >>> Berni > >>> > >> > >> Just to add the full contents of /etc/skel is: > >> > >> elbournb@hp6715:/etc/skel$ sudo ls -laR /etc/skel > >> /etc/skel: > >> total 40 > >> drwxr-xr-x 3 root root 4096 Apr 20 20:26 . > >> drwxr-xr-x 226 root root 20480 Apr 20 20:39 .. > >> -rw-r--r-- 1 root root 220 Dec 11 2006 .bash_logout > >> -rw-r--r-- 1 root root 3184 Apr 10 2010 .bashrc > >> lrwxrwxrwx 1 root root 11 Apr 20 20:26 data4 -> /data/data4 > >> drwxr-xr-x 2 root root 4096 Apr 20 20:19 Desktop > >> lrwxrwxrwx 1 root root 12 Sep 14 2008 .gnomerc -> /etc/gnomerc > >> -rw-r--r-- 1 root root 675 May 12 2008 .profile > >> > >> /etc/skel/Desktop: > >> total 8 > >> drwxr-xr-x 2 root root 4096 Apr 20 20:19 . > >> drwxr-xr-x 3 root root 4096 Apr 20 20:26 .. > >> lrwxrwxrwx 1 root root 11 Apr 20 20:19 data4 -> /data/data4 > >> > >> After a few minutes of running the new user process...a new user looks > >> like this. Webmin seemingly never completes the process. > >> > >> elbournb@hp6715:/etc/skel$ sudo ls -laR /home/test99 > >> /home/test99: > >> total 16 > >> drwx------. 3 test99 users 4096 Apr 20 20:40 . > >> drwxr-xr-x 18 root root 4096 Apr 20 20:40 .. > >> lrwxrwxrwx 1 test99 users 11 Apr 20 20:40 data4 -> /data/data4 > >> drwxr-xr-x 2 root root 4096 Apr 20 20:19 Desktop > >> lrwxrwxrwx 1 test99 users 12 Apr 20 20:40 .gnomerc -> /etc/gnomerc > >> > >> /home/test99/Desktop: > >> total 12 > >> drwxr-xr-x 2 root root 4096 Apr 20 20:19 . > >> drwx------. 3 test99 users 4096 Apr 20 20:40 .. > >> lrwxrwxrwx 1 root root 11 Apr 20 20:19 data4 -> /data/data4 > >> > >> After a few minutes Webmins is still stuck showing the create new user > >> form with "waiting for localhost"...process is not using much cpu... > >> > >> 3373 root 20 0 105m 43m 2364 D 8 2.3 0:10.01 miniserv.pl > > > > If you run : > > > > strace -p 3373 > > > > to see what that process is doing, what does it output? > > > > - Jamie > > > > ------------------------------------------------------------------------------ > > Sorry I forgot to mention that the directories at the end of these > softlinks are actually mountpoints for data servers. On this system they > are nfs on the customer machine they are cifs. Interesting .. I wonder if perhaps the fileservers those links point to are slow or down, causing the copy to hang? > elbournb@hp6715:~$ mount | grep /data/data4 > red:/data/data4 on /data/data4 type nfs (rw,addr=192.168.2.10) > > Fortunately the strace does not produce too much over a few minutes:- That looks like the wrong process.. Actually, I just realized what you should look for is a "cp" command that Webmin runs to copy the files in /etc/skel. See if you can find one of those running with "ps auxwwwww | grep cp" , and let me know its full commandline. Also, running strace on the PID of that process would be useful. - Jamie |