#Payload cloud images missing after deployment cycle

4 messages · Page 1 of 1 (latest)

novel nymph
#

Hello Everyone!

I am facing a problem with image assets (similar to this thread: https://discord.com/channels/967097582721572934/1197953372687437934)

Behavior
I upload images to Payload Cloud using the Admin UI. After upload, the image is available on the URL that its database entry provides. Now I make changes to my payload project, commit them and push them to the repo. A new deployment is started and changes are bulit and deployed from the most recent changes. All works beautiful. The problem is, after this new deployment is live, I request the same URL for that image and it returns a 404.
If I look into the logs, I see "NotFound: The requested resource was not found." Errors, which do not really help me much.

I researched and tried a lot but still facing this issue. Please see the screenshots attached to learn more about my configuration and this problem. What can I do to resolve this issue?

Billing ID for this project is: 6569df789a9bc063c641dcbe

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

glass magnetBOT
novel nymph
#

Solved it recently! The solution was to change the order of the plugins. Once I put the payloadCloud() after the siteManagement() it now works as expected. The way my config is set up, apparently the site management got initialized after the cloud plugin. Causing the plugin to not work properly and putting the assets in the local disk

safe talon
#

@novel nymph interesting. By chance did you notice if this affected access errors with images in Payload as well? I had a similar issue where the images would spit out ‘forbidden’ after a git push. I’ll test your solution on my end to see if it helps at all. Thanks for your insight!