docker-redmine icon indicating copy to clipboard operation
docker-redmine copied to clipboard

container "redmine-mysql-1" does not start with docker v26.0.2 and works with 26.0.1 ... ?

Open steveoriol opened this issue 1 year ago • 3 comments

container "redmine-mysql-1" does not start with docker v26.0.2 and works with v26.0.1

[+] Running 1/0    
 ✔ Container redmine-mysql-1  Created                                          0.0s 
Attaching to mysql-1  
  
mysql-1  | Could not connect to mysql server. Aborting...  
mysql-1 exited with code 1

steveoriol avatar Apr 20 '24 10:04 steveoriol

Please provide more details.

On Sat, Apr 20, 2024, 12:19 AM Stève Oriol @.***> wrote:

container "redmine-mysql-1" does not start with docker v26.0.2 and works with 26.0.1 `[+] Running 1/0 ✔ Container redmine-mysql-1 Created 0.0s Attaching to mysql-1

mysql-1 | Could not connect to mysql server. Aborting... mysql-1 exited with code 1`

— Reply to this email directly, view it on GitHub https://github.com/sameersbn/docker-redmine/issues/554, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABK2RGMAC76EKH2MDW5USM3Y6I6LXAVCNFSM6AAAAABGQMB66SVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TINBYG44TMOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jcormier avatar Apr 20 '24 18:04 jcormier

For exemple, with this very minimal tree:

❯ tree                                                                                                                                                                                         
.                                                                                                                                                                                              
├── docker-compose.yml                                                                                                                                                                         
└── volumes                                                                                                                                                                                    
    └── db 

with docker-compose.yml as :

services:
  mysql:
    image: sameersbn/mysql:5.7.22-1
    environment:
      - DB_USER=redmine
      - DB_PASS=password
      - DB_NAME=redmine_production
    volumes:
      - ./volumes/db:/var/lib/mysql

when I try to start under Docker version 26.0.2, build 3c863ff, I get

❯ docker compose up 
[+] Running 1/2
 ✔ Network test_default    Created                                                                                                                                                        0.2s 
 ⠋ Container test-mysql-1  Created                                                                                                                                                        0.1s 
Attaching to mysql-1
mysql-1  | Installing database...
mysql-1 exited with code 1

It won't start...

And if I try with Docker version 26.0.1, build d260a54c81, It is works well, I get :

> docker compose up
[+] Running 1/2
 ✔ Network test_default    Created                                                                                 0.2s 
 ⠙ Container test-mysql-1  Created                                                                                 0.1s 
Attaching to mysql-1
mysql-1  | Installing database...
mysql-1  | Starting MySQL server...
mysql-1  | Waiting for database server to accept connections.....
mysql-1  | Creating debian-sys-maint user...
mysql-1  | Creating database "redmine_production"...
mysql-1  | Granting access to database "redmine_production" for user "redmine"...
mysql-1  | 2024-04-22T15:37:53.178577Z mysqld_safe Logging to syslog.
mysql-1  | 2024-04-22T15:37:53.227145Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
  Gracefully stopping... (press Ctrl+C again to force)
[+] Stopping 1/1
 ✔ Container test-mysql-1  Stopped                                                                                10.6s 
canceled

steveoriol avatar Apr 22 '24 15:04 steveoriol

Thanks for the details. I'm running ubuntu 20.04 and have docker version 26.1.0 and the MySQL container starts. Perhaps docker broke something and then fixed it in the latest version?

$ docker version
Client: Docker Engine - Community
 Version:           26.1.0

$ docker compose -f docker-compose-mysql.yml up mysql
WARN[0000] /home/jcormier/dockers/docker-redmine/docker-compose-mysql.yml: `version` is obsolete
[+] Running 0/1
 ⠙ Container docker-redmine-mysql-1  Created                                                                                                         0.1s
Attaching to mysql-1
mysql-1  | Installing database...
mysql-1  | Starting MySQL server...
mysql-1  | Waiting for database server to accept connections.
mysql-1  | Creating debian-sys-maint user...
mysql-1  | Creating database "redmine_production"...
mysql-1  | Granting access to database "redmine_production" for user "redmine"...
mysql-1  | 2024-04-29T19:45:53.447276Z mysqld_safe Logging to syslog.
mysql-1  | 2024-04-29T19:45:53.460177Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

jcormier avatar Apr 29 '24 19:04 jcormier