Closed JamesNewton closed 4 years ago
I did some testing on my current image, from power up to boot dance finish:
No network connections at all: 52 seconds. There is about a 5 second pause where it waits on the adapter and a 25 second pause where it tries to bring up the network. Neither of those appear to have anything to do with node, which is very interesting to me as I could have sworn that boot delay started when I added that...
CAT 5 to PC, but no internet available: 45 seconds. 20 seconds waiting for the network. This is what you are probably seeing.
CAT 5 to router to internet: 31 seconds flat, no noticeable pauses.
CAT 5 to router to internet, AND WiFI dongle. Same 31 seconds.
Not CAT 5, but WiFi dongle. 53 seconds. I'm sad about that. I'd hoped that the WiFi would avoid a network wait, but apparently not.
I have noticed there is a 1 to 10 second delay where it tries to mount the SD card as ext3 and then ext2 before "recovering" it and mounting it as ext4. The time delay seems quite random. It's usually just a second or two, but I've seen it sit there for a while. I've spent several hours investigating that and I'll be darned if I can tell you any more about it now than I could before lunch. That stuff is buried.
I've spent another hour trying to avoid it waiting for the network. I've edited the: /lib/systemd/system/NetworkManager-wait-online.service file to change the timeout to 5 seconds. Which make NO difference at all.
However, I noticed the actual message is about "raise network" which lead me to this
https://askubuntu.com/questions/862176/how-to-fix-a-start-job-is-running-for-the-raise-network-in-ubuntu-server-16/1061852
which I tried and it again, makes zero difference.
I've taken those changes back out just to ensure it's not going to cause problems in the future.
There is always one failure message, for a braille support device:
http://manpages.ubuntu.com/manpages/bionic/man1/brltty.1.html
Dexter is not friendly to the blind apparently... But it takes no time.
Long story only slightly longer: If you are seeing boot times of longer than a minute, please try the newest image and do the USB cable connection, watch it boot, and tell me what it's sitting on: https://github.com/HaddingtonDynamics/Dexter/wiki/Dexter-USB-Connection
Best advice: Live with one minute boot, or connect to router.
Closing this as there is no evidence that it's actually caused by node.
For some reason, when node.js / NVM was installed, the time it takes the OS to boot increased by something like 30 to 90 seconds. No idea why. Very little has been written about this, but it might be this issue:
https://www.growingwiththeweb.com/2018/01/slow-nvm-init.html