473,788 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RE : mod_auth_pgsql 2.0.1 don't close the backend connection

> Yes, the mod_auth_pgsql series for Apache 2 is broken as you
describe. It does not release the connection, but the change
is intentional. Looking at the Changelog I see:

- now we reuse database connection, 2x speedup !!

Perhaps this is a good thing with different MPMs, but the
standard prefork module can exhaust the available connections
quite quickly as you describe. Here is a patch for
mod_auth_pgsql 2.0.1 that reverts it to the previous behavior
of a new connection per authentication.
I'm getting many errors when I do the make on the patched files. Is
there other people that have compiled successfully the patched
mod_auth_pgsql 2.0.1 ?

I've attached to this email the error log. Do you have the same errors
than me or do I have missed something ?
I have added the maintainer to the cc: list, perhaps he has
some input?


I don't know, I've written to the maintainer but until now I never
received any answer from him. Is there a CVS somewhere with that project
?

Regards,

---------------------------------------
Bruno BAGUETTE - pg******@baguet te.net
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #1
5 1772


On Fri, 3 Oct 2003, Bruno BAGUETTE wrote:
I'm getting many errors when I do the make on the patched files. Is
there other people that have compiled successfully the patched
mod_auth_pgsql 2.0.1 ?

I've attached to this email the error log. Do you have the same errors
than me or do I have missed something ?
It cannot find the necessary pg header files. If you haven't installed
them you need to do so. If you've installed them someplace other than
/usr/local/pgsql/include you need to adjust the Makefile to reflect that.
I don't know, I've written to the maintainer but until now I never
received any answer from him. Is there a CVS somewhere with that project


Not that I know of.

Kris Jurka
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #2
> It cannot find the necessary pg header files. If you haven't
installed them you need to do so. If you've installed them
someplace other than /usr/local/pgsql/include you need to
adjust the Makefile to reflect that.


You were right, now the compilation is OK :-)

But, now, when I try to access to a mod_auth_pgsql protected directory,
Apache 2.0.47 have a segmentation fault errorr :

Here's an extract of the error log :

[Sun Oct 05 21:33:49 2003] [notice] child pid 2553 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:49 2003] [notice] child pid 2552 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:51 2003] [notice] child pid 2554 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:52 2003] [notice] child pid 2556 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:52 2003] [notice] child pid 2555 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:53 2003] [notice] SIGHUP received. Attempting to
restart
[Sun Oct 05 21:33:53 2003] [notice] seg fault or similar nasty error
detected in the parent process

If I do an apachectl start and retry I have the same error... :-(

Any idea to fix that ? Do you want me to recompile it with debug options
? (If that can help, I will do)
I don't know, I've written to the maintainer but until now I never
received any answer from him. Is there a CVS somewhere with that
project


Not that I know of.


Do you think that the mod_auth_pgsql module is still maintained ? We can
wait one week (maybe Giuseppe Tanzilli in on vacations) before
re-talking about it. However I am asking myself some questions because
this bug is so big (the mod_auth_pgsql for Apache2 is broken) and the
latest mod_auth_pgsql is seven months old.

Either that project is maintained or not, a CVS could be usefull to
allow multiple people submitting patches and documentation improvements
for the mod_auth_postgr esql module. I would be interested to improve the
documentation of this module in order to make easier for people to use
that module (and, in the same time, promoting PostgreSQL).

Regards,

---------------------------------------
Bruno BAGUETTE - pg******@baguet te.net


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #3
Hello,
I'm working on a new release to fix this,
the connection reuse logic will be different and
will be off by default.
Hope to release something in the evening.
bye,
Giuseppe

Bruno BAGUETTE Scrive:
It cannot find the necessary pg header files. If you haven't
installed them you need to do so. If you've installed them
someplace other than /usr/local/pgsql/include you need to
adjust the Makefile to reflect that.


You were right, now the compilation is OK :-)

But, now, when I try to access to a mod_auth_pgsql protected directory,
Apache 2.0.47 have a segmentation fault errorr :

Here's an extract of the error log :

[Sun Oct 05 21:33:49 2003] [notice] child pid 2553 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:49 2003] [notice] child pid 2552 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:51 2003] [notice] child pid 2554 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:52 2003] [notice] child pid 2556 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:52 2003] [notice] child pid 2555 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:53 2003] [notice] SIGHUP received. Attempting to
restart
[Sun Oct 05 21:33:53 2003] [notice] seg fault or similar nasty error
detected in the parent process

If I do an apachectl start and retry I have the same error... :-(

Any idea to fix that ? Do you want me to recompile it with debug options
? (If that can help, I will do)
> I don't know, I've written to the maintainer but until now I never
> received any answer from him. Is there a CVS somewhere with that
> project


Not that I know of.


Do you think that the mod_auth_pgsql module is still maintained ? We can
wait one week (maybe Giuseppe Tanzilli in on vacations) before
re-talking about it. However I am asking myself some questions because
this bug is so big (the mod_auth_pgsql for Apache2 is broken) and the
latest mod_auth_pgsql is seven months old.

Either that project is maintained or not, a CVS could be usefull to
allow multiple people submitting patches and documentation improvements
for the mod_auth_postgr esql module. I would be interested to improve the
documentation of this module in order to make easier for people to use
that module (and, in the same time, promoting PostgreSQL).

Regards,

---------------------------------------
Bruno BAGUETTE - pg******@baguet te.net


-------------------------------------
Giuseppe Tanzilli
in**@giuseppeta nzilli.it
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #4
Hello,
just published 2.0.2b1, it was on the way from some time.

Please test it,
feel free to send patches.

Bruno BAGUETTE Scrive:
It cannot find the necessary pg header files. If you haven't
installed them you need to do so. If you've installed them
someplace other than /usr/local/pgsql/include you need to
adjust the Makefile to reflect that.


You were right, now the compilation is OK :-)

