NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum


Hello everybody. I'm a complete Ubuntu newbie who's trying to set up a tile server by following the instructions on

We are running Ubuntu 12.04.2 LTS on VMware

Everything goes fine until we need to "Set up PostGIS on the postresql database". We enter the "psql -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql -d gis" as instructed.

Instead of the expected output, we get a long list of errors that are like the following "error type "geometry[]" does not exist postgres tileserver"

There are also errors for things like "geometry" etc. This becomes a problem with the next step, where we try to assign ownership. We get an error "relation "geometry_columns" does not exist"

I'm assuming that there is some error when the gis table is populated, but we can't figure out what. Does anyone have any ideas that would point us in the right direction?

asked 11 Mar '13, 21:25

MatThePhat's gravatar image

accept rate: 0%

In these situations the root error cause is often the first message that appears, and the rest are only follow-on problems. Try redirecting the error output of your command to a file:

psql -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql -d gis > errors.txt 2>&1

then check the file errors.txt and look at the first unhealthy line(s) and report.

permanent link

answered 11 Mar '13, 21:34

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%


Thank you for your advice! We were able to figure out the problem, it had to do with our username in ubuntu vs. our username in postgres being different.

(12 Mar '13, 16:32) MatThePhat

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 11 Mar '13, 21:25

question was seen: 3,839 times

last updated: 12 Mar '13, 17:01

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum