#Unable to access service through HTTP

42 messages · Page 1 of 1 (latest)

sacred ocean
#

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
normal mangoBOT
#

Project ID: 75e3b346-93c5-4759-b0c7-991c535ad323

sacred ocean
#

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

junior whale
#

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

sacred ocean
#

...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

junior whale
#

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

sacred ocean
#

Getting "Application failed to respond", it seems like it properly detected the port this time around, which is something I wasn't getting before

junior whale
#

please send a clickable link

sacred ocean
#

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

junior whale
#

no problem

#

happy to answer any template related questions

sacred ocean
#

Edge works, arc browser works if you count that

junior whale
#

same link as you posted above?

sacred ocean
#

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"
junior whale
#

is that link supposed to not work?

#

(on chrome)

sacred ocean
#

well no i'm expecting it to work

#

but it's not, at least on chrome

junior whale
#

it works, i get a basic auth login

#

im on chrome 126

sacred ocean
#

i'm losing it

junior whale
#

just regular google chrome

sacred ocean
#

oh dear

#

updated and it works now

#

i feel silly

#

thank you ._.

junior whale
#

lol why was that even causing issues

sacred ocean
#

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

junior whale
#

these things happen

#

you should use ${PORT} instead of 8000

sacred ocean
#

i should, will update that

#

thanks again for your help, i appreciate it

junior whale
#

no problem!