You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2008-10-28 12:58:46

Michael Sherman
Member
Registered: 2008-10-28
Posts: 1

So close to having tilecache/mapnik/osm working. PSQL authentication

Hi all,

I'm attempting to get a local OSM served by Postgresql using tilecache and mapnik.  I have everything set up as far as I can tell by following the various Wiki pages here.  I'm running into an issue that is hopefully an easy one to solve, but it involves postgresql which is new to me (I use MySQL).  I created the user for the 'gis' database, and imported the planet file just fine. However, when I try to access via tilecache, I get an authentication error trying to reach postgresql.  Since I set up the gis database under my user account ("msherman"), and the web server is trying to connect and call as "apache", I'm sure this is the issue.  Now, in setting up the osm.xml file, I put in the proper username "msherman", and it's trying to use that, but I'm not sure about the password since you never really set one up in the postgresql setup!  It just assumes that you run it as the account you're logged in as.... so, long story to ask, how do I set a password for my "msherman" postgresql account so I can pass that in when tilecache is trying to do its thing?

Thanks,
Michael

Offline

#2 2008-10-28 16:29:12

JRA
Member
Registered: 2007-12-17
Posts: 677

Re: So close to having tilecache/mapnik/osm working. PSQL authentication

Try setting the pg_hba.conf file to "trust" mode for all users. Then the database should never demand any password from the apache user.

Offline

#3 2008-11-05 10:52:05

Bastiaan Wakkie
Member
Registered: 2008-11-04
Posts: 3

Re: So close to having tilecache/mapnik/osm working. PSQL authentication

JRA wrote:

Try setting the pg_hba.conf file to "trust" mode for all users. Then the database should never demand any password from the apache user.

Hi Michael,

I is the user 'msherman' exsisting in the database as user in the database?

see man createuser

It is mostly better to assign a specific user for the task like osm_user something like this:

       $ createuser -P -h localhost -p 5432 -S -D -R -e osm_user


about pg_hda.conf:
http://www.postgresql.org/docs/8.1/inte … ation.html

Cheers,
Bastiaan

Offline

Board footer

Powered by FluxBB