openmaptiles-tools icon indicating copy to clipboard operation
openmaptiles-tools copied to clipboard

`import_osm.sh` fails in user-mode on Docker Toolbox for Windows

Open zstadler opened this issue 5 years ago • 1 comments

Using Docker Toolbox for Windows, when import_osm.sh is run in user-mode, as in make import-osm, it fails with an error:

$ docker-compose run --rm -u 197609:197121 import-osm
Importing in diff mode
[May 10 15:33:23] [INFO] removing existing cache /cache
[May 10 15:33:23] IO error: /cache/coords: Invalid argument
[May 10 15:33:23] Reading OSM data

zstadler avatar May 10 '20 15:05 zstadler

  • With ./cache as a mounted volume, even running import-osm as root in docker fails:

    IO error: /cache/coords: Invalid argument
    Makefile:174: recipe for target 'import-osm' failed
    

    I assume imposm is trying to perform something that the mounted ntfs filesystem does not support. It would be interesting to see if this happen also in the latest imposm release.

  • With cache as a named volume, both import-osm and import-wikidata must be run as root in docker in order to succeed.

  • With cache as a named volume, running 'import-osm' as a user in docker succeeds if /cache permissions are change a-la /tmp - chmod a+rwxt /cache. This was run as root in docker as part of the make init-dirs actions.

zstadler avatar May 12 '20 20:05 zstadler