yobasystems/alpine-mariadb

#68 Blocks `/docker-entrypoint-initdb.d/*` eval

Enthalpy-AC opened this issue · 0 comments

A Docker network that I use has stopped working. Debugging implicates #68. Here are the logs for the relevant container when I attempt a fresh build:

2024-04-27 16:07:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
2024-04-27 16:07:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
2024-04-27 16:07:04 (1/3) Installing libmd (1.1.0-r0)
2024-04-27 16:07:04 (2/3) Installing libbsd (0.11.7-r3)
2024-04-27 16:07:04 (3/3) Installing shadow (4.14.2-r0)
2024-04-27 16:07:04 Executing busybox-1.36.1-r15.trigger
2024-04-27 16:07:04 OK: 276 MiB in 49 packages
2024-04-27 16:07:04 User:group mysql:mysql is 100:101
2024-04-27 16:07:04 /var/log/mariadb is owned by 1500:1500
2024-04-27 16:07:04 Moving user mysql from 100 to 1500
2024-04-27 16:07:05 Moving group mysql from 101 to 1500
2024-04-27 16:07:05 [i] mysqld not found, creating....
2024-04-27 16:07:06 [i] MySQL data directory not found, creating initial DBs
2024-04-27 16:07:10 [i] Creating database: dbname_redacted
2024-04-27 16:07:10 [i] with character set: 'utf8' and collation: 'utf8_general_ci'
2024-04-27 16:07:10 [i] Creating user: username_redacted with password password_redacted
2024-04-27 16:07:11 
2024-04-27 16:07:11 Preparing to process the contents of /docker-entrypoint-initdb.d/
2024-04-27 16:07:11 

The temporary server writes no text to TEMP_OUTPUT_LOG, so the until loop never falls through, blocking the DB initialization files from being read. Other processes in the network that expect the DB to actually be initialized fail.

Docker and SQL management normally aren't my responsibility, so please pardon me if I ask you to clarify the obvious during the debugging process.

docker version output:

Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:28:49 2023
 OS/Arch:           darwin/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.24.2 (124339)
 Engine:
  Version:          24.0.6
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.7
  Git commit:       1a79695
  Built:            Mon Sep  4 12:32:16 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0