Strapi V4 lose these medias files on every deploy on Render

Hello,

On every deploy of my Strapi V4 i lose my medias library, each files path are broken.

Do you have an idea of what’s happen with this issue

i use this config to deploy on render

# STRAPI
- type: web
  name: phd-strapi
  env: node
  plan: starter
  region: frankfurt
  buildCommand: yarn && yarn workspace strapi build
  startCommand: yarn workspace strapi start
  healthCheckPath: /_health
  disk:
    name: strapi-uploads
    mountPath: /opt/render/project/src/public/uploads
    sizeGB: 1
  envVars:
    - key: NODE_VERSION
      value: 16.15.1
    - key: NODE_ENV
      value: production
    - key: DATABASE_URL
      fromDatabase:
        name: phd-inov-database
        property: connectionString
    - key: JWT_SECRET
      generateValue: true
    - key: ADMIN_JWT_SECRET
      generateValue: true
    - key: APP_KEYS
      generateValue: true
    - key: API_TOKEN_SALT
      generateValue: true

Hi,

It sounds like it’s possible that the files are being stored on ephemeral storage rather than the disk. Files stored on the disk should persist between deploys. Based on the render.yaml, it looks like the disk is mounted at /opt/render/project/src/public/uploads - can you check via the web shell or ssh that your files are being stored at that path correctly? We’re also happy to take a closer look, if you can let us know the email associated with your Render account (feel free to DM this or email to support@render.com).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.