Skip to content

Error on using concurent mysql services

Summary

Concurent use of a mysql service make it raise an error

Using docker image mysql:8.0 ID=sha256:26bd364f80bf23283c579400bab4bff2d0cd743fbe0df942ad714fbe50111e5b for mysql service... Waiting for services to be up and running...

*** WARNING: Service runner-423330cf-project-125-concurrent-4-mysql-0 probably didn't start properly.

service runner-423330cf-project-125-concurrent-4-mysql-0-wait-for-service did timeout [...]

Steps to reproduce

gitlab-ci.yml

database-test:
  stage: test
  dependencies: 
    - build.asset-dev
  image: registry.org.fr/docker/pia-php:1.0 
  services:
  - mysql:8.0
  variables:
    MYSQL_DATABASE: xxxxxxx   
    MYSQL_ROOT_PASSWORD: xxxxxxxxxxxxxxxxxxxxxxxxxx
    MYSQL_USER: xxxxxxxxx 
    MYSQL_PASSWORD: xxxxxxxxxxxxxxx
  script: 
    - make orm.install
    - make orm.status

running multiple instance of this on a docker gitlab-runner (gitlab image) with executor docker

Actual behavior

if the the job is run two time in a close sucession or in concurency it show an error (Timeout) and a massive bloc of log before running the rest of the script. Sometimes service doesn't start at all breaking the job

Expected behavior

the warning doesn't show when job is launch on "cold" runner (no job of this kind in the last 15 min or more)
Concurency should not be an issue considering it use service images

Relevant logs and/or screenshots

*** WARNING: Service runner-423330cf-project-125-concurrent-4-mysql-0 probably didn't start properly.

service runner-423330cf-project-125-concurrent-4-mysql-0-wait-for-service did timeout

