wiktorn / Overpass-API

Overpass API docker image
MIT License
140 stars 49 forks source link

open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7 #128

Open pcace opened 3 weeks ago

pcace commented 3 weeks ago

Hi there, i am trying to get the api to run. i have these variables:

OVERPASS_META=yes OVERPASS_MODE=init OVERPASS_PLANET_URL=http://download.geofabrik.de/europe/germany-latest.osm.bz2 OVERPASS_DIFF_URL=http://download.openstreetmap.fr/replication/europe/germany/minute/ OVERPASS_RULES_LOAD=10

running the container results in this output:

2024-10-09T14:29:13.636953033Z 127.0.0.1 - - [09/Oct/2024:14:29:13 +0000] "GET /api/interpreter?data=[out:json];node(8951963);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:16.102558032Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:16.106452509Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:18.745591303Z 127.0.0.1 - - [09/Oct/2024:14:29:18 +0000] "GET /api/interpreter?data=[out:json];node(4672305);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:19.187224680Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:19.190564922Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:22.272327009Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:22.275038716Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:23.872252638Z 127.0.0.1 - - [09/Oct/2024:14:29:23 +0000] "GET /api/interpreter?data=[out:json];node(2776999);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:25.357138402Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:25.360897111Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:28.442788731Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:28.446887667Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:28.997656981Z 127.0.0.1 - - [09/Oct/2024:14:29:28 +0000] "GET /api/interpreter?data=[out:json];node(9516056);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:31.527795002Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:31.531359032Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:34.077307868Z 127.0.0.1 - - [09/Oct/2024:14:29:34 +0000] "GET /api/interpreter?data=[out:json];node(9722446);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:34.612661547Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:34.615430994Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:37.698880225Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:37.702605573Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:39.144882254Z 127.0.0.1 - - [09/Oct/2024:14:29:39 +0000] "GET /api/interpreter?data=[out:json];node(7325553);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:40.782719225Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:40.786851621Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:43.867553860Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:43.870391626Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:44.223971518Z 127.0.0.1 - - [09/Oct/2024:14:29:44 +0000] "GET /api/interpreter?data=[out:json];node(3939488);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:46.954178576Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:46.958584529Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:49.326078448Z 127.0.0.1 - - [09/Oct/2024:14:29:49 +0000] "GET /api/interpreter?data=[out:json];node(4775712);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:50.038335785Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:50.042264932Z It took 1 to run the loop. Desired load is: 10%. Sleeping: 9
2024-10-09T14:29:54.442149280Z 127.0.0.1 - - [09/Oct/2024:14:29:54 +0000] "GET /api/interpreter?data=[out:json];node(4924389);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:29:59.152285506Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:29:59.155667518Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:29:59.545315805Z 127.0.0.1 - - [09/Oct/2024:14:29:59 +0000] "GET /api/interpreter?data=[out:json];node(830640);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:30:02.239166904Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:30:02.242753044Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:30:04.604736471Z 127.0.0.1 - - [09/Oct/2024:14:30:04 +0000] "GET /api/interpreter?data=[out:json];node(7866842);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:30:05.326880762Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:30:05.331050567Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:30:08.412734108Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:30:08.416323538Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:30:09.696745534Z 127.0.0.1 - - [09/Oct/2024:14:30:09 +0000] "GET /api/interpreter?data=[out:json];node(9578284);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:30:11.498004250Z runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:30:11.501876967Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:30:13.488286607Z 2024-10-09 14:30:13 INFO: Using replication server at http://download.openstreetmap.fr/replication/europe/germany/minute/
2024-10-09T14:30:13.488306416Z 2024-10-09 14:30:13 DEBUG: Using given sequence ID 6296706
2024-10-09T14:30:13.488310916Z 2024-10-09 14:30:13 DEBUG: Starting download at ID 6296707 (max 100 MB)
2024-10-09T14:30:13.489208989Z 2024-10-09 14:30:13 DEBUG: Starting new HTTP connection (1): download.openstreetmap.fr:80
2024-10-09T14:30:13.528058904Z 2024-10-09 14:30:13 DEBUG: http://download.openstreetmap.fr:80 "GET /replication/europe/germany/minute//state.txt HTTP/11" 200 104
2024-10-09T14:30:13.550707545Z 2024-10-09 14:30:13 DEBUG: http://download.openstreetmap.fr:80 "GET /replication/europe/germany/minute//006/296/707.osc.gz HTTP/11" 200 13699
2024-10-09T14:30:13.553443002Z 2024-10-09 14:30:13 DEBUG: Downloaded change 6296707. (102345 kB available in download buffer)
2024-10-09T14:30:13.590914229Z /app/bin/update_from_dir --osc-dir=/db/diffs --version=2024-10-09T14:28:45Z --flush-size=16 --meta
2024-10-09T14:30:13.941086454Z Reading XML file ... finished reading nodes. Compute current ... ready. Flushing to database ....... done.
2024-10-09T14:30:14.249195580Z Reading XML file ... finished reading ways. Compute current ... ready. Flushing to database ....... done.
2024-10-09T14:30:14.593224827Z Reading XML file ... finished reading relations. runtime error: open64: 2 No such file or directory /db/db//osm3s_areas Unix_Socket::7
2024-10-09T14:30:14.596516689Z It took 0 to run the loop. Desired load is: 10%. Sleeping: 3
2024-10-09T14:30:14.755867608Z Flushing to database ....127.0.0.1 - - [09/Oct/2024:14:30:14 +0000] "GET /api/interpreter?data=[out:json];node(7167263);out; HTTP/1.1" 200 634 "-" "curl/7.88.1"
2024-10-09T14:30:14.889795140Z ... done.
2024-10-09T14:30:15.125821878Z Update complete.
2024-10-09T14:30:15.129869915Z There are still some updates remaining
2024-10-09T14:30:15.204274243Z 2024-10-09 14:30:15 INFO: Using replication server at http://download.openstreetmap.fr/replication/europe/germany/minute/
2024-10-09T14:30:15.204292693Z 2024-10-09 14:30:15 DEBUG: Using given sequence ID 6296707
2024-10-09T14:30:15.204296913Z 2024-10-09 14:30:15 DEBUG: Starting download at ID 6296708 (max 100 MB)
2024-10-09T14:30:15.205165625Z 2024-10-09 14:30:15 DEBUG: Starting new HTTP connection (1): download.openstreetmap.fr:80
2024-10-09T14:30:15.238148861Z 2024-10-09 14:30:15 DEBUG: http://download.openstreetmap.fr:80 "GET /replication/europe/germany/minute//state.txt HTTP/11" 200 104
2024-10-09T14:30:15.239562709Z 2024-10-09 14:30:15 ERROR: Error while downloading diffs.
2024-10-09T14:30:15.263663408Z Empty version, skipping file
2024-10-09T14:30:15.264297922Z <?xml version='1.0' encoding='UTF-8'?>
2024-10-09T14:30:15.264303622Z <osmChange version="0.6" generator="libosmium/2.20.0">
2024-10-09T14:30:15.264306302Z </osmChange>
2024-10-09T14:30:15.265191475Z Update finished with status code: 3

over and over again. Is there anything i can try to make it work? or is this somehow known?

from within the container i cannot run this:

app/bin/dispatcher --osm-base --db-dir=/db/db --meta
File_Error No such file or directory 2 /db/db//osm3s_osm_base Unix_Socket::4

thanks a lot!!

BobLamarley commented 1 week ago

Hi, I'm having the same, running this command:

docker run \
  -e OVERPASS_META=yes \
  -e OVERPASS_MODE=init \
  -e OVERPASS_PLANET_URL=http://download.geofabrik.de/europe/monaco-latest.osm.bz2 \
  -e OVERPASS_DIFF_URL=http://download.openstreetmap.fr/replication/europe/monaco/minute \
  -e OVERPASS_RULES_LOAD=10 \
  -v overpass-data:/db \
  -p 12345:80 \
  -i -t \
  --name overpass_monaco wiktorn/overpass-api
image

Did you find any solutions ?