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

Connection failed at second start #28

Open
warnonphilippe opened this issue Oct 19, 2018 · 1 comment
Open

Connection failed at second start #28

warnonphilippe opened this issue Oct 19, 2018 · 1 comment

Comments

@warnonphilippe
Copy link

I'm using the image with mysql.

The first time I start the container, it works.
Then I stopped the containers and restart, I can't connect to alfresco using the UI (login failed).
If I delete the volume and restart, it works.

I saw this problem on a mac and in a vagrant box running ubuntu.
But it seems to work on linux.

Any idea ?
Thanks

Below my docker-compose :

alfresco-mysql:
image: mysql:5.7.20
volumes:
- ~/volumes/alfresco/mysql/:/var/lib/mysql/
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=alfresco
- MYSQL_PASSWORD=alfresco
- MYSQL_DATABASE=alfresco
ports:
- 3306:3306
command: mysqld --lower_case_table_names=1 --skip-ssl --character_set_server=utf8 --explicit_defaults_for_timestamp

alfresco:
    image: "gui81/alfresco:201707"
    volumes:
      - ~/volumes/alfresco/alf_data:/alfresco/alf_data
      #- ~/volumes/alfresco/content:/content
    environment:
      - DB_KIND=mysql
      - DB_HOST=alfresco-mysql
      - DB_USERNAME=alfresco
      - DB_PASSWORD=alfresco
      - DB_NAME=alfresco
      #- CONTENT_STORE=/content
    ports:
      - "7080:8080"
      - "8443:8443"
@jairoandre
Copy link

Maybe a later sugestion, but you can check the log of the tomcat running inside the container to get better ideas on what is going on:
docker exec -it <alfresco_container> /bin/bash
tail -f /alfresco/tomcat/logs/catalina.out

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

2 participants