R
Railwayβ€’4mo ago
battlesqui_d

Unable to access service through HTTP

I'm trying to set up a service with the following repo: https://github.com/Battlesquid/railway-victorialogs When I try to expose the service and access it. I get a 404. Service is listening on 0.0.0.0 and the port is correct, so I'm at a loss for what the issue could be. I experienced a lot of weird behavior trying to fix it: - Doesn't work at all (404 across the board) - Works, but only on chrome (couldn't get it working on Edge or Firefox) - Eventually worked when I was somehow able to disable the edge proxy...but I can't consistently disable it
25 Replies
Percy
Percyβ€’4mo ago
Project ID: 75e3b346-93c5-4759-b0c7-991c535ad323
battlesqui_d
battlesqui_dβ€’4mo ago
75e3b346-93c5-4759-b0c7-991c535ad323
Brody
Brodyβ€’4mo ago
this is just a repo with a dockerfile, please link to the repo that contains code
battlesqui_d
battlesqui_dβ€’4mo ago
...there is no code, i'm just trying to deploy this service i'm not using the image directly because it doesn't set up the host to be 0.0.0.0
Brody
Brodyβ€’4mo ago
use the image directly and set the needed start command in the service settings
battlesqui_d
battlesqui_dβ€’4mo ago
Getting "Application failed to respond", it seems like it properly detected the port this time around, which is something I wasn't getting before
No description
battlesqui_d
battlesqui_dβ€’4mo ago
No description
Brody
Brodyβ€’4mo ago
please send a clickable link
battlesqui_d
battlesqui_dβ€’4mo ago
https://victorialogs-image-production.up.railway.app/ oop its working now custom run command is pretty good, but i'm still confused on why the dockerfile was inconsistent wanted to make a template for this in any case it seems to be fine now, thank you
Brody
Brodyβ€’4mo ago
no problem happy to answer any template related questions
battlesqui_d
battlesqui_dβ€’3mo ago
Networking issues again, except this time it's chrome that refuses to work Edge works, arc browser works if you count that
Brody
Brodyβ€’3mo ago
same link as you posted above?
battlesqui_d
battlesqui_dβ€’3mo ago
The link is now https://battlesquid-victorialogs.up.railway.app/ The only additional difference is I changed the start command to set the username and password for the service
/bin/sh -c "exec /victoria-logs-prod -httpListenAddr 0.0.0.0:8000 -httpAuth.username $V_USERNAME -httpAuth.password $V_PASSWORD"
/bin/sh -c "exec /victoria-logs-prod -httpListenAddr 0.0.0.0:8000 -httpAuth.username $V_USERNAME -httpAuth.password $V_PASSWORD"
Brody
Brodyβ€’3mo ago
is that link supposed to not work? (on chrome)
battlesqui_d
battlesqui_dβ€’3mo ago
well no i'm expecting it to work but it's not, at least on chrome
Brody
Brodyβ€’3mo ago
it works, i get a basic auth login im on chrome 126
battlesqui_d
battlesqui_dβ€’3mo ago
i'm losing it
Brody
Brodyβ€’3mo ago
just regular google chrome
battlesqui_d
battlesqui_dβ€’3mo ago
oh dear
No description
battlesqui_d
battlesqui_dβ€’3mo ago
updated and it works now i feel silly thank you ._.
Brody
Brodyβ€’3mo ago
lol why was that even causing issues
battlesqui_d
battlesqui_dβ€’3mo ago
i wish i knew, i really don't think it should have been
Brody
Brodyβ€’3mo ago
these things happen you should use ${PORT} instead of 8000
battlesqui_d
battlesqui_dβ€’3mo ago
i should, will update that thanks again for your help, i appreciate it
Brody
Brodyβ€’3mo ago
no problem! ill likely have feedback for you once i see the template post πŸ˜‰
Want results from more Discord servers?
Add your server