Nextcloud installation internal server error

I am trying to install Nextcloud+MariaDB container and having problems. I found similar discussions but could not find a solution. My docker-compose.yaml file is as follows:

#version: ‘2.1’

services:
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
- PUID=1000 # Adjust user ID if necessary
- PGID=1000 # Adjust group ID if necessary
- TZ=Europe/Istanbul # Adjust time zone if necessary
# - MYSQL_DATABASE=${MYSQL_DATABASE} # Database name
#- MYSQL_USER=${MYSQL_USER} # Database user
#- MYSQL_PASSWORD=${MYSQL_PASSWORD} # Replace with a strong password
#- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_TRUSTED_DOMAINS}
volumes:
- /mnt/nfs/docker-volumes/nextcloud/config:/config
- /mnt/nfs/docker-volumes/nextcloud/data:/data
ports:
- 7443:443 # Map port 7443 of the host to port 443 of the container (HTTPS)
networks:
- nextcloud
depends_on:
- mariadb # Wait for MariaDB to be ready before starting Nextcloud
restart: unless-stopped

mariadb:
image: lscr.io/linuxserver/mariadb:latest
container_name: mariadb
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Istanbul
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
volumes:
- /srv/nextcloud/mariadb:/config
networks:
- nextcloud
restart: unless-stopped

networks:
nextcloud:
driver: bridge
name: nextcloud

After adjusting .env file and bringing the container up, the container comes up. After adjusting the parameters, I receive

"Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log."

The error in container showed as:
“Next OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘nextcloud.oc_appconfig’ doesn’t exist in /app/www/public/lib/private/DB/Exceptions/DbalException.php:71”

I read some discussions and send “docker exec -it nextcloud occ maintenance:install”. I receive:
“An unhandled exception has been thrown:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘nextcloud.oc_appconfig’ doesn’t exist in /app/www/public/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php:130”

I would be appreciated with any help.

You need to use an older tag of nextcloud. There are bugs in their recent release.

I used 28.0.4 and it worked. Thank you very much :wave: