testcontainers-java icon indicating copy to clipboard operation
testcontainers-java copied to clipboard

[Bug]: MySql test containers fails when switching from `-debian` to `-oracle` (default now) variant

Open mshima opened this issue 3 years ago • 0 comments

Module

MySQL

Testcontainers version

1.17.3

Using the latest Testcontainers version?

Yes

Host OS

Linux

Host Arch

x86

Docker version

Provided by GitHub Actions

What happened?

MySql server fails to start or detect it started.

Relevant log output

2022-07-12T00:02:02.129964Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
[44](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:45)
  **********************************************************************
[45](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:46)
  2022-07-12T00:02:02.669950Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
[46](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:47)
  * Name  : nervous_turing
[47](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:48)
  Warning: 2T00:02:03.792799Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
[48](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:49)
  * Image : mysql:8.0.29
[49](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:50)
  /usr/local/bin/docker-entrypoint.sh: line 122:    90 Killed                  "$@" --daemonize --skip-networking --default-time-zone=SYSTEM --socket="${SOCKET}"
[50](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:51)
  * Status: Exited (1) 22 seconds ago
[51](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:52)
  Error: -12 00:02:07+00:00 [ERROR] [Entrypoint]: Unable to start server.
[52](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:53)
  **********************************************************************
[53](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:54)
  2022-07-12T00:00:01.646655Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.29) initializing of server in progress as process 41
[54](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:55)
  2022-07-12 00:02:01+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.29-1.el8 started.
[55](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:56)
  Error: -12T00:00:01.646708Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file '/usr/share/mysql-8.0/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
[56](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:57)
  2022-07-12 00:02:02+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
[57](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:58)
  2022-07-12T00:00:01.652805Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
[58](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:59)
  2022-07-12 00:02:02+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.29-1.el8 started.
[59](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:60)
  2022-07-12T00:00:02.044740Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
[60](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:61)
  2022-07-12 00:02:02+00:00 [Note] [Entrypoint]: Initializing database files
[61](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:62)
  Warning: 2T00:00:03.238561Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
[62](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:63)
  2022-07-12 00:02:07+00:00 [Note] [Entrypoint]: Database files initialized
[63](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:64)
  2022-07-12 00:02:07+00:00 [Note] [Entrypoint]: Starting temporary server
[64](https://github.com/jhipster/generator-jhipster/runs/7292397424?check_suite_focus=true#step:27:66)

Additional Information

Run locally with MacOS with M1 processor:

  • -oracle variant works.
  • -debian variant fails (arm64 image is missing).

Run at GitHub Action:

  • -oracle variant fails.
  • -debian variant works.

Related to https://github.com/docker-library/mysql/issues/877. Reproducible at https://github.com/jhipster/generator-jhipster/pull/19126

mshima avatar Jul 11 '22 18:07 mshima