Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnf gpg check fails on version 4.0.4-1 #226

Closed
walkerprog opened this issue Nov 4, 2023 · 6 comments
Closed

dnf gpg check fails on version 4.0.4-1 #226

walkerprog opened this issue Nov 4, 2023 · 6 comments

Comments

@walkerprog
Copy link

walkerprog commented Nov 4, 2023

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 <[email protected]>"
 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
Copy link

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 kaikreuzer transferred this issue from openhab/openhab-distro Nov 6, 2023
@kaikreuzer
Copy link
Member

@danieldemus
Copy link

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
Copy link
Member

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
Copy link
Author

@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
Copy link
Member

Excellent, glad to hear!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants