Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using backup and restore, if docker images don't exist on the new server, the "dokku ps:rebuild --all" command will fail #171

Open
xrd opened this issue Nov 30, 2021 · 2 comments

Comments

@xrd
Copy link

xrd commented Nov 30, 2021

Description of problem

I followed the backup and restore options to move my dokku installation to a new server. When I attempted to dokku rebuild:all it failed because the docker images are not yet on the new server.

How reproducible

I only tried once, but I believe this is something that will happen with every new server.

Steps to Reproduce

  1. create a backup (https://dokku.com/docs/advanced-usage/backup-recovery/#creating-a-backup)
  2. create a new server
  3. restore the backup (https://dokku.com/docs/advanced-usage/backup-recovery/#restoring-a-backup)

Actual Results

You cannot rebuild anything that relies on a database since those images aren't there and are not pulled automatically.

Error response from daemon: could not get container for dokku.postgres.hasura-db: No such container: dokku.postgres.hasura-db

For example, database containers won't reboot, you need to pull them manually.

dokku postgres:restart hasura-db
 !     Service is already stopped
=====> Starting container
       Missing image postgres:11.6 for hasura-db
-----> Please call dokku ps:restart on all linked apps

dokku report APP_NAME output

N/A, this is for all apps.

How (deb/make/rpm) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?

Ubuntu 20.4 LTS

@josegonzalez josegonzalez transferred this issue from dokku/dokku Nov 30, 2021
@josegonzalez
Copy link
Member

Moved to a datastore plugin as the fix is to have the datastores try and start before the apps start and bail appropriately there.

@iandees
Copy link

iandees commented Dec 6, 2021

I ran into this after having to delete all my images during a Docker update (ran into this problem with aufs). Pulling the redis or postgres image doesn't seem to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants