openhab / openhab-linuxpkg

Repo for Linux packages
Eclipse Public License 2.0
18 stars 33 forks source link

dnf gpg check fails on version 4.0.4-1 #226

Closed walkerprog closed 7 months ago

walkerprog commented 8 months ago

system: Red Hat Enterprise Linux release 9.2 (Plow) openhab-version installed: 4.0.3-1 openhab-version that should be updated to: 4.0.4-1 imported GPG-Key-fingerprint: EDB7 D030 4E2F CAF6 29DF 1163 0757 21F6 A224 060A

actions to reproduce: dnf clean all dnf upgrade

error:
==========================================================================================
 Package                 Architecture    Version            Repository               Size
==========================================================================================
Upgrading:
 openhab                 noarch          4.0.4-1            openHAB-Stable           99 M
 openhab-addons          noarch          4.0.4-1            openHAB-Stable          375 M

Transaction Summary
==========================================================================================
Upgrade  2 Packages

Total download size: 474 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): openhab-4.0.4-1.noarch.rpm                                   8.5 MB/s |  99 MB     00:11
(2/2): openhab-addons-4.0.4-1.noarch.rpm                     8.6 MB/s | 375 MB     00:43
-------------------------------------------------------------------------------------------
Total                                                                                   11 MB/s | 474 MB     00:43
openHAB Stable                                                                    5.0 kB/s | 3.1 kB     00:00
Importing GPG key 0xA224060A:
 Userid     : "openHAB Bintray Repositories <owner@openhab.org>"
 Fingerprint: EDB7 D030 4E2F CAF6 29DF 1163 0757 21F6 A224 060A
 From       : https://openhab.jfrog.io/artifactory/api/gpg/key/public
Is this ok [y/N]: y
Key imported successfully
Problem opening package openhab-4.0.4-1.noarch.rpm
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED

do I miss something or am I the only one?

danieldemus commented 7 months ago

You are not the only one. I assume the signing certficate was rotated on the build host, but not updated at https://openhab.jfrog.io/artifactory/api/gpg/key/public.

kaikreuzer commented 7 months ago

@BClark09 Did I do anything wrong with https://ci.openhab.org/view/Release%20Jobs/job/openhab-linuxpkg-release/28/console?

danieldemus commented 7 months ago

It could very well be the gradle plugin (nebula.ospackage) you use to build the rpm or the actual builder (redline) the plugin uses isn't up-to-date with the rpm specification. I notice the builder hasn't been updated since 2021. This issue on the gradle plugin mentions rerunning the build, which only fails once in while. Not a fantastic solution, but maybe worth a try?

kaikreuzer commented 7 months ago

Thanks for your analysis, @danieldemus. Yes, rerunning the build is definitely an option - I just did so with https://ci.openhab.org/view/Release%20Jobs/job/openhab-linuxpkg-release/29/. Could you check if this solves the issue for the 4.0.4 release?

walkerprog commented 7 months ago

@kaikreuzer

works on my system now, 4.0.4-2 installed without any problems thank you very much

==========================================================================================================================================================================================================
 Package                                             Architecture                                Version                                        Repository                                           Size
==========================================================================================================================================================================================================
Upgrading:
 openhab                                             noarch                                      4.0.4-2                                        openHAB-Stable                                       99 M
 openhab-addons                                      noarch                                      4.0.4-2                                        openHAB-Stable                                      375 M

Transaction Summary
==========================================================================================================================================================================================================
Upgrade  2 Packages

Total download size: 474 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): openhab-4.0.4-2.noarch.rpm                                                                                                                                         6.9 MB/s |  99 MB     00:14
(2/2): openhab-addons-4.0.4-2.noarch.rpm                                                                                                                                   10 MB/s | 375 MB     00:36
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                      13 MB/s | 474 MB     00:36
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                  1/1
  Running scriptlet: openhab-4.0.4-2.noarch                                                                                                                                                           1/4
  Upgrading        : openhab-4.0.4-2.noarch                                                                                                                                                           1/4
  Running scriptlet: openhab-4.0.4-2.noarch                                                                                                                                                           1/4

[openHAB] Running JSON Database upgrade tool (${OPENHAB_RUNTIME}/bin/upgradetool.jar).
[main] INFO org.openhab.core.tools.internal.Upgrader - Already executed 'itemCopyUnitToMetadata' on 2023-07-24T13:51:19.502011256+02:00[Europe/Berlin]. Use '--force'  to execute it again.
[main] INFO org.openhab.core.tools.internal.Upgrader - Already executed 'linkUpgradeJsProfile' on 2023-07-24T13:51:19.639901453+02:00[Europe/Berlin]. Use '--force'  to execute it again.
[openHAB] JSON Database upgrade completed.

  Upgrading        : openhab-addons-4.0.4-2.noarch                                                                                                                                                    2/4
  Cleanup          : openhab-addons-4.0.3-1.noarch                                                                                                                                                    3/4
  Running scriptlet: openhab-4.0.3-1.noarch                                                                                                                                                           4/4
  Cleanup          : openhab-4.0.3-1.noarch                                                                                                                                                           4/4
  Running scriptlet: openhab-4.0.3-1.noarch                                                                                                                                                           4/4
  Running scriptlet: openhab-4.0.4-2.noarch                                                                                                                                                           4/4
  Running scriptlet: openhab-4.0.3-1.noarch                                                                                                                                                           4/4
  Verifying        : openhab-addons-4.0.4-2.noarch                                                                                                                                                    1/4
  Verifying        : openhab-addons-4.0.3-1.noarch                                                                                                                                                    2/4
  Verifying        : openhab-4.0.4-2.noarch                                                                                                                                                           3/4
  Verifying        : openhab-4.0.3-1.noarch                                                                                                                                                           4/4
Installed products updated.

Upgraded:
  openhab-4.0.4-2.noarch                                                                           openhab-addons-4.0.4-2.noarch

Complete!
kaikreuzer commented 7 months ago

Excellent, glad to hear!