snöw
snöw
Explore posts from servers
RRailway
Created by snöw on 11/28/2023 in #✋|help
Template-based Postgres doesn't get correct env variables for PR environments
Hey! We have PR enviroments set up for our project. The project has a web app (from GH) and two template based services - postgres and redis. When a new PR environment is created, the main web app correctly gets it's env variables from the base branch, but not postgres or redis. We migrated from plugins, this wasn't the case there. Any ideas?
4 replies
RRailway
Created by snöw on 10/12/2023 in #✋|help
ioredis and internal network redis
No description
29 replies
RRailway
Created by snöw on 10/12/2023 in #✋|help
Cannot reach Postgres via internal network in same project
We're migrating our Postgres from the plugin system to the new template based one, ran into an issue: During a build of a service it needs to connect to a database. Using the public url this works without a problem, but the internal url (which would be preferred) cannot be reached for some reason. How should I go about debugging this? They are both in the same project
32 replies
RRailway
Created by snöw on 12/10/2022 in #✋|help
How to exclude a default nixpack package from the build?
I'm trying to deploy a Spring Boot application which uses JDK11. Railway incorrectly detected JDK8, causing the build to fail. I added NIXPACKS_PKGS=jdk11, which added jdk11 to the build setup, but didn't remove jdk8 This means that the build is now failing due to this collision error:
error: collision between `/nix/store/hm60khc9q9lgajyl4y3ddsvh7k9qxflb-openjdk-8u322-ga/lib/openjdk/lib/jexec' and `/nix/store/mcawqibgxc0yl4h4b7g9cjnlrwmqwwdz-openjdk-11.0.15+10/lib/openjdk/lib/jexec'
error: collision between `/nix/store/hm60khc9q9lgajyl4y3ddsvh7k9qxflb-openjdk-8u322-ga/lib/openjdk/lib/jexec' and `/nix/store/mcawqibgxc0yl4h4b7g9cjnlrwmqwwdz-openjdk-11.0.15+10/lib/openjdk/lib/jexec'
How can I remove JDK8 from the build setup? Or is there a better way of defining the JDK version?
18 replies
RRailway
Created by snöw on 11/29/2022 in #✋|help
Yarn install failing on new builds
Hey! The yarn install step is failing for my new builds, seems to be a cache issue: #11 2.413 error An unexpected error occurred: "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz: ENOENT: no such file or directory, open '/usr/local/share/.cache/yarn/v6/npm-@types-json5-0.0.29-ee28707ae94e11d2b827bcbe5270bcea7f3e71ee-integrity/node_modules/@types/json5/.yarn-tarball.tgz'"
5 replies
RRailway
Created by snöw on 10/7/2022 in #✋|help
Builds failing due to yarn install errors
12 replies