Discussion:
[Ltsp-discuss] (no subject)
David Groos
2016-09-23 20:55:22 UTC
Permalink
Hi All,

When I try to update the client image on the ltsp-pnp 14.04 server I run:
sudo ltsp-update-image --cleanup /
and the system just hangs: no output. After awhile I press control-c and
then this error message is printed:
"failed to remove ‘/tmp/tmp.75v6rgFYwg’: No such file or directory"
I've googled this and haven't found anything to help me trouble-shoot.

Any ideas?
Thanks,
David
David Groos
2016-09-23 20:59:00 UTC
Permalink
Sorry, the complete response printed was:
rmdir: failed to remove ‘/tmp/tmp.75v6rgFYwg’: No such file or directory
Post by David Groos
Hi All,
sudo ltsp-update-image --cleanup /
and the system just hangs: no output. After awhile I press control-c and
"failed to remove ‘/tmp/tmp.75v6rgFYwg’: No such file or directory"
I've googled this and haven't found anything to help me trouble-shoot.
Any ideas?
Thanks,
David
Alkis Georgopoulos
2016-09-24 04:49:20 UTC
Permalink
Post by David Groos
Hi All,
sudo ltsp-update-image --cleanup /
and the system just hangs: no output. After awhile I press control-c and
"failed to remove ‘/tmp/tmp.75v6rgFYwg’: No such file or directory"
I've googled this and haven't found anything to help me trouble-shoot.
Any ideas?
Thanks,
David
1) Try
sudo sh -x /usr/sbin/ltsp-update-image -c /
...and paste all the output up to the point where it hangs.

2) Try rebooting your server.
David Groos
2016-09-24 14:58:03 UTC
Permalink
1) output of command at: http://paste.ubuntu.com/23224929/

2) I forgot to mention that I've tried rebooting (and did again) and it has
made no difference. Also, forgot to mention in problem description that
updating the image did work 1 time a few days ago. Also didn't mention that
1-2 weeks ago i accepted the suggestion to update the HWE (at login now
says, "Your Hardware Enablement Stack (HWE) is supported until April
2019"). It changed my kernal from 3.xx to 4.4.0-38-generic and this problem
started after that. Also, I'm having an xorg problem with my login screen
showing on a dual monitor setup, partly solved it a week ago by removing
MATE...

-- Running htop in another terminal window while above command was hanging
produced output shown here: Loading Image... . Seems
strange that userdel was running. As I watched, about every 15 seconds or
so it showed a different local user.

Thanks Alkis!

David
Post by Alkis Georgopoulos
Post by David Groos
Hi All,
sudo ltsp-update-image --cleanup /
and the system just hangs: no output. After awhile I press control-c and
"failed to remove ‘/tmp/tmp.75v6rgFYwg’: No such file or directory"
I've googled this and haven't found anything to help me trouble-shoot.
Any ideas?
Thanks,
David
1) Try
sudo sh -x /usr/sbin/ltsp-update-image -c /
...and paste all the output up to the point where it hangs.
2) Try rebooting your server.
------------------------------------------------------------
------------------
_____________________________________________________________________
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Alkis Georgopoulos
2016-09-24 21:39:33 UTC
Permalink
Post by David Groos
1) output of command at: http://paste.ubuntu.com/23224929/
2) I forgot to mention that I've tried rebooting (and did again) and it
has made no difference. Also, forgot to mention in problem description
that updating the image did work 1 time a few days ago. Also didn't
mention that 1-2 weeks ago i accepted the suggestion to update the HWE
(at login now says, "Your Hardware Enablement Stack (HWE) is supported
until April 2019"). It changed my kernal from 3.xx to 4.4.0-38-generic
and this problem started after that. Also, I'm having an xorg problem
with my login screen showing on a dual monitor setup, partly solved it a
week ago by removing MATE...
-- Running htop in another terminal window while above command was
hanging produced output shown here: http://pasteboard.co/6YEjkwVx7.png .
Seems strange that userdel was running. As I watched, about every 15
seconds or so it showed a different local user.
awk -F: '$3>=500 && $3<=60000 { print $1; }' /etc/passwd |
while read user; do
echo "$user"
done

If you run the above snippet on the server, it will list the local users
that /usr/share/ltsp/cleanup.d/51-remove-users *removes* so that they
don't show up in the chroot.

(51-remove-users has a "userdel" instead of the "echo" in the script)

But of course it only removes them in a temporary overlay of the file
system, i.e. they are never really deleted from the server.

It appears that this takes a very long time in your case.
The cause of the delay may be that you have a lot of local users, or
that you're using ldap and userdel takes 15 seconds to update it instead
of 15 msec. Or both of those issues.

Let's see:
1) How many user accounts does that script above show?
2) Also, measure the time of one deletion:
sudo time userdel some-user-you-can-delete

3) It might also be an issue with overlayfs, if userdel doesn't take a
lot of time in the real system.
Can you try it with the older kernel, or did you delete it?
(overlayfs is a kernel module for the temporary file system)
David Groos
2016-09-24 22:49:48 UTC
Permalink
Post by Alkis Georgopoulos
awk -F: '$3>=500 && $3<=60000 { print $1; }' /etc/passwd |
while read user; do
echo "$user"
done
If you run the above snippet on the server, it will list the local users
that /usr/share/ltsp/cleanup.d/51-remove-users *removes* so that they
don't show up in the chroot.
(51-remove-users has a "userdel" instead of the "echo" in the script)
There were 7
Post by Alkis Georgopoulos
But of course it only removes them in a temporary overlay of the file
system, i.e. they are never really deleted from the server.
It appears that this takes a very long time in your case.
The cause of the delay may be that you have a lot of local users, or
that you're using ldap and userdel takes 15 seconds to update it instead
of 15 msec. Or both of those issues.
1) How many user accounts does that script above show?
It showed 7 local users
Post by Alkis Georgopoulos
sudo time userdel some-user-you-can-delete
To delete 1 user (with 7 total local users)
1.85user 0.12system 0:50.31elapsed 3%CPU (0avgtext+0avgdata
4316maxresident)k
40inputs+144outputs (0major+16297minor)pagefaults 0swaps