But, now, when I try to access to a mod_auth_pgsql protected directory,
Apache 2.0.47 have a segmentation fault errorr :

Here's an extract of the error log :

[Sun Oct 05 21:33:49 2003] [notice] child pid 2553 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:49 2003] [notice] child pid 2552 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:51 2003] [notice] child pid 2554 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:52 2003] [notice] child pid 2556 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:52 2003] [notice] child pid 2555 exit signal
Segmentation fault (11)
[Sun Oct 05 21:33:53 2003] [notice] SIGHUP received. Attempting to
restart
[Sun Oct 05 21:33:53 2003] [notice] seg fault or similar nasty error
detected in the parent process

If I do an apachectl start and retry I have the same error... :-(

Any idea to fix that ? Do you want me to recompile it with debug options
? (If that can help, I will do)
> I don't know, I've written to the maintainer but until now I never
> received any answer from him. Is there a CVS somewhere with that
> project


Not that I know of.


Do you think that the mod_auth_pgsql module is still maintained ? We can
wait one week (maybe Giuseppe Tanzilli in on vacations) before
re-talking about it. However I am asking myself some questions because
this bug is so big (the mod_auth_pgsql for Apache2 is broken) and the
latest mod_auth_pgsql is seven months old.

Either that project is maintained or not, a CVS could be usefull to
allow multiple people submitting patches and documentation improvements
for the mod_auth_postgr esql module. I would be interested to improve the
documentation of this module in order to make easier for people to use
that module (and, in the same time, promoting PostgreSQL).

Regards,

---------------------------------------
Bruno BAGUETTE - pg******@baguet te.net


-------------------------------------
Giuseppe Tanzilli
in**@giuseppeta nzilli.it
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #5
Hello,

I've just tested mod_auth_pgsql 2.0.2b1 using Auth_PG_connect ion_reuse
on and off and it seems OK for me :-)

By the way, is there a way to calculate the minimal number of PostgreSQL
connections I have to setup in the postgresql.conf on the basis of the
maximum request allowed in the Apache httpd.conf ?

Thanks a lot Giuseppe :-)

Regards,

----------------------------------------
Bruno BAGUETTE - pg******@baguet te.net
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5019
by: Molly Gibson | last post by:
Hi all, I have recently installed Apache/1.3.28 + mod_auth_pgsql-0.9.12 (http://www.giuseppetanzilli.it/mod_auth_pgsql/) The only way I have been able to get it to successfully authenticate against my postgres (7.3.4) database is to turn Auth_PG_encrypted off & have encryption turned off in postgresql.conf. I am really uncomfortable with the idea of having unencrypted user
1
3976
by: Chris | last post by:
I have a frontend that has some tables which are linked to a backend. Now I want to make the backend password protected and when I try to run it password protected I can't open it. In the first form that opens in the front end, I added the following to the form_open event: Dim cnn As ADODB.connection Set cnn = New ADODB.connection cnn.Provider = "Microsoft.Jet.OLEDB.4.0" cnn.Properties("Data Source") = "C:\backend.mdb"
3
2338
by: Ryan Riehle | last post by:
Hi All! Trying to upgrade to Apache 2.0.49 and getting compile errors related to mod_auth_pgsql, any clue?: make: Entering directory `/usr/src/httpd-2.0.49' /usr/src/httpd-2.0.49/srclib/apr/libtool --silent --mode=link gcc -pthread -I/ =500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER I. -I/usr/src/httpd-2.0.49/os/unix -I/usr/src/httpd-2.0.49/server/mpm/prefork -I .49/modules/proxy
6
3555
by: Sharon | last post by:
Hi all. I'm trying first time async socket connection. In all the examples i've seen, the server connection is closed when the message is complete. Is it common to close the connection after every message? Also, the message is complete, meaning there is no more data to read, only when the client closes the connection. My solution is to keep the connection open, and send a terminator / eof at the end of every message. Is it the right...
13
4920
by: rdemyan via AccessMonster.com | last post by:
My front-end code manually links to the backend file. I was wondering what stops Access from linking to the system tables in the backend file. Is it just by virtue that they are hidden? This has recently come up because I've been playing around with converting my front end to A2003 format. At some point, I had a corruption issue with a system file MSStorage something. Access kept saying it couldn't find it. When I looked in the db...
4
8992
by: ashleycvernon | last post by:
I am using MS Access forms as a front end to a backend SQL Server Database. I am trying to use an ADO connection to return a Select Statement from the SQL Server to an Access form to be viewable by the user. I have been able to establish the connection to the SQL Server and have verified that the SQL statement is correct. I am completely new to ADO and I can't figure out how to display the data returned in the ADO recordset. Could...
9
4765
by: fniles | last post by:
I am using VB.NET 2003 and SQL 2005. To use connection pooling and avoid the error "There is already an open DataReader associated with this Connection which must be closed first." , I understand that I want to release/close connections in a timely fashion. What I do is I declare the SqlClient.SqlConnection variable as a local variable inside my subroutine (instead of a global variable). Right before I Fill the dataset I open the...
8
13257
by: mark_aok | last post by:
Hi all, I have a split database. Both the forms, and the tables are stored on a shared network drive (this is Access 2003). The users use the forms, and the tables on the network drive, there are no local copies. When connection to this drive is lost, Access CRASHES. It does it every single time. Does anyone know if there is a way to check if
7
2773
by: =?Utf-8?B?Sm9obiBTdGFnZ3M=?= | last post by:
Hello, Please read this all before giving an answer :) I'm doing some troubleshooting on a web application that my company wrote. It's written in asp.net 1.1. The error that the Event viewer gives is: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.