mod_tile icon indicating copy to clipboard operation
mod_tile copied to clipboard

Apache startup failure if shared memory segment already exists

Open otbutz opened this issue 7 years ago • 1 comments

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.

otbutz avatar Jul 24 '17 13:07 otbutz

I have mod_tile and renderd running in a Docker container without any problems. Is there still a problem or can this be closed?

pantierra avatar Feb 14 '21 22:02 pantierra