Skip to content
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

Minutes long boot times when there is no network #232

Open
Mycellf opened this issue Nov 27, 2024 · 8 comments
Open

Minutes long boot times when there is no network #232

Mycellf opened this issue Nov 27, 2024 · 8 comments
Assignees
Labels
bug Something isn't working triage

Comments

@Mycellf
Copy link

Mycellf commented Nov 27, 2024

Issue Description

After entering the encryption key, it can take minutes to boot when there is no wifi network.

The thing it seems to get stuck on is starting "nmbd.service", saying that it's waiting for an ipv4 non-loopback connection of some kind, and the logs shown with escape show that it selects a varying amount of time to wait before giving up and allowing the boot process to continue (for a while it was 2:31, now it's 1:31 or sometimes ~50 seconds).

Steps to Reproduce

  • Turn off the wifi and reboot, or boot in a place with no wifi
  • Select the present root
  • Enter the encryption key if necessary
  • Getting to the log in screen takes a few minutes

On what version of Vanilla OS this happens?

Vanilla OS 2 Orchid

Additional Information

Logs from "Failed to start nmbd.service - Samba NMB Daemon." from the logs app:

  • Failed to start nmbd.service - Samba NMB Daemon.
  • Failed to load IRKs for hci0: Invalid Parameters (0x0d)
  • Failed to set mode: Failed (0x03)
@Mycellf Mycellf added bug Something isn't working triage labels Nov 27, 2024
@taukakao
Copy link
Member

Are you mounting a network drive during boot?

@Mycellf
Copy link
Author

Mycellf commented Nov 27, 2024

Not that I know of.

@taukakao
Copy link
Member

taukakao commented Nov 27, 2024

Looks like a driver issue to me. This would probably need to be fixed in the kernel or in debian.

If you don't need samba network drives, you can simply disable it, to fix the slow boot time:
host-shell pkexec systemctl disable --now nmbd.service

@Mycellf
Copy link
Author

Mycellf commented Nov 28, 2024

That fixed it, thanks.

@taukakao
Copy link
Member

Reopening since this still needs to be fixed.

@taukakao taukakao self-assigned this Dec 11, 2024
@taukakao
Copy link
Member

Since I can't reproduce this without wifi, for anyone affected, it would be nice if you could boot with wifi off so that the boot takes really long and after booting run:
host-shell pkexec journalctl --unit=nmbd.service
and post the output (or at least the last 30 lines or so) here.

@Mycellf
Copy link
Author

Mycellf commented Dec 20, 2024

Here's the end of a 1144 line output:

(it seems to repeat basically the same pattern throughout the whole thing)

-- Boot 81d6c634ae2842e998b3a0da181a11ba --
Nov 26 15:44:20 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 26 15:44:20 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Nov 26 18:50:41 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Nov 26 18:50:41 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Nov 26 18:50:41 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
-- Boot 32bce695fbba4a9589bc312d1f9ad3d9 --
Nov 26 19:23:15 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 26 19:23:15 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Nov 26 19:30:58 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Nov 26 19:30:58 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Nov 26 19:30:58 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
-- Boot cbaca5c42642429ab54b976513a71b81 --
Nov 26 19:31:25 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 26 19:32:55 jeffrey-laptop systemd[1]: nmbd.service: start operation timed out. Terminating.
Nov 26 19:32:55 jeffrey-laptop systemd[1]: nmbd.service: Failed with result 'timeout'.
Nov 26 19:32:55 jeffrey-laptop systemd[1]: Failed to start nmbd.service - Samba NMB Daemon.
-- Boot d942e97456e446b0abd0322b5b818f71 --
Nov 26 20:50:09 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 26 20:50:10 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Nov 26 21:04:43 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Nov 26 21:04:43 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Nov 26 21:04:43 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
-- Boot e67cce92dbb54e11bbe72368c242df1d --
Nov 26 21:11:16 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 26 21:11:16 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Nov 26 22:52:15 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Nov 26 22:52:15 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Nov 26 22:52:15 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
-- Boot 488df3e67dc1493a9dbb5edcb08f299f --
Nov 26 22:55:27 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 26 22:55:27 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Nov 27 00:02:08 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Nov 27 00:02:08 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Nov 27 00:02:08 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
-- Boot 2fa1596c310b4bedbd2eca610eaff3d1 --
Nov 27 10:30:37 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 27 10:30:37 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Nov 27 13:31:26 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Nov 27 13:31:26 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Nov 27 13:31:26 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
-- Boot 8c1fc981ee024c3f8f9b1f95d292a27a --
Nov 27 13:53:47 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 27 13:53:47 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Nov 27 15:58:41 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Nov 27 15:58:41 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Nov 27 15:58:41 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
Nov 27 16:00:00 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Nov 27 16:00:00 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Nov 27 16:00:08 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Nov 27 16:00:08 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Nov 27 16:00:08 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
-- Boot 3409b745ea584d5a861bd6e84c03900e --
Dec 20 13:02:36 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Dec 20 13:02:36 jeffrey-laptop systemd[1]: Started nmbd.service - Samba NMB Daemon.
Dec 20 13:03:15 jeffrey-laptop systemd[1]: Stopping nmbd.service - Samba NMB Daemon...
Dec 20 13:03:15 jeffrey-laptop systemd[1]: nmbd.service: Deactivated successfully.
Dec 20 13:03:15 jeffrey-laptop systemd[1]: Stopped nmbd.service - Samba NMB Daemon.
-- Boot a6886e0c1d0147b78212cbd42da64ab4 --
Dec 20 13:03:43 jeffrey-laptop systemd[1]: Starting nmbd.service - Samba NMB Daemon...
Dec 20 13:05:13 jeffrey-laptop systemd[1]: nmbd.service: start operation timed out. Terminating.
Dec 20 13:05:13 jeffrey-laptop systemd[1]: nmbd.service: Failed with result 'timeout'.
Dec 20 13:05:13 jeffrey-laptop systemd[1]: Failed to start nmbd.service - Samba NMB Daemon.

@taukakao
Copy link
Member

taukakao commented Dec 20, 2024

Thank you
Doesn't say much sadly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants