johns
johns
RRailway
Created by johns on 2/7/2024 in #✋|help
Docker build taking a lot longer than usual
Hi, our docker build is taking a lot longer than what is expected (> 10 min).
35 replies
RRailway
Created by johns on 1/28/2024 in #✋|help
Is there an outage with auth?
Got logged out of my account and I can no longer log in.
13 replies
RRailway
Created by johns on 1/19/2024 in #✋|help
Did something related to private networking fundamentally change in the past couple of days?
We have a simple Django app and use Railway's Redis. Over the past couple of days, we've been seeing the following happen: Deploy the server -> In a couple hours, we start getting ERROR:django_datadog_logger.middleware.error_log:Error -2 connecting to redis.railway.internal:6379. Name or service not known where all connection attempts to Redis fails. Our code hadn't changed and we just wanted to double-check if there's anything fundamentally changed with the network layer.
268 replies
RRailway
Created by johns on 12/1/2023 in #✋|help
New deployments triggered on the website seem to ignore the deployment settings
Our instances are on US-1 and we have Dockerfile set for several projects. When clicking "redeploy" on the most recent successful deployment, the nixpacks build gets triggered. This seems to be related to the outage
18 replies
RRailway
Created by johns on 10/26/2023 in #✋|help
Having trouble with deployment skipped on watchpath
We had a commit that had files changed in the watchpath, but the deployment skipped regardless. What might be the reason for this?
4 replies
RRailway
Created by johns on 10/16/2023 in #✋|help
Deployment order
Is there a way to configure a deployment order so that service A only starts when service B has started and is healthy?
21 replies
RRailway
Created by johns on 8/10/2023 in #✋|help
Issue binding with internal network on UDP
Hi, we have a server pod and a datadog agent pod. The server pod is trying to connect to the datadog agent pod through its statsd. We know that the networking probably works because our tracer is alive and healthy. Internal networking is enabled. Dockerfile.datadog
# Start from the official Datadog agent image
FROM datadog/agent:latest

# Copy your Datadog configuration to the correct location
COPY datadog/datadog.yaml /etc/datadog-agent/datadog.yaml


# Set the hostname and port
ENV DD_HOSTNAME="datadog.railway.internal" \
DD_LOGS_ENABLED=true \
DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true \
DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true \
DD_BIND_HOST=::

# Print all variables
RUN echo "DD_HOSTNAME=$DD_HOSTNAME"
RUN echo "DD_LOGS_ENABLED=$DD_LOGS_ENABLED"
RUN echo "DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=$DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL"
RUN echo "DD_BIND_HOST=$DD_BIND_HOST"
RUN echo "DD_DOGSTATSD_NON_LOCAL_TRAFFIC=$DD_DOGSTATSD_NON_LOCAL_TRAFFIC"

# expose the port for dogstatsd explicitly
EXPOSE 8125/udp

# Start the Datadog agent
CMD ["/init"]
# Start from the official Datadog agent image
FROM datadog/agent:latest

# Copy your Datadog configuration to the correct location
COPY datadog/datadog.yaml /etc/datadog-agent/datadog.yaml


# Set the hostname and port
ENV DD_HOSTNAME="datadog.railway.internal" \
DD_LOGS_ENABLED=true \
DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=true \
DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true \
DD_BIND_HOST=::

# Print all variables
RUN echo "DD_HOSTNAME=$DD_HOSTNAME"
RUN echo "DD_LOGS_ENABLED=$DD_LOGS_ENABLED"
RUN echo "DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL=$DD_LOGS_CONFIG_CONTAINER_COLLECT_ALL"
RUN echo "DD_BIND_HOST=$DD_BIND_HOST"
RUN echo "DD_DOGSTATSD_NON_LOCAL_TRAFFIC=$DD_DOGSTATSD_NON_LOCAL_TRAFFIC"

# expose the port for dogstatsd explicitly
EXPOSE 8125/udp

# Start the Datadog agent
CMD ["/init"]
Notice two things: 1. DD_DOGSTATSD_NON_LOCAL_TRAFFIC= true 2. 8125/udp is exposed. Dockerfile.server
# Start from the official Node.js 18 image
FROM node:18

