Skip to content
Back

[CLOSED] server error github after upgrade to 1.8.0 from 1.8.0-rc2

  • 0
  • Resolved
  • 6
  • Self Hosted
elemin67
3 Nov, 2025, 01:49

I got the error

Error 500 Server Error general_unknown

can not connect to github

TL;DR
User encounters server error on GitHub after upgrading to 1.8.0 from 1.8.0-rc2. After various investigations and discussions, it is discovered that the issue lies with the private key having an extra empty line at the end, causing it to be invalid. Solution: Check private key validity using provided command, ensure _APP_OPENSSL_KEY_V1 is set, delete and re-save quotes in the .env file, fully shut down and restart containers, and use the "use multiline" option in Coolify for .pem files. One user confirms this solution works on both 1.8.0
elemin67
3 Nov, 2025, 01:51

cd appwrite/ docker compose exec appwrite migrate

that is done

elemin67
3 Nov, 2025, 01:52

still not connecting

elemin67
3 Nov, 2025, 21:00

any idea?

3 Nov, 2025, 21:02
16 Nov, 2025, 14:35

Did you figure it out

19 Nov, 2025, 15:54

Did you find any solution? Same error here

19 Nov, 2025, 18:20

I also have this error now in my old 1.6.0 instance. Did not change anything at all. Are you also using coolify?

19 Nov, 2025, 18:22

Appwrite logs: [Error] URL: /v1/vcs/github/callback [Error] Type: Ahc\Jwt\JWTException [Error] Message: Signing key cannot be empty [Error] File: /usr/src/code/vendor/adhocore/jwt/src/ValidatesJWT.php

My signing private key is definitly not empty. New installation on 1.7.4 also has the same issue.

19 Nov, 2025, 19:21

Not really, im just on an LXC

1
19 Nov, 2025, 20:01

Do you also get the "Signing key cannot be empty" log message?

19 Nov, 2025, 21:02

Where did you get that one?

19 Nov, 2025, 21:03

Docker or web console?

19 Nov, 2025, 21:07

Simply in the web console under "Logs" of the appwrite container.

19 Nov, 2025, 21:08

But I also found out that somehow I am not able to get a valid "_APP_VCS_GITHUB_PRIVATE_KEY" when I check on it via PHP. Don't know why this is now a issue.

TypeScript
php -r '$key=getenv("_APP_VCS_GITHUB_PRIVATE_KEY"); if($key && openssl_pkey_get_private($key)){echo "Valid Key";}else{echo "Invalid Key: ".openssl_error_string();}'

outputs: 
Invalid Key: error:1E08010C:DECODER routines::unsupported
19 Nov, 2025, 21:18

Interesting now I get this error. I did not change a thing?

19 Nov, 2025, 21:46

Holly, I'm still unable to find a solution, I hope someone of appwrite can help us through this

19 Nov, 2025, 22:02

Yeah I already checked on that for 3hs now. I tried several .pem conversions created a new github app and so on. I am not sure what is going on here.

Not sure what I am doing wrong here but to me it looks fine:

TypeScript
php -r 'echo var_export(getenv("_APP_VCS_GITHUB_PRIVATE_KEY"));'

outputs:

'"-----BEGIN RSA PRIVATE KEY-----\\nMIIEowIBAAKCAQEAqg6rywrXjchr6Agxb6a/UBYO74k2RvxAYOAcyPu8E/yPdF5E\\nwCK8zql6S0zONgOACrG6KU5PWXNsHoF5APxm44PrjyB----REDACTED-----JqL7j5rRhI3unOI4nxAqjSBc+\\n-----END RSA PRIVATE KEY-----\\n"'
19 Nov, 2025, 22:04

I now even hardcoded the envs to the docker compose file - still the same issue. So coolify should not be the problem here?

19 Nov, 2025, 22:07

I dont think is your fault, I mean, if all of us are having this kind of problems it could be an undocumented change, or just an Appwrite bug. We should wait till someone of the crew actually take a look into this

19 Nov, 2025, 22:08

But idk, seems like they are busy today, usually they are very responsive

20 Nov, 2025, 16:08

At least yours is a bit different, mine is error 500 totally no clue

20 Nov, 2025, 16:09

Should we create a github issue for that? I don't think the appwrite team often looks in the selfhosted section?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more