.gitlab-ci.yml services don't find each other

Summary

I want to do some automatic testing with WordPress in GitLab CI. Therefore I need a job with two services: WordPress and MySQL / MariaDB.

Steps to reproduce

use this file

stages:
  - test

test:
  image: alpine
  stage: test
  services:
    - alias: db
      name: mysql:5.7
    - alias: wp
      name: wordpress:4.7-apache
  variables:
    WORDPRESS_DB_HOST: db
    WORDPRESS_DB_USER: exampleuser
    WORDPRESS_DB_PASSWORD: examplepass
    WORDPRESS_DB_NAME: exampledb
    MYSQL_DATABASE: exampledb
    MYSQL_USER: exampleuser
    MYSQL_PASSWORD: examplepass
    MYSQL_RANDOM_ROOT_PASSWORD: '1'
  script:
    - echo "hi"

Example Project

https://gitlab.com/lippoliv/demo-wordpress-services

What is the current bug behavior?

GitLab CI is not able to setup containers, because WP container cannot connect to DB container. See https://gitlab.com/lippoliv/demo-wordpress-services/-/jobs/1136013866: WP tries until 09:54:27 to establish connection, WP was ready for connections from 09:53:53.

What is the expected correct behavior?

GitLab CI services should be able to connect to each other (maybe controllable by the user).

Relevant logs and/or screenshots

