Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache startup failure if shared memory segment already exists #166

Open
otbutz opened this issue Jul 24, 2017 · 1 comment
Open

Apache startup failure if shared memory segment already exists #166

otbutz opened this issue Jul 24, 2017 · 1 comment

Comments

@otbutz
Copy link

otbutz commented Jul 24, 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.

@pantierra
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants