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

Closed
opened 2026-02-04 17:44:42 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @upuldi on GitHub (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

Originally created by @upuldi on GitHub (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
Author
Owner

@shamoon commented on GitHub (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: https://github.com/plankanban/planka/issues/139#issuecomment-871094096

@shamoon commented on GitHub (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: https://github.com/plankanban/planka/issues/139#issuecomment-871094096
Author
Owner

@vcantrell commented on GitHub (May 1, 2022):

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

image

@vcantrell commented on GitHub (May 1, 2022): Same here as well.... container just reboots after the latest update. ![image](https://user-images.githubusercontent.com/13757016/166136206-4efa3b2b-f6e3-457f-a13f-94c3506474c8.png)
Author
Owner

@vcantrell commented on GitHub (May 1, 2022):

Edit: this saved me: #139 (comment)

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

@vcantrell commented on GitHub (May 1, 2022): > Edit: this saved me: [#139 (comment)](https://github.com/plankanban/planka/issues/139#issuecomment-871094096) Sadly, the result wasn't quite the same for me: ![Planka-2022-05-01_1-57-16-AM](https://user-images.githubusercontent.com/13757016/166137436-2345fbba-ee25-4500-8c73-abddcbedd6e8.png)
Author
Owner

@phylor commented on GitHub (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.

@phylor commented on GitHub (May 1, 2022): > Edit: this saved me: [#139 (comment)](https://github.com/plankanban/planka/issues/139#issuecomment-871094096) 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: ```bash 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.
Author
Owner

@dbrennand commented on GitHub (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
@dbrennand commented on GitHub (May 2, 2022): A kind reminder to make database backups 🙂 ```bash 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#186