Charles_
Charles_
RRailway
Created by Charles_ on 8/8/2024 in #✋|help
Connect Prometheus to internal Service
No description
7 replies
RRailway
Created by Charles_ on 7/9/2024 in #✋|help
Railway Crash
No description
54 replies
RRailway
Created by Charles_ on 7/9/2024 in #✋|help
limit number of processes on railway machines?
How many processes are users allowed to run on Railway machines? ie, what value would ulimit -u return?
6 replies
RRailway
Created by Charles_ on 4/28/2024 in #✋|help
incorrect cron time trigger
No description
12 replies
RRailway
Created by Charles_ on 4/8/2024 in #✋|help
Do I need do install pip
I'm installing a custom package in railway.yaml but getting pip error - how can I fix it? railway.toml:
[build]
builder = "nixpacks"
buildCommand = "git clone https://username:[email protected]/org/my-module.git && cd my-module && pip install -e ."
[build]
builder = "nixpacks"
buildCommand = "git clone https://username:[email protected]/org/my-module.git && cd my-module && pip install -e ."
logs:
0.278 Cloning into 'my-module'...
4.171 /bin/bash: line 1: pip: command not found
0.278 Cloning into 'my-module'...
4.171 /bin/bash: line 1: pip: command not found
Why is this not working?
26 replies
RRailway
Created by Charles_ on 2/29/2024 in #✋|help
How to restart app periodically
as titlte suggest, can I setup a crontab so periodically restart the machine?
10 replies
RRailway
Created by Charles_ on 12/29/2023 in #✋|help
NIXPACKS_NO_CACHE=1 still uses cache
Railway is still caching builds, despite system variable being set to not use them. Why is this?
12 replies
RRailway
Created by Charles_ on 9/21/2023 in #✋|help
Disable build cache
I've got NIXPACKS_NO_CACHE=1 defined, yet in the build logs it seems the cache is still being used. How can I completely disable it for all future builds?
#13 [ 6/10] RUN python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
#13 CACHED
#13 [ 6/10] RUN python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt
#13 CACHED
3 replies
RRailway
Created by Charles_ on 8/8/2023 in #✋|help
How do deploy this Docker containers?
I'd like to deploy this project on Railway but it's not obvious how I should add run parameters when launching the docker container. Github: https://github.com/louislam/uptime-kuma Docker Run:
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1
Container link (detects as expected in Railway): https://hub.docker.com/r/louislam/uptime-kuma Thanks!
6 replies
RRailway
Created by Charles_ on 7/23/2023 in #✋|help
Failed to upload code with status code 504 Gateway Timeout
9 replies
RRailway
Created by Charles_ on 7/21/2023 in #✋|help
BUG: hashtag causes env's to be truncated in RAW Editor
As per the title, when editing variable in the RAW Editor a hashtag in any of the variables will cause the value to be incorrectly truncated.
7 replies
RRailway
Created by Charles_ on 7/21/2023 in #✋|help
Whitelist Railway IP
My application retrieves data from a Google SQL instance which requires incoming connections to be from whitelisted IP's. What's the easiest way for me to whitelist a Railway IP?
17 replies
RRailway
Created by Charles_ on 7/8/2023 in #✋|help
2.8GB repo takes a very long time with `railway up`
I have local repo with a bunch of data which I've (I think) excluded inside a .railwayignore file. However, deploying take a very long time (>15 minutes) and I'm not convinced those files are actually getting ignored. How can I check?
8 replies
RRailway
Created by Charles_ on 6/15/2023 in #✋|help
FileNotFoundError
8 replies
RRailway
Created by Charles_ on 4/15/2023 in #✋|help
Node.js deployment failing
I have a small node.js app which is failing to deploy, can someone help based on the following logs:
> [stage-0 7/8] RUN --mount=type=cache,id=s/afd49912-c36a-453d-bd65-f92c90d20a5e-/root/npm,target=/root/.npm npm ci:
#11 1.418 npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
#11 1.418 npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
#11 1.418 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
#11 1.418 npm ERR!
#11 1.418 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
#11 1.418 npm ERR!
#11 1.419 npm ERR! Run "npm help ci" for more info
#11 1.420
#11 1.421 npm ERR! A complete log of this run can be found in:
#11 1.421 npm ERR! /root/.npm/_logs/2023-04-15T16_46_17_719Z-debug-0.log
-----
Dockerfile:21
-------------------
19 | RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
20 | COPY . /app/.
21 | >>> RUN --mount=type=cache,id=s/afd49912-c36a-453d-bd65-f92c90d20a5e-/root/npm,target=/root/.npm npm ci
22 |
23 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1

Error: Docker build failed

> [stage-0 7/8] RUN --mount=type=cache,id=s/afd49912-c36a-453d-bd65-f92c90d20a5e-/root/npm,target=/root/.npm npm ci:
#11 1.418 npm ERR! [--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] [--dry-run]
#11 1.418 npm ERR! [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
#11 1.418 npm ERR! [-ws|--workspaces] [--include-workspace-root] [--install-links]
#11 1.418 npm ERR!
#11 1.418 npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
#11 1.418 npm ERR!
#11 1.419 npm ERR! Run "npm help ci" for more info
#11 1.420
#11 1.421 npm ERR! A complete log of this run can be found in:
#11 1.421 npm ERR! /root/.npm/_logs/2023-04-15T16_46_17_719Z-debug-0.log
-----
Dockerfile:21
-------------------
19 | RUN printf '\nPATH=/app/node_modules/.bin:$PATH' >> /root/.profile
20 | COPY . /app/.
21 | >>> RUN --mount=type=cache,id=s/afd49912-c36a-453d-bd65-f92c90d20a5e-/root/npm,target=/root/.npm npm ci
22 |
23 | # build phase
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1

Error: Docker build failed

Thanks!
7 replies
RRailway
Created by Charles_ on 3/26/2023 in #✋|help
Yarn build is not optimized
I've defined yarn build as my Build Command for a React website, however in the deploy logs I get:
Note that the development build is not optimized.
To create a production build, use yarn build.
Note that the development build is not optimized.
To create a production build, use yarn build.
What am I missing?
34 replies
RRailway
Created by Charles_ on 3/24/2023 in #✋|help
Get IP to create subdomain on Godaddy
I'd like to create a subdomain in Godaddy that links to a nodejs backend app deployed on Railway. For this GoDaddy is asking me for an IP, where can I find this?
12 replies
RRailway
Created by Charles_ on 12/4/2022 in #✋|help
HTTPError 451 Client Error on Railway
Which location are http calls being made from on Railway? My python application is failing most of its resquests (requests.exceptions.HTTPError). Error 451: Unavailable Due to Legal Reasons Can someone suggest a fix?
4 replies
RRailway
Created by Charles_ on 11/18/2022 in #✋|help
Fixed IP
I have an application which requires a fixed IP, how can I obtain one?
14 replies
RRailway
Created by Charles_ on 11/11/2022 in #✋|help
What is the absolute path of the service
I'm getting the following error, what is the absolute path of the root of my project?
dagster._core.errors.DagsterInvariantViolationError: $DAGSTER_HOME "./" must be an absolute path. Dagster requires this environment variable to be set to an existing directory in your filesystem.
dagster._core.errors.DagsterInvariantViolationError: $DAGSTER_HOME "./" must be an absolute path. Dagster requires this environment variable to be set to an existing directory in your filesystem.
4 replies