{"action":"created","issue":{"url":"https://api.github.com/repos/dnschneid/crouton/issues/3823","repository_url":"https://api.github.com/repos/dnschneid/crouton","labels_url":"https://api.github.com/repos/dnschneid/crouton/issues/3823/labels{/name}","comments_url":"https://api.github.com/repos/dnschneid/crouton/issues/3823/comments","events_url":"https://api.github.com/repos/dnschneid/crouton/issues/3823/events","html_url":"https://github.com/dnschneid/crouton/issues/3823","id":340334014,"node_id":"MDU6SXNzdWUzNDAzMzQwMTQ=","number":3823,"title":"Sudo enter-chroot takes unusually long","user":{"login":"jazzgroove","id":10986731,"node_id":"MDQ6VXNlcjEwOTg2NzMx","avatar_url":"https://avatars2.githubusercontent.com/u/10986731?v=4","gravatar_id":"","url":"https://api.github.com/users/jazzgroove","html_url":"https://github.com/jazzgroove","followers_url":"https://api.github.com/users/jazzgroove/followers","following_url":"https://api.github.com/users/jazzgroove/following{/other_user}","gists_url":"https://api.github.com/users/jazzgroove/gists{/gist_id}","starred_url":"https://api.github.com/users/jazzgroove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jazzgroove/subscriptions","organizations_url":"https://api.github.com/users/jazzgroove/orgs","repos_url":"https://api.github.com/users/jazzgroove/repos","events_url":"https://api.github.com/users/jazzgroove/events{/privacy}","received_events_url":"https://api.github.com/users/jazzgroove/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-07-11T17:20:10Z","updated_at":"2018-11-11T14:44:11Z","closed_at":null,"author_association":"NONE","body":"```\r\nPlease paste the output of the following command here: sudo edit-chroot -all\r\n```\r\nname: buster\r\nencrypted: no\r\nEntering /mnt/stateful_partition/crouton/chroots/buster...\r\ncrouton: version 1-20180709160044~master:193dcfd0\r\nrelease: buster\r\narchitecture: amd64\r\nxmethod: xiwi\r\ntargets: audio,core,extension,lxde,xiwi\r\nhost: version 10718.34.0 (Official Build) beta-channel samus \r\nkernel: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Jun 25 22:22:50 PDT 2018 x86_64 GNU/Linux\r\nfreon: yes\r\n#### Please describe your issue:\r\n\r\nMy 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. \r\n\r\n#### If known, describe the steps to reproduce the issue:\r\n1. From a shell sudo enter-chroot -n buster\r\n\r\n--or--\r\n\r\n2. Inside a chroot execute any command that uses sudo (ex. sudo su)\r\n\r\nResult - takes roughly a minute before entering the chroot.\r\n"},"comment":{"url":"https://api.github.com/repos/dnschneid/crouton/issues/comments/437675735","html_url":"https://github.com/dnschneid/crouton/issues/3823#issuecomment-437675735","issue_url":"https://api.github.com/repos/dnschneid/crouton/issues/3823","id":437675735,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzY3NTczNQ==","user":{"login":"nehalem501","id":4194367,"node_id":"MDQ6VXNlcjQxOTQzNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/4194367?v=4","gravatar_id":"","url":"https://api.github.com/users/nehalem501","html_url":"https://github.com/nehalem501","followers_url":"https://api.github.com/users/nehalem501/followers","following_url":"https://api.github.com/users/nehalem501/following{/other_user}","gists_url":"https://api.github.com/users/nehalem501/gists{/gist_id}","starred_url":"https://api.github.com/users/nehalem501/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nehalem501/subscriptions","organizations_url":"https://api.github.com/users/nehalem501/orgs","repos_url":"https://api.github.com/users/nehalem501/repos","events_url":"https://api.github.com/users/nehalem501/events{/privacy}","received_events_url":"https://api.github.com/users/nehalem501/received_events","type":"User","site_admin":false},"created_at":"2018-11-11T14:44:11Z","updated_at":"2018-11-11T14:44:11Z","author_association":"NONE","body":"I have the same issue after upgrading my ubuntu chroot to cosmic.\r\nDowngrading systemd, libsystemd, dbus, or pam didn't have any effect.\r\n\r\nIt stays stuck there for a while before entering the chroot\r\n`+ TRAP=\r\n+ env -i chroot /var/run/crouton/mnt/stateful_partition/crouton/chroots/cosmic su -s /bin/sh -c \r\n        if ! hash dbus-daemon 2>/dev/null; then\r\n            exit 0\r\n        fi\r\n        dbususer=''\r\n        pidfile=\"/var/run/dbus/pid\"\r\n        if [ -f \"$pidfile\" ]; then\r\n            if grep -q \"^dbus-daemon\" \"/proc/`cat \"$pidfile\"`/cmdline\" \\\r\n                    2>/dev/null; then\r\n                exit 0\r\n            fi\r\n            rm -f \"$pidfile\"\r\n        fi\r\n        mkdir -p /var/run/dbus\r\n        dbususer=\"`id -un \"$dbususer\" 2>/dev/null || echo \"messagebus\"`\"\r\n        dbusgrp=\"`id -gn \"$dbususer\" 2>/dev/null || echo \"messagebus\"`\"\r\n        chown \"$dbususer:$dbusgrp\" /var/run/dbus\r\n        exec dbus-daemon --system --fork - root`"}}
{"actor":{"display_login":"nehalem501"}}