Skip to main content
Skip to content

Upgrade package fails signing key verification

GitHub has rotated the GPG key that signs GitHub Enterprise Server upgrade packages. If your GitHub Enterprise Server instance still trusts only the previous key, it cannot verify packages signed with the new key. As a result, upgrades fail.

Symptoms

When you run ghe-upgrade to install an upgrade package, the command displays the following line and a progress bar.

*** verifying upgrade package signature...

After the progress bar reaches 100%, the command returns to the prompt without an error message. The upgrade does not start.

Less commonly, signature verification fails with the following error.

Error: The file provided is not a valid GitHub Enterprise Server package.

Your instance otherwise continues to work normally. The problem only appears when you install an upgrade.

Causes

GitHub rotated the GPG key used to sign GitHub Enterprise Server upgrade packages. New releases are signed only with the new key. If your GitHub Enterprise Server instance still trusts only the previous key, it cannot verify these packages.

Confirming the problem

These symptoms can have other causes. To confirm the problem, check which signing key your instance trusts. Follow the steps in Verifying the current signing key.

The command in that section lists the keys in the keyring of the user who runs it. Run the command as the admin user and again with sudo. If you use high availability or clustering, check every node.

The new signing key has the fingerprint 33858AE8CAFFDEF0D37F80DD6BFE708AC5BA4808. If any of these keyrings doesn't contain this key, your instance is affected.

Resolving the problem

Rotate the signing key using the existing procedure. See Rotating the signing key for upgrade packages. Before you start, review its considerations for unsupported versions. Afterward, follow its guidance on what to expect after rotating the key.

Contacting GitHub Support

Contact GitHub Support rather than continuing if any of the following apply. For more information, see Creating a support ticket.

  • You need to revert a key rotation.
  • The upgrade still fails after following the rotation article.
  • You are unsure whether to rotate the key or how to follow the procedure.

Further reading