matomo-org / matomo-org/docker

Segmentation fault after completing setup process

Open
#87 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Shell
Stars
1k
Forks
384
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the setup process in the Docker container and inspect the Apache and PHP output around the final setupSuperUser request, including the repeated geoip warning. Check the nginx response after the Apache child exits and verify that setup completes successfully and remains complete after restarting the container.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, docker, nginx, php
Domain
backend, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.