This gives me
E: Invalid operation uninstall
I then did
openhabian@openhabian:~ $ sudo systemctl stop openhab.service
openhabian@openhabian:~ $ sudo apt remove openhab
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
openhab openhab-addons
0 upgraded, 0 newly installed, 2 to remove and 93 not upgraded.
After this operation, 712 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
openhabian@openhabian:~ $
This seemed wrong since only 2 items would be removed.
So I tried:
sudo apt autoremove openhab
and it should identical results so I said yes and got
openhabian@openhabian:~ $ sudo apt autoremove openhab
[sudo] password for openhabian:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
openhab openhab-addons
0 upgraded, 0 newly installed, 2 to remove and 93 not upgraded.
After this operation, 712 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 98926 files and directories currently installed.)
Removing openhab-addons (5.0.0-1) ...
Removing ...
dpkg: warning: while removing openhab, unable to remove directory '/var/lib/openhab/persistence': Device or resource busy - directory may be a mount point?
Updating FireMotD available updates count ...
openhabian@openhabian:~ $
The dpkg: warning didnβt concern me. I probably should have stopped OH.
Before proceeding I decided to do a raw copy backup. This was disaster. i got hundreds of lines similar to:
JBD2: Invalid checksum recovering data block 548603 in log
JBD2: Invalid checksum recovering data block 1572865 in log
JBD2: Invalid checksum recovering data block 524667 in log
JBD2: Invalid checksum recovering data block 1 in log
At the end of the backup it said everything was clean so I proceeded with upgrade (via sudo openhabian-config > 02 | Upgrade System). This didnβt work as I wasnβt able to access the new system at the IP address I assigned to it nor the via hostname I assigned. ifconfig looks OK.
openhabian-config runs and appears to act normally and reports correct IP and terminal shows the following:
## Ip = 192.168.1.120
## Release = Debian GNU/Linux 12 (bookworm)
## Kernel = Linux 6.12.25+rpt-rpi-v8
## Platform = BCM43455 37.4MHz Raspberry Pi 3+-0190
## Uptime = 0 day(s). 00:04:22
## CPU Usage = 2.15% avg over 4 cpu(s) ( core(s) x - socket(s))
## CPU Load = 1m: 0.00, 5m: 0.01, 15m: 0.00
## Memory = Free: 3.39GB (90%), Used: 0.41GB (10%), Total: 3.75GB
## Swap = Free: 2.99GB (100%), Used: 0.00GB (0%), Total: 2.99GB
## Root = Free: 22.19GB (81%), Used: 5.03GB (19%), Total: 28.70GB
## Updates = 0 apt updates available.
## Sessions = 1 session(s)
## Processes = 160 running processes of 4194304 maximum processes
This has been a muilt-day project and Iβve had enough for today. Iβve got some new SC cards arriving tomorrow (probably late). Next Iβll try a fresh install as you outlined on 10 August.
You said βThe backup cannot be a full backupβ. I plan to use a configuration backup but will be sure sudo systemctl stop openhab.service before restoring and clear the cache before restarting.
Iβll also need to remember to remove the CM15(X10) binding from the new system if itβs still there as well as the X10 things and items and disable the non-X10 rules from the old system. I wouldnβt want the same rules running on both machines.