HaddingtonDynamics / Dexter

GNU General Public License v3.0
363 stars 84 forks source link

Bootup time increased when node.js was installed #67

Closed JamesNewton closed 4 years ago

JamesNewton commented 5 years ago

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

JamesNewton commented 4 years ago

I did some testing on my current image, from power up to boot dance finish:

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.