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
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
|
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)
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
Comment by Greg (dolby) - Saturday,
17 November 2012, 07:43 GMT
Comment by Marc Rechté (mrechte) -
Saturday, 17 November 2012, 13:20 GMT
The postgres package in testing now stores the socket in /run
which should fix this issue.
Is this fixed like Pierre says?
Yes Postgresql package has been updated. Thanks