Openhabian 1.6: migrating to OH3 fails

  • Platform information:
    • Hardware: _RPI4 with 4GB
    • OS: new initial setup with openhabian 1.6
    • openHAB version: 2.5.10 after initial install (demo-setup)

then i selected the Masterbranch in openhabian-config (for the tool itself). After selecting the migration to OH3 i get the following log on the screen:

openHABian configuration tool successfully updated.

Visit the development repository for more details: https://github.com/openhab/openhabian
The tool will now restart to load the updates… OK
2020-10-30_16:06:41_CET [openHABian] Checking for root privileges… OK
2020-10-30_16:06:41_CET [openHABian] Disabling IPv6… cp: cannot create regular file ‘/etc/apt/apt.conf/S90force-ipv4’: No such file or directory
OK
2020-10-30_16:06:41_CET [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
2020-10-30_16:06:41_CET [openHABian] openHABian configuration tool version: [master]v1.6-876(1aafe95)
2020-10-30_16:06:41_CET [openHABian] Checking for changes in origin branch master… Updates available… UPDATING
2020-10-30_16:06:49_CET [openHABian] Updating myself… OK - Commit history (oldest to newest):

c4d04ad - fix timer frequency description (4 weeks ago) E
includes/sdrawcopy.timer | 4 ++±
1 file changed, 3 insertions(+), 1 deletion(-)

7ee1c09 - fix timer frequency description (4 weeks ago) E
includes/sdrsync.timer | 4 ++±
1 file changed, 3 insertions(+), 1 deletion(-)

c25239d - mention systemd timers for sync (4 weeks ago) E
docs/openhabian.md | 1 +
1 file changed, 1 insertion(+)

21daa0f - Update openhabian.md (3 weeks ago) E
docs/openhabian.md | 5 +++±
1 file changed, 4 insertions(+), 1 deletion(-)

56e5dcd - Allow image build as non-privileged user, closes #1172 (#1179) (3 weeks ago) E
build.bash | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)

9b47dbb - Update CONTRIBUTING.md (3 weeks ago) E
CONTRIBUTING.md | 13 +++++++±----
1 file changed, 8 insertions(+), 5 deletions(-)

4372bfa - Update CONTRIBUTING.md (3 weeks ago) E
CONTRIBUTING.md | 13 +++++++++±–
1 file changed, 10 insertions(+), 3 deletions(-)

774f360 - Update CONTRIBUTING.md (3 weeks ago) E
CONTRIBUTING.md | 4 +±-
1 file changed, 2 insertions(+), 2 deletions(-)

7256315 - Update CONTRIBUTING.md (3 weeks ago) E
CONTRIBUTING.md | 5 ++±-
1 file changed, 3 insertions(+), 2 deletions(-)

dd6bff6 - Update CONTRIBUTING.md (3 weeks ago) E
CONTRIBUTING.md | 9 +++++++++
1 file changed, 9 insertions(+)

c1267ef - Update CONTRIBUTING.md (3 weeks ago) E
CONTRIBUTING.md | 11 +++++++++±
1 file changed, 10 insertions(+), 1 deletion(-)

4cb5c20 - Update armv6l NodeJS link (3 weeks ago) E
functions/nodejs-apps.bash | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)

d06057b - tell RPI4 8GB users to try the 64bit image (2 weeks ago) E
functions/zram.bash | 4 +±-
1 file changed, 2 insertions(+), 2 deletions(-)

75b26fc - Use the configured path to expire amanda_data backups (#1185) (2 weeks ago) E
includes/amandaBackupDB.service-template | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)

