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

Error while reading osm.pbf to cache in ubuntu 20.04 in WSL #278

Open
bogind opened this issue Oct 14, 2021 · 1 comment
Open

Error while reading osm.pbf to cache in ubuntu 20.04 in WSL #278

bogind opened this issue Oct 14, 2021 · 1 comment

Comments

@bogind
Copy link

bogind commented Oct 14, 2021

Cannot read osm.pbf files into cache (and therefore write to DB) in Ubuntu 20.04 on windows WSL2 sing latest binary versions.

have been trying by using the example in the readme along with multiple other varaitions.

./imposm import -connection postgis://user:password@localhost:5432/osm -mapping mapping.json -read /home/drorb/osm/noord-holland-latest.osm.pbf -cachedir /home/drorb -appendcache

This are the resulting lines after which imposm stops.

[2021-10-14T09:07:27+03:00] 0:00:00 [step] Starting: Imposm [2021-10-14T09:07:27+03:00] 0:00:00 [step] Starting: Reading OSM data [2021-10-14T09:07:27+03:00] 0:00:00 [error] opening cache files: IO error: /home/drorb/coords: Invalid argument

Context

Error occurs while reading osm data into cache.
have tried the below action with versions v0.11.1 and v0.11.0, naturally with the correct username, password and host.
mapping.json is the one that came with the binary, have tried using other *.osm.pbf files.
have tried to both append and overwrite cache, and to move the cache from /tmp to other locations.
have also tried using sudo and deleting cache completely, after recreating it the error returns.

My Environment

  • Version used: 0.11.1 and 0.11.0
  • Environment name and version (e.g. PostgreSQL 13with PostGIS 3.1.4):
  • Server type and version:
  • Operating System and version: Ubuntu 20.04 running on Windows 10
@oshawa-connection
Copy link

Hi @bogind. I also got this error in Windows Subsystem for linux, I've no idea what causes it. My current solution is to run it through a docker container instead. You can use host.docker.internal as the host for the database on your windows host in the connection string, e.g. postgis://username:[email protected]/importtest. Not the solution to the problem but hopefully its helpful.

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