Back

Server error when connecting git repository on self-hosted 1.5.4

  • 0
  • Self Hosted
  • Functions
prisM
17 Apr, 2024, 20:02

Instructions to replicate:

  1. Go to create function
  2. "Connect Git repository"
  3. Click "GitHub"
  4. On the github appwrite functions, under "repository access", hit "save"
  5. After saving, I am redirected back to my appwrite backend with the following error:

message "Server Error" code 500 type "general_unknown" version "1.5.4"

Here are the errors as they appear in docker logs: [Error] Timestamp: 2024-04-17T19:54:29+00:00 [Error] Method: GET [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 [Error] Line: 34 [Error] Timestamp: 2024-04-17T19:54:29+00:00 [Error] Method: [Error] URL: /favicon.ico [Error] Type: Appwrite\Extend\Exception [Error] Message: The requested route was not found. Please refer to the API docs and try again. [Error] File: /usr/src/code/app/controllers/general.php [Error] Line: 860

Googling the first issue "Signing key cannot be empty", I found this post where a user resolved the issue by specifying _APP_OPENSSL_KEY_V1 in the .env file: https://github.com/appwrite/appwrite/issues/6043

However, I already have an app openssl key in my env file.

I verified the callback URLs and webhook specified in github through the documentation at https://appwrite.io/docs/advanced/self-hosting/functions. I also ensured the .env file contains the correct github settings (app name, app id, id, secrets, private key...)

This worked before, I don't know when it stopped working as I haven't touched functions in a while.

also tried removing callback urls in github and re-adding them. I also disconnected github integration from appwrite to try and restart the connection process, but no luck.

Thanks for the help

TL;DR
Developers facing a server error when trying to connect a git repository on self-hosted 1.5.4 version. The error message "Signing key cannot be empty" leads to a 500 error. Another error shows a route not found for /favicon.ico. Googling the first issue leads to a resolution involving specifying _APP_OPENSSL_KEY_V1 in the .env file, even though the developer already has an openssl key in the env file. The developer has checked callback URLs, webhooks in Github, and Github settings in the .env file. Attempted solutions include removing and re-adding callback URLs in Github and
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