NC22 Docker Internal Server Error

Hi, I just got an internal server error and I am not sure how to solve that issue so I hope someone can help me.
The internal server error appeared after I upgraded the mariadb version but I am not sure if it is the cause of the issue because I think my configuration is flawed anyways.
This was my first time trying docker so I am new to Dockerfiles and entry point for Nextcloud.

I am using Debian GNU/Linux 10 (buster)
docker version 20.10.7, build f0df350
and docker-compose version 1.29.2, build 5becea4c
also an apache reverse proxy on my host system and routing it securely to this insecure docker NC instance.

Here is my docker-compose.yml:

services:
  db:
    image: mariadb
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - ./Container-Daten/db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=********************
    env_file:
      - db.env

  redis:
    image: redis:alpine
    restart: always

  app:
    build: ./app
    restart: always
    ports:
      - 8888:80
    volumes:
      - ./Container-Daten/html:/var/www/html
    environment:
      - MYSQL_HOST=db
      - REDIS_HOST=redis
      - VIRTUAL_HOST=cloud.secureserver.de
      - PHP_MEMORY_LIMIT=7G
      - HTTP_X_FORWARDED_HOST=cloud.secureserver.de
      - HTTP_X_FORWARDED_PROTO=https
      - TRUSTED_PROXIES=cloud.secureserver.de
    env_file:
      - db.env
    depends_on:
      - db
      - redis

  cron:
    image: nextcloud:apache
    restart: always
    volumes:
      - ./Container-Daten/html:/var/www/html
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis

  collab:
    image: collabora/code
    ports:
      - 9980:9980
    environment:
      - domain=cloud.secureserver.de
    restart: always

I am pretty sure the “build: ./app” part is wrong.
My app folder looks like this:
image

This is the example from the docker git which I would like to try to use now:

I noticed the entrypoint.sh and guess I would have to call that in my docker-compose.yml somehow?
Also I would like to ask if these files will be updated themselves or if I have to do anything if I upgrade to new versions?

Thanks for your help in advance!
Simon

1 Like

I’m in the same boat, do you also have

OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.

in your nextcloud log?

I solved this issue by specifying mariadb:10.5 as per this post.

1 Like

Thanks, that solved the issue for me!

I had a similar problem, that I’ve got a database exception while upgrading from version 21 to 22. Setting the database image to mariadb:10.5 solved my problem as well.

Same for me. It was the MariaDB upgrade to 10.6 that broke it. I rolled it back to 10.5 and all is good.

Fortunately for me I always snapshot my VM before each upgrade. I don’t know if you can safely load the 10.6 MariaDB database back into 10.5.