# Define environment variables
ENV DD_ENV="prod" \
DD_LOGS_INJECTION=true \
DD_SERVICE="cami-server" \
DD_AGENT_HOST="datadog.railway.internal"

RUN echo $DD_ENV
RUN echo $DD_LOGS_INJECTION
RUN echo $DD_SERVICE
RUN echo $DD_AGENT_HOST

# Create app directory
WORKDIR /usr/src/app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install app dependencies
RUN yarn install --frozen-lockfile

# Copy app source code
COPY . .

# Build the app
RUN yarn run build

# Start the app
CMD [ "yarn", "run", "start" ]
# Start from the official Node.js 18 image
FROM node:18

# Define environment variables
ENV DD_ENV="prod" \
DD_LOGS_INJECTION=true \
DD_SERVICE="cami-server" \
DD_AGENT_HOST="datadog.railway.internal"

RUN echo $DD_ENV
RUN echo $DD_LOGS_INJECTION
RUN echo $DD_SERVICE
RUN echo $DD_AGENT_HOST

# Create app directory
WORKDIR /usr/src/app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install app dependencies
RUN yarn install --frozen-lockfile

# Copy app source code
COPY . .

# Build the app
RUN yarn run build

# Start the app
CMD [ "yarn", "run", "start" ]
Project ID: 900023fc-eb3b-4c5e-b8bf-83d6fcb5a72f
92 replies
RRailway
Created by johns on 6/22/2023 in #✋|help
Having issue connecting to Redis
Hey, our server is getting this issue which is not known. It's not like there was any high load so we're confused why there's this issue. redis.exceptions.ConnectionError: Error 111 connecting to containers-us-west-64.railway.app:5605. Connection refused.
11 replies
RRailway
Created by johns on 5/15/2023 in #✋|help
Superuser privilege on Postgres for DMS
Hi, trying to perform a 0-downtime migration and I want to use the Railway database as the source for AWS DMS. However, replication is failing which I believe is because the user doesn't have superuser privilege from the source database. I believe it's needed for some granular control over Write Ahead Logs. Is this not possible with Railway's Postgres? https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.PostgreSQL.html For full-load plus CDC tasks or CDC-only tasks, grant superuser permissions for the user account specified for the PostgreSQL source database. The user account needs superuser permissions to access replication-specific functions in the source. For full-load only tasks, the user account needs SELECT permissions on tables to migrate them.
3 replies
RRailway
Created by johns on 5/15/2023 in #✋|help
VPC Peering, pgvector, pgbouncer timelines if at all
Hey, trying to move off to a hosted database. We want to use AWS ideally; however, we're seeing quite a significant difference in latency for our sql (almost all queries from AWS has latency >p99 compared to Railway). Is it Oregon that the Railway servers are at, or is it LA? (GCP us-west-1 vs us-west-2) Will there be support for VPC peering anytime in the future? Will there be support for pgvector, pgbouncer, and automated backups at all? We would not move off of Railway supported these.
4 replies
RRailway
Created by johns on 5/15/2023 in #✋|help
Latency and VPC peering
Hey, trying to move off to a hosted database. We want to use AWS ideally; however, we're seeing quite a significant difference in latency for our sql (almost all queries from AWS has latency >p99 compared to Railway). 1. Is it Oregon that the Railway servers are at? 2. Will there be support for VPC peering anytime in the future? 3. Will there be support for pgvector, pgbouncer, and automated backups at all? We would not move off of Railway supported these.
3 replies
RRailway
Created by johns on 4/19/2023 in #✋|help
DB memory ever increasing
Hi, 1. What's the actual instance size of the DB on AWS? Right now our DB is nearing 500MB in memory usage and I'm worried if that's the maximum. 2. Is there a way to increase the DB size? (and how might the pricing change)
15 replies
RRailway
Created by johns on 3/14/2023 in #✋|help
Recommended way of connecting datadog-agent
I saw a thread that the template is broken. What's the recommended way to do it?
49 replies