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

Failed to stop service 'sonatype-repository-build-service'. #866

Open
overpas opened this issue Nov 2, 2024 · 2 comments
Open

Failed to stop service 'sonatype-repository-build-service'. #866

overpas opened this issue Nov 2, 2024 · 2 comments

Comments

@overpas
Copy link

overpas commented Nov 2, 2024

I'm trying to publish a kotlin multplatform library using the following guide with the 0.30.0 plugin version. I'm using Gradle 8.10.2, Kotlin 2.1.0-Beta1, AGP 8.7.0 which are listed as compatible in 0.30.0 release notes. The gradle config I'm using.
However, when launched from github actions, the build fails with the following error:

Failed to stop service 'sonatype-repository-build-service'.
> Cannot query the value of this property because it has no value available.

The issue is likely happening because of incorrect PGP configuration, as most people with similar error pinpoint. But I still have no idea how to fix this and how to debug which step is going wrong. The GPG version on the github runner is 2.4.5.1.
I do the following:

  1. generate the key with gpg --full-gen-key
  2. 1 - RSA and RSA
  3. length: 4096
  4. valid: 5y (i've tried unexpiring keys as well)
  5. comment:
  6. confirm 'O'
  7. enter a passphrase
  8. gpg --keyserver keyserver.ubuntu.com --send-keys <MY_KEY_ID>, where <MY_KEY_ID> is the created public key ID. Also, I additionally push to it keys.openpgp.org server as well
  9. gpg --keyserver hkp://keyserver.ubuntu.com --search-key <[email protected]> to confirm that the key is listed there
  10. gpg --armor --export-secret-keys <MY_KEY_ID> | pbcopy
  11. paste it to github secrets. It start with -----BEGIN PGP PRIVATE KEY BLOCK----- and ends with -----END PGP PRIVATE KEY BLOCK-----
  12. SIGNING_KEY_ID = <MY_KEY_ID_LAST_8_CHARS>
  13. then the this workflow is run on github.

Where, on what step could it be going wrong?

@LotuxPunk
Copy link

Same problem over here, did you have any solution / information about it ?

@mejdi14
Copy link

mejdi14 commented Dec 9, 2024

anyone have a solution for this please?

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