alkacon / opencms-docker

Docker automated OpenCms build
GNU Lesser General Public License v2.1
20 stars 28 forks source link

Timeout while trying to connect to database #19

Closed ManfredSchenk closed 2 years ago

ManfredSchenk commented 2 years ago

Environment:

Problem: Operation timeout: database not accessible

grafik

alkacon-jGraf commented 2 years ago

It seems that you do not start with a fresh MariaDB. Please remove the container as well as the mounted folder and try again. In the directory of the docker-compose.yml file:

docker-compose stop opencms docker-compose rm -s mariadb rm -rf ~/dockermount/opencms-docker-mysql docker-compose up -d

ManfredSchenk commented 2 years ago

same behaviour after removing container and folder... grafik

alkacon-jGraf commented 2 years ago

This is a problem related to your virtual machine: "failed with ENOMEM". Closing this issue.

ManfredSchenk commented 2 years ago

seems to be a common problem with latest mariadb images when running inside docker in a non-ubuntu environment. managed to start mariadb now by downgrading mariadb to 10.7.7-focal. But still timeout from opencms.

ManfredSchenk commented 2 years ago

found the solution: when running docker from within debian, one has to use iptables-legacy instead of the default nftables. (see in https://dev.to/bowmanjd/install-docker-on-windows-wsl-without-docker-desktop-34m9 the paragraph concerning iptables)