Skip Menu |
 

This queue is for tickets about the Apache-Session CPAN distribution.

Report information
The Basics
Id: 25461
Status: stalled
Priority: 0/
Queue: Apache-Session

People
Owner: Nobody in particular
Requestors: avp [...] imente.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Problems writing to the sessions file
Date: Thu, 15 Mar 2007 13:24:42 +0100
To: bug-Apache-Session [...] rt.cpan.org
From: Albert Vila <avp [...] imente.com>
Download (untitled) / with headers
text/plain 322b
I'm having intermitent problems writing to the sessions file using the Apache::Session::DB_FIle. Sometimes the new session is not writed in the file but the Apache::Session::DB_File does not throw any error. I tried the 1.82 and 1.82_03 versions and both happens the same problem. It is under perl 5.8.4. Thanks
From: CHORNY [...] cpan.org
Download (untitled) / with headers
text/plain 429b
On Mar 15 08:25:10 2007, avp@imente.com wrote: Show quoted text
> I'm having intermitent problems writing to the sessions file using > the Apache::Session::DB_File. Sometimes the new session is not writed > in the file but the Apache::Session::DB_File does not throw any error.
Does it happens when there are parallel sessions? Or when there is only single session? How frequently does this happen? -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #25461] Problems writing to the sessions file
Date: Fri, 16 Mar 2007 16:56:42 +0100
To: bug-Apache-Session [...] rt.cpan.org
From: Albert Vila <avp [...] imente.com>
Download (untitled) / with headers
text/plain 726b
It happens only with parallel sessions, and It happens more or less once a day. Our applications does not have a big load. Thanks, Albert El 15/03/2007, a las 19:28, Alexandr Ciornii via RT escribió: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=25461 > > > On Mar 15 08:25:10 2007, avp@imente.com wrote:
>> I'm having intermitent problems writing to the sessions file using >> the Apache::Session::DB_File. Sometimes the new session is not writed >> in the file but the Apache::Session::DB_File does not throw any >> error.
> > Does it happens when there are parallel sessions? Or when there is > only > single session? > > How frequently does this happen? > > -- > Alexandr Ciornii, http://chorny.net > >
From: cvicente [...] cpan.org
Download (untitled) / with headers
text/plain 1.5k
I've encountered a similar problem (in my case, using Apache::Session::File). Sessions are created just fine, but when adding new data to the session hash, it gets written to disk only *some* times. I've been using Apache::Session in a web application for years now and have never seen this before. I recently switched from Gentoo to Ubuntu in my development machine, and I suspect it has to do with Apache2 being compiled as MPM Worker: (http://httpd.apache.org/docs/2.2/mod/worker.html) # apache2 -V Server version: Apache/2.2.3 Server built: Jan 15 2007 18:11:52 Server's Module Magic Number: 20051115:3 Server loaded: APR 1.2.7, APR-Util 1.2.7 Compiled using: APR 1.2.7, APR-Util 1.2.7 Architecture: 32-bit Server MPM: Worker threaded: yes (fixed thread count) forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/worker" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="" -D SUEXEC_BIN="/usr/lib/apache2/suexec" -D DEFAULT_PIDLOG="/var/run/apache2.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" Is there anything that can be done to avoid this, other than compiling Apache as MPM prefork? Thanks in advance, cv
Download (untitled) / with headers
text/plain 246b
Just an update on my previous post. I have installed a new Apache2 with mpm_prefork and the problem did not go away, so my previous guess that mpm_worker could be the cause was wrong. I'm now rather lost as to what is causing this behavior. cv
Download (untitled) / with headers
text/plain 217b
Both Apache::Session::DB_File & Apache::Session::File use Apache::Session::Serialize::Storable, which was updated in 1.84 to handle some Storable errors. Maybe this will help. -- Alexandr Ciornii, http://chorny.net
From: VKHERA [...] cpan.org
Download (untitled) / with headers
text/plain 348b
On Tue May 22 17:21:40 2007, CVICENTE wrote: Show quoted text
> Just an update on my previous post. > > I have installed a new Apache2 with mpm_prefork and the problem did not > go away, so my previous guess that mpm_worker could be the cause was wrong.
Observing same behavior with session 1.81 and postgres backend. FreeBSD 6.3 with apache 2.0 and mod_perl.
RT-Send-CC: cvicente [...] cpan.org, VKHERA [...] cpan.org
Download (untitled) / with headers
text/plain 201b
Did you tried {Transaction => 1} argument? It should be used when using more than one process. VKHERA, minimum recommended version of Apache::Session is 1.84. -- Alexandr Ciornii, http://chorny.net


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.