CubaMAN
(Markus Koenig)
February 20, 2021, 2:11pm
1
Hello,
today I tried to upgrade openHAB to version 3 using openHABian. When I execute “03 I Install openHAB” there’s a message popping up after a few seconds: “There was an error or interruption during the execution of”.
I set the debug mode to maximum in the openhabian.conf and copied the terminal lines (one) before and after the error.
openHABian Configuration Tool [stable]patchday-20210119-1116(5e807c0)
openHAB 2.5.12-1
@mstormi How can I fix that error?
Cheers Markus
Get:8 https://dl.bintray.com/openhab/apt-repo2 stable Release [6,051 B]
Err:3 http://repo.mosquitto.org/debian jessie InRelease
The following signatures were invalid: EXPKEYSIG 61611AE430993623 Mosquitto Apt Repository <repo@mosquitto.org>
Reading package lists... Done
W: GPG error: http://repo.mosquitto.org/debian jessie InRelease: The following signatures were invalid: EXPKEYSIG 61611AE430993623 Mosquitto Apt Repository <repo@mosquitto.org>
E: The repository 'http://repo.mosquitto.org/debian jessie InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
+ return 100
+ echo 'FAILED (update apt lists)'
FAILED (update apt lists)
+ return 1
+ echo 'FAILED (install openHAB)'
FAILED (install openHAB)
+ cond_redirect systemctl start zram-config.service
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl start zram-config.service \033[39;49;00m'
$ systemctl start zram-config.service
+ systemctl start zram-config.service
Failed to start zram-config.service: Unit zram-config.service not found.
+ return 5
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n "03 | Install openHAB"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md how to proceed.' 14 80
+ return 0
mstormi
(Markus Storm)
February 20, 2021, 3:19pm
2
Mind the community guideline in the first place: you must not ping people. You are annoying them.
Other than that, as you don’t have ZRAM installed you must have an ancient setup or removed it. Try installing ZRAM via menu before attempting upgrade.
How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community
Wolfgang_S
(Wolfgang_S)
February 20, 2021, 4:06pm
3
Your are (still) on jessie ? Think about upgrading to buster.
I also would make sure that there is no warning/error message because of missing GPG keys.
CubaMAN
(Markus Koenig)
February 20, 2021, 8:29pm
4
I’m so sorry. This was not my intention.
Thanks. I will install ZRAM. You are absolutely right, my openHAB setup is a few years old but I always upgraded it.
CubaMAN
(Markus Koenig)
February 20, 2021, 8:33pm
5
Actually I don’t understand why the log says “jessie”. Last year I upgraded to “buster”. I think that’s the most recent one.
###############################################################################
################# openHABianPi ################################################
###############################################################################
Release = Raspbian GNU/Linux 10 (buster)
Kernel = Linux 4.9.35-v7+
Platform = Raspberry Pi 3 Model B Rev 1.2
CubaMAN
(Markus Koenig)
February 20, 2021, 8:47pm
6
ZRAM is installed now. The error “Failed to start ram-config.service” disappeared
but still no luck with upgrading to openHAB3.
+ apt-get update
Get:1 http://archive.raspberrypi.org/debian jessie InRelease [22.9 kB]
Ign:2 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Hit:3 http://mirrordirector.raspbian.org/raspbian buster InRelease
Get:4 http://repo.mosquitto.org/debian jessie InRelease [11.0 kB]
Hit:5 https://deb.nodesource.com/node_7.x jessie InRelease
Get:6 https://dl.bintray.com/openhab/apt-repo2 stable Release [6,051 B]
Ign:7 http://repos.azulsystems.com/debian stable InRelease
Hit:8 http://repos.azulsystems.com/debian stable Release
Err:4 http://repo.mosquitto.org/debian jessie InRelease
The following signatures were invalid: EXPKEYSIG 61611AE430993623 Mosquitto Apt Repository <repo@mosquitto.org>
Reading package lists... Done
W: GPG error: http://repo.mosquitto.org/debian jessie InRelease: The following signatures were invalid: EXPKEYSIG 61611AE430993623 Mosquitto Apt Repository <repo@mosquitto.org>
E: The repository 'http://repo.mosquitto.org/debian jessie InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
+ return 100
+ echo 'FAILED (update apt lists)'
FAILED (update apt lists)
+ return 1
+ echo 'FAILED (install openHAB)'
FAILED (install openHAB)
+ cond_redirect systemctl start zram-config.service
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ systemctl start zram-config.service \033[39;49;00m'
$ systemctl start zram-config.service
+ systemctl start zram-config.service
+ return 0
+ return 1
+ '[' 1 -ne 0 ']'
+ whiptail --msgbox 'There was an error or interruption during the execution of:\n "03 | Install openHAB"\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or https://github.com/openhab/openhabian/blob/master/docs/openhabian-DEBUG.md how to proceed.' 14 80
CubaMAN
(Markus Koenig)
February 20, 2021, 9:22pm
7
Many thanks, Wolfgang. The hint with the expired GPG key was the solution.
I got a new GPG key using:
wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
sudo apt-key add mosquitto-repo.gpg.key
1 Like
Wolfgang_S
(Wolfgang_S)
February 21, 2021, 10:34am
8
So
lsb_release -a
says that you are on buster ?
I am wondering why kernel then is a 4.9.X and not 4.19.X version and parts of your package repositories point to jessie instead of buster.
CubaMAN
(Markus Koenig)
February 21, 2021, 10:44am
9
I’m wondering, too.
It says:
|Distributor ID:|Raspbian|
|---|---|
|Description:|Raspbian GNU/Linux 10 (buster)|
|Release:|10|
|Codename:|buster|
and
uname -srm
shows:
Linux 4.9.35-v7+ armv7l
I think there went something wrong with the upgrade to buster.
mstormi
(Markus Storm)
February 21, 2021, 4:30pm
10
Your “jessie” is in the apt repo file. Those don’t get upgraded neither by OH nor by Linux.