How to fix "Signing key cannot be empty"? #8011
-
👟 Reproduction stepsI'm using a self-hosted docker instance of Appwrite, with the provided compose file. After setting up the github integration and connecting to my Github app, the callback returns the following error:
👍 Expected behaviorGithub app should connect successfully 👎 Actual BehaviorShows the given error. The logs state "singing key cannot be empty"
All ENVs have been checked for correctness, OpenSSL key is stored as ENV as well. I have found someone with a similar issue but he/she were not able to solve it yet. As far as I can see no github bug report was created (https://discord.com/channels/564160730845151244/1230247028450136148). 🎲 Appwrite versionVersion 1.5.x 💻 Operating systemLinux 🧱 Your EnvironmentAppwrite is running via Coolify using Cloudflare (not Cloudflare tunnels). 👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This error means something is wrong with your For a quick way to validate the 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" |
Beta Was this translation helpful? Give feedback.
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: