After Reboot: XU4 services don't start; ping works; please h

Moderators: mdrjr, odroid

After Reboot: XU4 services don't start; ping works; please h

Unread postby the_swissionary » Sat Sep 08, 2018 9:34 pm

Hello,
the following scenario happened to me multiple times already.
As so far I could only solve it by reinstalling the operating system, I am getting a bit frustrated.


The situation is simple; all steps are done remotely (using ssh).
- I install the minimal ubuntu image (I've had it happen with the 16.04 and the new 18.04 one).
- I set up some software (like tvheadend and samba) and upgrade the system, including installing the latest kernel.
- I adjust /etc/fstab as well as the samba configuration file.
... I am basically just installing some software and doing some configuring.
But it always ends with me wanting to reboot the device.
- So I enter "sudo reboot".
- The device does so
- And then just wouldn't finish starting some services.

At first, the device wouldn't even come back online. I have however succeeded in at least making Odroid XU4 connecting to my ethernet by adding "auto eth0" and "iface eth0 inet dhcp" to my /etc/network/interfaces file.

So the device is on, is pingable, but neither ssh, nor samba, nor tvheadend are reachable. From time to time, the van would go on for a few seconds, which sounds to me as if the divice was doing something...

What I can't do:
I am totally blind. so unfortunately, I can't check any leds for blinking or color.
Neither can I plug a monitor into my odroid and try accessing it locally.
Currently, I don't have the serial-usb adapter, so I can't try accessing it that way neither.

What I CAN do:
I can do some analysis by unplugging the EMMC from Odroid XU4 and then accessing it using another machine and a card reader.

what I find:
Sadly, syslog does not seem to be updated since I entered that fatal "sudo reboot". One file in the /var/log directory called /var/log/wtmp is created whenever I try to boot up my Odroid X£U4; however, it only contains some weird character string.
I also see that some files in /var/run/udev/links seem to be (re)created.

so my guess is that my Odroid really does seem to start booting into Ubuntu, but it does not start all (necessary) services.

Can anyone give me a clue on how I could repair this WITHOUT teinstalling everything yet again?

thanks a lot for any help!
Last edited by the_swissionary on Sun Sep 09, 2018 7:33 am, edited 1 time in total.
the_swissionary
 
Posts: 3
Joined: Sat Sep 08, 2018 9:07 pm
languages_spoken: english

Re: After Reboot: XU4 services don't start; ping works; plea

Unread postby mad_ady » Sun Sep 09, 2018 1:26 am

You mentioned you changed something in /etc/fstab. Can you show us your modified fstab?
A wrong fstab entry can halt the boot process.
You can also edit /etc/rc.local and add something like this to it:
Code: Select all
echo "started" > /started

Then reboot the xu4, power it off and check if /started exists. This would indicate that processes start, but for some reason ssh doesn't.

My guess is that the changes to fstab prevent it from starting.
User avatar
mad_ady
 
Posts: 4707
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: After Reboot: XU4 services don't start; ping works; plea

Unread postby the_swissionary » Sun Sep 09, 2018 1:56 am

Hello,
This is my fstab file:
Code: Select all
UUID=e139ce78-9841-40fe-8823-96a304a09859 / ext4 errors=remount-ro,noatime 0 1
LABEL=boot /media/boot vfat defaults 0 1
//netdrive/home /mnt cifs vers=2.1,user,rw,iocharset=utf8,credentials=/home/soap/.smbcredentials 0 0
/dev/sda2 /home/storage ext4 errors=remount-ro,noatime 0 1
/dev/sdb1 /home/share ext4 errors=remount-ro,noatime 0 1


I added the last three lines. The ones starting with UUID and LABEL were already there.

I tested my fstab file by running
Code: Select all
mount -a
, before the reboot. It did not display any errors.

I also tried adding the line to rc.local. Sadly, no new file was created, so I guess the script did not run.
the_swissionary
 
Posts: 3
Joined: Sat Sep 08, 2018 9:07 pm
languages_spoken: english

Re: After Reboot: XU4 services don't start; ping works; plea

Unread postby mad_ady » Sun Sep 09, 2018 2:23 am

Try commenting out the 3 lines and reboot. See if it makes any difference
User avatar
mad_ady
 
Posts: 4707
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: After Reboot: XU4 services don't start; ping works; plea

Unread postby the_swissionary » Sun Sep 09, 2018 3:25 am

WOW! thanks a lot! it indeed made a difference!

Commenting all of them out made my odroid boot again.
then, I uncommented one by one and discovered that the line:
Code: Select all
/dev/sdb1 /home/share ext4 errors=remount-ro,noatime 0 1


seemed to cause the trouble.

I then ended up re-doing my fstab file, but using UUIDs instead of the /dev-names.

This seemed to do the trick. (although I am not sure why exactly)

Using UUIDs, my odroid reboots and all the needed services come back as I hope they would.
the_swissionary
 
Posts: 3
Joined: Sat Sep 08, 2018 9:07 pm
languages_spoken: english


Return to Issues

Who is online

Users browsing this forum: No registered users and 2 guests