Skip to content
Back

[SOLVED] Problem on Github integration with Coolify v4

  • 1
  • Self Hosted
  • Functions
Adson
16 Oct, 2023, 17:15

Appwrite: v1.4.5 Server Coolify: v4 beta 85 OS: Linux Ubuntu 22.04

Após instalar e autenticar o Github App, o Callback falha com o erro 500:

TypeScript
Error 500
Signing key cannot be empty
Type
general_unknown
TL;DR
The user had a problem with integrating Github with Coolify v4, specifically with the private key. They tried manually adding '\n' to each line of the key file in VS Code, but had a question about a more efficient method. The user later found that the problem was caused by switching between raw mode and field-separated mode, which removed the double quotes from the private key. The solution was to insert double quotes in separate fields mode and not switch to raw mode. The user suggests that it's important to pay attention to small details in the implementation environment. The user mentions running the command "docker exec appwrite doctor" and checking
Adson
16 Oct, 2023, 17:16

I ran cmd docker exec appwrite vars and everything is the same as the variables set in the Coolify service. When viewing the logs of the appwrite service container:

Adson
16 Oct, 2023, 17:17

My Github app

Adson
16 Oct, 2023, 17:29

docker exec appwrite doctor

Drake
17 Oct, 2023, 00:41

your github private key probably got screwed up. look at that to make sure it's correct

Adson
17 Oct, 2023, 04:44

I put everything on a single line in quotation marks with line breaks replaced by \n.

Adson
17 Oct, 2023, 04:58

I found the problem! Yes it is in the private key.  The problem is when I insert the variables into the Coolify variable field in raw mode and then switch to field-separated mode, which was removing the double quotes from the private key.

The solution was to insert double quotes in separate fields mode and no longer switch to raw mode.  Whoops! The problem is almost always small details of the environment where we are implementing and unless this problem is already known it is difficult to find a way to look.

Adson
17 Oct, 2023, 04:58

Thank you very much Steve!

Adson
17 Oct, 2023, 04:59

[SOLVED] Problem on Github integration with Coolify v4

micin.eth
17 Oct, 2023, 05:00

@Adson I have some problem with you, I want Ask how you conver private key, do you add \n every line manually or you have tool for auto add \n?

Adson
17 Oct, 2023, 05:06

I did it manually, giving a cat command in the key file, I copied and pasted it into VS Code, where I made multi cursors, one on each line, I moved them to the end of the line with the END key on the keyboard, DELETE removing the line break, I typed \n, exited multi cursor mode and put double quotes around it.

Adson
17 Oct, 2023, 05:08

But can also make a one or two commands using sed or similar unix cli tools.

micin.eth
17 Oct, 2023, 05:09

okay, thanks you @Adson 🙂

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