Problem:XWiki don't start automatically after a system reboot

Problem

You installed the app XWiki and after a system reboot, you notice that’s the app won’t auto start.
That’s because you run into this Bug 55240

Solution

In the Bug report you will find a workaround to solve the problem:

Check if the container for XWiki is running:

docker ps 

Change the directory to:

 cd /var/lib/univention-appcenter/apps/xwiki/compose

Tried then:

docker-compose up -d

which gives us the following error message:

Creating network “compose_appcenter_net” with the default driver
ERROR: Pool overlaps with other one on this address space

So the following will configure to auto start Xwiki:

docker system prune -f

You are in the path /var/lib/univention-appcenter/apps/xwiki/compose and configure the file

vim docker-compose.yml

Add the restart policy for in section “web” and “db” container with adding this line directly after the container-name

restart: unless-stopped

for example:

web:
    # Image was: xwiki:13.10.6-mysql-tomcat
    # Image was: docker.software-univention.de/xwiki-web:13.10.6
    # Image was: xwiki:13.10.6-mysql-tomcat
    image: "docker.software-univention.de/xwiki-web:13.10.6"
    container_name: xwiki-web
    restart: unless-stopped
    depends_on:
db:
    # Image was: mysql:5.7.37
    # Image was: docker.software-univention.de/xwiki-db:13.10.6
    # Image was: mysql:5.7.37
    image: "docker.software-univention.de/xwiki-db:13.10.6"
    container_name: xwiki-mysql-db
    restart: unless-stopped
    volumes:

Then a start is executed with:

docker-compose up -d

Now do a reboot from the system and. XWiki now starts fine with his belonging DB as container with the docker-service.

Mastodon