To delete 1 user (with 5 total local users)
1.86user 0.09system 0:35.68elapsed 5%CPU (0avgtext+0avgdata
4336maxresident)k
0inputs+144outputs (0major+16478minor)pagefaults 0swaps
Post by Alkis Georgopoulos
3) It might also be an issue with overlayfs, if userdel doesn't take a
lot of time in the real system.
Can you try it with the older kernel, or did you delete it?
(overlayfs is a kernel module for the temporary file system)
I believe I did with an autoremove.

Based on what you said and the experiments I just did I left sudo
ltsp-update-image --cleanup / running and sure enough, after it had cycled
through the (remaining) local users it did proceed as normal. While I'm not
happy about this issue--things not working properly--its urgency to solve
has decreased drastically since I see now that I *can* update the image.

Based on the output at the end of updating the image:
Removing /var/lib/tftpboot/ltsp/i386/vmlinuz-3.19.0-68-generic
it appears the old kernel was 3.19.0-68.

I'm going to research downgrading the kernel. Would you recommend trying
that as the easiest/safest fix for this?

Thanks again!
David
Alkis Georgopoulos
2016-09-25 05:45:32 UTC
Permalink
Post by David Groos
Removing /var/lib/tftpboot/ltsp/i386/vmlinuz-3.19.0-68-generic
it appears the old kernel was 3.19.0-68.
I'm going to research downgrading the kernel. Would you recommend trying
that as the easiest/safest fix for this?
I think that means that you have Ubuntu 14.04, and that you had the
linux-image-generic-lts-vivid kernel.
So try with:
sudo apt-get install linux-image-generic-lts-vivid
and then reboot and select the 3.19 kernel from the grub menu.

Many kernels can coexist; you don't have to remove the new 4.4 one.
Alkis Georgopoulos
2016-09-25 05:46:52 UTC
Permalink
Post by Alkis Georgopoulos
Post by David Groos
Removing /var/lib/tftpboot/ltsp/i386/vmlinuz-3.19.0-68-generic
it appears the old kernel was 3.19.0-68.
I'm going to research downgrading the kernel. Would you recommend trying
that as the easiest/safest fix for this?
I think that means that you have Ubuntu 14.04, and that you had the
linux-image-generic-lts-vivid kernel.
sudo apt-get install linux-image-generic-lts-vivid
and then reboot and select the 3.19 kernel from the grub menu.
Many kernels can coexist; you don't have to remove the new 4.4 one.
Btw, do you use LDAP or AD or something similar?
David Groos
2016-09-25 17:09:30 UTC
Permalink
I checked:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

And as far as I was able to tell that is the one you figured:
linux-image-generic-lts-vivid.
I'll do what you suggest tomorrow after school (in case there is an issue
I'll have some time to address it).

THANKS!
David
Post by Alkis Georgopoulos
Post by Alkis Georgopoulos
Post by David Groos
Removing /var/lib/tftpboot/ltsp/i386/vmlinuz-3.19.0-68-generic
it appears the old kernel was 3.19.0-68.
I'm going to research downgrading the kernel. Would you recommend trying
that as the easiest/safest fix for this?
I think that means that you have Ubuntu 14.04, and that you had the
linux-image-generic-lts-vivid kernel.
sudo apt-get install linux-image-generic-lts-vivid
and then reboot and select the 3.19 kernel from the grub menu.
Many kernels can coexist; you don't have to remove the new 4.4 one.
Btw, do you use LDAP or AD or something similar?
------------------------------------------------------------
------------------
_____________________________________________________________________
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
David Groos
2016-09-25 17:12:47 UTC
Permalink
To make use of the school district's AD I use PowerBroker Open (
https://www.powerbrokeropen.org/) and have been using it since 2010
(formerly called "likewise open"). This software allows me to join the
domain and authenticate to it.

David
Post by David Groos
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
And as far as I was able to tell that is the one you figured: linux-image-generic-lts-vivid.
I'll do what you suggest tomorrow after school (in case there is an issue
I'll have some time to address it).
THANKS!
David
Post by David Groos
Post by Alkis Georgopoulos
Post by David Groos
Removing /var/lib/tftpboot/ltsp/i386/vmlinuz-3.19.0-68-generic
it appears the old kernel was 3.19.0-68.
I'm going to research downgrading the kernel. Would you recommend
trying
Post by Alkis Georgopoulos
Post by David Groos
that as the easiest/safest fix for this?
I think that means that you have Ubuntu 14.04, and that you had the
linux-image-generic-lts-vivid kernel.
sudo apt-get install linux-image-generic-lts-vivid
and then reboot and select the 3.19 kernel from the grub menu.
Many kernels can coexist; you don't have to remove the new 4.4 one.
Btw, do you use LDAP or AD or something similar?
------------------------------------------------------------
------------------
_____________________________________________________________________
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
Continue reading on narkive:
Loading...