diff --git a/Repair-Docker.md b/Repair-Docker.md new file mode 100644 index 0000000..1b16512 --- /dev/null +++ b/Repair-Docker.md @@ -0,0 +1,70 @@ +## 1) Create Backups first + +[Backup](https://github.com/wekan/wekan/wiki/Backup) + +Docker data is usually at `/var/lib/docker` or `/var/snap/docker/common/` (in Snap version of Docker). + +## 2) No errors of MongoDB ? + +- Check does docker-compose.yml have like `mongod --logpath=/dev/null --quiet`. Well, it's very quiet. +- Just remove logpath, or set it to syslog with `--syslog`. +- Or add path to somewhere where mongod service has write access, like `--logpath=/var/lib/docker/mongodb.log` or `--logpath=/var/snap/docker/common/mongodb.log`. +- If you remove `--quiet`, you get even more verbose logs. + +## 2) Errors of Wekan connecting to MongoDB ? + +Probably did upgrade your kernel. Please reboot. + +## 3) Errors about too new or old version of MongoDB ? + +Check your docker-compose.yml . Did newer Wekan with newest docker-compose.yml from https://github.com/wekan/wekan have different version of MongoDB? If yes, you should change to that old version. For example: +``` +docker-compose stop +``` +Then in docker-compose.yml, `image: mongo:latest` to some other like `image: mongo:3.2` or 3.2.22 or 4.2 or something. Then: +``` +docker-compose start +``` +Or alternatively: +``` +docker-compose up -d +``` +## 4) Trying to upgrade Wekan? + +### 1) [Backup](https://github.com/wekan/wekan/wiki/Backup) + +### 2a) Nice way: +``` +docker-compose stop + +docker rm wekan-app +``` +Then edit docker-compose.yml wekan-app version tag, for example: +``` +image: quay.io/wekan/wekan:v4.55 +``` +And start Wekan: +``` +docker-compose up -d +``` +Done! + +### 2b) Brutal way: Destroy all Docker data! + +Deletes all containers etc! Clean, empty, data loss possible if you did not backup all Docker containers, and no conflicts when installing. +``` +git clone https://github.com/wekan/docker-cleanup-volumes + +cd docker-cleanup-columes + +./start.sh +``` +If you have Snap version of Docker, you need to add to scripts path of docker command, that is `/snap/bin/docker`. + +Get newest docker-compose.yml from https://github.com/wekan/wekan + +Start Wekan +``` +docker-compose up -d +``` +[Restore](https://github.com/wekan/wekan/wiki/Backup) \ No newline at end of file