
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
\n
for 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
- functions page returns 500
I am running selfhosted appwrite version 1.6.0 and all of a sudden my functions page stopped working, returning a 500. I don't see anything in the logs that wo...
- Question
Is there anyway to modify the self hosted appwrite code in the register section so that only @eonfluxtech.com emails can register?
- CORS issue with cloudlfared tunnel
I feel like I've made a dumb mistake somewhere in my configuration (very new to programming so please bear with me) but basically - I've got my frontend files h...
