-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sudo enter-chroot takes unusually long #3823
Comments
You may be able to pin down where it's slowing down by tracing the execution and watching for the delay, using something like this:
Hope this helps, |
Same problem after update of a "buster" chroot. Will check with tracing. |
The command After running |
Thanks for the tip @DennisLfromGA - I ran your suggested command and I've captured in the output where the pauses occur:
SUPER Long Pause***
SUPER Long Pause*****
|
Thanx for the feedback, hopefully, someone looking at this will be able to narrow down the delay. -DennisLfromGA |
A fresh install of "buster" does not seem to give the problem! Investigating further, I ran the following commands:
There was no delay this time! |
Narrowed it down to the installation of |
Thanx for that feedback and /workaround/resolution. Hope this helps, |
Since For the moment, the |
Thx @kapilhp and @DennisLfromGA I removed the pulseaudio package and still see the delay. I'm not sure where to go from here. I'm wondering if policy.d could be part of the issue. Looking in the Crouton X.org log I see: Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken |
Perhaps also remove |
Thanks @kapilhp I removed dbus-x11 too and still have the delay. I'm thinking I might need to start over completely or restore an old backup and try to compare. |
This happened to me as well. Since this sid chroot was non-graphical, I found that
and fixed the login speed issues for me. I guess something changed recently in the systemd packages on sid/testing that is causing this issue, but I haven't looked into it much further. YMMV; make a backup first. |
I do have |
Unable to replicate!
So now this is (as one of my former colleagues would say) "a mystery wrapped in an enigma wrapped in a riddle!" 😄 Perhaps whatever was causing the problem has disappeared from "buster" which has a high churn since it is a rolling distribution. |
This happened to me too (running Debian Sid, updated yesterday) -- slow The fix to |
@kapilhp - thanks for the list of packages. Did you use apt-show-versions? I'm going to generate a list too and compare. |
I think I've just encountered this issue — I have many of the same symptoms. I'm fairly sure it's related to dbus, and began when I used I'm running arch on a fork of crouton, which has been working fine. I ran Both arch and sid use dbus version 1.12.10. The changelog is on github (the website is on the 1.13 branch). Nothing jumps out, to me. I believe I was using 1.12.8 successfully, beforehand. My errors with crouton/chroot-bin/croutonpowerd Lines 52 to 57 in 5d4c301
I'm trying to fix it for me — when (if?) I do, I'll respond here with details. Meanwhile, I hope this report helps. |
I bisected my arch install; below are the packages that changed and broke the chroot (note; they are fine on a non-crouton system). Looks like There are various network interface changes in
|
Great info @dbaynard. I reverted back to an earlier backup of systemd. |
It is probably some combination of In my case, with these packages, I see no lag in Just in case it is relevant: Google Chrome version is 68.0.3440.87 (Official Build) (64-bit) and -- Kapil. |
Thanks, @dbaynard. I reverted |
@eyqs I've only just encountered your chroagh-dev repo — we should collaborate! Also, I wonder if running crouton with functional It seems like there's something going on with |
+1 on reporting. By the way, I think the currently active repo is @mediocregopher's, not mine, so let's help them out! |
Oh wow, I was having this exact issue. If it helps to narrow down some more, I first downgraded just |
This commit temporarily addresses the slow sudo problem: dnschneid#3823
Is there any news on a fix for this? |
@davidgiven I only see a commit to the chroagh repo. I don't think anything has been patched in crouton for this. |
I have the same issue after upgrading my ubuntu chroot to cosmic. It stays stuck there for a while before entering the chroot
|
Update: I fixed this in chroagh (the archlinux fork of crouton which barely works) in this commit. I diagnosed the problem by using |
This is a very good idea. I have also noted this problem with Ubuntu Eoan, and it seemed to be related to waiting for a reply from DBus with a long timeout. This actually happens if you install with eoan right away with Pointing the chroot to the host DBus seems like a good idea for many reasons so long as it doesn't break anything else, which who knows, it might. For example, the host DBus runs the "system" bus but not the "session" bus, whatever that means. |
name: buster
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/buster...
crouton: version 1-20180709160044~master:193dcfd0
release: buster
architecture: amd64
xmethod: xiwi
targets: audio,core,extension,lxde,xiwi
host: version 10718.34.0 (Official Build) beta-channel samus
kernel: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Jun 25 22:22:50 PDT 2018 x86_64 GNU/Linux
freon: yes
Please describe your issue:
My longtime Buster chroot all of the sudden has been taking an extremely longtime to load(sudo startlxde or enter-chroot from the CLI). After the chroot is up and running things seem to be fine except that any sudo commands (ex. sudo apt-get install) also take a long time.
If known, describe the steps to reproduce the issue:
--or--
Result - takes roughly a minute before entering the chroot.
The text was updated successfully, but these errors were encountered: