Recovery
Rebuild Deplo on a new machine, or get back in when you are locked out.
Both cases are fixed from a shell on the machine Deplo runs on. Your apps keep serving meanwhile: they run on your servers, not in the panel.
Your Deplo machine is gone
Old machine still running? Use Move from another Deplo instead: no shell needed.
To rebuild, you need three things. Save them today, off that machine, for example in a password manager:
-
/opt/deplo/.env, which holdsDEPLO_SECRET. Without it, every stored secret is unreadable: variables, database passwords, S3 keys, git credentials. It can't be changed. -
A dump of Deplo's database, taken regularly:
docker compose -f /opt/deplo/docker-compose.yml --env-file /opt/deplo/.env \ exec -T postgres pg_dump -U deplo deplo | gzip > deplo-$(date +%F).sql.gz -
The recovery key of each backup destination: see Save the recovery key.
Then:
Install Deplo on a new machine
curl -fsSL https://deplo.build/install.sh | bashStop it, and restore the secret
Put the old DEPLO_SECRET into /opt/deplo/.env.
Restore the database, then start it
Restore the dump into the new Deplo's Postgres. Secret first, then the database: the other order gives a panel full of unreadable secrets.
Point the panel's domain at the new machine
Change its DNS record to the new IP. Your servers reconnect by themselves.
A panel with no domain of its own gets a new address: open each server, then Reinstall server agent in its menu (three dots, top right), and run the command on it.
Reconnect this machine's own server
It shows Provisioning in Settings -> Servers. Open it, click Show install command in its menu (three dots, top right), and run the command on this machine.
Re-point git webhooks
Any webhook that names the old address.
You are locked out
Run these as root on the machine Deplo runs on. They skip every permission check.
Reset a password
deplo recover list # every account, with its username
deplo recover password ada # prompts for the new password
deplo recover password ada - # generates one and prints itEvery session of that account is signed out.
Restore ownership or access
deplo recover owner ada # instance owner and admin, not suspended
deplo recover admin ada # instance admin
deplo recover unsuspend ada # lift a suspensionThe previous owner stays an admin until you change it in Settings -> Users.
Fix the panel address
When the panel's domain, DNS or certificate broke:
deplo recover panel-address - # the generated address, like deplo-cb00710a.deplo.site
deplo recover panel-address deplo.example.com # or a domain that works
deplo restartThen open the new address. A panel on a Cloudflare Tunnel leaves it: Deplo turns the tunnel off and deletes it in Cloudflare.
Fix a server's address
When a typed Free domains point at address is wrong and the panel can't fix it:
deplo recover server-address edge-2 203.0.113.24It saves the address as given, without checking it.
Good to know
deplo logsfollows the panel's logs,deplo restartrestarts it.- Account commands leave no trace in Activity. Root on that machine is all they need.
Something wrong? See Sign-in and access.
Did this page help you?