Closed duboism closed 3 years ago
I have found a similar closed issue (#7). Not sure what happens here.
Following #7,I tried to use 4.2.5
. Downloading BaltimoreCyberTrustRoot.crt.pem
works but docker-compose
ends up with:
limesurvey_limesurvey_1 exited with code 6
Trying 4.3.33
raises the original issue.
One of the issues seems to be that my container can't access the network. It seems to be an issue with recent versions of docker. Adding network_mode: "host"
to docker-compose.yml
seems to help: download works.
But I still have limesurvey_limesurvey_1 exited with code 1
.
It looks like LimeSurvey can't connect to your database. Can you please send the exact docker-compose file you have created and I'll have a look (ok to change passwords but please keep everything else).
The docker-compose.yml
file I use is:
version: '2'
services:
limesurvey:
image: acspri/limesurvey:4.2.5
network_mode: "host"
ports:
- 8082:80
environment:
LIMESURVEY_DB_PASSWORD: example
LIMESURVEY_ADMIN_USER: admin
LIMESURVEY_ADMIN_PASSWORD: password
LIMESURVEY_ADMIN_NAME: Lime Administrator
LIMESURVEY_ADMIN_EMAIL: lime@lime.lime
LIMESURVEY_USE_INNODB: 1
mysql:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: example
mail:
image: djfarrelly/maildev
ports:
- "8081:80"
It's copied from the example in the repository with minor adaptations (network_mode: "host"
, using version 4.2.5
, removing build: .
). This one raises limesurvey_limesurvey_1 exited with code 1
after a few limesurvey_1 | MySQL Connection Error: ()
.
So your diagnostic is probably correct: the container can't connect to the DB container but I have no idea why. Thanks in advance for your help.
I don't think the network_mode command is right.
Please change back to:
`
version: '2'
services:
limesurvey: image: acspri/limesurvey:4.2.5 ports:
8082:80 environment: LIMESURVEY_DB_PASSWORD: example LIMESURVEY_ADMIN_USER: admin LIMESURVEY_ADMIN_PASSWORD: password LIMESURVEY_ADMIN_NAME: Lime Administrator LIMESURVEY_ADMIN_EMAIL: lime@lime.lime LIMESURVEY_USE_INNODB: 1
mysql: image: mariadb environment: MYSQL_ROOT_PASSWORD: example
mail: image: djfarrelly/maildev ports:
Then run a: docker-compose down
Then a: docker-compose up -d
If it doesn't start then try the docker-compose up -d command again as it may just be timing out waiting for the mysql container to start.
Adam
Without network_mode: "host"
, it can't download the certificates. But you're right it's not a solution since I think this prevents the connection to mysql
to work.
I finally found a solution: the problem is that docker
is more or less broken under Fedora 32 and more (I use Fedora 33). Following the accepted answer here, I was able to start the application (without network_mode: "host"
).
Hello,
I'm not a docker expert but I can't install.
I have created a
docker-compose.yml
file identical to the one on the git repository and rundocker-compose up
but it seems to fail. Here are the logs:AFAIU everything seems to be ok for
mail_1
andmysql_1
but there are errors inlimesurvey_1
. Any thought ?I'm using
Docker version 19.03.13, build 4484c46
on Fedora 33.