Back

Unable to connect Github repo

  • 0
  • Self Hosted
dominikszmaj
31 May, 2024, 17:16

I followed the guide to setup github app, but after I tried connecting repo I get an error above after github calls back. Development error might indicate something with oauth. Any hints?

TL;DR
Developers are having trouble connecting their Github repo to Appwrite. The issue seems to be related to missing environment variables, specifically the signing key. The solution involves setting the missing variables in the .env file as outlined in the Appwrite documentation, and verifying the logs using the command `docker compose logs appwrite`.
D5
31 May, 2024, 17:17

What guide?

dominikszmaj
31 May, 2024, 17:18

official in docs

D5
31 May, 2024, 17:18

Do you can send the link of the specific tutorial that you have followed?

D5
31 May, 2024, 17:18

Also, what are the logs for docker compose logs appwrite?

D5
31 May, 2024, 17:20

So do you have set the corresponding variables in the .env file?

dominikszmaj
31 May, 2024, 17:20

Master pid 1, manager pid 7 [Error] Timestamp: 2024-05-31T17:12:04+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-05-31T17:18:07+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: 972

dominikszmaj
31 May, 2024, 17:20

oh

dominikszmaj
31 May, 2024, 17:20

where do I set this signing key?

D5
31 May, 2024, 17:21

In the env variables I think

dominikszmaj
31 May, 2024, 17:24

_APP_VCS_GITHUB_CLIENT_SECRET is set

dominikszmaj
31 May, 2024, 17:24

_APP_VCS_GITHUB_WEBHOOK_SECRET set as well

dominikszmaj
31 May, 2024, 17:24

_APP_OPENSSL_KEY_V1 too

D5
31 May, 2024, 17:25

According to the page in the link you sent there are more variables that need to be set

D5
31 May, 2024, 17:25

Specifically those:

D5
31 May, 2024, 17:26

_APP_VCS_GITHUB_APP_NAME _APP_VCS_GITHUB_PRIVATE_KEY _APP_VCS_GITHUB_APP_ID _APP_VCS_GITHUB_CLIENT_ID _APP_VCS_GITHUB_WEBHOOK_SECRET

dominikszmaj
31 May, 2024, 17:27

all set

D5
31 May, 2024, 17:30

If you have installed appwrite through the usual procedure (the automatic install in the docs), do you have run this command to recreate the containers and apply the changes? docker compose up -d

dominikszmaj
31 May, 2024, 17:30

yup

D5
31 May, 2024, 17:34

Weird. After runnng docker exec appwrite vars does it shows all the github keys? (**don't **send here the keys)

dominikszmaj
31 May, 2024, 17:39

yes, 6 in total

dominikszmaj
31 May, 2024, 17:39

those you listed and app id additional

dominikszmaj
31 May, 2024, 17:59

so for the people that get the same error: https://github.com/appwrite/appwrite/discussions/8011

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