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
- Having issues with login via CLI
``` ~/appwrite ξ° appwrite login --endpoint https://localhost/v1 --verbose ? Enter your email myvalidemai...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- I recently applied for the free plan und...
I recently applied for the free plan under the GitHub Student Developer Pack. However, my billing status still shows $15, and it mentions that this amount will ...