Skip to Content

Data, storage and backups

Fix lost or unwritable app data, database connections and startup, and failed backups and restores.

Find what you see on the app, the database or the backup, then apply the fix next to it.

The data disappears on deploy

A container starts empty on every deploy. Mount the folder the app writes to as a Volume in Settings -> Storage, then redeploy. See Persistent storage.

Permission denied inside the container

The container's user does not own the folder.

  • A Volume: make the image create the folder as its own user.
  • A Bind: fix the folder's owner on the server.

A Bind needs Bind server folders, which an instance admin grants in Settings -> Users.

An app cannot reach its database

CheckFix
Same Environment, same server?Only then the app reaches it by name. Otherwise move one, or turn on Expose publicly
DATABASE_URL comes from orders. orders runs on another server than blog and is not publicly reachable.The deploy stops. Move one next to the other, or turn on Expose publicly
Is the variable connected?Use Connect app on the database's Connected apps card. A typed or edited value does not follow a new password or address
Redeployed since?A variable applies on the next deploy
Is the database running?Its badge says. Start it

See Databases and Cannot resolve host.

Authentication fails after Rotate password

The app keeps the old password until it redeploys. A connected variable takes the new one on that deploy; a typed one needs updating first.

The build cannot reach the database

A build is not on the app's private network. Turn on Expose publicly: the build then gets the public address.

A database does not start

  • Database is still provisioning - wait for it to finish before redeploying it.: wait. Stuck? The server could not pull the image, or is offline.
  • Right after creating it: the alert Database db-main could not be set up says why.
  • After lowering Version: the engine cannot read the newer data. Restore a backup on the old version.
  • After a custom command on Redis: keep --requirepass, or it has no password and its backups fail.
  • After a move: Moved db-main's data to edge-2, but its stack did not start there. Redeploy the database.

A Rebuild removed the data

Rebuild starts over with an empty database, and the connection string still works. Restore a backup. For a change that keeps the data, use Redeploy.

A database setting is refused

  • Delete: db-main was NOT deleted means the server has not confirmed the data is gone, or a backup destination cannot be reached. Server gone for good? Tick Delete it from Deplo anyway.
  • Environment: locked while apps are connected. Disconnect all apps, change it, connect them again.
  • A config file: its path is inside the engine's data directory. Pick another path.
  • Move to another team: already has a database named "orders". Rename one of them first.

A backup destination test fails

Connection log, in the destination's menu, shows the step that failed.

ErrorFix
write probe to bucket "backups"The key is read-only. Use one that can write and delete
reach bucket "backups"Check Endpoint and Region
bucket "backups" does not existWrong bucket name, or a key scoped to another bucket
A folder failsThe path does not exist on that server
A private address is refusedAn instance admin ticks This bucket is on my own network

A backup fails

  • eu-2 has 2.0 GB free, too little for this backup: free space on that server, or pick another destination.
  • edge-2, this backup's destination, is offline: bring the server back online, then Back up now.

A scheduled backup left no run

  • Nothing to back up yet for web: its data holds no file yet. The next run after it writes some takes it.
  • Skipped a backup of web: it is not running on eu-1 right now: start it.
  • A run failed with its archive holds no file of web's data: nothing to restore in it. The others are kept.

The data was not in the backup

An app backup holds its Volumes and Files, not a Bind and not its databases. Schedule each database too. See Backups and restore.

A restore fails

  • this backup is not the one Deplo wrote: the file changed since the backup ran. Pick another restore point.
  • An .age file: paste the recovery key of the destination that wrote it. See Save the recovery key.
  • Restore stays greyed out: type the app's or the database's name exactly.

Old backups are disappearing

Keep is a count, not days. Keep 7 keeps the seven most recent backups and removes older ones after each successful run.

Did this page help you?

On this page