Unable to access service through HTTP
battlesquid
HOBBYOP

2 years ago

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

41 Replies

battlesquid
HOBBYOP

2 years ago

75e3b346-93c5-4759-b0c7-991c535ad323


2 years ago

this is just a repo with a dockerfile, please link to the repo that contains code


battlesquid
HOBBYOP

2 years ago

…there is no code, i'm just trying to deploy this service


battlesquid
HOBBYOP

2 years ago

i'm not using the image directly because it doesn't set up the host to be 0.0.0.0


2 years ago

use the image directly and set the needed start command in the service settings


battlesquid
HOBBYOP

2 years 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

1264030203252834300


battlesquid
HOBBYOP

2 years ago

1264030504966029300


2 years ago

please send a clickable link



battlesquid
HOBBYOP

2 years ago

oop its working now


battlesquid
HOBBYOP

2 years ago

custom run command is pretty good, but i'm still confused on why the dockerfile was inconsistent


battlesquid
HOBBYOP

2 years ago

wanted to make a template for this


battlesquid
HOBBYOP

2 years ago

in any case it seems to be fine now, thank you


2 years ago

no problem


2 years ago

happy to answer any template related questions


battlesquid
HOBBYOP

2 years ago

Networking issues again, except this time it's chrome that refuses to work


battlesquid
HOBBYOP

2 years ago

Edge works, arc browser works if you count that


2 years ago

same link as you posted above?


battlesquid
HOBBYOP

2 years ago


battlesquid
HOBBYOP

2 years ago

The only additional difference is I changed the start command to set the username and password for the service


battlesquid
HOBBYOP

2 years ago

/bin/sh -c "exec /victoria-logs-prod -httpListenAddr 0.0.0.0:8000 -httpAuth.username $V_USERNAME -httpAuth.password $V_PASSWORD"

2 years ago

is that link supposed to not work?


2 years ago

(on chrome)


battlesquid
HOBBYOP

2 years ago

well no i'm expecting it to work


battlesquid
HOBBYOP

2 years ago

but it's not, at least on chrome


2 years ago

it works, i get a basic auth login


2 years ago

im on chrome 126


battlesquid
HOBBYOP

2 years ago

i'm losing it


2 years ago

just regular google chrome


battlesquid
HOBBYOP

2 years ago

oh dear

1264074639747973000


battlesquid
HOBBYOP

2 years ago

updated and it works now


battlesquid
HOBBYOP

2 years ago

i feel silly


battlesquid
HOBBYOP

2 years ago

thank you ._.


2 years ago

lol why was that even causing issues


battlesquid
HOBBYOP

2 years ago

i wish i knew, i really don't think it should have been


2 years ago

these things happen


2 years ago

you should use ${PORT} instead of 8000


battlesquid
HOBBYOP

2 years ago

i should, will update that


battlesquid
HOBBYOP

2 years ago

thanks again for your help, i appreciate it


2 years ago

no problem!


2 years ago

ill likely have feedback for you once i see the template post 😉


Loading...