Golang fiber template stops after successful deploy
hasanerken
HOBBYOP

2 years ago

I am using golang fiber template in go version 1.22.3. It is a standard fiber http server. After a successfull deploy, it starts to run and immediately container is stopping and returns 502.

12 Replies

hasanerken
HOBBYOP

2 years ago

0854d29d-7fb2-4708-91d5-771bf91d61e9


2 years ago

please see this docs section -


hasanerken
HOBBYOP

2 years ago

which docs section


2 years ago

The link is rendered in Discord.


hasanerken
HOBBYOP

2 years ago

thanks, the link does not be seen in the help station.


hasanerken
HOBBYOP

2 years ago

i found it


hasanerken
HOBBYOP

2 years ago

I have add this part httpServer := fiber.New(fiber.Config{
Network: "tcp",
ServerHeader: "Fiber"
AppName: "My App",
}) but still same, it says container stopping and returns 502


2 years ago

good, please see this docs page now -


hasanerken
HOBBYOP

2 years ago

i have added port checking but it is still same. Indeed it starts the fiber app. Shows count of handlers etc. But then it stops. deploy logs shows like it seems running, but when i go to logs tab at the left corner, it shows at the end "container stopping"


2 years ago

your domain is pointing to the wrong port

1270783915468128300


hasanerken
HOBBYOP

2 years ago

Thanks a lot, it works!


2 years ago

no problem!


Loading...