
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
- Updating console to 1.8
Hey! Does anyone know how to update the appwrite console only? I am using console 1.7.4 but it has UI/UX issues š
- Server Error when Pushing a Function
Get this ambiguous error when trying to push my function, it's TypeScript using NodeJS 18 ``` ? Which functions would you like to push? get-grades (get-grades)...
- `access_denied_to_user` - push new branc...
Why pushig new branch is not allowed? ``` git push origin fix-no_issue_id-fix_variable_name remote: {"auth_status":"access_denied_to_user","body":"Permission t...
