[Tile-serving] [openstreetmap/mod_tile] Apache startup failure if shared memory segment already exists (#166)

otbutz notifications at github.com
Mon Jul 24 13:10:49 UTC 2017


The following code segment causes trouble if `mod_tile` is being used in a containerized environment (e.g Docker) : https://github.com/openstreetmap/mod_tile/blob/master/src/mod_tile.c#L1443-L1444

If the httpd processes got killed with `SIGTERM` the files still exist after the restart of the container. Because of the way docker handles processes the same PID is assigned to httpd which will trigger said issue.

The call to `apr_shm_create` will fail because a file from the previous run still exists.

Would it be possible to remove those files before attempting to create them? This should be a safe operation considering that no other running process could have the same PID.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/166
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170724/13eaa226/attachment.html>


More information about the Tile-serving mailing list