RPI only reboots after unplugging the network cable

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jake
Posts: 751
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

RPI only reboots after unplugging the network cable

Post by jake »

Sorry for bringing this generic question up, but I hope to have some credit for help on this one:

Desrcibed symptoms occurred both with a RPI 1B as with a RPI 3

When I want to reboot (sudo reboot now), the SSH service is killed, http service with Domoticz killed, but then the device hangs. I can still ping it from another device, but I can't access it anymore. Only when I unplug the network cable, the RPI will reboot and come up correctly afterwards, although sometimes I have to unplug the cable once more during boot to make it accessible through the network again..

I have no clue where to look for causes. I connected a monitor once and than I saw services shutting down followed by just sitting on a shutting down process. The next time I tried it, it was a different service name, so that wasn't easy to find out.

What can I do to prevent this from happening? I can't reboot from remote, which can be quite a pity.

With a fresh install it works fine, but at some point after adding more stuff to it, this behaviour starts, but I can't see what addition triggers this.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: RPI only reboots after unplugging the network cable

Post by waaren »

jake wrote: Monday 12 November 2018 23:39 Described symptoms occurred both with a RPI 1B as with a RPI 3

When I want to reboot (sudo reboot now), the SSH service is killed, http service with Domoticz killed, but then the device hangs. I can still ping it from another device, but I can't access it anymore. Only when I unplug the network cable, the RPI will reboot and come up correctly afterwards, although sometimes I have to unplug the cable once more during boot to make it accessible through the network again..
What OS do you use ?
What additional packages and drivers ?
Which hardware is connected ?
Do you experience the same when using sudo reboot -f ?

So many questions and so few answers... :D
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jake
Posts: 751
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: RPI only reboots after unplugging the network cable

Post by jake »


waaren wrote:
jake wrote: Monday 12 November 2018 23:39 Described symptoms occurred both with a RPI 1B as with a RPI 3
...
What OS do you use ?
What additional packages and drivers ?
Which hardware is connected ?
Do you experience the same when using sudo reboot -f ?

So many questions and so few answers... :D
Sorry, sorry, sorry you're absolutely right!

I've had the descrbed issue with different clean installs:
OS Jessie on a RPI 1b and on a RPI 3
OS Stretch only on the RPI 3 (distribution upgrade from Jessie)

During installation of the described packages, all goes well with inbetween reboots, so all looks OK. All of a sudden, the RPI hangs again during reboot and then I don't have a clear idea which package or setting did the trick

Defined static IP-address in /etc/dhcpcd.conf

Additional packages:
Python
Pi-Hole
Fail2ban
Mosquitto MQTT (only on the RPI 3, I had the issue before that as well)
PHP script that receives information from my solar panel gateway (enecsys) and sends it to pvoutput.org
Samba
OTGW, OT-monitor
Supervisor
Nodejs, running 1 script that makes it possible to run OTGW both with OT-monitor and Domoticz in parallel

I have been looking for log files during shutdown to see where the RPI stops, but I can't find any.

User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: RPI only reboots after unplugging the network cable

Post by waaren »

jake wrote: Tuesday 13 November 2018 22:31 I have been looking for log files during shutdown to see where the RPI stops, but I can't find any.
I am by no means a Linux expert but these files could be of interest here:

/var/log/syslog
/var/log/messages
/var/log/apcupsd.events
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest