You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the docker container, any request to overpass just returns the following:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPEhtml PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"lang="en">
<head>
<metahttp-equiv="content-type"content="text/html; charset=utf-8"lang="en"/>
<title>OSM3S Response</title>
</head>
<body>
<p>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</p>
<p><strongstyle="color:#FF0000">Error</strong>: runtime error: open64: 13 Permission denied /db/db//osm3s_osm_base Unix_Socket::7 </p>
</body>
</html>
The issue seems to be caused by the /db directory being owned by the overpass user with drwx------ permission while fcgiwrap runs as the nginx user, meaning it does not have permission to list the files in /db. Either running chown nginx or chmod og+rx /db inside the container resolve the issue.
This occurs both with and without mounting /db as a volume.
As a workaround, I added OVERPASS_PLANET_PREPROCESS=chmod og+rx /db to the container environment variables, which resolves the issue.
For reference, I was using the following environment variables, though I have tried a variety of combinations and they all produced this error:
Hey @LogicalOverflow , I was facing the same issue and I managed to make it work by mapping the /db directory to a directory inside my filesystem (ext4), without having it managed by docker: in you docker compose file:
When running the docker container, any request to overpass just returns the following:
The issue seems to be caused by the
/db
directory being owned by theoverpass
user withdrwx------
permission whilefcgiwrap
runs as thenginx
user, meaning it does not have permission to list the files in/db
. Either runningchown nginx
orchmod og+rx /db
inside the container resolve the issue.This occurs both with and without mounting
/db
as a volume.As a workaround, I added
OVERPASS_PLANET_PREPROCESS=chmod og+rx /db
to the container environment variables, which resolves the issue.For reference, I was using the following environment variables, though I have tried a variety of combinations and they all produced this error:
(The
germany-latest.osm.bz2
file is pre-downloaded and mounted via a volume)The text was updated successfully, but these errors were encountered: