- Platform information:
- Hardware: RPI4 4GB
- OS: Openhabian 1.6.2
- openHAB version: 3.0.0
So, tonight I tried to update openhabian to the newer version (1.6.3).
I SSHed into the pi, launched openhabian-config
, it required to be updated so I let it update and then I selected menu option 02 Upgrade System and launched the upgrade.
The openhabian-config tool got closed and I went to bed.
When I woke up this morning I noticed that the SSH connection was closed, so i checked on the web gui, but none of the web-guis was working (checked ports 80, 8080, 9001), they all reported as 404.
So I opened another SSH session to check what was going on.
I immediately noticed something was wrong:
-The first row, where you usually see the IP Address, said that there was a problem retrieving the IP (but I was able to connect via ssh using the usual IP i set for the PI on my DHCP server)
-The openhab version was reported as 3.0.1, so it seemed the upgrade went well, but the uptime indicator showed a few days (shouldn’t the upgrade reboot the pi?).
So, at first I thought that rebooting the pi would be a good idea.
But when I tried I got an error message saying that apt-get process was preventing it to reboot, so that looked like a clear indicator that the upgrade didn’t went through.
So, at first I looked for a /opt/openHABian-install-failed
file, but there was only a /opt/openHABian-install-success
file which was created when I first installed openhabian.
I then looked for logs in /boot/first-boot.log
but of course there were only entries from the day I installed openhabian for the first time.
I then tried to launch the upgrade process again from openhabian-config
, but I got an error.
I checked /var/log/apt/term.log
and noticed there were a few lines saying that a package (can’t remember which one) needed a confirmation in order to proceed with the installation.
The weird thing is that the first line of the log showed that apt-get
was run with the --yes
parameter, so it shouldn’t have been asking for a confirmation.
So, at this point I didn’t really know what to do, I didn’t know how to resume the update and so I did something which at this point I believe was a stupid move: sudo reboot
.
From that point, I wasn’t able to connect to the PI anymore.
My router keeps showing it as disconnected and of course I get no response if I try to ping it.
I even tried a straight connection to my laptop via ethernet, but nothing.
I ran nmap, just in case it got another ip for some weird reason, but it is not connected.
So, now I’m here asking for some help.
Is there anything I can do besides flashing the sd card with a fresh openhabian image?
I have done a backup before updating, but the backup is on the openhabian partition, so I have to understand how to retrieve it in case the only solution is to start from scratch.
If I mount the SD card on my mac I only see a boot volume. Guess I will need to try on a linux VM.
Any recommendation in order to extract the backup file (and maybe some log files too)?
Thank you