Back

Docker schedule-functions, maintenance and schedule-messages images restart loop after fresh install

  • 0
  • Self Hosted
Sam K
30 Apr, 2024, 15:01

this 3 docker images stuck in loop after fresh install. I had 1.5.4 and ran docker system prune -a to clean all docker images and volumes and tried to install 1.5.5

TL;DR
Developers were experiencing a restart loop issue with Docker after a fresh install of specific images. To solve this, they were advised to remove all Appwrite images and volumes, restart, run 'docker compose up -d', and ensure all remnants were cleared before reinstallation. Additionally, setting a custom MariaDB user and pass from the .env file could have contributed to the problem. It was recommended to prune and remove all remnants thoroughly before attempting a clean installation. For updates from 1.5.4 to 1.5.5, the upgrade command should be used instead of the install command as outlined in the documentation.
Evdog
30 Apr, 2024, 15:12

Pruning doesn't kill volumes, if you're trying a fresh install you need to remove the containers and volumes. If you're trying to update from 1.5.4 to 1.5.5 you need to do the upgrade cmd rather than the install.

https://appwrite.io/docs/advanced/self-hosting/update has the cmd

Sam K
30 Apr, 2024, 15:15

Thanks @Evdog before the prune command I ran the uninstall command from the docs docker compose down -v and before installing the new instance I cheked there was no volumes or images in all docker.

I am cleaning my server and removed everything intentionally.

Sam K
30 Apr, 2024, 15:23

I just pruned everything again just in case no images, volumes or networks are present. Also removed the Appwrite directory.

Is there any other place that I should remove Appwrite old files/cahce from?

Evdog
30 Apr, 2024, 15:25

Try bouncing the server just to be safe and install. If it still spins, post the logs from the looping containers and we can take a deeper look

Sam K
30 Apr, 2024, 15:25

do you mean restar the server?

Evdog
30 Apr, 2024, 15:33

yeah

Sam K
30 Apr, 2024, 15:44

does setting a custom mariadb user and pass from the .env could has anything to do with this?

Sam K
30 Apr, 2024, 15:48

Solved πŸ™‚

Sam K
30 Apr, 2024, 15:50

the issue was for some reason after removing docker volumes and images after restart some of them just pops back.

what I did: docker compose down -v

Sam K
30 Apr, 2024, 15:51

remove all appwrite images and volumes restart remove everything again and then restart and run docker compose up -d everything wokrs like charm thanks @Evdog

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more