#[SOLVED] Error: "Message: Signing key cannot be empty"

10 messages · Page 1 of 1 (latest)

lethal ivy
#

Hi, I want to connect my GitHub application with my self-hosted Appwrite instance. After redirecting from Github OAuth installation page to the callback URL, I receive a JSON with an following error.
{"message":"Server Error","code":500,"type":"general_unknown","version":"1.4.13"}

In the Docker logs, the following error appears:

2024-02-28T17:04:34.702315215Z [Error] Timestamp: 2024-02-28T17:04:34+00:00
2024-02-28T17:04:34.702348307Z [Error] Method: GET
2024-02-28T17:04:34.702354017Z [Error] URL: /v1/vcs/github/callback
2024-02-28T17:04:34.702358746Z [Error] Type: Ahc\Jwt\JWTException
2024-02-28T17:04:34.702362743Z [Error] Message: Signing key cannot be empty
2024-02-28T17:04:34.702366290Z [Error] File: /usr/src/code/vendor/adhocore/jwt/src/ValidatesJWT.php
2024-02-28T17:04:34.702369906Z [Error] Line: 34

After some research, I filled in the environment variable _APP_OPENSSL_KEY_V1 with a randomly generated string, but the issue still persists.

mellow fog
#

Did you try bouncing the container after saving the environment variable? docker compose down && docker compose up -d?

lethal ivy
#

Yup, I even created new appwrite instance and configure it with _APP_OPENSSL_KEY_V1 on first compose up but still same issue.

worn radish
lethal ivy
worn radish
lethal ivy
worn radish
#

@lethal ivy Do you have managed to solve it? I recommend setting the openSSL variable at first when installing and then not modifying it.

After installing, setting all the variables related to GitHub and after that, running
docker compose up -d

lethal ivy
worn radish