Page MenuHomePhabricator

Apache in mediawiki-docker(wikimedia/mediawiki) crashes because the Apache was complaining about MEDIAWIKI_RESTBASE_URL
Closed, DeclinedPublic

Description

Apache server in mediawiki-docker(wikimedia/mediawiki) crashes when I start mediawiki-docker image. It was complaining about MEDIAWIKI_RESTBASE_URL.

I am using this docker-compose.yml to set up Mediawiki on my laptop.

version: '2'

services:
  db:
    image: mysql
    environment:
    - MYSQL_ROOT_PASSWORD=muchwowverygood
  mediawiki:
    image: wikimedia/mediawiki
    depends_on:
    - db
    links:
    - db
    environment:
    - MEDIAWIKI_DB_HOST=db
    - MEDIAWIKI_DB_PASSWORD=muchwowverygood
    volumes:
    - ./data:/data:rw

Then it returns an error like this.

mediawiki_1  | [Sat Oct 08 11:58:41.112817 2016] [core:warn] [pid 44] AH00111: Config variable ${MEDIAWIKI_RESTBASE_URL} is not defined
mediawiki_1  | AH00526: Syntax error on line 23 of /etc/apache2/mediawiki.conf:
mediawiki_1  | ProxyPass URL must be absolute!: ${MEDIAWIKI_RESTBASE_URL}/
mediawiki_1  | Action '-e info -D FOREGROUND' failed.
mediawiki_1  | The Apache error log may have more information.

I was searching about MEDIAWIKI_RESTBASE_URL in the documentation, but the documentation doesn't mention anything about MEDIAWIKI_RESTBASE_URL.

I have trying setup it using docker-compose.yml in mediawiki-docker repository also, but it returns the same error.

As a result, I have created two solutions for this problem:

  1. https://github.com/wikimedia/mediawiki-docker/pull/8
  2. https://github.com/wikimedia/mediawiki-docker/pull/9

I also have made the documentation about MEDIAWIKI_RESTBASE_URL in this pull request:
https://github.com/wikimedia/mediawiki-docker/pull/10

Event Timeline

@rafidaslam

you need to change:

image: wikimedia/mediawiki

to:

image: wikimedia/mediawiki:1.30.0-wmf4

because the latest tag is over 2 years old:
https://hub.docker.com/r/wikimedia/mediawiki/tags/

Real solution is to update the latest tag. :)

Is this still relevant?
Or can we rename this task as mediawiki-docker (in its current state) doesn't really have this issue.

Addshore renamed this task from Apache in mediawiki-docker crashes because the Apache was complaining about MEDIAWIKI_RESTBASE_URL to Apache in mediawiki-docker(wikimedia/mediawiki) crashes because the Apache was complaining about MEDIAWIKI_RESTBASE_URL.Dec 28 2017, 1:40 PM
Addshore updated the task description. (Show Details)

Is this still relevant?
Or can we rename this task as mediawiki-docker (in its current state) doesn't really have this issue.

I don't think this was ever relevant since it looks like it was user error T151051#3502115. However, the latest tag of wikimedia/mediawiki should either be updated or removed. But that can be a separate ticket.

This task has been assigned to the same task owner for more than two years. Resetting task assignee due to inactivity, to decrease task cookie-licking and to get a slightly more realistic overview of plans. Please feel free to assign this task to yourself again if you still realistically work or plan to work on this task - it would be welcome!

For tips how to manage individual work in Phabricator (noisy notifications, lists of task, etc.), see https://phabricator.wikimedia.org/T228575#6237124 for available options.
(For the records, two emails were sent to assignee addresses before resetting assignees. See T228575 for more info and for potential feedback. Thanks!)