Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] OS hangs when there is no network

Featured Replies

Hi,

 

I'm facing a problem with my Orange Pi Zero with the latest Armbian version.

I noticed that when I provide an internet connection type that is not valid (wrong psk, ethernet but no cable plugged in, etc.) and I reboot the system, it hangs just before asking the username and password.

Sometimes it takes up to 10 minutes before keeping going.

 

These are the last boot logs that I see:

[   11.209226] systemd[1]: Starting Create list of static device nodes for the current kernel...
[   11.219428] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[   11.244988] systemd[1]: Started Nameserver information manager.
[   11.254315] systemd[1]: Reached target Network (Pre).
[   11.264815] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[   11.274833] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[   11.293312] systemd[1]: Starting Load Kernel Modules...
[   11.317312] systemd[1]: Starting Remount Root and Kernel File Systems...
[   11.343632] systemd[1]: Starting udev Coldplug all Devices...
[   11.376556] systemd[1]: Mounted POSIX Message Queue File System.
[   11.386689] systemd[1]: Mounted Kernel Debug File System.
[   11.396501] systemd[1]: Mounted Kernel Trace File System.
[   11.413706] systemd[1]: Finished Create list of static device nodes for the current kernel.
[   11.416094] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[   11.458472] systemd[1]: Finished Remount Root and Kernel File Systems.
[   11.472062] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[   11.481213] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[   11.505488] systemd[1]: Starting Load/Save Random Seed...
[   11.514898] systemd[1]: Condition check resulted in Create System Users being skipped.
[   11.553531] systemd[1]: Starting Create Static Device Nodes in /dev...
[   11.583442] g_serial gadget: Gadget Serial v2.4
[   11.588174] g_serial gadget: g_serial ready   
[   11.610410] systemd[1]: Finished Load Kernel Modules.
[   11.626029] systemd[1]: Finished Load/Save Random Seed.
[   11.650175] systemd[1]: Mounting FUSE Control File System...
[   11.671958] systemd[1]: Mounting Kernel Configuration File System...
[   11.694089] systemd[1]: Starting Apply Kernel Variables...
[   11.724736] systemd[1]: Mounted FUSE Control File System.
[   11.741343] systemd[1]: Finished Create Static Device Nodes in /dev.
[   11.751604] systemd[1]: Mounted Kernel Configuration File System.
[   11.776484] systemd[1]: Starting udev Kernel Device Manager...
[   12.843290] thermal thermal_zone0: binding zone cpu_thermal with cdev thermal-cpufreq-0 failed:-22

 

**Usually here after a couple of seconds I'm asked to provide the username and password**

 

After that the system hangs for a very long time.

I stopped and disabled NetworkManager-wait-online.service but nothing changed.

Is there something else that prevents the boot phase to finish before having established the connection?

 

Thanks a lot

Mattia

 

  • Author

I found out that the networking.service has a param called TimeoutStartSec that defaults to 5min in /lib/systemd/system/networking.service. I lowered that value to 15 seconds and the problem is gone.

Here's a useful command:

sed -i -r 's/TimeoutStartSec=.*/TimeoutStartSec=15/' /lib/systemd/system/networking.service

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.