2018-01-24T10:14:54.514542541Z Initializing database
2018-01-24T10:14:54.519601100Z 2018-01-24T10:14:54.518484Z 0 [Note] Basedir set to /usr/
2018-01-24T10:14:54.519637086Z 2018-01-24T10:14:54.518626Z 0 [Warning] The syntax '--symbolic-links/-s' is deprecated and will be removed in a future release
2018-01-24T10:14:54.519648132Z 2018-01-24T10:14:54.519492Z 0 [Warning] You need to use --log-bin to make --log-slave-updates work.
2018-01-24T10:14:54.553236083Z libnuma: Warning: /sys not mounted or invalid. Assuming one node: Permission denied
2018-01-24T10:15:17.471193678Z 2018-01-24T10:15:17.471107Z 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: 79c189f2-00ef-11e8-905c-0242ac110005.
2018-01-24T10:15:17.510072940Z 2018-01-24T10:15:17.509951Z 0 [Warning] You have not provided a mandatory server-id. Servers in a replication topology must have unique server-ids. Please refer to the proper server start-up parameters documentation.
2018-01-24T10:15:17.511615411Z 2018-01-24T10:15:17.511514Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2018-01-24T10:15:17.512201951Z 2018-01-24T10:15:17.512108Z 5 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2018-01-24T10:15:23.199161599Z 2018-01-24T10:15:23.199034Z 5 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:23.199182695Z 2018-01-24T10:15:23.199081Z 5 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:23.199186834Z 2018-01-24T10:15:23.199094Z 5 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:23.199190287Z 2018-01-24T10:15:23.199119Z 5 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:23.199193622Z 2018-01-24T10:15:23.199129Z 5 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:23.199196825Z 2018-01-24T10:15:23.199142Z 5 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:23.199314473Z 2018-01-24T10:15:23.199234Z 5 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:23.199319547Z 2018-01-24T10:15:23.199247Z 5 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:35.481551007Z Database initialized
2018-01-24T10:15:35.481845051Z Initializing certificates
2018-01-24T10:15:35.502487789Z Generating a 2048 bit RSA private key
2018-01-24T10:15:35.553684871Z ..................+++
2018-01-24T10:15:35.660962606Z .............................................................+++
2018-01-24T10:15:35.661143363Z unable to write 'random state'
2018-01-24T10:15:35.661150440Z writing new private key to 'ca-key.pem'
2018-01-24T10:15:35.661244126Z -----
2018-01-24T10:15:35.674578547Z Generating a 2048 bit RSA private key
2018-01-24T10:15:35.742742378Z .......................................................+++
2018-01-24T10:15:35.889024046Z ...........................................................................................................................+++
2018-01-24T10:15:35.889171389Z unable to write 'random state'
2018-01-24T10:15:35.889175983Z writing new private key to 'server-key.pem'
2018-01-24T10:15:35.889179294Z -----
2018-01-24T10:15:35.900053764Z Generating a 2048 bit RSA private key
2018-01-24T10:15:35.941298449Z ..................................+++
2018-01-24T10:15:35.949423894Z ......+++
2018-01-24T10:15:35.949576585Z unable to write 'random state'
2018-01-24T10:15:35.949581236Z writing new private key to 'client-key.pem'
2018-01-24T10:15:35.949584514Z -----
2018-01-24T10:15:36.168767668Z Certificates initialized
2018-01-24T10:15:36.181744644Z MySQL init process in progress...
2018-01-24T10:15:36.356387767Z 2018-01-24T10:15:36.354555Z 0 [Note] Basedir set to /usr/
2018-01-24T10:15:36.356412840Z 2018-01-24T10:15:36.354702Z 0 [Warning] The syntax '--symbolic-links/-s' is deprecated and will be removed in a future release
2018-01-24T10:15:36.356416594Z 2018-01-24T10:15:36.354741Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-01-24T10:15:36.356419803Z 2018-01-24T10:15:36.354765Z 0 [Note] /usr/sbin/mysqld (mysqld 8.0.3-rc-log) starting as process 89 ...
2018-01-24T10:15:36.356424064Z 2018-01-24T10:15:36.356231Z 0 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=5df54e5fe776-bin' to avoid this problem.
2018-01-24T10:15:36.400218254Z 2018-01-24T10:15:36.400055Z 0 [Note] InnoDB: Using Linux native AIO
2018-01-24T10:15:36.400229984Z 2018-01-24T10:15:36.400149Z 0 [Note] Plugin 'FEDERATED' is disabled.
2018-01-24T10:15:36.402224480Z 2018-01-24T10:15:36.402071Z 1 [Note] InnoDB: PUNCH HOLE support available
2018-01-24T10:15:36.402241741Z 2018-01-24T10:15:36.402098Z 1 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-24T10:15:36.402247641Z 2018-01-24T10:15:36.402107Z 1 [Note] InnoDB: Uses event mutexes
2018-01-24T10:15:36.402264926Z 2018-01-24T10:15:36.402113Z 1 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-01-24T10:15:36.402268029Z 2018-01-24T10:15:36.402121Z 1 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-01-24T10:15:36.402488791Z 2018-01-24T10:15:36.402385Z 1 [Note] InnoDB: Number of pools: 1
2018-01-24T10:15:36.402501240Z 2018-01-24T10:15:36.402474Z 1 [Note] InnoDB: Using CPU crc32 instructions
2018-01-24T10:15:36.403896871Z 2018-01-24T10:15:36.403740Z 1 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2018-01-24T10:15:36.412377067Z libnuma: Warning: /sys not mounted or invalid. Assuming one node: Permission denied
2018-01-24T10:15:36.412406857Z 2018-01-24T10:15:36.412300Z 1 [Note] InnoDB: Completed initialization of buffer pool
2018-01-24T10:15:36.413177208Z 2018-01-24T10:15:36.413087Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-01-24T10:15:36.424451722Z 2018-01-24T10:15:36.424344Z 1 [Note] InnoDB: Using 'tablespaces.open.2' max LSN: 13782414
2018-01-24T10:15:36.474909068Z 2018-01-24T10:15:36.474728Z 1 [Note] InnoDB: Applying a batch of 0 redo log records ...
2018-01-24T10:15:36.474937192Z 2018-01-24T10:15:36.474752Z 1 [Note] InnoDB: Apply batch completed!
2018-01-24T10:15:36.475877631Z 2018-01-24T10:15:36.475746Z 1 [Note] InnoDB: Opened 2 existing undo tablespaces.
2018-01-24T10:15:36.489646536Z 2018-01-24T10:15:36.489447Z 1 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-01-24T10:15:36.489689533Z 2018-01-24T10:15:36.489552Z 1 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-01-24T10:15:36.633268177Z 2018-01-24T10:15:36.633096Z 1 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-01-24T10:15:36.638388037Z 2018-01-24T10:15:36.638152Z 1 [Note] InnoDB: Created 128 and tracked 128 new rollback segment(s) in the temporary tablespace. 128 are now active.
2018-01-24T10:15:36.638402634Z 2018-01-24T10:15:36.638357Z 1 [Note] InnoDB: 8.0.3 started; log sequence number 15042028
2018-01-24T10:15:36.690670728Z 2018-01-24T10:15:36.690525Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2018-01-24T10:15:36.695525209Z 2018-01-24T10:15:36.695412Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180124 10:15:36
2018-01-24T10:15:36.758913366Z 2018-01-24T10:15:36.758810Z 1 [Note] Found data dictionary with version 1
2018-01-24T10:15:36.936069227Z 2018-01-24T10:15:36.935830Z 0 [Note] InnoDB: DDL log recovery : begin
2018-01-24T10:15:36.936113535Z 2018-01-24T10:15:36.935943Z 0 [Note] InnoDB: DDL log recovery : end
2018-01-24T10:15:36.936214318Z 2018-01-24T10:15:36.936132Z 0 [Note] InnoDB: Waiting for purge to start
2018-01-24T10:15:37.133981901Z 2018-01-24T10:15:37.133726Z 0 [Warning] You have not provided a mandatory server-id. Servers in a replication topology must have unique server-ids. Please refer to the proper server start-up parameters documentation.
2018-01-24T10:15:37.166755630Z 2018-01-24T10:15:37.166549Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2018-01-24T10:15:37.167198529Z 2018-01-24T10:15:37.167071Z 0 [Warning] CA certificate ca.pem is self signed.
2018-01-24T10:15:37.186883012Z MySQL init process in progress...
2018-01-24T10:15:37.409366242Z 2018-01-24T10:15:37.409136Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:37.409397458Z 2018-01-24T10:15:37.409200Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:37.409405418Z 2018-01-24T10:15:37.409229Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:37.409425438Z 2018-01-24T10:15:37.409281Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:37.409438308Z 2018-01-24T10:15:37.409303Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:37.409449346Z 2018-01-24T10:15:37.409330Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:37.413442808Z 2018-01-24T10:15:37.413329Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:37.413458664Z 2018-01-24T10:15:37.413361Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:37.421126273Z 2018-01-24T10:15:37.420963Z 4 [Note] Event Scheduler: scheduler thread started with id 4
2018-01-24T10:15:37.421150698Z 2018-01-24T10:15:37.421102Z 0 [Note] /usr/sbin/mysqld: ready for connections. Version: '8.0.3-rc-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
2018-01-24T10:15:39.940907209Z Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
2018-01-24T10:15:39.940930343Z Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
2018-01-24T10:15:41.373738164Z Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
2018-01-24T10:15:41.731393127Z 2018-01-24T10:15:41.731235Z 9 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:41.731422858Z 2018-01-24T10:15:41.731273Z 9 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:41.731428270Z 2018-01-24T10:15:41.731290Z 9 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:41.731432911Z 2018-01-24T10:15:41.731320Z 9 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:41.731437278Z 2018-01-24T10:15:41.731333Z 9 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:41.731441558Z 2018-01-24T10:15:41.731352Z 9 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:41.731612646Z 2018-01-24T10:15:41.731525Z 9 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:41.731620285Z 2018-01-24T10:15:41.731543Z 9 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:41.734719795Z mysql: [Warning] Using a password on the command line interface can be insecure.
2018-01-24T10:15:41.850709024Z mysql: [Warning] Using a password on the command line interface can be insecure.
2018-01-24T10:15:41.996011865Z mysql: [Warning] Using a password on the command line interface can be insecure.
2018-01-24T10:15:42.093831652Z mysql: [Warning] Using a password on the command line interface can be insecure.
2018-01-24T10:15:42.095922519Z 2018-01-24T10:15:42.095731Z 13 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:42.095975302Z 2018-01-24T10:15:42.095801Z 13 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:42.095987942Z 2018-01-24T10:15:42.095861Z 13 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:42.095999432Z 2018-01-24T10:15:42.095954Z 13 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:42.096084559Z 2018-01-24T10:15:42.095983Z 13 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:42.096097106Z 2018-01-24T10:15:42.096035Z 13 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:42.096865689Z 2018-01-24T10:15:42.096751Z 13 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:42.096878132Z 2018-01-24T10:15:42.096792Z 13 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:42.173817316Z 
2018-01-24T10:15:42.597055920Z 2018-01-24T10:15:42.596818Z 0 [Note] Giving 1 client threads a chance to die gracefully
2018-01-24T10:15:42.597090862Z 2018-01-24T10:15:42.596886Z 0 [Note] Shutting down slave threads
2018-01-24T10:15:42.597099134Z 2018-01-24T10:15:42.596905Z 0 [Note] Event Scheduler: Killing the scheduler thread, thread id 4
2018-01-24T10:15:42.597105934Z 2018-01-24T10:15:42.596921Z 0 [Note] Event Scheduler: Waiting for the scheduler thread to reply
2018-01-24T10:15:42.597115062Z 2018-01-24T10:15:42.597030Z 0 [Note] Event Scheduler: Stopped
2018-01-24T10:15:42.597124602Z 2018-01-24T10:15:42.597047Z 0 [Note] Forcefully disconnecting 0 remaining clients
2018-01-24T10:15:42.597131107Z 2018-01-24T10:15:42.597083Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2018-01-24T10:15:42.625552698Z 2018-01-24T10:15:42.625308Z 0 [Note] InnoDB: FTS optimize thread exiting.
2018-01-24T10:15:42.727272369Z 2018-01-24T10:15:42.727020Z 0 [Note] Binlog end
2018-01-24T10:15:43.150829014Z 2018-01-24T10:15:43.150541Z 0 [Note] Shutting down plugin 'ngram'
2018-01-24T10:15:43.150873734Z 2018-01-24T10:15:43.150584Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2018-01-24T10:15:43.150889429Z 2018-01-24T10:15:43.150596Z 0 [Note] Shutting down plugin 'ARCHIVE'
2018-01-24T10:15:43.150901926Z 2018-01-24T10:15:43.150603Z 0 [Note] Shutting down plugin 'INNODB_CACHED_INDEXES'
2018-01-24T10:15:43.150913856Z 2018-01-24T10:15:43.150611Z 0 [Note] Shutting down plugin 'INNODB_VIRTUAL'
2018-01-24T10:15:43.150939221Z 2018-01-24T10:15:43.150616Z 0 [Note] Shutting down plugin 'INNODB_COLUMNS'
2018-01-24T10:15:43.150947584Z 2018-01-24T10:15:43.150625Z 0 [Note] Shutting down plugin 'INNODB_TABLESPACES'
2018-01-24T10:15:43.150954396Z 2018-01-24T10:15:43.150640Z 0 [Note] Shutting down plugin 'INNODB_INDEXES'
2018-01-24T10:15:43.150960994Z 2018-01-24T10:15:43.150653Z 0 [Note] Shutting down plugin 'INNODB_TABLESTATS'
2018-01-24T10:15:43.151000901Z 2018-01-24T10:15:43.150668Z 0 [Note] Shutting down plugin 'INNODB_TABLES'
2018-01-24T10:15:43.151015120Z 2018-01-24T10:15:43.150679Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2018-01-24T10:15:43.151023606Z 2018-01-24T10:15:43.150694Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2018-01-24T10:15:43.151031460Z 2018-01-24T10:15:43.150708Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2018-01-24T10:15:43.151038898Z 2018-01-24T10:15:43.150724Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2018-01-24T10:15:43.151046132Z 2018-01-24T10:15:43.150739Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2018-01-24T10:15:43.151056912Z 2018-01-24T10:15:43.150751Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2018-01-24T10:15:43.151069983Z 2018-01-24T10:15:43.150762Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2018-01-24T10:15:43.151078395Z 2018-01-24T10:15:43.150776Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2018-01-24T10:15:43.151085746Z 2018-01-24T10:15:43.150791Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2018-01-24T10:15:43.151098426Z 2018-01-24T10:15:43.150805Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2018-01-24T10:15:43.151106409Z 2018-01-24T10:15:43.150822Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2018-01-24T10:15:43.151113900Z 2018-01-24T10:15:43.150838Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2018-01-24T10:15:43.151121326Z 2018-01-24T10:15:43.150853Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2018-01-24T10:15:43.151128455Z 2018-01-24T10:15:43.150868Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2018-01-24T10:15:43.151135518Z 2018-01-24T10:15:43.150883Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2018-01-24T10:15:43.151142538Z 2018-01-24T10:15:43.150897Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2018-01-24T10:15:43.151149700Z 2018-01-24T10:15:43.150912Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2018-01-24T10:15:43.151156692Z 2018-01-24T10:15:43.150962Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2018-01-24T10:15:43.151163798Z 2018-01-24T10:15:43.150990Z 0 [Note] Shutting down plugin 'InnoDB'
2018-01-24T10:15:43.151170792Z 2018-01-24T10:15:43.151040Z 0 [Note] InnoDB: Starting shutdown...
2018-01-24T10:15:43.251394298Z 2018-01-24T10:15:43.251178Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2018-01-24T10:15:43.251804792Z 2018-01-24T10:15:43.251649Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 180124 10:15:43
2018-01-24T10:15:46.558761014Z 2018-01-24T10:15:46.558597Z 0 [Note] InnoDB: Shutdown completed; log sequence number 26002760
2018-01-24T10:15:46.559971176Z 2018-01-24T10:15:46.559892Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2018-01-24T10:15:46.559979696Z 2018-01-24T10:15:46.559912Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2018-01-24T10:15:46.559983402Z 2018-01-24T10:15:46.559921Z 0 [Note] Shutting down plugin 'MyISAM'
2018-01-24T10:15:46.559994930Z 2018-01-24T10:15:46.559930Z 0 [Note] Shutting down plugin 'CSV'
2018-01-24T10:15:46.559998268Z 2018-01-24T10:15:46.559937Z 0 [Note] Shutting down plugin 'MEMORY'
2018-01-24T10:15:46.560001710Z 2018-01-24T10:15:46.559941Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2018-01-24T10:15:46.560007873Z 2018-01-24T10:15:46.559969Z 0 [Note] Shutting down plugin 'TempTable'
2018-01-24T10:15:46.560011399Z 2018-01-24T10:15:46.559973Z 0 [Note] Shutting down plugin 'sha2_cache_cleaner'
2018-01-24T10:15:46.560014347Z 2018-01-24T10:15:46.559977Z 0 [Note] Shutting down plugin 'caching_sha2_password'
2018-01-24T10:15:46.560017102Z 2018-01-24T10:15:46.559983Z 0 [Note] Shutting down plugin 'sha256_password'
2018-01-24T10:15:46.560019892Z 2018-01-24T10:15:46.559986Z 0 [Note] Shutting down plugin 'mysql_native_password'
2018-01-24T10:15:46.560167791Z 2018-01-24T10:15:46.560097Z 0 [Note] Shutting down plugin 'binlog'
2018-01-24T10:15:46.561235633Z 2018-01-24T10:15:46.561163Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
2018-01-24T10:15:46.561241405Z 
2018-01-24T10:15:47.025063596Z 
2018-01-24T10:15:47.025130688Z MySQL init process done. Ready for start up.
2018-01-24T10:15:47.025142386Z 
2018-01-24T10:15:47.214520884Z 2018-01-24T10:15:47.212648Z 0 [Note] Basedir set to /usr/
2018-01-24T10:15:47.214543449Z 2018-01-24T10:15:47.212791Z 0 [Warning] The syntax '--symbolic-links/-s' is deprecated and will be removed in a future release
2018-01-24T10:15:47.214547517Z 2018-01-24T10:15:47.212828Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2018-01-24T10:15:47.214550942Z 2018-01-24T10:15:47.212852Z 0 [Note] /usr/sbin/mysqld (mysqld 8.0.3-rc-log) starting as process 1 ...
2018-01-24T10:15:47.214554096Z 2018-01-24T10:15:47.214389Z 0 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=5df54e5fe776-bin' to avoid this problem.
2018-01-24T10:15:47.240334109Z 2018-01-24T10:15:47.240176Z 0 [Note] InnoDB: Using Linux native AIO
2018-01-24T10:15:47.240347546Z 2018-01-24T10:15:47.240240Z 0 [Note] Plugin 'FEDERATED' is disabled.
2018-01-24T10:15:47.241833915Z 2018-01-24T10:15:47.241726Z 1 [Note] InnoDB: PUNCH HOLE support available
2018-01-24T10:15:47.241846592Z 2018-01-24T10:15:47.241741Z 1 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2018-01-24T10:15:47.241853900Z 2018-01-24T10:15:47.241746Z 1 [Note] InnoDB: Uses event mutexes
2018-01-24T10:15:47.241859795Z 2018-01-24T10:15:47.241753Z 1 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2018-01-24T10:15:47.241865650Z 2018-01-24T10:15:47.241759Z 1 [Note] InnoDB: Compressed tables use zlib 1.2.11
2018-01-24T10:15:47.242032795Z 2018-01-24T10:15:47.241949Z 1 [Note] InnoDB: Number of pools: 1
2018-01-24T10:15:47.242040988Z 2018-01-24T10:15:47.242019Z 1 [Note] InnoDB: Using CPU crc32 instructions
2018-01-24T10:15:47.242906470Z 2018-01-24T10:15:47.242826Z 1 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2018-01-24T10:15:47.249411112Z libnuma: Warning: /sys not mounted or invalid. Assuming one node: Permission denied
2018-01-24T10:15:47.249432162Z 2018-01-24T10:15:47.249351Z 1 [Note] InnoDB: Completed initialization of buffer pool
2018-01-24T10:15:47.250165157Z 2018-01-24T10:15:47.250073Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2018-01-24T10:15:47.261839866Z 2018-01-24T10:15:47.261729Z 1 [Note] InnoDB: Using 'tablespaces.open.1' max LSN: 15042089
2018-01-24T10:15:47.317971493Z 2018-01-24T10:15:47.317841Z 1 [Note] InnoDB: Applying a batch of 0 redo log records ...
2018-01-24T10:15:47.317992162Z 2018-01-24T10:15:47.317867Z 1 [Note] InnoDB: Apply batch completed!
2018-01-24T10:15:47.318826015Z 2018-01-24T10:15:47.318655Z 1 [Note] InnoDB: Opened 2 existing undo tablespaces.
2018-01-24T10:15:47.326075539Z 2018-01-24T10:15:47.325906Z 1 [Note] InnoDB: Creating shared tablespace for temporary tables
2018-01-24T10:15:47.326098222Z 2018-01-24T10:15:47.325957Z 1 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2018-01-24T10:15:47.449775202Z 2018-01-24T10:15:47.449646Z 1 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2018-01-24T10:15:47.453090207Z 2018-01-24T10:15:47.452746Z 1 [Note] InnoDB: Created 128 and tracked 128 new rollback segment(s) in the temporary tablespace. 128 are now active.
2018-01-24T10:15:47.453378375Z 2018-01-24T10:15:47.452869Z 1 [Note] InnoDB: 8.0.3 started; log sequence number 26002760
2018-01-24T10:15:47.491772788Z 2018-01-24T10:15:47.491632Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2018-01-24T10:15:47.497638570Z 2018-01-24T10:15:47.497514Z 0 [Note] InnoDB: Buffer pool(s) load completed at 180124 10:15:47
2018-01-24T10:15:47.595530300Z 2018-01-24T10:15:47.595395Z 1 [Note] Found data dictionary with version 1
2018-01-24T10:15:47.671947839Z 2018-01-24T10:15:47.671766Z 0 [Note] InnoDB: DDL log recovery : begin
2018-01-24T10:15:47.671973329Z 2018-01-24T10:15:47.671838Z 0 [Note] InnoDB: DDL log recovery : end
2018-01-24T10:15:47.671979096Z 2018-01-24T10:15:47.671918Z 0 [Note] InnoDB: Waiting for purge to start
2018-01-24T10:15:47.797024420Z 2018-01-24T10:15:47.796886Z 0 [Warning] You have not provided a mandatory server-id. Servers in a replication topology must have unique server-ids. Please refer to the proper server start-up parameters documentation.
2018-01-24T10:15:48.169863855Z 2018-01-24T10:15:48.169668Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2018-01-24T10:15:48.170045638Z 2018-01-24T10:15:48.169937Z 0 [Warning] CA certificate ca.pem is self signed.
2018-01-24T10:15:48.171499673Z 2018-01-24T10:15:48.171394Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
2018-01-24T10:15:48.171506145Z 2018-01-24T10:15:48.171432Z 0 [Note] IPv6 is available.
2018-01-24T10:15:48.171518931Z 2018-01-24T10:15:48.171445Z 0 [Note]   - '::' resolves to '::';
2018-01-24T10:15:48.171522282Z 2018-01-24T10:15:48.171489Z 0 [Note] Server socket created on IP: '::'.
2018-01-24T10:15:48.290886468Z 2018-01-24T10:15:48.290632Z 0 [Warning] 'user' entry 'mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:48.290918238Z 2018-01-24T10:15:48.290700Z 0 [Warning] 'user' entry 'mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:48.290951006Z 2018-01-24T10:15:48.290745Z 0 [Warning] 'user' entry 'root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:48.290957257Z 2018-01-24T10:15:48.290814Z 0 [Warning] 'db' entry 'performance_schema mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:48.290962863Z 2018-01-24T10:15:48.290831Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:48.290970288Z 2018-01-24T10:15:48.290870Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:48.294394720Z 2018-01-24T10:15:48.294280Z 0 [Warning] 'tables_priv' entry 'user mysql.session@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:48.294408430Z 2018-01-24T10:15:48.294301Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2018-01-24T10:15:48.299443230Z 2018-01-24T10:15:48.299337Z 4 [Note] Event Scheduler: scheduler thread started with id 4
2018-01-24T10:15:48.299463190Z 2018-01-24T10:15:48.299430Z 0 [Note] /usr/sbin/mysqld: ready for connections. Version: '8.0.3-rc-log'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)

*********

Using docker image sha256:4cf2381d058be19b6a560a469a54aec156502cae8e9ce7c2ec6882b6d182dda6 for predefined container...

Environment description

Ubuntu 14.04.5 LTS
Docker version 17.09.1-ce, build 19e2cf6 gitlab/gitlab-runner:latest

gitlab CE omnibus 10.3

Used GitLab Runner version

Running with gitlab-runner 10.4.0 (857480b6)
  on runner@apollo (423330cf)
Using Docker executor with image registry.org.fr/docker/pia-php:1.0 ...
Starting service mysql:8.0 ...
Pulling docker image mysql:8.0 ...
Using docker image mysql:8.0 ID=sha256:26bd364f80bf23283c579400bab4bff2d0cd743fbe0df942ad714fbe50111e5b for mysql service...
Waiting for services to be up and running...
Edited by Emmanuel LARGE