a month ago
I'm having challenges getting storage to work, it reports errors even though I think it's set up correctly, can you get help with this?
10 Replies
Status changed to Open Railway • about 1 month ago
a month ago
Hey, can you elaborate more on "storage" (for example volumes or buckets) and what kind of errors you are seeing?
a month ago
Sorry, i'm new into this. I've added a bucket and just try to get the service to save the image.
I'm trying to setup this: https://railway.com/deploy/kan?referralCode=bZPsr2
An error was encountered in a non-retryable streaming request.
Avatar upload failed [AccessDenied: Access Denied.] {
'$fault': 'client',
'$metadata': [Object],
Code: 'AccessDenied',
Resource: '/f039a113-c757-4027-b210-1c5d0d2106cf/f039a113-c757-4027-b210-1c5d0d2106cf_avatar-o73w8z7qz7id.jpg',
RequestId: '1778070623951582323',
Key: 'f039a113-c757-4027-b210-1c5d0d2106cf/f039a113-c757-4027-b210-1c5d0d2106cf_avatar-o73w8z7qz7id.jpg',
BucketName: 'attachments-z24hp655qd6uv'
}
webto-dk
Sorry, i'm new into this. I've added a bucket and just try to get the service to save the image. I'm trying to setup this: <https://railway.com/deploy/kan?referralCode=bZPsr2> An error was encountered in a non-retryable streaming request. Avatar upload failed \[AccessDenied: Access Denied.\] { '$fault': 'client', '$metadata': \[Object\], Code: 'AccessDenied', Resource: '/f039a113-c757-4027-b210-1c5d0d2106cf/f039a113-c757-4027-b210-1c5d0d2106cf\_avatar-o73w8z7qz7id.jpg', RequestId: '1778070623951582323', Key: 'f039a113-c757-4027-b210-1c5d0d2106cf/f039a113-c757-4027-b210-1c5d0d2106cf\_avatar-o73w8z7qz7id.jpg', BucketName: 'attachments-z24hp655qd6uv' }
a month ago
Hey, can you elaborate on what you mean with you have added a bucket to get the service to save the image? I have deployed the template you have linked and couldn't reproduce any errors. The template also included a bucket, which means that you don't have to add one yourself.
Images seems to work in my case.
Attachments
a month ago
Yes, the template included a bucket, but it's not working on my end. I started on the hobby-plan and upgraded to pro to get smtp working. I've moved the web-container to be hosting i EU, does it have to do something with that?
a month ago
I've just tried a clean deploy of the template and i'm getting the same error. Upload failed and same error:
Attachment upload failed [AccessDenied: Access Denied.] {
'$fault': 'client',
'$metadata': [Object],
Code: 'AccessDenied',
Resource: '/1/ffkvnxuz1bk2/65h4f0b15rjz-New_Project__9_.png',
RequestId: '1778095644489271017',
Key: '1/ffkvnxuz1bk2/65h4f0b15rjz-New_Project__9_.png',
BucketName: 'attachments-cni-7tbjezfse'
}
webto-dk
I've just tried a clean deploy of the template and i'm getting the same error. Upload failed and same error: Attachment upload failed \[AccessDenied: Access Denied.\] { '$fault': 'client', '$metadata': \[Object\], Code: 'AccessDenied', Resource: '/1/ffkvnxuz1bk2/65h4f0b15rjz-New\_Project\_\_9\_.png', RequestId: '1778095644489271017', Key: '1/ffkvnxuz1bk2/65h4f0b15rjz-New\_Project\_\_9\_.png', BucketName: 'attachments-cni-7tbjezfse' }
a month ago
Hey, can you show me how to reproduce this in the dashboard? I have deployed the same template but don't have any problems with attaching attachments.
a month ago
I'm just trying to upload a small jpg or png just like you did.
Attachments
a month ago
I did some research on this; it appears the problem could be caused by caching issues. Try to upload an attachment in an incognito tab, and see if it resolves your issue.
a month ago
No difference, still same error.
webto-dk
No difference, still same error.
a month ago
Hey, I think I have managed to reproduce this behavior after a new template deployment. I have "fixed" the attachments issue by just redeploying the web service via the dashboard. Can you try this and see if this also works for you?