Segmentation fault after completing setup process
I have an issue with the container, or at least an apache process in the container crashing at the end of the setup process:
PHP Warning: Module 'geoip' already loaded in Unknown on line 0
PHP Warning: Module 'geoip' already loaded in Unknown on line 0
172.19.1.33 - - [08/Mar/2018:14:17:53 +0000] "GET /index.php?module=CoreUpdater&action=systemCheck HTTP/1.1" 200 3859 "https://piwik.XXXXX/index.php?module=CoreUpdater&action=" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
172.19.1.33 - - [08/Mar/2018:14:17:57 +0000] "GET /index.php?module=CoreUpdater&action=databaseSetup&clientProtocol=https HTTP/1.1" 200 3093 "https://piwik.XXXXX/index.php?module=CoreUpdater&action=systemCheck" "Mozilla/5.0 (Windows
NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
172.19.1.33 - - [08/Mar/2018:14:18:05 +0000] "POST /index.php?module=CoreUpdater&action=databaseSetup&clientProtocol=https HTTP/1.1" 200 3210 "https://piwik.XXXXX/index.php?module=CoreUpdater&action=databaseSetup&clientProtocol=https" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
172.19.1.33 - - [08/Mar/2018:14:18:15 +0000] "POST /index.php?module=CoreUpdater&action=databaseSetup&clientProtocol=https HTTP/1.1" 302 422 "https://piwik.XXXXX/index.php?module=CoreUpdater&action=databaseSetup&clientProtocol=https" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
172.19.1.33 - - [08/Mar/2018:14:18:17 +0000] "GET /index.php?module=Installation&action=tablesCreation&clientProtocol=https HTTP/1.1" 200 3290 "https://piwik.XXXXX/index.php?module=CoreUpdater&action=databaseSetup&clientProtocol=https" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
172.19.1.33 - - [08/Mar/2018:14:18:22 +0000] "GET /index.php?module=Installation&action=tablesCreation&clientProtocol=https&deleteTables=1 HTTP/1.1" 200 3054 "https://piwik.XXXXX/index.php?module=Installation&action=tablesCreation&clientProtocol=https" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
172.19.1.33 - - [08/Mar/2018:14:18:33 +0000] "GET /index.php?module=Installation&action=setupSuperUser&clientProtocol=https&deleteTables=1 HTTP/1.1" 200 3262 "https://piwik.XXXXX/index.php?module=Installation&action=tablesCreation&clientProtocol=https&deleteTables=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
172.19.1.33 - - [08/Mar/2018:14:18:50 +0000] "POST /index.php?module=Installation&action=setupSuperUser&clientProtocol=https&deleteTables=1 HTTP/1.1" 302 301 "https://piwik.XXXXXX/index.php?module=Installation&action=setupSuperUser&clientProtocol=https&deleteTables=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36"
[Thu Mar 08 14:18:51.514976 2018] [core:notice] [pid 1] AH00052: child pid 15 exit signal Segmentation fault (11)
A reverse-proxying nginx shows HTTP 502 Bad Gateway, then, but the container itself isn't crashing. A quick look at ps aux inside the container reveals:
root 1 0.1 0.6 362860 41040 ? Ss 14:17 0:00 apache2 -DFOREG
www-data 16 0.4 0.5 371820 36380 ? S 14:17 0:00 apache2 -DFOREG
www-data 17 0.9 0.6 375992 40448 ? S 14:17 0:01 apache2 -DFOREG
www-data 18 2.2 0.8 455884 50976 ? S 14:17 0:04 apache2 -DFOREG
www-data 19 0.7 0.6 376056 41368 ? S 14:17 0:01 apache2 -DFOREG
www-data 20 0.3 0.5 367676 32636 ? S 14:17 0:00 apache2 -DFOREG
root 57 1.0 0.0 20252 3256 pts/0 Ss 14:20 0:00 /bin/bash
root 62 0.0 0.0 17500 2100 pts/0 R+ 14:21 0:00 ps aux
After a restart of the container, it reveals that the setup process hasn't completed, and that i have to re-run the process - until it crashes again in the last step.
This is reproducible with deleting both piwik/matomo and mariadb containers, deleting all external data, re-creating them, and repeating the setup process. It goes until "all tables set up successful" and then crashes.
Thanks for the report @simonszu! Can we get a reproducible sample, maybe a docker-compose file?