nextgenhealthcare / connect-docker

Official Dockerfiles for Connect https://hub.docker.com/r/nextgenhealthcare/connect
Mozilla Public License 2.0
78 stars 51 forks source link

MySQL fails on all alpine builds with segmentaion fault (works in debain builds) #8

Closed biskyt closed 4 years ago

biskyt commented 4 years ago

To reproduce:

Expected behaviour:

Error log:

The relevant lines are:

mc_1  | /entrypoint.sh: line 197:    88 Done                    echo $dbpassword
mc_1  |         89 Segmentation fault      | mysql -h "$dbhost" -p -P "$dbport" -u "$dbusername" -e 'SHOW DATABASES' > /dev/null 2>&1

The full log is:

db_1  | 2020-06-23 11:02:58+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.20-1debian10 started.
db_1  | 2020-06-23 11:02:58+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
db_1  | 2020-06-23 11:02:58+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.20-1debian10 started.
db_1  | 2020-06-23T11:02:58.509289Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
db_1  | 2020-06-23T11:02:58.509428Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.20) starting as process 1
db_1  | 2020-06-23T11:02:58.529856Z 1 [System] [MY-011012] [Server] Starting upgrade of data directory.
db_1  | 2020-06-23T11:02:58.529972Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
db_1  | 2020-06-23T11:02:58.636866Z 1 [ERROR] [MY-012530] [InnoDB] Unknown redo log format (104). Please follow the instructions at http://dev.mysql.com/doc/refman/8.0/en/ upgrading-downgrading.html.
db_1  | 2020-06-23T11:02:58.637040Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
mc_1  | trying to connect to mysql
mc_1  | /entrypoint.sh: line 197:    79 Done                    echo $dbpassword
mc_1  |         80 Segmentation fault      | mysql -h "$dbhost" -p -P "$dbport" -u "$dbusername" -e 'SHOW DATABASES' > /dev/null 2>&1
db_1  | 2020-06-23T11:02:59.075596Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.
db_1  | 2020-06-23T11:02:59.075982Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
db_1  | 2020-06-23T11:02:59.076297Z 0 [ERROR] [MY-010119] [Server] Aborting
db_1  | 2020-06-23T11:02:59.076956Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.20)  MySQL Community Server - GPL.
portainertemplatetest_db_1 exited with code 1
mc_1  | /entrypoint.sh: line 197:    82 Done                    echo $dbpassword
mc_1  |         83 Segmentation fault      | mysql -h "$dbhost" -p -P "$dbport" -u "$dbusername" -e 'SHOW DATABASES' > /dev/null 2>&1
mc_1  | /entrypoint.sh: line 197:    85 Done                    echo $dbpassword
mc_1  |         86 Segmentation fault      | mysql -h "$dbhost" -p -P "$dbport" -u "$dbusername" -e 'SHOW DATABASES' > /dev/null 2>&1
mc_1  | /entrypoint.sh: line 197:    88 Done                    echo $dbpassword
mc_1  |         89 Segmentation fault      | mysql -h "$dbhost" -p -P "$dbport" -u "$dbusername" -e 'SHOW DATABASES' > /dev/null 2>&1
mc_1  | /entrypoint.sh: line 197:    91 Done                    echo $dbpassword
mc_1  |         92 Segmentation fault      | mysql -h "$dbhost" -p -P "$dbport" -u "$dbusername" -e 'SHOW DATABASES' > /dev/null 2>&1
mc_1  | /entrypoint.sh: line 197:    94 Done                    echo $dbpassword
mc_1  |         95 Segmentation fault      | mysql -h "$dbhost" -p -P "$dbport" -u "$dbusername" -e 'SHOW DATABASES' > /dev/null 2>&1
cturczynskyj commented 4 years ago

Fixed in newest images.