[OpenLayers-Dev] osm2pgsql wont work with planet

Matthias Sala matthias at gbanga.com
Fri Jul 10 10:33:43 EDT 2009


Hello there

Lately, I have set up a new tile server at Hetzner to mapnik-render the
whole planet.

I use:
* postgres 8.3
* Ubuntu 8.10 minimal
* self-compiled osm2pgsql

When using the osm2pgsql command to import the planet file, the following
occurs:

 $ time ./osm2pgsql --slim -m -d gis planet-090708.osm.bz2
 
 StartElement: Unknown element name: changeset
 EndElement: Unknown element name: changeset
 .
 . // several screens full of this
 .
 StartElement: Unknown element name: changeset
 EndElement: Unknown element name: changeset
 Entity: line 4315: parser error : AttValue: ' expected
 "4312" created_at="2008-04-01T13:19:11Z" closed_at="2008-04-01T14:19:11Z"
open="
 
^
 Entity: line 4315: parser error : attributes construct error
 "4312" created_at="2008-04-01T13:19:11Z" closed_at="2008-04-01T14:19:11Z"
open="
 
^
 Entity: line 4315: parser error : Couldn't find end of Start Tag changeset
 "4312" created_at="2008-04-01T13:19:11Z" closed_at="2008-04-01T14:19:11Z"
open="
 
^
 ../../planet-090708.osm.bz2 : failed to parse
 Error occurred, cleaning up

Why is that?

The planet file is md5sum checked, downloaded from
http://planet.openstreetmap.org/planet-latest.osm.bz2
I also switched off autovacuum.
The whole process works completely fine with the switzerland.osm.bz2

Is the 1 GB RAM on the server insufficient?

Many thanks for your help!!

Matthias




More information about the Dev mailing list