Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conection error external database #20

Open
alvaromartmunoz opened this issue Aug 2, 2023 · 5 comments
Open

Conection error external database #20

alvaromartmunoz opened this issue Aug 2, 2023 · 5 comments

Comments

@alvaromartmunoz
Copy link

I get constantly this error in docker logs
image

i`m trying to configure the container with rds database. I have this docker-compose.yml

version: '3.7'
services:
    opencms:
        image: alkacon/opencms-docker:15.0
        container_name: opencms
        init: true
        restart: always
        ports:
            - "8081:8080"
        volumes:
            - ./opencms-docker-webapps:/usr/local/tomcat/webapps
        command: ["/root/wait-for.sh", "mysql:3306", "-t", "30", "--", "/root/opencms-run.sh"]
        environment:
            - "DB_PASSWD=Qwerty1234!"
            - "DB_HOST=XXXXXXXXXX.eu-west-2.rds.amazonaws.com"
            - "DB_USER=admin"
            - "DB_NAME=opencms"
            - "DEBUG=true"

anyone can help me??
Thanks

@dSeidel
Copy link
Collaborator

dSeidel commented Aug 2, 2023

Hi, in "command" you wait for the mysql service that you do not start anymore. Try
command: ["/root/opencms-run.sh"] only.
Nevertheless, I'm not sure if the configurable part of the DB connection options is enough to connect successfully or if more adjustments, not configurable via environment variables are necessary. The image as is is designed to connect to MariaDB. But you'll see.
Best, Daniel.

@alvaromartmunoz
Copy link
Author

Hi!,

I run it only with command: ["/root/opencms-run.sh"] but i get the following error:
image
i saw the next issue but i don´t find the solution Use external database #12

If i change the RDS connection from mysql to mariadb, it could be possible to fix the error?

Regards, Alvaro.

@alvaromartmunoz
Copy link
Author

Hi,

i changed the database type to mariadb and i get the same error.

Regards.

@dSeidel
Copy link
Collaborator

dSeidel commented Aug 2, 2023

I think you are doing a fresh installation, are you? If yes, have you removed all content of your ./opencms-docker-webapps folder before you re-tested?

@Sama6717
Copy link

I had the same problem, i resolved by uninstalling docker and reinstalling it again,

Hi,

i changed the database type to mariadb and i get the same error.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants