Latest docker update of lts-postgres-tomcat gives error 500

The image has been updated on Wednesday. Checking today I get the error “Request failed with status code 500” in Portainer even after downloading the latest image again.

Please let me know, if you need additional info.

A request failing with response code 500 only tells you there was some kind of server error. When does the error show up? Are you just trying to access the page or clicking somewhere?

What image version do you use? And most importantly, could you share the XWiki container logs? It should contain some information about the error you are experiencing.

The error popped up in Portainer when deploying the stack and the containers are not starting. However, if I deploy the stack again the container start.

BUT for some reason the container for xwiki does not join the network defined in the docker-compose file. The database for xwiki and other containers connect just fine. Log attached.

_xwiki_logs.txt (47.2 KB)

Here the docker-compose:

version: '2'
services:
  web:
    # Use an already built XWiki image from DockerHub.
    image: "xwiki:lts-postgres-tomcat"
    container_name: xwiki
    depends_on:
      - db
    ports:
      - "8889:8080"
    # The DB_USER/DB_PASSWORD/DB_HOST variables are used in the hibernate.cfg.xml file.
    environment:
      - DB_USER=xwiki
      - DB_PASSWORD=xwiki
      - DB_DATABASE=xwiki
      - DB_HOST=xwiki-postgres-db
    volumes:
      - /srv/dev-disk-by-label-nvme/docker/xwiki-data:/usr/local/xwiki
      - /srv/dev-disk-by-label-nvme/docker/xwiki-tomcat:/usr/local/tomcat/conf   
    restart: unless-stopped
    networks:
      - nextcloud_default
# The container that runs PostgreSQL
  db:

    image: "postgres:16"
    command: ["postgres", "-c", "log_checkpoints=off"]
    container_name: xwiki-postgres-db
    volumes:
      - /srv/dev-disk-by-label-nvme/docker/xwiki-db:/var/lib/postgresql/data
      - /srv/dev-disk-by-label-nvme/docker/backup_postgress:/backup
    environment:
      - POSTGRES_ROOT_PASSWORD=xwiki
      - POSTGRES_PASSWORD=xwiki
      - POSTGRES_USER=xwiki
      - POSTGRES_DB=xwiki
      - POSTGRES_INITDB_ARGS="--encoding=UTF8"
    restart: unless-stopped
    networks:
        - nextcloud_default

networks:
  nextcloud_default:
   external: true

Not sure why, but changing the port mapping solved the issue. Changed 8889:8080 to 8890:8080.

Strange as it was working for years and I did not change or add any port mappings last months.

The update was from xwiki 17.10.6 to 17.10.7.

EDIT: found the issue. I am running docker alongside openmediavault. Since some days omv-kvm-monitor is using port 8889.

1 Like