Open ammxr opened 5 months ago
This line is wrong:
-Ddb.url=jdbc:mysql://127.0.0.1:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8
Inside a Docker container, 127.0.0.1 refers specifically to the container's own loopback interface, not the host machine's localhost. This means that when your alfresco container tries to connect to 127.0.0.1:3306, it's attempting to connect to a service running on the same network as the container itself, not the database service on the host machine.
Use your host machine local ip instead of 127.0.0.1
Thanks! Yeah I was testing that internally on the same machine though I now have it available to connect from any IP and have tested it on another machine as well. In terms of Alfresco however, I am getting the same output in the console after your corrections/updates to the DB connection:
JAVA_OPTS : '
-Ddb.username=alfresco2
-Ddb.password=alfresco2
-Ddb.driver=com.mysql.cj.jdbc.Driver
-Ddb.url=jdbc:mysql://10.0.0.39:3306/alfresco?useUnicode=yes&characterEncoding=UTF-8
Also the SOLR issues remain as well even when using the default containerized MariaDB Alfresco is running just fine (Error still exists but everything seemingly functions fine) so I don't think thats an issue related to the DB not working.
Here is the full updated terminal + docker-compose.yml docker_compose_up_terminal.txt docker-compose.txt
And still no logs are generated
If you are using Windows/Linux as host for Docker, review volumes recommendations in https://github.com/Alfresco/alfresco-docker-installer?tab=readme-ov-file#docker-volumes
If I have a locally running instance of a MySQL database how can I connect it to Alfresco CE? I already have the default containerized MariaDB working fine with Alfresco though my concern is moreso connecting a separate non-containerized MySQL server.
Given that its a separate running instance I'd assume changing just the URL and the Driver variables within the docker-compose.yml and removing the mariadb container woud be enough.
No specific log files are generated though here is my terminal on attempt of execution: docker_compose_up_terminal.txt
For reference here is also my docker-compose.yml. The URL/Driver within should be correct as it is directly copied off a different working ECM installation.
Would appreciate any help!