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

I followed this tutorial to setup an osm server: http://www.hyperionreactor.net/blog/how-build-your-own-osm-server-part-1-postgis-and-mapnik I'm still trying to make mapnik generate me images, but other than that everything worked well. Meanwhile i started to follow the official The Rails Port tutorial and i almost finished. (rails on ubuntu and rails port) This is the command i'm stuck at:

alexandru@alex-lap:~/.osm/rail_port/rails$ rake db:migrate
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
Please install RDoc 2.4.2+ to generate documentation.
rake aborted!
fe_sendauth: no password supplied

Tasks: TOP => db:migrate (See full trace by running task with --trace)

But also knowing that i already had setup my db in my first tutorial i went ahead and launched the server. If that would be of any help, this was the error:

The OpenStreetMap server encountered an unexpected condition that prevented it from fulfilling the request (HTTP 500)

Feel free to contact the OpenStreetMap community if your problem persists. Make a note of the exact URL / post data of your request.

This may be a problem in our Ruby On Rails code. 500 occurs with exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code)

asked 20 Oct '11, 08:58

alexz's gravatar image

alexz
225212226
accept rate: 0%

closed 20 Oct '11, 10:21

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108

The question has been closed for the following reason "Not a simple question with a straightforward answer. You can get help with technical issues by subscribing to the OSM-dev mailing list." by Jonathan Bennett 20 Oct '11, 10:21


The first tutorial showed you how to set up a PostGIS rendering database using osm2pgsql for use with Mapnik.

This is not the same database used by the Rails port. The latter uses a Postgres database without PostGIS extensions and with a very different schema. You will need to set up the new database despite already having a rendering database.

permanent link

answered 20 Oct '11, 09:08

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

Thank you very much! Btw, i just fixed my problem. It was in the database.yml, i had users and their passwords commented out. Now everything works. But CAN YOU PLEASE TELL ME then why do i have the whole map available at localhost?

(20 Oct '11, 09:22) alexz

Because the web site doesn't render maps directly from it's own database. Instead it displays tiles from (by default) tile.openstreetmap.org which naturally includes all data in the main database.

(20 Oct '11, 10:21) TomH ♦♦

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:

×710
×18

question asked: 20 Oct '11, 08:58

question was seen: 6,131 times

last updated: 20 Oct '11, 10:21

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