[OSM-dev-fr] osm2psql, problème de fichier.
Lucas Nussbaum
lucas at lucas-nussbaum.net
Jeu 21 Mar 10:57:25 UTC 2013
On 21/03/13 at 11:17 +0100, Vincent Pottier wrote:
> Le 21/03/2013 09:55, sly (sylvain letuffe) a écrit :
> >Je tenterais quand même, même si tu as déjà dû vérifier 10 fois de creuser le
> >message ci-avant :
> >Unable to open /home/vincent/tmp/france-latest.osm.pbf
> >qui m'a l'air relativement explicite.
> >
> >Dans la foulée de ton ./france.osm2sql.sh (sans changer de dossier, ni
> >d'utilisateur, ni de quoi que ce soit tenter un :
> >$ ls -l /home/vincent/tmp/france-latest.osm.pbf
> postgres at vincent:~$ ls -l /home/vincent/tmp/france-latest.osm.pbf
> -rw-rw-rw- 1 postgres postgres 2480499375 mars 19 02:24
> /home/vincent/tmp/france-latest.osm.pbf
> >$ file /home/vincent/tmp/france-latest.osm.pbf
> postgres at vincent:~$ file /home/vincent/tmp/france-latest.osm.pbf
> /home/vincent/tmp/france-latest.osm.pbf: data
> >Vérifier des choses simples :
> >- Le fichier est il bien là ?
> >- sous ce nom là ? (un - un espace, un point ?)
> >- ton script change-t-il d'utilisateur et si oui, celui-ci a il accès au
> >fichier (pas juste "oui c'est bon y'a 777" mais passer dans cet utilisateur
> >et tenter une lecture partielle de ce fichier genre
> >cat /home/vincent/tmp/france-latest.osm.pbf > /dev/null (puis ctrl+c) )
> postgres at vincent:~$ cat /home/vincent/tmp/france-latest.osm.pbf > /dev/null
> Pas de problème... A entendre le disque dur, ça a l'aire de lire le fichier.
>
> Et, comme je le pensais, toujours le même problème avec
> france-130319.osm.pbf chargé dans la nuit
> postgres at vincent:~$ ls -l /home/vincent/tmp/france-130319.osm.pbf
> -rw-r--r-- 1 postgres postgres 2481581503 mars 20 02:27
> /home/vincent/tmp/france-130319.osm.pbf
> postgres at vincent:~$
> /home/vincent/Documents/cartographie/sh/france.osm2sql.sh
> osm2pgsql SVN version 0.81.0 (64bit id space)
> [...]
> Reading in file: /home/vincent/tmp/france-130319.osm.pbf
> Unable to open /home/vincent/tmp/france-130319.osm.pbf
> Bug ?
Que dit:
strace -f /home/vincent/Documents/cartographie/sh/france.osm2sql.sh
?
Lucas
Plus d'informations sur la liste de diffusion dev-fr