Skip to content

How to fix "Signing key cannot be empty"? #8011

Discussion options

You must be logged in to vote

Signing key cannot be empty

This error means something is wrong with your _APP_VCS_GITHUB_PRIVATE_KEY environment variable. Please refer to the docs for what to do.

For a quick way to validate the _APP_VCS_GITHUB_PRIVATE_KEY environment variable, you can run this:

CODE='
if (openssl_pkey_get_private(getenv("_APP_VCS_GITHUB_PRIVATE_KEY")) === false) {
    echo "Invalid Private Key\n";
    exit(1);
} else {
    echo "Valid Private Key\n";
    exit(0);
}'

docker compose exec appwrite php -r "$CODE"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VincenzoKoestler
Comment options

Answer selected by VincenzoKoestler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
product / functions Fixes and upgrades for the Appwrite Functions. product / self-hosted Issues only found when self-hosting Appwrite
2 participants
Converted from issue

This discussion was converted from issue #8010 on April 23, 2024 22:37.