Error installing Bagisto on docker
-
Hello,
I have Docker Desktop on a Win10 pc.
I'm trying to install Bagisto on Docker for testing purposeSo I took a look at https://github.com/bagisto/bagisto-docker
Then I created a directory bagisto-01 on my Ubuntu distribution.
I cloned in it the files at github.com/bagisto/bagisto-dockerThis is my docker-compose.yml file
version: "3.1" services: bagisto-php-apache: build: args: container_project_path: /var/www/html/ uid: 1000 user: $USER context: . dockerfile: ./Dockerfile image: bagisto-php-apache ports: - 80:80 volumes: - ./workspace/:/var/www/html/ bagisto-mysql: image: mysql:8.0 command: --default-authentication-plugin=mysql_native_password environment: MYSQL_ROOT_HOST: "%" MYSQL_ROOT_PASSWORD: root ports: - 3308:3306 volumes: - ./.configs/mysql-data:/var/lib/mysql/ bagisto-redis: image: redis:6.2-alpine ports: - 6379:6379 command: redis-server --save 20 1 --loglevel warning volumes: - ./.configs/redis-data:/data bagisto-phpmyadmin: image: phpmyadmin:latest environment: PMA_HOST: bagisto-mysql PMA_USER: root PMA_PASSWORD: root UPLOAD_LIMIT: 512M ports: - 8080:80 bagisto-elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.17.0 environment: - xpack.security.enabled=false - discovery.type=single-node - bootstrap.memory_lock=true - "ES_JAVA_OPTS=-Xms256m -Xmx256m" ulimits: memlock: soft: -1 hard: -1 nofile: soft: 65536 hard: 65536 volumes: - ./.configs/elasticsearch-data:/var/lib/elasticsearch/data ports: - 9200:9200 - 9300:9300 bagisto-kibana: image: docker.elastic.co/kibana/kibana:7.17.0 environment: - ELASTICSEARCH_HOSTS=http://bagisto-elasticsearch:9200 ports: - 5601:5601 depends_on: - bagisto-elasticsearch bagisto-mailhog: image: mailhog/mailhog logging: # Disable saving logs. driver: 'none' ports: # SMTP server. - 1025:1025 - 8025:8025
Then I tried to run the commands inside setup.sh one by one at terminal so that I can check what was happening.
After docker-compose build && docker-compose up -d all the contaners are ranning except the mysql container. Looking at log content by Docker Desktop, this is what see.
2023-06-12 10:11:06 2023-06-12 08:11:06+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.33-1.el8 started. 2023-06-12 10:11:07 2023-06-12 08:11:07+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2023-06-12 10:11:07 2023-06-12 08:11:07+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.33-1.el8 started. 2023-06-12 10:11:08 '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock' 2023-06-12 10:11:09 2023-06-12T08:11:09.706989Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead. 2023-06-12 10:11:09 2023-06-12T08:11:09.715197Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead. 2023-06-12 10:11:09 2023-06-12T08:11:09.715296Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.33) starting as process 1 2023-06-12 10:11:09 2023-06-12T08:11:09.790154Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2023-06-12 10:11:10 2023-06-12T08:11:10.097113Z 1 [ERROR] [MY-012960] [InnoDB] Cannot create redo log files because data files are corrupt or the database was not shut down cleanly after creating the data files. 2023-06-12 10:11:10 2023-06-12T08:11:10.502913Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine 2023-06-12 10:11:10 2023-06-12T08:11:10.512284Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed. 2023-06-12 10:11:10 2023-06-12T08:11:10.512354Z 0 [ERROR] [MY-010119] [Server] Aborting 2023-06-12 10:11:10 2023-06-12T08:11:10.514874Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.33) MySQL Community Server - GPL.
I already tried to remove all the container in Docker desktop and also deleted the mysql image. Tried a second time docker-compose build && docker-compose up -d, it pulled the mysql image but this didn't solve the issue.
Regards,
Matteo -
Hello there,
I just tested it in Linux, it is working fine. In windows, sometime it may cause issues due to WSL support or firewall issues.