maptiler / tileserver-gl

Vector and raster maps with GL styles. Server side rendering by MapLibre GL Native. Map tile server for MapLibre GL JS, Android, iOS, Leaflet, OpenLayers, GIS via WMTS, etc.
https://tileserver.readthedocs.io/en/latest/
Other
2.24k stars 639 forks source link

Tileserver Docker crash #736

Open utagawal opened 1 year ago

utagawal commented 1 year ago

Hello,

We are using tileserver-gl in a docker container.

After adding some monitoring we have detected that the container is crashing on its own without giving evident tracks/logs of what went wrong (CPUs and Memory were apparently fine).

The container is launched now with a restart parameter like this : sudo docker run --name tileserver-gl -d --restart unless-stopped -it -v /var/data:/data -p 8080:8080 maptiler/tileserver-gl

I anyone else having this issue ? Any lead on how to troubleshoot ?

acalcutt commented 1 year ago

When tileserver is running it sends its logs back to the screen. Can you see what the last thing it did before it errored out? There where no errors there?

utagawal commented 1 year ago

What we have found in the logs so far is : Jan 15 03:42:05 vmi1018946 dockerd[706]: time="2023-01-15T03:42:05.112420935+01:00" level=error msg="stream copy error: reading from a closed fifo" Jan 15 03:42:05 vmi1018946 dockerd[706]: time="2023-01-15T03:42:05.120042316+01:00" level=error msg="stream copy error: reading from a closed fifo" Jan 15 03:42:05 vmi1018946 dockerd[706]: time="2023-01-15T03:42:05.123602689+01:00" level=warning msg="Health check for container d5d89a009226715e594bd28c5b17dd3a6749ae7d5ac413e8435def854de16129 error: context deadline exceeded: unknown"

and docker Segmentation fault (core dumped)

acalcutt commented 1 year ago

Is it possible to run it without "-d --restart unless-stopped" and see what happens at the time of the crash?

I think in your log message only the health check failed.