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

Issue -the following files are missing: 20180721234154_create_project_membership_table.js #238

Open
upuldi opened this issue May 1, 2022 · 5 comments

Comments

@upuldi
Copy link

upuldi commented May 1, 2022

I am getting the following error from the latest docker (1.13).

Error: The migration directory is corrupt, the following files are missing: 20180721234154_create_project_membership_table.js

@shamoon
Copy link

shamoon commented May 1, 2022

same here, and sadly for me I tried to exec into the container and run
cd db && wget https://raw.githubusercontent.com/plankanban/planka/d6cb1f6683774ffa52012f42b6483a8a93e704d1/server/db/migrations/20180721234154_create_project_membership_table.js -P migrations and restarted and now all of my data is gone...

Edit: this saved me: #139 (comment)

@vcantrell
Copy link

vcantrell commented May 1, 2022

Same here as well.... container just reboots after the latest update.

image

@vcantrell
Copy link

Edit: this saved me: #139 (comment)

Sadly, the result wasn't quite the same for me:
Planka-2022-05-01_1-57-16-AM

@phylor
Copy link

phylor commented May 1, 2022

Edit: this saved me: #139 (comment)

The procedure worked for me without any errors.

However, when restarting the web container, it still complains about the missing migration and hence does not boot. As the container keeps running (instead of dying), I was able to download the migration again:

docker-compose exec planka sh

# Within the container:
/app $ cd db
/app/db $ wget https://raw.githubusercontent.com/plankanban/planka/d6cb1f6683774ffa52012f42b6483a8a93e704d1/server/d
b/migrations/20180721234154_create_project_membership_table.js -P migrations

Data seems to be still intact after these procedures.

@dbrennand
Copy link
Contributor

dbrennand commented May 2, 2022

A kind reminder to make database backups 🙂

NOW=$(date +"%d%m%yT%T")
PLANKA_DB_PASSWORD="<DB Password Here>"
docker exec -i planka /bin/bash -c "PGPASSWORD=$PLANKA_DB_PASSWORD pg_dump --username planka planka" > dump_$NOW.bak

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

No branches or pull requests

5 participants