Closed Hackyy closed 5 years ago
Interesting, when I'm testing, it fails with:
DEBUG: Starting download at ID 3526444 (max 100 MB)
Traceback (most recent call last):
File "/app/venv/bin/pyosmium-get-changes", line 243, in <module>
exit(main(sys.argv[1:]))
File "/app/venv/bin/pyosmium-get-changes", line 227, in main
simplify=options.simplify)
File "/app/venv/lib/python3.5/site-packages/osmium/replication/server.py", line 125, in apply_diffs
diffs = self.collect_diffs(start_id, max_size)
File "/app/venv/lib/python3.5/site-packages/osmium/replication/server.py", line 93, in collect_diffs
left_size -= rd.add_buffer(diffdata, self.diff_type)
RuntimeError: Unknown element in <way>: bbox
As you're using http://download.openstreetmap.fr/replication/europe/germany/minute/
which is incompatible with latest pyosmium changes. As the problem was fixed in libosmium, once it is released, and pyosmium gets released, this should be resolved.
Try using: http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tuebingen-regbez-updates/ as your DIFF_URL
Coming back to the problem that you have: what kind of volume are you using in your mount?
I used the following mount before: -v /big/docker/overpass_db/:/db
but I used the default volume that will be created from docker.
But it looks like my docker installation is to blame for this problem. I use Docker for Windows. Everything works on my Centos machine. There I also checked the URL customization. Work like a charm!
Hi! I am also getting some similar erros while using this prompt. I need full planet. Any ideas on how to make it work?
docker run \ -e OVERPASS_META=yes \ -e OVERPASS_MODE=clone \ -e OVERPASS_DIFF_URL=https://planet.openstreetmap.org/replication/minute/ \ -v /home/climbs/Documents/overpassturbo/overpass_fullplanet/:/db \ -i -t \ --name overpass_world \ wiktorn/overpass-api
Message (shortened):
Starting supervisord process 2023-12-23 03:59:00,179 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message. 2023-12-23 03:59:00,180 INFO supervisord started with pid 1 2023-12-23 03:59:01,183 INFO spawned: 'overpass_dispatch' with pid 8 2023-12-23 03:59:01,184 INFO spawned: 'nginx' with pid 9 2023-12-23 03:59:01,185 INFO spawned: 'fcgiwrap' with pid 10 2023-12-23 03:59:01,187 INFO spawned: 'update_overpass' with pid 11 2023-12-23 03:59:01,188 INFO spawned: 'dispatcher_areas' with pid 14 2023-12-23 03:59:01,189 INFO spawned: 'areas_rules' with pid 17 tee: /db/changes.log: Permission denied /app/bin / cp: cannot create regular file '/db/replicate_id.backup': Permission denied 2023-12-23 03:59:02,196 INFO success: overpass_dispatch entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023-12-23 03:59:02,196 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023-12-23 03:59:02,196 INFO success: fcgiwrap entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023-12-23 03:59:02,196 INFO success: update_overpass entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023-12-23 03:59:02,196 INFO success: dispatcher_areas entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2023-12-23 03:59:02,196 INFO success: areas_rules entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) <?xml version="1.0" encoding="UTF-8"?>
Hi, First of all thank you for the container! I have a problem with the container and can't find the cause. I start the container with the following command: docker run -e OVERPASS_META=yes -e OVERPASS_MODE=init -e OVERPASS_PLANET_URL=http://download.geofabrik.de/europe/germany/baden-wuerttemberg/stuttgart-regbez-latest.osm.bz2 -e OVERPASS_DIFF_URL=http://download.openstreetmap.fr/replication/europe/germany/minute/ -e OVERPASS_RULES_LOAD=10 -v overpass:/db/ -p 12345:80 -i -t --name overpass_bw wiktorn/overpass-api
The data is downloaded and then the container is finished. After the restart I get a permission error in the log:
It took 0 to run the loop. Desired load is: 10%. Sleeping: 3 /app/bin/rules_loop.sh: line 42: ///db/db/rules_loop.log: Permission denied /app/bin/rules_loop.sh: line 43: ///db/db/rules/areas.osm3s: No such file or directory /app/bin/rules_loop.sh: line 44: ///db/db/rules_loop.log: Permission denied It took 0 to run the loop. Desired load is: 10%. Sleeping: 3 /app/bin/rules_loop.sh: line 42: ///db/db/rules_loop.log: Permission denied /app/bin/rules_loop.sh: line 43: ///db/db/rules/areas.osm3s: No such file or directory /app/bin/rules_loop.sh: line 44: ///db/db/rules_loop.log: Permission denied It took 0 to run the loop. Desired load is: 10%. Sleeping: 3 /app/bin/rules_loop.sh: line 42: ///db/db/rules_loop.log: Permission denied /app/bin/rules_loop.sh: line 43: ///db/db/rules/areas.osm3s: No such file or directory /app/bin/rules_loop.sh: line 44: ///db/db/rules_loop.log: Permission denied It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
Response: The data included in this document is from www.openstreetmap.org. The data is made available under ODbL. Error: runtime error: The dispatcher (i.e. the database management system) is turned off.
Is there any indication of what exactly the problem is?