Deploying gotify from docker Application failed to respond
asmirbelkic
HOBBYOP

2 years ago

Hello guys, i need help deploying gotify docker image in railway.

So database is ok, and i get
Starting Gotify version 2.4.0@2023-09-17-08:24:00

Started Listening for plain HTTP connection on :80

But the web ui is not working when i visit my domain i get Application failed to respond

Can anyone help ?

82 Replies

asmirbelkic
HOBBYOP

2 years ago

50b8a73e-0a0d-4fd4-9bc6-b69295b1d24d


medim
MODERATOR

2 years ago

Can you give this doc section a try?
https://docs.railway.app/guides/fixing-common-errors


asmirbelkic
HOBBYOP

2 years ago

Ty for reply I'll read that but my knowledge in docker/containers is limited. I searched for a template but not found any for gotify.


brody
EMPLOYEE

2 years ago

hey @Asmir does this template work for you?


asmirbelkic
HOBBYOP

2 years ago

@Brody Hey M8 ! I'll give it a try thank's !


asmirbelkic
HOBBYOP

2 years ago

the postgresql setup seems to be broken


asmirbelkic
HOBBYOP

2 years ago

some env variables are missing such as PGUSER etc


brody
EMPLOYEE

2 years ago

it's likely not broken, the database does not come publicly exposed by default, was going to add a note about that.

and the variables are missing but that does not matter because you should not use the data tab, it's super buggy, instead use a proper database client like dbgate


asmirbelkic
HOBBYOP

2 years ago

the fact that it's not publicly exposed makes a difference ?


brody
EMPLOYEE

2 years ago

not unless you need manual access to the database, gotify connects the the database privately already


asmirbelkic
HOBBYOP

2 years ago

all right
but getting nothing here yet from domain

1218322705758158800


brody
EMPLOYEE

2 years ago

railways proxy takes a bit to register the routes for new domains


asmirbelkic
HOBBYOP

2 years ago

yep i've heard of that i'll wait and come back to you, thanks brody


asmirbelkic
HOBBYOP

2 years ago

@Brody Perfectly works thank you sir ! 🔥


brody
EMPLOYEE

2 years ago

no problem!


asmirbelkic
HOBBYOP

2 years ago

Oh last thing do you know how to install iGotify with it please ?
https://github.com/androidseb25/iGotify-Notification-Assistent


asmirbelkic
HOBBYOP

2 years ago

If you have time would be amazing a template for https://github.com/binwiederhier/ntfy aswell it's a cool alternative project !


brody
EMPLOYEE

2 years ago

I do have one for ntfy (not public) but that requires cli access to the container to setup authentication and a bunch of other stuff (railway does not allow such access)


asmirbelkic
HOBBYOP

2 years ago

i already succesfully tried to make ntfy work on desktop but it has weird configuration to make it work with the ios app… thats why i wanted to install gotify instead but it asks two installs…


asmirbelkic
HOBBYOP

2 years ago

yep thats why… i guess


asmirbelkic
HOBBYOP

2 years ago

i couldn't make it work because of that restriction


brody
EMPLOYEE

2 years ago

I'll try my hand at igotify


asmirbelkic
HOBBYOP

2 years ago

your daboss


asmirbelkic
HOBBYOP

2 years ago

ty vm tho


asmirbelkic
HOBBYOP

2 years ago

a last question if i you don't mind is there a way to self host a service such as cloudinary for images/videos at railway ? that can process image resizing/optimization and expose a public url ? i havn't found any relative informations actually


brody
EMPLOYEE

2 years ago

im not aware of anything off the top of my head, but if you find something id be happy to take a crack at making a template for it


asmirbelkic
HOBBYOP

2 years ago

ill check that !


brody
EMPLOYEE

2 years ago

@Asmir give this a try?


brody
EMPLOYEE

2 years ago

though you would want to use the + New button to deploy it into the same project as your gotify service


asmirbelkic
HOBBYOP

2 years ago

i try that


asmirbelkic
HOBBYOP

2 years ago

what + New button you mean ?
Like the + New then template and i select iGotify ?


brody
EMPLOYEE

2 years ago

correct


brody
EMPLOYEE

2 years ago

1218338489599524900


asmirbelkic
HOBBYOP

