FS#31914 - [apache] /usr/lib/systemd/system/httpd.service inadequate for Postgresql connection

Attached to Project: Arch Linux
Opened by Marc Rechté (mrechte) - Friday, 12 October 2012, 15:08 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Saturday, 17 November 2012, 13:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

/usr/lib/systemd/system/httpd.service has the PrivateTmp=true directive, isolating the /tmp directory shown to http processes.
This causes a problem to modules (like wsgi) trying to connect to Postgresl because socket is located in the /tmp directory.

The typical error shown is:
OperationalError: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Saturday, 17 November 2012, 13:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  (in Postgresql)
Comment by Pierre Schmitz (Pierre) - Monday, 15 October 2012, 09:18 GMT
The postgres package in testing now stores the socket in /run which should fix this issue.
Comment by Greg (dolby) - Saturday, 17 November 2012, 07:43 GMT
Is this fixed like Pierre says?
Comment by Marc Rechté (mrechte) - Saturday, 17 November 2012, 13:20 GMT
Yes Postgresql package has been updated. Thanks

Loading...