does docker compose exec appwrite vars show the correct value?
you should use single line
also, here's a script to test the env var:
#!/bin/sh
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"
After you update the env var, run docker compose up -d to apply the env var change and then run the script to test if it's a valid value
updated the code to use \n again.
did docker compose down && docker compose up -d
and ran the script:
with key that was generated using ssh-keyggen:
Invalid Private Key
using ssh-keygen -t rsa -b 4096
Invalid Private Key
same...
- its also in appwrite main container but image wont help to prove it as var list is to long π
i think i found the issue!!!
it a STUPID USER issue!! (me)
yep... its me
Valid Private Key
I hope this isn't your actual docker hub password π
long story (very) short:
the key needs to be generated from the app itself and not self generated... *thnx for the help ** il go sit myself in the corner for 10m...
tnx, it is (but not any more π
works like a charm π
@Steven a suggestion: its not an option to generate the key in the github app its a must. you could add to the documentation:
- its a must and not an option
- the format should be single line string with
\nfor multi line seperater.
yep. i would point to a document/image
- state its a mandatory to take it from GITHUB
What if the first sentence says RSA private key from GitHub?
sound legit. but i would Bold the GitHub
and not "you can" but "you must"
as for github integration, should it automaticly deploy commits to the main branch ? i pushed few commits and nothing happened/... π¦
and i dont see errorrs anywhere π¦
Yes, if you configured the webhook parts correctly
Please create a new post for help with webhooks
I ran into the same problem with the key not being the correct RSA PRIVATE KEY format, even though I'd created and downloaded it from GitHub. My issue was because I stored it in 1Password after download, and exported the private key from there, which mucked it up. Copying straight from the .pem file resolved it: https://discordapp.com/channels/564160730845151244/1147708406849876079/1150266669990682634
Recommended threads
- Charged after Downgrade
I downgraded from the pro plan last month, but itβs still trying to charge my card this month and my account has been restricted
- Wifi issue with Pop!_OS linux distro
Hey guys... iam facing this very peculiar trouble with my linux distro... I use Pop!_OS on my HP victus gaming laptop with nvedia 2050 graphics card.... The pro...
- How to disable appwrite/embedding from s...
Hi everyone! I'm currently running a self-hosted instance of Appwrite. For my current use case, I don't need the AI/embedding features, and I noticed the `app...