2 months ago
Issue:
All S3 operations (ListObjects, PutObject, GetObject with presigned URLs) return AccessDenied when
using Railway Object Storage credentials, even from within a Railway-deployed service.
What I've tried:
- Created two separate buckets — both have the same issue
- Reset credentials on the first bucket — no change
- Tested from inside the Railway container using a direct Node.js script with the minio-js SDK — still Access Denied
- Tried both endpoints: t3.storageapi.dev and storage.railway.app
- Tried multiple regions: ams and auto
- Tried with and without pathStyle: true
- Verified env vars resolve correctly inside the container (ACCESS_KEY_ID, SECRET_ACCESS_KEY, BUCKET, REGION all present)
Reproduction (run inside Railway container):
node -e "
const Minio = require('minio');
const c = new Minio.Client({
endPoint: 't3.storageapi.dev',
useSSL: true,
accessKey: process.env.MINIO_ACCESS_KEY,
secretKey: process.env.MINIO_SECRET_KEY,
region: process.env.MINIO_REGION
});
c.listObjects(process.env.MINIO_BUCKET, '', true)
.on('data', d => console.log('OK:', d.name))
.on('error', e => console.log('ERR:', e.code, e.message));
"Result: ERR: AccessDenied Access Denied.
Environment:
- minio-js SDK version: 8.0.6
This is maybe unrelated but the issue appeared when I switched to Pro plan
Attachments
9 Replies
2 months ago
Have you tried setting pathStyle: true on your client?
2 months ago
2 months ago
Maybe triple check your environment variables are correct (or even use the add to service button on the bucket), otherwise I have no idea
Well, it's still no working on my side but thank you for trying !
At least I feel a bit better because I was trying to figure out what I did wrong for hours x)
2 months ago
Not fair to close my thread I'll just switch if you don't want to help us railway really disappointed by this reaction. More over i just ask help on discord and it created automatically a thread...
2 months ago
Not fun to have something in prod broken wait for 4 days without instead of the 48h promised, after the wait have the thread closed. Even more frustrating when the issue have 95% coming from your side and other users won't be able to help me here.
As I said in the closed thread (https://station.railway.com/support/bucket-auth-error-cb3663b0), I tried with another freshly created railway account and the snippet I provided works, but not on this account
Status changed to Open brody • 2 months ago
Status changed to Solved manuelr-t • 2 months ago