10 months ago
I am experiencing an issue where after some time using the app, it stops serving images. And I can't seem to find a way to debug it. At first I thought it was due to memory, but it doesn't seem to be the case now.. Not sure how to find the reason for this problem. If I then restart the app, everything works again no issue. I tis a Payload and Next.js deployment using mongo and S3 for cloud storage.
8 Replies
No.. It just suddenly stops working, and then I restart the service, and then it works again for some time.

I tried to ssh into the serivce, but I can't seem to figure out where to tail logs
It happens suddenly, that it doesn't want to load images, and then 10 mins later, I get 502 errors for the image requests made./
This appears to be a bug associated with the s3 plugin for payload. I have been able to replicate this locally now.
I believe I have solved this problem in payload by defaulting to using s3 urls instead of proxying them through the api routes as default by Payload.