2ebb5d6 - Changed cron to systemd.timer (#1186) (2 weeks ago) E
docs/openhabian-amanda.md | 6 ++±–
1 file changed, 3 insertions(+), 3 deletions(-)

098715e - Installation of knxd now uses knxd package from standard package repository (2 weeks ago) N
functions/packages.bash | 43 ++++++++++++++++++++++++++++++++±---------
functions/packages.bats | 14 ++++++++++++++
2 files changed, 47 insertions(+), 10 deletions(-)

ad7d157 - [skip ci] rewording exim inputs (13 days ago) E
functions/packages.bash | 6 ++±–
1 file changed, 3 insertions(+), 3 deletions(-)

648cb13 - Add a more specific description to amanda timers (#1197) (12 days ago) E
includes/amandaBackupDB.service-template | 2 ±
includes/amdump.service-template | 2 ±
2 files changed, 2 insertions(+), 2 deletions(-)

915e889 - add CM4 support (#1198) (11 days ago) E
build-image/openhabian.conf | 2 ±
build-image/openhabian.pi-raspios32.conf | 2 ±
build-image/openhabian.pi-raspios64beta.conf | 2 ±
functions/helpers.bash | 13 ++++++++++±-
openhabian.conf.dist | 2 ±
5 files changed, 15 insertions(+), 6 deletions(-)

87b0eba - Tailscale VPN (#1174) (8 days ago) E
NEWS.md | 30 +++++++++++++++++±-----------
build-image/openhabian.conf | 5 +++++
build-image/openhabian.pi-raspios32.conf | 5 +++++
build-image/openhabian.pi-raspios64beta.conf | 5 +++++
docs/NEWSLOG.md | 19 +++++++++++++++++±
docs/openhabian.md | 14 +++++++++++±-
functions/{passwords.bash => auth.bash} | 35 +++++++++++++++++++++++++++++++±–
functions/menu.bash | 18 ++++++++++±------
functions/vpn.bash | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++±-------------
openhabian-setup.sh | 1 +
openhabian.conf.dist | 5 +++++
11 files changed, 204 insertions(+), 39 deletions(-)

6d9e931 - run add_admin_ssh_key() independent of Tailscale (7 days ago) E
openhabian-setup.sh | 3 +±
1 file changed, 2 insertions(+), 1 deletion(-)

597d9e8 - added CM4 revision ID (5 days ago) E
functions/helpers.bash | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)

43134ed - Fix FireMotD generation (3 days ago) E
functions/packages.bash | 4 +±-
1 file changed, 2 insertions(+), 2 deletions(-)

02a0c55 - Update admin ssh key function (3 days ago) E
functions/auth.bash | 14 +++++++±-----
1 file changed, 8 insertions(+), 6 deletions(-)

43275b7 - fix getting root partition from cmdline.txt (3 days ago) E
functions/ext-storage.bash | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)

a1fb64a - [OH3] Migrate to either OH3 or OH2 incl. existing files on disk (#1187) (3 days ago) E
NEWS.md | 8 +++++++
README.md | 11 ++++++±-
build.bash | 2 ±
docs/NEWSLOG.md | 8 +++++++
docs/openhabian.md | 161 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++±----------------------------------------------------
functions/backup.bash | 29 +++++++++++±----------
functions/menu.bash | 26 +++++++++++±--------
functions/openhab.bash | 73 ++++++++++++++++++++++++++++++++++++±-------------------
functions/openhabian.bash | 113 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++±-------
openhabian-setup.sh | 2 ±
10 files changed, 301 insertions(+), 132 deletions(-)

2d74270 - typo (2 days ago) E
docs/NEWSLOG.md | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)

c407a76 - typo (2 days ago) E
NEWS.md | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)

bde9681 - safety check on /srv migration (2 days ago) E
functions/openhabian.bash | 16 ++++++++±------
1 file changed, 9 insertions(+), 7 deletions(-)

ad10831 - Update openhabian-DEBUG.md (2 days ago) E
docs/openhabian-DEBUG.md | 53 ++++++++++++++++++++++++++++±-----------------------
1 file changed, 29 insertions(+), 24 deletions(-)

ffdc840 - fix SSH keys if getting adminkeyurl provides no key (#1216) (6 hours ago) E
functions/auth.bash | 7 +++±–
1 file changed, 4 insertions(+), 3 deletions(-)

b703142 - Fix FireMotD (#1218) (4 hours ago) E
functions/packages.bash | 7 +++±–
includes/firemotd.service | 1 +
2 files changed, 5 insertions(+), 3 deletions(-)

openHABian configuration tool successfully updated.
Visit the development repository for more details: https://github.com/openhab/openhabian
The tool will now restart to load the updates… OK
2020-10-30_16:06:59_CET [openHABian] Checking for root privileges… OK
2020-10-30_16:06:59_CET [openHABian] Disabling IPv6… cp: cannot create regular file ‘/etc/apt/apt.conf/S90force-ipv4’: No such file or directory
OK
2020-10-30_16:06:59_CET [openHABian] Loading configuration file ‘/etc/openhabian.conf’… OK
2020-10-30_16:06:59_CET [openHABian] openHABian configuration tool version: [master]v1.6-908(b703142)
2020-10-30_16:06:59_CET [openHABian] Checking for changes in origin branch master… OK
2020-10-30_16:07:05_CET [openHABian] Switching to branch master… OK
2020-10-30_16:07:21_CET [openHABian] Updating Linux package information… OK
2020-10-30_16:07:21_CET [openHABian] Preparing openHAB installation… OK
2020-10-30_16:07:26_CET [openHABian] Beginning openHAB backup… 2020-10-30_16:07:29_CET [openHABian] Creating openHAB backup… OK
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
openhab2 openhab2-addons
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 294 MB disk space will be freed.
(Reading database … 52881 files and directories currently installed.)
Removing openhab2-addons (2.5.10-1) …
Removing openhab2 (2.5.10-1) …
Processing triggers for systemd (241-7~deb10u4+rpi1) …
Updating FireMotD available updates count …
2020-10-30_16:08:05_CET [openHABian] WARNING: We were unable to detect Java 11 on your system so we will install the openHABian default (Zulu 11).2020-10-30_16:08:07_CET [openHABian] Installing Java Zulu prerequisites (libc, libstdc++, zlib1g)… OK
2020-10-30_16:08:07_CET [openHABian] Downloading Java Zulu 11 32-Bit OpenJDK… OK
2020-10-30_16:08:50_CET [openHABian] Installing Java Zulu 11 32-Bit OpenJDK… OK
2020-10-30_16:08:51_CET [openHABian] Installing Java Zulu CEK to enable unlimited cipher strength… OK
2020-10-30_16:08:52_CET [openHABian] Installing openHAB… 2020-10-30_16:08:52_CET [openHABian] Beginning install of latest openHAB3 milestone release (testing)… OK
2020-10-30_16:08:56_CET [openHABian] Adding required keys to apt… OK
2020-10-30_16:08:58_CET [openHABian] Installing selected openHAB version…

That holds on and nothing happens anymore. Opening up an additional terminal session is possible.
Can anyone help?
Christian

Not sure it will help but just doing this on a pi4 and it has taken nearly half an hour to get past that stage, now started installing so I guess its a slow process.

In the first place, follow the posting rules please. Use code fences.

Then read and follow the openHABian debug guide to provide a debug level log.

It was my intention to use code fences, but unfortunately I did not found how exactly to use them (obviously the editor gives no help on that).

Following the debug guide does not really help. For my understanding it mainly covers the initial boot, and here everything is fine. Later on when trying to do the migration to OH3 the error occurs. For my point of view the debug guide gives no hint on that

So as-obviously the editor isn’t the place to look for :roll_eyes: Read number 12 of the link I gave.

For my understanding it mainly covers the initial boot, and here everything is fine. Later on when trying to do the migration to OH3 the error occurs. For my point of view the debug guide gives no hint on that.

Are you guys reading ?
The paragraph I linked to above reads:


You can put openHABian into a more verbose debug level at any time after the very first installation run: edit the config file /etc/openhabian.conf using the editor of your choice (use nano if you have no idea) and change the debugmode parameter to either on or maximum right away (default is off). Specifying maximum is usually your best choice as it will have openhabian-config show every single command it executes so you might spot the problem right away. If you open an issue, always provide the maintainers with a logfile at maximum detail level.