*** WARNING: Service runner-ed2dce3a-project-25496838-concurrent-0-a2ada47990bb18c8-wordpress-1 probably didn't start properly.
Health check error:
service "runner-ed2dce3a-project-25496838-concurrent-0-a2ada47990bb18c8-wordpress-1-wait-for-service" timeout
Health check container logs:
Service container logs:
2021-03-29T09:53:58.885875900Z WordPress not found in /var/www/html - copying now...
2021-03-29T09:53:59.275508669Z Complete! WordPress has been successfully copied to /var/www/html
2021-03-29T09:54:00.685915125Z 
2021-03-29T09:54:00.685946453Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:00.686031600Z 
2021-03-29T09:54:00.686045334Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:00.686124978Z 
2021-03-29T09:54:00.686131052Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:03.689133024Z 
2021-03-29T09:54:03.689170834Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:03.689175740Z 
2021-03-29T09:54:03.689179213Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:03.689192704Z 
2021-03-29T09:54:03.689196790Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:06.809584717Z 
2021-03-29T09:54:06.809623092Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:06.809830681Z 
2021-03-29T09:54:06.811207099Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:06.809921312Z 
2021-03-29T09:54:06.811252640Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:09.812287682Z 
2021-03-29T09:54:09.812321851Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:09.812401082Z 
2021-03-29T09:54:09.812407508Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:09.812489750Z 
2021-03-29T09:54:09.812496038Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:12.862958941Z 
2021-03-29T09:54:12.862999861Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:12.863165882Z 
2021-03-29T09:54:12.864657895Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:12.863455887Z 
2021-03-29T09:54:12.864719042Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:15.865873469Z 
2021-03-29T09:54:15.865909263Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:15.865913638Z 
2021-03-29T09:54:15.865916753Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:15.865929179Z 
2021-03-29T09:54:15.865932574Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:18.907765316Z 
2021-03-29T09:54:18.907794467Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:18.907896893Z 
2021-03-29T09:54:18.907903760Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:18.907994280Z 
2021-03-29T09:54:18.908000497Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:21.910576425Z 
2021-03-29T09:54:21.910614656Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:21.910693651Z 
2021-03-29T09:54:21.910700217Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:21.910801268Z 
2021-03-29T09:54:21.910807502Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:24.950204620Z 
2021-03-29T09:54:24.950240501Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:24.950326449Z 
2021-03-29T09:54:24.950340513Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:24.950413825Z 
2021-03-29T09:54:24.950419946Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
2021-03-29T09:54:27.952965903Z 
2021-03-29T09:54:27.953000266Z Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:27.953138801Z 
2021-03-29T09:54:27.953159852Z Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in - on line 22
2021-03-29T09:54:27.953276497Z 
2021-03-29T09:54:27.953283294Z MySQL Connection Error: (2002) php_network_getaddresses: getaddrinfo failed: Name or service not known
*********
*** WARNING: Service runner-ed2dce3a-project-25496838-concurrent-0-a2ada47990bb18c8-mysql-0 probably didn't start properly.
Health check error:
service "runner-ed2dce3a-project-25496838-concurrent-0-a2ada47990bb18c8-mysql-0-wait-for-service" timeout
Health check container logs:
Service container logs:
2021-03-29T09:53:40.367871567Z 2021-03-29 09:53:40+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.33-1debian10 started.
2021-03-29T09:53:40.450379786Z 2021-03-29 09:53:40+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2021-03-29T09:53:40.457944987Z 2021-03-29 09:53:40+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.33-1debian10 started.
2021-03-29T09:53:40.525673500Z 2021-03-29 09:53:40+00:00 [Note] [Entrypoint]: Initializing database files
2021-03-29T09:53:40.538745909Z 2021-03-29T09:53:40.537145Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-03-29T09:53:40.771167050Z 2021-03-29T09:53:40.768001Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-03-29T09:53:40.816562012Z 2021-03-29T09:53:40.814445Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-03-29T09:53:40.879094162Z 2021-03-29T09:53:40.878717Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: a41b3e86-9074-11eb-bea3-0242ac110003.
2021-03-29T09:53:40.883801657Z 2021-03-29T09:53:40.882180Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2021-03-29T09:53:42.825024027Z 2021-03-29T09:53:42.464353Z 0 [Warning] CA certificate ca.pem is self signed.
2021-03-29T09:53:42.992896354Z 2021-03-29T09:53:42.968751Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2021-03-29T09:53:46.059258038Z 2021-03-29 09:53:45+00:00 [Note] [Entrypoint]: Database files initialized
2021-03-29T09:53:46.060127468Z 2021-03-29 09:53:45+00:00 [Note] [Entrypoint]: Starting temporary server
2021-03-29T09:53:46.060137101Z 2021-03-29 09:53:45+00:00 [Note] [Entrypoint]: Waiting for server startup
2021-03-29T09:53:46.060174589Z 2021-03-29T09:53:45.989344Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-03-29T09:53:46.060179259Z 2021-03-29T09:53:45.993247Z 0 [Note] mysqld (mysqld 5.7.33) starting as process 75 ...
2021-03-29T09:53:46.060182434Z 2021-03-29T09:53:46.006075Z 0 [Note] InnoDB: PUNCH HOLE support available
2021-03-29T09:53:46.060185594Z 2021-03-29T09:53:46.006098Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-03-29T09:53:46.060188657Z 2021-03-29T09:53:46.006101Z 0 [Note] InnoDB: Uses event mutexes
2021-03-29T09:53:46.060191764Z 2021-03-29T09:53:46.006104Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2021-03-29T09:53:46.060194948Z 2021-03-29T09:53:46.006106Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-03-29T09:53:46.060203002Z 2021-03-29T09:53:46.006109Z 0 [Note] InnoDB: Using Linux native AIO
2021-03-29T09:53:46.060206047Z 2021-03-29T09:53:46.006350Z 0 [Note] InnoDB: Number of pools: 1
2021-03-29T09:53:46.060209042Z 2021-03-29T09:53:46.006473Z 0 [Note] InnoDB: Using CPU crc32 instructions
2021-03-29T09:53:46.060221022Z 2021-03-29T09:53:46.011381Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2021-03-29T09:53:46.060224416Z 2021-03-29T09:53:46.030053Z 0 [Note] InnoDB: Completed initialization of buffer pool
2021-03-29T09:53:46.060227579Z 2021-03-29T09:53:46.037986Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-03-29T09:53:46.060230801Z 2021-03-29T09:53:46.050988Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2021-03-29T09:53:46.084308427Z 2021-03-29T09:53:46.069986Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-03-29T09:53:46.084327562Z 2021-03-29T09:53:46.070064Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-03-29T09:53:46.177809083Z 2021-03-29T09:53:46.105717Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-03-29T09:53:46.178703439Z 2021-03-29T09:53:46.106307Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2021-03-29T09:53:46.178714107Z 2021-03-29T09:53:46.106316Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2021-03-29T09:53:46.178717774Z 2021-03-29T09:53:46.107390Z 0 [Note] InnoDB: Waiting for purge to start
2021-03-29T09:53:46.178720907Z 2021-03-29T09:53:46.157580Z 0 [Note] InnoDB: 5.7.33 started; log sequence number 2746840
2021-03-29T09:53:46.178723956Z 2021-03-29T09:53:46.157920Z 0 [Note] Plugin 'FEDERATED' is disabled.
2021-03-29T09:53:46.178727130Z 2021-03-29T09:53:46.159813Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2021-03-29T09:53:46.178776059Z 2021-03-29T09:53:46.164601Z 0 [Note] InnoDB: Buffer pool(s) load completed at 210329  9:53:46
2021-03-29T09:53:46.178779632Z 2021-03-29T09:53:46.172654Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2021-03-29T09:53:46.178783012Z 2021-03-29T09:53:46.172671Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2021-03-29T09:53:46.178786257Z 2021-03-29T09:53:46.174246Z 0 [Warning] CA certificate ca.pem is self signed.
2021-03-29T09:53:46.178789426Z 2021-03-29T09:53:46.174277Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2021-03-29T09:53:46.191389572Z 2021-03-29T09:53:46.179316Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2021-03-29T09:53:46.252198752Z 2021-03-29T09:53:46.192341Z 0 [Note] Event Scheduler: Loaded 0 events
2021-03-29T09:53:46.252213879Z 2021-03-29T09:53:46.192515Z 0 [Note] mysqld: ready for connections.
2021-03-29T09:53:46.252217473Z Version: '5.7.33'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
2021-03-29T09:53:46.783873995Z 2021-03-29 09:53:46+00:00 [Note] [Entrypoint]: Temporary server started.
2021-03-29T09:53:47.849134692Z Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
2021-03-29T09:53:47.849158639Z Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
2021-03-29T09:53:50.199240073Z Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
2021-03-29T09:53:50.199277483Z Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
2021-03-29T09:53:50.199282189Z 2021-03-29T09:53:50.161215Z 0 [Note] Giving 0 client threads a chance to die gracefully
2021-03-29T09:53:50.199285456Z 2021-03-29T09:53:50.161238Z 0 [Note] Shutting down slave threads
2021-03-29T09:53:50.199288645Z 2021-03-29T09:53:50.161242Z 0 [Note] Forcefully disconnecting 0 remaining clients
2021-03-29T09:53:50.199291658Z 2021-03-29T09:53:50.161247Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2021-03-29T09:53:50.199294799Z 2021-03-29T09:53:50.161282Z 0 [Note] Binlog end
2021-03-29T09:53:50.199297751Z 2021-03-29T09:53:50.162857Z 0 [Note] Shutting down plugin 'ngram'
2021-03-29T09:53:50.199300716Z 2021-03-29T09:53:50.162869Z 0 [Note] Shutting down plugin 'partition'
2021-03-29T09:53:50.199303770Z 2021-03-29T09:53:50.162872Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2021-03-29T09:53:50.199308159Z 2021-03-29T09:53:50.162875Z 0 [Note] Shutting down plugin 'ARCHIVE'
2021-03-29T09:53:50.199311229Z 2021-03-29T09:53:50.162877Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2021-03-29T09:53:50.199314288Z 2021-03-29T09:53:50.162905Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2021-03-29T09:53:50.199323075Z 2021-03-29T09:53:50.162908Z 0 [Note] Shutting down plugin 'MyISAM'
2021-03-29T09:53:50.199326532Z 2021-03-29T09:53:50.162916Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2021-03-29T09:53:50.199329521Z 2021-03-29T09:53:50.162919Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2021-03-29T09:53:50.199332597Z 2021-03-29T09:53:50.162921Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2021-03-29T09:53:50.199335597Z 2021-03-29T09:53:50.162923Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2021-03-29T09:53:50.199338683Z 2021-03-29T09:53:50.162925Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2021-03-29T09:53:50.199353707Z 2021-03-29T09:53:50.162927Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2021-03-29T09:53:50.199356876Z 2021-03-29T09:53:50.162929Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2021-03-29T09:53:50.199360016Z 2021-03-29T09:53:50.162931Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2021-03-29T09:53:50.199363276Z 2021-03-29T09:53:50.162933Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2021-03-29T09:53:50.199366324Z 2021-03-29T09:53:50.162934Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2021-03-29T09:53:50.199369316Z 2021-03-29T09:53:50.162936Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2021-03-29T09:53:50.199372410Z 2021-03-29T09:53:50.162938Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2021-03-29T09:53:50.199376662Z 2021-03-29T09:53:50.162940Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2021-03-29T09:53:50.199385017Z 2021-03-29T09:53:50.162942Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2021-03-29T09:53:50.199388145Z 2021-03-29T09:53:50.162943Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2021-03-29T09:53:50.199391411Z 2021-03-29T09:53:50.162945Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2021-03-29T09:53:50.199394539Z 2021-03-29T09:53:50.162947Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2021-03-29T09:53:50.199397603Z 2021-03-29T09:53:50.162949Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2021-03-29T09:53:50.199400790Z 2021-03-29T09:53:50.162951Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2021-03-29T09:53:50.199403856Z 2021-03-29T09:53:50.162952Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2021-03-29T09:53:50.199406932Z 2021-03-29T09:53:50.162954Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2021-03-29T09:53:50.199410018Z 2021-03-29T09:53:50.162956Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2021-03-29T09:53:50.199413043Z 2021-03-29T09:53:50.162958Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2021-03-29T09:53:50.199416036Z 2021-03-29T09:53:50.162960Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2021-03-29T09:53:50.199419036Z 2021-03-29T09:53:50.162962Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2021-03-29T09:53:50.199422034Z 2021-03-29T09:53:50.162964Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2021-03-29T09:53:50.199425048Z 2021-03-29T09:53:50.162966Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2021-03-29T09:53:50.199428028Z 2021-03-29T09:53:50.162968Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2021-03-29T09:53:50.199431029Z 2021-03-29T09:53:50.162969Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2021-03-29T09:53:50.199434005Z 2021-03-29T09:53:50.162971Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2021-03-29T09:53:50.199436979Z 2021-03-29T09:53:50.162973Z 0 [Note] Shutting down plugin 'InnoDB'
2021-03-29T09:53:50.199439939Z 2021-03-29T09:53:50.163013Z 0 [Note] InnoDB: FTS optimize thread exiting.
2021-03-29T09:53:50.199442949Z 2021-03-29T09:53:50.163123Z 0 [Note] InnoDB: Starting shutdown...
2021-03-29T09:53:50.306780361Z 2021-03-29 09:53:50+00:00 [Note] [Entrypoint]: GENERATED ROOT PASSWORD: awaiboocheih1zajeid0aecuqueis0Fe
2021-03-29T09:53:50.306795614Z 2021-03-29 09:53:50+00:00 [Note] [Entrypoint]: Creating database exampledb
2021-03-29T09:53:50.306799201Z 2021-03-29 09:53:50+00:00 [Note] [Entrypoint]: Creating user exampleuser
2021-03-29T09:53:50.306802352Z 2021-03-29 09:53:50+00:00 [Note] [Entrypoint]: Giving user exampleuser access to schema exampledb
2021-03-29T09:53:50.306805468Z 
2021-03-29T09:53:50.306808360Z 2021-03-29 09:53:50+00:00 [Note] [Entrypoint]: Stopping temporary server
2021-03-29T09:53:50.306827897Z 2021-03-29T09:53:50.263390Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2021-03-29T09:53:50.306831749Z 2021-03-29T09:53:50.263700Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 210329  9:53:50
2021-03-29T09:53:53.142643484Z 2021-03-29T09:53:52.978061Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12664288
2021-03-29T09:53:53.142660601Z 2021-03-29T09:53:52.980281Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2021-03-29T09:53:53.142664374Z 2021-03-29T09:53:52.980305Z 0 [Note] Shutting down plugin 'MEMORY'
2021-03-29T09:53:53.142667461Z 2021-03-29T09:53:52.980310Z 0 [Note] Shutting down plugin 'CSV'
2021-03-29T09:53:53.142670606Z 2021-03-29T09:53:52.980315Z 0 [Note] Shutting down plugin 'sha256_password'
2021-03-29T09:53:53.142673582Z 2021-03-29T09:53:52.980317Z 0 [Note] Shutting down plugin 'mysql_native_password'
2021-03-29T09:53:53.142676546Z 2021-03-29T09:53:52.980448Z 0 [Note] Shutting down plugin 'binlog'
2021-03-29T09:53:53.142680685Z 2021-03-29T09:53:52.981897Z 0 [Note] mysqld: Shutdown complete
2021-03-29T09:53:53.142683658Z 
2021-03-29T09:53:53.400119281Z 2021-03-29 09:53:53+00:00 [Note] [Entrypoint]: Temporary server stopped
2021-03-29T09:53:53.400138232Z 
2021-03-29T09:53:53.400141883Z 2021-03-29 09:53:53+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
2021-03-29T09:53:53.400145198Z 
2021-03-29T09:53:53.476871284Z 2021-03-29T09:53:53.421468Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-03-29T09:53:53.478752044Z 2021-03-29T09:53:53.426497Z 0 [Note] mysqld (mysqld 5.7.33) starting as process 1 ...
2021-03-29T09:53:53.478764188Z 2021-03-29T09:53:53.432562Z 0 [Note] InnoDB: PUNCH HOLE support available
2021-03-29T09:53:53.478767676Z 2021-03-29T09:53:53.432580Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2021-03-29T09:53:53.478771131Z 2021-03-29T09:53:53.432584Z 0 [Note] InnoDB: Uses event mutexes
2021-03-29T09:53:53.478774833Z 2021-03-29T09:53:53.432587Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2021-03-29T09:53:53.478778055Z 2021-03-29T09:53:53.432589Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-03-29T09:53:53.478781028Z 2021-03-29T09:53:53.432592Z 0 [Note] InnoDB: Using Linux native AIO
2021-03-29T09:53:53.478784286Z 2021-03-29T09:53:53.433887Z 0 [Note] InnoDB: Number of pools: 1
2021-03-29T09:53:53.478787311Z 2021-03-29T09:53:53.434014Z 0 [Note] InnoDB: Using CPU crc32 instructions
2021-03-29T09:53:53.478790332Z 2021-03-29T09:53:53.437799Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2021-03-29T09:53:53.478793546Z 2021-03-29T09:53:53.454141Z 0 [Note] InnoDB: Completed initialization of buffer pool
2021-03-29T09:53:53.478796886Z 2021-03-29T09:53:53.459786Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2021-03-29T09:53:53.478800431Z 2021-03-29T09:53:53.470612Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2021-03-29T09:53:53.526518553Z 2021-03-29T09:53:53.486300Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-03-29T09:53:53.526539755Z 2021-03-29T09:53:53.486357Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-03-29T09:53:53.526543901Z 2021-03-29T09:53:53.516161Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-03-29T09:53:53.526547164Z 2021-03-29T09:53:53.516699Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2021-03-29T09:53:53.526551028Z 2021-03-29T09:53:53.516707Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2021-03-29T09:53:53.526554207Z 2021-03-29T09:53:53.517418Z 0 [Note] InnoDB: Waiting for purge to start
2021-03-29T09:53:53.586136232Z 2021-03-29T09:53:53.567591Z 0 [Note] InnoDB: 5.7.33 started; log sequence number 12664288
2021-03-29T09:53:53.586153325Z 2021-03-29T09:53:53.567924Z 0 [Note] Plugin 'FEDERATED' is disabled.
2021-03-29T09:53:53.586157194Z 2021-03-29T09:53:53.569817Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2021-03-29T09:53:53.586160399Z 2021-03-29T09:53:53.579677Z 0 [Note] InnoDB: Buffer pool(s) load completed at 210329  9:53:53
2021-03-29T09:53:53.586163817Z 2021-03-29T09:53:53.584872Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2021-03-29T09:53:53.586167039Z 2021-03-29T09:53:53.584887Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2021-03-29T09:53:53.586170218Z 2021-03-29T09:53:53.585424Z 0 [Warning] CA certificate ca.pem is self signed.
2021-03-29T09:53:53.586173050Z 2021-03-29T09:53:53.585446Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2021-03-29T09:53:53.638107632Z 2021-03-29T09:53:53.586969Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2021-03-29T09:53:53.638127366Z 2021-03-29T09:53:53.587039Z 0 [Note] IPv6 is available.
2021-03-29T09:53:53.638131256Z 2021-03-29T09:53:53.587049Z 0 [Note]   - '::' resolves to '::';
2021-03-29T09:53:53.638134555Z 2021-03-29T09:53:53.587073Z 0 [Note] Server socket created on IP: '::'.
2021-03-29T09:53:53.638137667Z 2021-03-29T09:53:53.591902Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2021-03-29T09:53:53.638141244Z 2021-03-29T09:53:53.600956Z 0 [Note] Event Scheduler: Loaded 0 events
2021-03-29T09:53:53.638144334Z 2021-03-29T09:53:53.601264Z 0 [Note] mysqld: ready for connections.
2021-03-29T09:53:53.638147377Z Version: '5.7.33'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Results of GitLab application Check

Possible fixes