Ticket #1385 (closed enhancement: fixed)
Resolve postgres permissions issues
Reported by: | dread | Owned by: | dread |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ckan | Keywords: | |
Cc: | florian.marienfeld@… | Repository: | ckan |
Theme: | none |
Description
Currently there is a problem because the docs guide us to set the sqlalchemy url to use 'localhost' i.e. loopback, whereas paster commands don't specify '-h localhost' so use unix sockets (you need to do 'sudo -u postgres'). These should be the same.
Also do we need to tell people to add a line to their postgres authentication config /etc/postgresql/8.4/main/pg_hba.conf to help things? Florian suggests:
local std std md5
/etc/postgresql/8.4/main/pg_hba.conf
Change History
comment:2 Changed 2 years ago by dread
- Status changed from new to closed
- Resolution set to fixed
This patch has gone in (aimed for CKAN 1.5.2) [master 5b518e5].
Regarding setup to use unix sockets (as opposed to the loopback), I'm not keen, since it requires an extra step in editing the postgres config, for a barely noticeable performance improvement. Thanks for alerting us to it though, Florian.
Another change needed for this (via Florian):