2017-09-13 2 views
0

J'ai généré une base de données nominatim avant et jamais rencontré un tel problème.index renvoie la relation "search_name_0" n'existe pas dans "Starting rank 2"

S'il vous plaît dites-moi quelle commande "setup.php" génère le "search_name_0" et de telles tables?

sortie d'erreur complète est:

-bash-4.2$ ./utils/setup.php --index --threads 8 --osm2pgsql-cache 24000 
nominatim version 2.5.1 

Starting indexing rank (0 to 4) using 8 threads 
Starting rank 0 
    Done 0 in 0 @ 0.000000 per second - FINISHED 

Starting rank 1 
    Done 0 in 0 @ 0.000000 per second - FINISHED 

Starting rank 2 
index_placex: UPDATE failed: ERROR: relation "search_name_0" does not exist 
LINE 1: DELETE from search_name_0 WHERE place_id = in_place_id 
        ^
QUERY: DELETE from search_name_0 WHERE place_id = in_place_id 
CONTEXT: PL/pgSQL function deletesearchname(integer,bigint) line 1260 at SQL statement 
PL/pgSQL function placex_update() line 75 at assignment 
index_placex: UPDATE failed: ERROR: relation "search_name_0" does not exist 
LINE 1: DELETE from search_name_0 WHERE place_id = in_place_id 
        ^
QUERY: DELETE from search_name_0 WHERE place_id = in_place_id 
CONTEXT: PL/pgSQL function deletesearchname(integer,bigint) line 1260 at SQL statement 
PL/pgSQL function placex_update() line 75 at assignment 
index_placex: UPDATE failed: ERROR: relation "search_name_0" does not exist 
LINE 1: DELETE from search_name_0 WHERE place_id = in_place_id 
        ^
QUERY: DELETE from search_name_0 WHERE place_id = in_place_id 
CONTEXT: PL/pgSQL function deletesearchname(integer,bigint) line 1260 at SQL statement 
PL/pgSQL function placex_update() line 75 at assignment 
index_placex: UPDATE failed: ERROR: relation "search_name_0" does not exist 
LINE 1: DELETE from search_name_0 WHERE place_id = in_place_id 
        ^
QUERY: DELETE from search_name_0 WHERE place_id = in_place_id 
CONTEXT: PL/pgSQL function deletesearchname(integer,bigint) line 1260 at SQL statement 
PL/pgSQL function placex_update() line 75 at assignment 
ERROR: Error executing external command: /srv/Nominatim-2.5.1/nominatim/nominatim -i -d nominatim -P 5432 -t 8 -R 4 
Error executing external command: /srv/Nominatim-2.5.1/nominatim/nominatim -i -d nominatim -P 5432 -t 8 -R 4 

-bash-4.2$ 

Répondre

0

Il a fallu un certain temps pour comprendre, mais il arrive quand votre partie « créer partition tables » de l'installation échoue.

Le redémarrage échouera à recréer les tables. J'ai dû supprimer manuellement toutes les tables de partition et ensuite redémarré l'installation avec la clé "create-partition-tables" pour résoudre ceci!