Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: ubuntu 18.04 lts 10 minutes to boot to login

  1. #1
    Join Date
    Jul 2018
    Beans
    7

    ubuntu 18.04 lts 10 minutes to boot to login

    This morning there was an update to the kernel from 4.15.0-23-generic to 4.15.0-24-generic. After installing such update I rebooted the system and now it takes around 10 minutes to show the login prompt (before it used to be very fast)

    Code:
    ➜  ~ systemd-analyze blame
        9min 36.123s plymouth-quit-wait.service
        9min 36.123s plymouth-quit-wait.service
         8min 9.803s snapd.seeded.service
             37.303s snapd.service
              6.186s NetworkManager-wait-online.service
              4.369s udisks2.service
              1.360s dev-sda1.device
              1.016s dev-loop0.device
    I searched for 'snapd.service' and 'snapd.seeded.service' "slow" but my findings were unsuccessful and not relevant to my case. Do you have any ideas on how could I fix this problem?

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    Are you using snaps?
    I uninstalled all of them, since not currently using any of them.

    34 snap list
    35 sudo snap remove gnome-logs
    36 sudo snap remove gnome-calulator
    ....

    46 sudo systemctl stop snapd
    47 snap list

    56 ls -l /snap/core
    57 sudo systemctl stop snapd
    58 sudo umount /snap/core/XXXX # several
    59 sudo snap remove core

    https://askubuntu.com/questions/1039...tor-with-a-deb
    Last edited by oldfred; July 2nd, 2018 at 06:58 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Jun 2018
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    how can i tell what i installed via snap and then would i uninstall via snap? and then i could reinstall in synaptic? i have 3 laptops to tweak again then. thanks.

  4. #4
    Join Date
    Jul 2018
    Beans
    7

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    output from journalctl-u snapd.service

    when system was working:

    Code:
    lug 02 04:07:33 ubuntu18 snapd[703]: snap "gnome-3-26-1604": snap has no updates available
    lug 02 04:07:33 ubuntu18 snapd[703]: snap "core18": snap has no updates available
    lug 02 04:07:33 ubuntu18 snapd[703]: snap "communitheme": snap has no updates available
    lug 02 04:07:33 ubuntu18 snapd[703]: snap "core": snap has no updates available
    lug 02 04:07:33 ubuntu18 snapd[703]: 2018/07/02 04:07:33.265803 autorefresh.go:388: auto-refresh: all snaps are up-to-date
    lug 02 12:52:00 ubuntu18 snapd[703]: 2018/07/02 12:52:00.881677 storehelpers.go:413: cannot refresh:
    lug 02 12:52:00 ubuntu18 snapd[703]: snap "gnome-3-26-1604": snap has no updates available
    lug 02 12:52:00 ubuntu18 snapd[703]: snap "core18": snap has no updates available
    lug 02 12:52:00 ubuntu18 snapd[703]: snap "communitheme": snap has no updates available
    lug 02 12:52:00 ubuntu18 snapd[703]: snap "core": snap has no updates available
    lug 02 12:52:00 ubuntu18 snapd[703]: 2018/07/02 12:52:00.882827 autorefresh.go:388: auto-refresh: all snaps are up-to-date
    lug 02 12:56:49 ubuntu18 snapd[703]: 2018/07/02 12:56:49.625045 main.go:81: Exiting on terminated signal.
    lug 02 12:56:49 ubuntu18 systemd[1]: Stopping Snappy daemon...
    lug 02 12:56:49 ubuntu18 systemd[1]: Stopped Snappy daemon.
    -- Reboot --
    after updates i get this:

    Code:
    lug 02 12:57:23 ubuntu18 systemd[1]: Starting Snappy daemon...
    lug 02 12:58:53 ubuntu18 snapd[775]: AppArmor status: apparmor is enabled and all features are available
    lug 02 12:58:53 ubuntu18 systemd[1]: snapd.service: Start operation timed out. Terminating.
    lug 02 12:58:53 ubuntu18 systemd[1]: snapd.service: Failed with result 'timeout'.
    lug 02 12:58:53 ubuntu18 systemd[1]: Failed to start Snappy daemon.
    lug 02 12:58:53 ubuntu18 systemd[1]: snapd.service: Service hold-off time over, scheduling restart.
    lug 02 12:58:53 ubuntu18 systemd[1]: snapd.service: Scheduled restart job, restart counter is at 1.
    lug 02 12:58:53 ubuntu18 systemd[1]: Stopped Snappy daemon.
    lug 02 12:58:53 ubuntu18 systemd[1]: Starting Snappy daemon...
    lug 02 12:58:53 ubuntu18 snapd[1110]: AppArmor status: apparmor is enabled and all features are available
    lug 02 12:58:54 ubuntu18 snapd[1110]: AppArmor status: apparmor is enabled and all features are available
    lug 02 12:58:54 ubuntu18 snapd[1110]: 2018/07/02 12:58:54.224173 daemon.go:343: started snapd/2.33 (series 16; classic) ubuntu/18.04 (amd64) li
    lug 02 12:58:54 ubuntu18 systemd[1]: Started Snappy daemon.
    -- Reboot --
    after that i removed communitheme i thought maybe it was related to the troubles but still 10 minutes to boot. this are the snaps installed on the system:

    Code:
    ➜  ~ snap list --all
    Name             Version    Rev   Tracking  Developer  Notes
    core             16-2.32.6  4571  stable    canonical  core,disabled
    core             16-2.32.8  4650  stable    canonical  core,disabled
    core             16-2.33    4830  stable    canonical  core
    core18           0.1        19    stable    canonical  base
    gnome-3-26-1604  3.26.0     64    stable/…  canonical  -

    Now wouldn't disable snaps prevent the system from booting? isn't core package required for the system to work properly?

    also yes i replaced the snaps calculator and gnome-logs around 1 month ago i think
    Last edited by denny-mello; July 2nd, 2018 at 11:18 PM.

  5. #5
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,600
    Distro
    Ubuntu

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    Now wouldn't disable snaps prevent the system from booting? isn't core package required for the system to work properly?
    Not at all
    snaps are independent of the system.
    core is only required for snaps to work.
    Not related to the functions of the system at large.
    See monkeybrain20122's thread on this here:
    https://ubuntuforums.org/showthread.php?t=2391341
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  6. #6
    Join Date
    Jul 2018
    Beans
    7

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    I removed snaps completely from the system but didn't fix the slow boot time:

    Code:
    ➜  ~ systemd-analyze                   
    Startup finished in 4.860s (kernel) + 8min 44.251s (userspace) = 8min 49.111s
    graphical.target reached after 8min 44.231s in userspace
    
    ➜  ~ systemd-analyze blame     8min 36.974s plymouth-quit-wait.service
        5min 21.419s phpsessionclean.service
              6.174s NetworkManager-wait-online.service
              3.331s udisks2.service
               784ms ufw.service
               728ms fwupd.service
               608ms dev-sda1.device
               461ms apparmor.service
               224ms NetworkManager.service
               199ms networkd-dispatcher.service
               191ms systemd-journal-flush.service
               186ms keyboard-setup.service
               183ms plymouth-start.service
               177ms accounts-daemon.service
               163ms grub-common.service
               160ms systemd-hostnamed.service
               156ms ModemManager.service
               147ms apport.service
               146ms sysfsutils.service
               145ms speech-dispatcher.service
               145ms systemd-timesyncd.service
               141ms upower.service
               140ms systemd-resolved.service
    Is it possible that the kernel upgrade don't like my system? Should i try revert to 4.15.0-23-generic? I have no clue how to proceed and i'm scared of breaking even more things!
    Last edited by denny-mello; July 2nd, 2018 at 11:18 PM.

  7. #7
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    Are you running something using a different than default php?
    Or is system an upgrade and something did not get reset?

    PHP7-ubuntu sessionclean searches for "php5" named binary
    https://bugs.launchpad.net/ubuntu/+s...s/+bug/1579480
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #8
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,600
    Distro
    Ubuntu

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    Is it possible that the kernel upgrade don't like my system? Should i try revert to 4.15.0-23-generic? I have no clue how to proceed and i'm scared of breaking even more things!
    Sure.
    That's why the system defaults to always keep the last kernel.
    So you can boot into it if the new one is iffy.
    Reboot and select the old one in the boot menu (under the advanced options menu listing option)
    See how it performs versus the new one.

    If you don't see the boot menu, then you may need to access it with either ESC or shift depending on system (legacy BIOS uses shift, newer UEFI uses ESC)
    You need to press the key (or better yet tap the key repeatedly so it takes at the right time)
    when the very first screen that shows when you start the machine (the one usually showing the name of the machine) goes black.
    if that make sense
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  9. #9
    Join Date
    Jul 2018
    Beans
    7

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    Quote Originally Posted by oldfred View Post
    Are you running something using a different than default php?
    Or is system an upgrade and something did not get reset?
    I don't recall installing php packages but I am using the system since april when it was last point beta. Maybe some other application I've installed did change php packages I'm not sure and don't know how to check.

    Regarding system upgrades I usually reboot when asked by the system or when there are kernel upgrades.

    Ok so I've tried rebooting with kernel .23 and it is very fast! I'm going reboot with the new one and see if that magically fixed everything.
    Last edited by denny-mello; July 2nd, 2018 at 09:36 PM.

  10. #10
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: ubuntu 18.04 lts 10 minutes to boot to login

    Hello bodhin2, please start your own thread to ask your question instead of posting in someone else's.

    Thanks

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •