Images disappear after deploy

default discord avatar
kresimirgalic
9 months ago
5

Hey guys, i have an app deployed on render, and each time i deploy a new build, images are gone from media collections. Did someone had that problem?

  • discord user avatar
    dribbens
    Payload Team
    9 months ago

    @kresimirgalic How are you handling your file storage? The default in Payload is to save files locally to the express server running node.


    It sounds as though you are using storage on the server instance and that instance is replaced each deploy. The docs talk about it here:

    https://payloadcms.com/docs/production/deployment#file-storage
  • default discord avatar
    jellekuipersdpm
    last month

    Hi @dribbens we are experiencing the same issue with images disappearing after each new build during the deploy stage. We are using Payload Cloud and it looks like the file storage is setup correctly, so I'm not sure where/what to check next. Would be great if you could help out - thanks in advance!

  • discord user avatar
    dribbens
    Payload Team
    last month

    This has to be a configuration issue. We will Dm you to find out which project is yours.

  • discord user avatar
    denolfe
    Payload Team
    4 weeks ago

    @jellekuipersdpm Let's keep troubleshooting here as much as we can. Like Dan said, images that disappear after each deploy typically means that your cloud storage is not configured correctly. It is likely writing to the

    ephemeral

    disk that is created for each new instance of your application.



    A few questions to help troubleshoot:



    - Are you using one of the payload cloud templates? If so, which one?


    - Can you check that your project's config is calling

    payloadCloud()

    inside of your

    plugins

    array? This comes from

    https://github.com/payloadcms/plugin-cloud
  • default discord avatar
    jellekuipersdpm
    4 weeks ago

    Hi @denolfe, thanks for the tips! I'll dig in to it and come back with an answer.

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.