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

Launching the service: Error: Loaded 0 docs from index #32

Open
raphael10-collab opened this issue Feb 25, 2025 · 0 comments
Open

Launching the service: Error: Loaded 0 docs from index #32

raphael10-collab opened this issue Feb 25, 2025 · 0 comments

Comments

@raphael10-collab
Copy link

raphael10-collab commented Feb 25, 2025

Is there way to detect the progress of the building phase?

root@WorldMap:~/airmail# cargo run --bin indexer -- --wof-db data/whosonfirst-data-admin-latest.db --index data/index/ load-osm-pbf data/planet-daily.osm.pbf
    Finished dev [unoptimized + debuginfo] target(s) in 7.13s
     Running `target/debug/indexer --wof-db data/whosonfirst-data-admin-latest.db --index data/index/ load-osm-pbf data/planet-daily.osm.pbf`
[2025-02-25T11:42:45Z INFO  indexer::osm_pbf] Generating OSM node map from: data/planet-daily.osm.pbf

root@WorldMap:~/airmail# screen -ls
There is a screen on:
19338.pts-0.WorldMap (02/25/25 12:33:23) (Detached)

root@WorldMap:~/airmail# screen -r 19338

Image

root@WorldMap:~/airmail# ls -lah ./data/
total 123G
drwxr-xr-x  3 root root 4.0K Feb 25 08:02 .
drwxr-xr-x 10 root root 4.0K Feb 25 07:21 ..
drwxr-xr-x  2 root root 4.0K Feb 25 08:02 index
-rw-r--r--  1 root root  83G Feb 24 21:10 planet-daily.osm.pbf
-rw-r--r--  1 root root  40G Feb 25 08:02 whosonfirst-data-admin-latest.db
-rw-r--r--  1 root root  32K Feb 25 12:42 whosonfirst-data-admin-latest.db-shm
-rw-r--r--  1 root root    0 Feb 25 08:02 whosonfirst-data-admin-latest.db-wal


root@WorldMap:~/airmail# ls -lah ./data/index/
total 16K
drwxr-xr-x 2 root root 4.0K Feb 25 08:02 .
drwxr-xr-x 3 root root 4.0K Feb 25 08:02 ..
-rw------- 1 root root   14 Feb 25 07:54 .managed.json
-rw-r--r-- 1 root root    0 Feb 25 08:02 .tantivy-writer.lock
-rw------- 1 root root 1.7K Feb 25 07:54 meta.json

Launched the service :

root@WorldMap:~/airmail# cargo run --bin airmail_service -- --index data/index/
    Finished dev [unoptimized + debuginfo] target(s) in 1.24s
     Running `target/debug/airmail_service --index data/index/`
[2025-02-26T11:44:17Z INFO  airmail_service] Loaded 0 docs from index
[2025-02-26T11:44:17Z INFO  tantivy::directory::file_watcher] Meta file "/root/airmail/data/index/meta.json" was modified
[2025-02-26T11:44:17Z INFO  airmail_service] Listening at: 127.0.0.1:3000/search?q=query

But I get "Loaded 0 docs from index" ...

@raphael10-collab raphael10-collab changed the title Is there way to detect the progress of the building phase? Is there way to detect the progress of the building phase and understand when it is done? Feb 26, 2025
@raphael10-collab raphael10-collab changed the title Is there way to detect the progress of the building phase and understand when it is done? Launching the service: Error: Failed to open the directory: 'DoesNotExist("/data/index/")' But /data/index folder does exist Feb 26, 2025
@raphael10-collab raphael10-collab changed the title Launching the service: Error: Failed to open the directory: 'DoesNotExist("/data/index/")' But /data/index folder does exist Launching the service: Error: Loaded 0 docs from index Feb 26, 2025
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