Xevion
Xevion
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
Really not looking good, I tried using the uvicorn variant: uvicorn \"linkpulse.app:app\" --host :: --port $PORT, but no dice. Healthcheck still fails, Caddy doesn't connect.
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
Any details about what might differ between our setups?
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
I dunno, I guess I'm kinda shooting myself in the foot here by admitting that, because I doubt Railway staff are particularly interested in figuring out why one of two available compatible ASGI workers are just not working.
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
Okay, I restored a temporary hotfix that uses hypercorn like this:
"deploy": {
"startCommand": "hypercorn linkpulse.app:app --bind \"[::]:$PORT\" --log-config \"toml:logging.toml\""
}
"deploy": {
"startCommand": "hypercorn linkpulse.app:app --bind \"[::]:$PORT\" --log-config \"toml:logging.toml\""
}
And it does work just fine.
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
No description
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
Now we do
"deploy": {
"startCommand": "python3 -m linkpulse serve"
}
"deploy": {
"startCommand": "python3 -m linkpulse serve"
}
and uvicorn.run is invoked internally.
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
With hypercorn, we invoked it via
"deploy": {
"startCommand": "hypercorn linkpulse.app:app --bind \"[::]:$PORT\""
}
}
"deploy": {
"startCommand": "hypercorn linkpulse.app:app --bind \"[::]:$PORT\""
}
}
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
The latest project deploy is bound to 0.0.0.0 and it works fine; but of course we need Private Networking (which worked wonderfully with Hypercorn). We use the Caddy proxy over Private Networking, which as we know does not support IPv4 networking.
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
No description
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
No description
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
run(
"linkpulse.app:app",
reload=is_development,
host="0.0.0.0" if is_development else "::",
port=int(os.getenv("PORT", "8000")),
log_config={
"version": 1,
"disable_existing_loggers": False,
"loggers": {
"uvicorn": {"propagate": True},
"uvicorn.access": {"propagate": True},
},
},
)
run(
"linkpulse.app:app",
reload=is_development,
host="0.0.0.0" if is_development else "::",
port=int(os.getenv("PORT", "8000")),
log_config={
"version": 1,
"disable_existing_loggers": False,
"loggers": {
"uvicorn": {"propagate": True},
"uvicorn.access": {"propagate": True},
},
},
)
19 replies
RRailway
Created by Xevion on 11/2/2024 in #✋|help
Uvicorn Health Check Fails with IPv6 Bind
daea8913-00d4-474d-b3d8-2bfc2bfbbcf0
19 replies
RRailway
Created by Xevion on 9/27/2024 in #✋|help
Multiple ports per domain?
welp, I thought I found my savior. I was wrong, again.
13 replies
RRailway
Created by Xevion on 9/27/2024 in #✋|help
Multiple ports per domain?
:death:
13 replies
RRailway
Created by Xevion on 9/27/2024 in #✋|help
Multiple ports per domain?
No description
13 replies
RRailway
Created by Xevion on 9/27/2024 in #✋|help
Multiple ports per domain?
Ah, so I can't have both a TCP and HTTP proxy?
13 replies
RRailway
Created by Xevion on 9/27/2024 in #✋|help
Multiple ports per domain?
Unfortunately though, it needs a separate TCP port, normally 514.
13 replies
RRailway
Created by Xevion on 9/27/2024 in #✋|help
Multiple ports per domain?
This is the template I'm working off right now: https://railway.app/template/_GawOC
13 replies
RRailway
Created by Xevion on 9/27/2024 in #✋|help
Multiple ports per domain?
I know it's not really your wheelhouse, but since you interacted with this stuff before, I thought I might ping you.
13 replies
RRailway
Created by Xevion on 9/27/2024 in #✋|help
Multiple ports per domain?
@Brody https://discord.com/channels/713503345364697088/1067670962276945961/1181742050710929488 I found this message and I know you interact with a lot of software, I'm curious if you've heard of any new rsyslog remote log receivers that might work on Railway? I'm not looking for anything big or complex, I just need it to be reliable enough and workable for a single server - and maybe not cost me a bazillion.
13 replies