2 months ago
It's been roughly 2 weeks that all my Gitlab pipelines will fail from time to time with the following error when trying to fetch and install the railway CLI:
$ curl -fsSL https://railway.app/install.sh | sh
x Failed to fetch latest version from GitHub
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit code 1
This is extremely annoying because we have to wait 5-10 minutes then retry the pipelines.
What is the issue?
1 Replies
2 months ago
The shell install script queries the GitHub API to resolve the latest CLI release, and shared CI runner IPs frequently hit GitHub's unauthenticated rate limit (60 requests/hour per IP). This causes the intermittent "Failed to fetch latest version from GitHub" error. For CI/CD pipelines, installing via npm (npm i -g @railway/cli) avoids the GitHub API dependency entirely and is much more reliable.
Status changed to Awaiting User Response Railway • 2 months ago
Status changed to Solved djulian • 2 months ago