2 months ago
Overview:
Seems like the main problem: deploy form github-runner
I tried to run the same script locally via the terminal and everything works fine. It seems that something on the railway side is blocking update requests from github-runner.
Github-actions deploy script:
deploy-dev:
name: Deploy to Railway Dev
needs: release
if: github.event_name == 'push' && github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
environment: develop
steps:
- name: Install Railway CLI
run: npm install -g @railway/cli
- name: Download compiled
uses: actions/download-artifact@v4
with:
name: cowobook-frontend-${{ github.run_id }}
- name: Deploy to Railway
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
run: |
echo "Deploying pre-built app to Railway..."
railway up --service ${{ secrets.SERVICE_ID }} --verbose
Logs:
Deploying pre-built app to Railway...
Indexing...
railway up
service: a5d40d4a-82e1-4706-a657-6d3be37e8429
environment: fcc9c815-94e7-438e-a601-c3c785a46bbf
bytes: 6003183
url: https://backboard.railway.com/project/5321d5fd-27e4-44d0-8d2f-de7bd4d8d8ca/environment/fcc9c815-94e7-438e-a601-c3c785a46bbf/up?serviceId=***
Uploading...
Failed to upload code with status code 403 Forbidden
Error: Process completed with exit code 1.
1 Replies
2 months ago
Hmmm... usually a 403 error during upload from GitHub Actions (but not locally) typically indicates an issue with the Railway token permissions or token type.
Can you-
1) Verify they're using a Project Token (not a Team Token) scoped to the correct project/environment, 2) Regenerate the token and update the GitHub secret, 3) Ensure the token hasn't been revoked or expired. If using a Team Token, you need to also set RAILWAY_PROJECT_ID environment variable.
Thanks,
Angelo
Status changed to Awaiting User Response Railway • 2 months ago
2 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 2 months ago