rob
rob
RRailway
Created by rob on 6/20/2024 in #✋|help
Intermittently empty logs after switching to Runtime V2
No description
6 replies
RRailway
Created by rob on 6/8/2024 in #✋|help
Unresponsive deployment after some hours
Hello, I've been using Railway to host my Telegram bot for more than an year and I never experienced this sort of issue until I enabled app sleeping a few days ago. With that option enabled, the bot would just go to sleep without ever being able to wake (but that's fine, given I didn't take into account that a Telegram bot only pulls for updates). So, when I noticed that I disabled app sleeping and allowed the bot to redeploy with the new configuration but in the next days the bot became unresponsive after a few hours. I tried to fix it redeploying it but it was always a temporary fix and now it seems to be stuck again (with no issues logged). Can you please check if there is anything wrong with the configuration or the deployment of my project? I'd be happy to share any other information needed. Also, I'd like to have the project back to work as soon as possible but I can keep it broken until the issue is triaged, if needed. The project is f6d25e17-9bb2-457f-8ce2-e55b5ce1dcd8 The service is 8c4e4e87-7cf3-4ab2-9ec2-b6cc41db7b5b The deployment is 81cc519b-a7a3-41db-8266-53e08952e935 EDIT: the deploy was triggered yesterday at 2:16 PM CET (GMT+2) and it was working properly at least until today at 1:15 AM CET (GMT+2)
10 replies
RRailway
Created by rob on 9/16/2023 in #✋|help
How can I set usage limits?
No description
11 replies
RRailway
Created by rob on 6/5/2023 in #✋|help
Will new developer plan subscribers get their fee waived?
Hi all, a friend of mine is looking to join Railway's developer plan before the pricing changes. Given he is already a verified user, will he get his fee waived once he activates the plan?
6 replies
RRailway
Created by rob on 5/6/2023 in #✋|help
Cache mount ID is not prefixed with cache key when deploying test instance
Hello all, today I tried to boot up my test instance but every attempt at doing so lead the deploys to fail immediately with the error Cache mount ID is not prefixed with cache key (no further information are present in build logs). The Dockerfile used to build the project is the following (as copied from GitHub https://github.com/Stickerifier/Stickerify/blob/migrate-to-telegram-bot-api/Dockerfile):
FROM gradle:8.0-jdk19 AS builder
WORKDIR /app
COPY settings.gradle build.gradle ./
COPY gradle/libs.versions.toml ./gradle/
RUN \
--mount=type=cache,id=cache-dependencies,target=/home/gradle/.gradle/caches \
gradle dependencies --no-daemon
COPY . .
RUN gradle shadowJar --no-daemon

FROM eclipse-temurin:19 AS bot
RUN \
--mount=type=cache,id=cache-apt,target=/var/cache/apt \
apt-get -y update && apt-get -y upgrade && \
apt-get install -y --no-install-recommends ffmpeg
ARG STICKERIFY_TOKEN
ENV STICKERIFY_TOKEN $STICKERIFY_TOKEN
WORKDIR /app
COPY --from=builder /app/build/libs .
CMD ["java", "-jar", "Stickerify-shadow.jar"]
FROM gradle:8.0-jdk19 AS builder
WORKDIR /app
COPY settings.gradle build.gradle ./
COPY gradle/libs.versions.toml ./gradle/
RUN \
--mount=type=cache,id=cache-dependencies,target=/home/gradle/.gradle/caches \
gradle dependencies --no-daemon
COPY . .
RUN gradle shadowJar --no-daemon

FROM eclipse-temurin:19 AS bot
RUN \
--mount=type=cache,id=cache-apt,target=/var/cache/apt \
apt-get -y update && apt-get -y upgrade && \
apt-get install -y --no-install-recommends ffmpeg
ARG STICKERIFY_TOKEN
ENV STICKERIFY_TOKEN $STICKERIFY_TOKEN
WORKDIR /app
COPY --from=builder /app/build/libs .
CMD ["java", "-jar", "Stickerify-shadow.jar"]
It's also worth keeping in mind I configured the shared environment variable (used both by Production and Test) RAILWAY_DOCKERFILE_PATH with value Railway.dockerfile where I'd execute the following instructions:
FROM rob93c/stickerify
ARG STICKERIFY_TOKEN
ENV STICKERIFY_TOKEN $STICKERIFY_TOKEN
FROM rob93c/stickerify
ARG STICKERIFY_TOKEN
ENV STICKERIFY_TOKEN $STICKERIFY_TOKEN
This failure seems strange to me since everything works properly in my production environment. The project ID is f6d25e17-9bb2-457f-8ce2-e55b5ce1dcd8
15 replies
RRailway
Created by rob on 4/25/2023 in #✋|help
Is it possible to configure Railway to deploy only after the old deploy is removed?
The project I keep deployed on the site does not allow for multiple instances running at the same time and the current deploy process causes an overlapping of about 20-30 seconds where 2 versions of the project are live concurrently (causing unneeded error logs in both instances) Is it possible to prevent this by configuring Railway?
13 replies
RRailway
Created by rob on 3/20/2023 in #✋|help
Error Removing deployment: Problem processing request
4 replies