Skip to content
Back

Self Hosted GitHub connection not adding properly

  • 0
  • 1
  • Self Hosted
25 Aug, 2026, 13:27

After upgrading to 1.9.6 i noticed that i cannot search for new repositories when trying to add new functions.

I removed the existing github connection via Settings -> Git configuration.

After that I tried to add the connection again. I can confirm the installation on github and get redirected to: /v1/vcs/github/callback?code.... with a 500 error.

Looking at the appwrite log i can see the following:

TypeScript
appwrite                            | http.request · 5.3ms · 6391691e
appwrite                            |
appwrite                            |   level              error
appwrite                            |   http.method        GET
appwrite                            |   http.path          /v1/vcs/github/callback
appwrite                            |   http.response.code 500
appwrite                            |
appwrite                            |   Ahc\Jwt\JWTException: Signing key cannot be empty
appwrite                            |     at /usr/src/code/vendor/adhocore/jwt/src/ValidatesJWT.php:34
appwrite                            |     at /usr/src/code/vendor/adhocore/jwt/src/JWT.php:89
appwrite                            |     at /usr/src/code/vendor/utopia-php/vcs/src/VCS/Adapter/Git/GitHub.php:634
appwrite                            |     at /usr/src/code/vendor/utopia-php/vcs/src/VCS/Adapter/Git/GitHub.php:75
appwrite                            |     ... 7 more
TL;DR
After updating to version 1.9.6, unable to add new repositories when trying to connect to GitHub. Encountered a 500 error during GitHub connection setup, with a log error indicating a JWT key issue. Discovered that during migration, a `\` was added to the private key variable causing the problem. Restoring the correct private key fixed the issue.
25 Aug, 2026, 13:41

I did a little bit more research: Looks like while upgrading the "_APP_VCS_GITHUB_PRIVATE_KEY" variable gets changed. I restored the one from my backup and now it works again.

The different i notice: The modified one start with: _APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\\nMIIE...

The working one starts with _APP_VCS_GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nMIIE...

So somehow during migration the new \ got added

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