You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the db container is broken (won't come up, usually due to corrupted database) and you get "db service stopped" on ddev list then:
ddev rm --R may fail with confusing errors where it immediately starts the project (to make a snapshot, but it hasn't said that yet). During the start, it fails, and never gets to the snapshot.
To Reproduce
Make a snapshot of the good db
Break a project's db container. ddev ssh -s db and rm /var/lib/mysql/mysql/*.MYD and ddev restart. ddev list should show "db container stopped". Pretty nasty thing to do to a database.
and ddev list shows just "db container stopped" again. No hint is given of what the problem or procedure is.
ddev rm -R --omit-snapshot solves the problem just fine.
Expected behavior
I expect ddev rm -R to always succeeed. It should probably just warn if a snapshot can't be created and continue to removal. It's also questionable whether we should always be creating the snapshot. Maybe we should ask.
Version and configuration information (please complete the following information):
ddev v1.2.0
Additional context
Add any other context about the problem here. Thanks!
The text was updated successfully, but these errors were encountered:
rfay
added a commit
to rfay/ddev
that referenced
this issue
Sep 29, 2018
Describe the bug
If the db container is broken (won't come up, usually due to corrupted database) and you get "db service stopped" on
ddev list
then:ddev rm --R
may fail with confusing errors where it immediately starts the project (to make a snapshot, but it hasn't said that yet). During the start, it fails, and never gets to the snapshot.To Reproduce
ddev ssh -s db
andrm /var/lib/mysql/mysql/*.MYD
andddev restart
.ddev list
should show "db container stopped". Pretty nasty thing to do to a database.ddev rm -R
.Result is
and
ddev list
shows just "db container stopped" again. No hint is given of what the problem or procedure is.ddev rm -R --omit-snapshot
solves the problem just fine.Expected behavior
I expect
ddev rm -R
to always succeeed. It should probably just warn if a snapshot can't be created and continue to removal. It's also questionable whether we should always be creating the snapshot. Maybe we should ask.Version and configuration information (please complete the following information):
ddev v1.2.0
Additional context
Add any other context about the problem here. Thanks!
The text was updated successfully, but these errors were encountered: