Skip to content

Apple Silicon (ARM64) – QGIS Map Server container causes 504 Gateway Timeout / killed stalled process #96

@xtvard02

Description

@xtvard02

Description

When running lizmap-docker-compose on Apple Silicon (ARM64, tested on Apple M4), the qgis-map-server container consistently fails during WMS GetMap requests.

The request is accepted by QGIS Server, but after ~30 seconds the worker process is killed and Lizmap returns a 504 Gateway Timeout.

This happens even with a minimal project:

  • Single GeoJSON layer
  • Single feature
  • File size ~5 KB
  • No complex styling

The same project runs correctly:

  • On Intel Mac (x86_64)
  • On Synology DS920+ (Intel x86_64)

So the issue appears to be architecture-related.

Environment

Host: Apple M4 (ARM64)

  • OS: macOS (Apple Silicon)
  • Docker Desktop
  • lizmap-docker-compose (official repo)
  • Images pulled via:
    ./configure.sh configure
    docker compose pull
    docker compose up -d

Observed behavior

WMS request example:

GET /ows/?SERVICE=WMS&REQUEST=GetMap...

Container logs show:

QGIS Request accepted
...
Killed stalled process
Request timeout error
504 Gateway Timeout

Full log excerpt:

Killed stalled process 61
Request timeout error
504 POST /ows/

Important observation

The image 3liz/qgis-map-server:ltr-rc appears to be amd64-only.

On Apple Silicon, Docker runs it via emulation (QEMU), which likely causes:

  • Very slow rendering
  • Worker timeout
  • Process being killed
  • 504 from nginx

Running the same stack on x86_64 works without any modification.

Questions

  1. Is 3liz/qgis-map-server officially supported on ARM64?
  2. Are there plans to publish multi-arch images (linux/arm64)?
  3. Is there a recommended way to run lizmap-docker-compose natively on Apple Silicon?

Expected behavior

Either:

  • Official ARM64 images for QGIS Map Server and PostGIS
  • Or documented workaround for Apple Silicon users

If needed, I can provide additional logs or test a proposed ARM64 build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions