
this is in the Appwrite container

same thing

what is this you're showing?

would you please DM me the output of docker compose exec appwrite vars
?

thats my env vars

yeah getting it now

you said you upgraded or this was a clean install?

Upgrade. Been in production for a while

hmm you might need to wait for 1.4.2 which will have this: https://github.com/appwrite/appwrite/pull/6125

You think it's an issue with cli?

no but that PR has a lot of other updates to the migration

Ah okay

i update to 1.4.2, and still getting the 500 error.

_APP_VCS_GITHUB_PRIVATE_KEY is set as a string with \n
and i can see it in the docker compose exec appwrite vars

please create a new post instead of posting in an old thread

I am also getting the same error after the upgrade

put this into a script and run it:
#!/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"

Every time i run this (even after regenning and reformatting my key) it gives me Invalid private key. when i run vars on the container, it is there and is right. i dont understand what I am doing wrong

you're generating the key from github, right? can you DM me what's in your .env file?

yes, and I will in 1 sec, testing a new key

I think i figured it out

It's working now. It was just a lot of me being dense

I was adding the \n and double quotes, but not actually removing the line returns

it works now. thank you

[SOLVED] Unable to connect to github
Recommended threads
- How do you strategically secure day's wo...
I worked entire day to try and solve how to use clerk such that it handles checking user's authentication purely server-side. I wasted entire day on a loop of a...
- `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...
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