2 years ago

got that

1218338725784850700


brody
EMPLOYEE

2 years ago

you deployed gotify again


asmirbelkic
HOBBYOP

2 years ago

thats what template asked for


brody
EMPLOYEE

2 years ago

nope


asmirbelkic
HOBBYOP

2 years ago

i remove and retry


brody
EMPLOYEE

2 years ago

screenshot of the project again please


asmirbelkic
HOBBYOP

2 years ago

1218339129457119200


asmirbelkic
HOBBYOP

2 years ago

i selected template iGotify

1218339284361281500


brody
EMPLOYEE

2 years ago

nope, you selected Gotify


asmirbelkic
HOBBYOP

2 years ago

wut wait


brody
EMPLOYEE

2 years ago

you are trying to deploy Gotify again


asmirbelkic
HOBBYOP

2 years ago

1218339636691079200


asmirbelkic
HOBBYOP

2 years ago

ur right the search was buggy had to retry … my bad sorry


brody
EMPLOYEE

2 years ago

no worries


asmirbelkic
HOBBYOP

2 years ago

ok building


asmirbelkic
HOBBYOP

2 years ago

ok desktop works i give it a try with the ios app now


asmirbelkic
HOBBYOP

2 years ago

Looks fine ! Not perfectly understood how to connect to the notification "room" from the iOs app but the servers works ty m8 !


asmirbelkic
HOBBYOP

2 years ago

hope that ntfy will work soon with railway 😄 !


brody
EMPLOYEE

2 years ago

unless ntfy provides a way to configure auth via environment variables, i cant see it being possible, unless you are okay with ntfy without auth?


asmirbelkic
HOBBYOP

2 years ago

actually yeah i don't care about auth


asmirbelkic
HOBBYOP

2 years ago

no sensible data will be exposed


brody
EMPLOYEE

2 years ago

go for it then


asmirbelkic
HOBBYOP

2 years ago

the main issue with that is the fact that to make self hosted app work with the iOs app and the config seems to be a tricky configuration


asmirbelkic
HOBBYOP

2 years ago

i'll try it !


brody
EMPLOYEE

2 years ago

the template might not even work for you then, ntfy is very limited without cli access, not just auth wise


asmirbelkic
HOBBYOP

2 years ago

about gotify idk if it's i'm auth to the app but idk if igotify is passing the notifications, i'm authed etc but i don't see any messsages etc… thats weird


brody
EMPLOYEE

2 years ago

i dont have an iphone so i couldnt test


asmirbelkic
HOBBYOP

2 years ago

oh sadge


asmirbelkic
HOBBYOP

2 years ago

1218346842790690800


asmirbelkic
HOBBYOP

2 years ago

if i try to connect as admin


asmirbelkic
HOBBYOP

2 years ago

ios hides the password but there is one


brody
EMPLOYEE

2 years ago

did you give it the same username and password that is in the Gotify service variables?


brody
EMPLOYEE

2 years ago

and try with https:// in both those url fields


asmirbelkic
HOBBYOP

2 years ago

yes i did, and can't add https:// its prefixed


asmirbelkic
HOBBYOP

2 years ago

i'll select 443


brody
EMPLOYEE

2 years ago

its trying to use http

1218347571945279700


asmirbelkic
HOBBYOP

2 years ago

yup thats why i selected https now


brody
EMPLOYEE

2 years ago

same issue?


asmirbelkic
HOBBYOP

2 years ago

im trying


asmirbelkic
HOBBYOP

2 years ago

1218347898669105200


asmirbelkic
HOBBYOP

2 years ago

ooh wait


asmirbelkic
HOBBYOP

2 years ago

DAMN YES


asmirbelkic
HOBBYOP

2 years ago

i just had to remove the app from gotify now works perfectly


brody
EMPLOYEE

2 years ago

awsome!!


asmirbelkic
HOBBYOP

2 years ago

you are awesome !


asmirbelkic
HOBBYOP

2 years ago

thank you for you support & time 😄 ! ❤️


brody
EMPLOYEE

2 years ago

happy to help


asmirbelkic
HOBBYOP

2 years ago

that deserved a coffee 😄 !


brody
EMPLOYEE

2 years ago

thank you very much


Loading...