Page MenuHomePhabricator

wikilambda_function_call-not-connected when installing fresh with docker compose v2
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • I set up a new instance the usual way, using docker compose v2
  • I try to run a function call

What happens?:

{
    "error": {
        "code": "wikilambda_function_call-not-connected",
        "info": "Could not resolve host 'mediawiki-function-orchestrator-1:6254', probably because the orchestrator is not running. Please consult the README to add the orchestrator to your docker-compose configuration.",
        "*": "See http://localhost:8080/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
    },
    "servedby": "17b3007d2d6f"
}

In extensions/WikiLambda/extensions.json the WikiLambdaOrchestratorLocation is given as mediawiki-function-orchestrator-1:6254, and WikiLambdaEvaluatorLocation is given as http://mediawiki-function-evaluator-1:6927/1/v1/evaluate/ whereas docker lists them as mediawiki_function-orchestrator_1 and mediawiki_function-evaluator_1, respectively (note the - and _)

Something similar happened before when we switched to Docker Compose v2. I made sure we have v2, but this seems off again.

Fixing the extension.json locally resolves the issue.

What should have happened instead?:
The function call should have evaluated.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc: most current git clone