Hello there,
I’m trying to set up an own instance of OpenPOIService as a docker container following the instructions given in the manual. The only thing I change is to write “concurrent_workers: 5” at the beginning of the ops_settings.yml file.
I am running everything on a Linux PhotonOS virtual machine and using the “kartoza/postgis:latest” image for the database.
The process fails after executing the following command as root:
docker exec -it poiservice /ops_venv/bin/python manage.py import-data
getting this message:
Found directory: /deploy/app/osm
INFO:main:Starting to import OSM data…[’/deploy/app/osm/bremen-tests.osm.pbf’]
INFO:openpoiservice.server.db_import.parser:Starting to read /deploy/app/osm/bremen-tests.osm.pbf
INFO:openpoiservice.server.db_import.parser:Parsing and importing nodes…
INFO:openpoiservice.server.db_import.parser:Parsing relations…
INFO:openpoiservice.server.db_import.parser:Found 1 ways in relations
INFO:openpoiservice.server.db_import.parser:Parsing ways…
INFO:openpoiservice.server.db_import.parser:Found 11 ways
INFO:openpoiservice.server.db_import.parser:Importing ways… (note this wont work concurrently)
INFO:openpoiservice.server.db_import.parser:Storing remaining pois
Traceback (most recent call last):
File “manage.py”, line 60, in
cli()
File “/ops_venv/lib/python3.6/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/ops_venv/lib/python3.6/site-packages/flask/cli.py”, line 380, in main
return AppGroup.main(self, *args, **kwargs)
File “/ops_venv/lib/python3.6/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/ops_venv/lib/python3.6/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/ops_venv/lib/python3.6/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/ops_venv/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/ops_venv/lib/python3.6/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/ops_venv/lib/python3.6/site-packages/flask/cli.py”, line 257, in decorator
return __ctx.invoke(f, *args, **kwargs)
File “/ops_venv/lib/python3.6/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “manage.py”, line 56, in import_data
parser.run_import(osm_files)
File “/deploy/app/openpoiservice/server/utils/decorators.py”, line 105, in timed
result = method(*args, **kw)
File “/deploy/app/openpoiservice/server/db_import/parser.py”, line 76, in run_import
parse_file(osm_file)
File “/deploy/app/openpoiservice/server/utils/decorators.py”, line 51, in wrapper
raise ex_type(message)
TypeError: function takes exactly 5 arguments (1 given)
Any idea what I could do?
Thanks in advance,
Jakob