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

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

Open
zstadler opened this issue May 10, 2020 · 1 comment
Open

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

zstadler opened this issue May 10, 2020 · 1 comment

Comments

@zstadler
Copy link
Contributor

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
Copy link
Contributor Author

  • 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.

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

1 participant