0
1

Hello everybody. I'm a complete Ubuntu newbie who's trying to set up a tile server by following the instructions on http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/

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

MatThePhat
36223
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 ♦
69.3k806291083
accept rate: 24%

1

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
Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×225
×154
×120
×14
×2

question asked: 11 Mar '13, 21:25

question was seen: 2,532 times

last updated: 12 Mar '13, 17:01

powered by OSQA