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)



MIME-Version: 1.0 (Apple Message framework v752.2)
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DK_POLICY_SIGNSOME
X-Mailer: Apple Mail (2.752.2)
Received-SPF: pass (x1.develooper.com: domain of avp [...] imente.com designates 62.97.113.150 as permitted sender)
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at imente.com
content-type: text/plain; charset="utf-8"; delsp="yes"; format="flowed"
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 6DBB24D82AD for <bug-Apache-Session [...] rt.cpan.org>; Thu, 15 Mar 2007 08:24:57 -0400 (EDT)
Received: (qmail 5656 invoked by alias); 15 Mar 2007 12:24:56 -0000
Received: from peggy.imente.com (HELO mail.imente.com) (62.97.113.150) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 15 Mar 2007 05:24:51 -0700
Received: from localhost (localhost [127.0.0.1]) by mail.imente.com (Postfix) with ESMTP id 3FB80883 for <bug-Apache-Session [...] rt.cpan.org>; Thu, 15 Mar 2007 13:24:37 +0100 (CET)
Received: from mail.imente.com ([127.0.0.1]) by localhost (peggy [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13428-08 for <bug-Apache-Session [...] rt.cpan.org>; Thu, 15 Mar 2007 13:24:36 +0100 (CET)
Received: from [192.168.0.30] (239.Red-213-96-32.staticIP.rima-tde.net [213.96.32.239]) by mail.imente.com (Postfix) with ESMTP id 8341D880 for <bug-Apache-Session [...] rt.cpan.org>; Thu, 15 Mar 2007 13:24:36 +0100 (CET)
Delivered-To: cpan-bug+apache-session [...] diesel.bestpractical.com
Subject: Problems writing to the sessions file
Return-Path: <avp [...] imente.com>
X-Original-To: bug-Apache-Session [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
Date: Thu, 15 Mar 2007 13:24:42 +0100
Message-Id: <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com>
To: bug-Apache-Session [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Albert Vila <avp [...] imente.com>
X-RT-Original-Encoding: US-ASCII
Content-Length: 322
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
MIME-Version: 1.0
In-Reply-To: <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
References: <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com>
Message-Id: <rt-3.6.HEAD-5059-1173983316-1918.25461-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
From: CHORNY [...] cpan.org
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 429
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
MIME-Version: 1.0 (Apple Message framework v752.2)
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DK_POLICY_SIGNSOME,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-5059-1173983316-1918.25461-6-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.752.2)
Received-SPF: pass (x1.develooper.com: domain of avp [...] imente.com designates 62.97.113.150 as permitted sender)
References: <RT-Ticket-25461 [...] rt.cpan.org> <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com> <rt-3.6.HEAD-5059-1173983316-1918.25461-6-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"; delsp="yes"; format="flowed"
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at imente.com
X-RT-Original-Encoding: ISO-8859-1
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 1A4D74D806F for <bug-Apache-Session [...] rt.cpan.org>; Fri, 16 Mar 2007 20:19:31 -0400 (EDT)
Received: (qmail 860 invoked by alias); 17 Mar 2007 00:19:31 -0000
Received: from peggy.imente.com (HELO mail.imente.com) (62.97.113.150) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Fri, 16 Mar 2007 17:19:20 -0700
Received: from localhost (localhost [127.0.0.1]) by mail.imente.com (Postfix) with ESMTP id DC5518DF for <bug-Apache-Session [...] rt.cpan.org>; Fri, 16 Mar 2007 16:56:35 +0100 (CET)
Received: from mail.imente.com ([127.0.0.1]) by localhost (peggy [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21313-10 for <bug-Apache-Session [...] rt.cpan.org>; Fri, 16 Mar 2007 16:56:35 +0100 (CET)
Received: from [192.168.0.41] (239.Red-213-96-32.staticIP.rima-tde.net [213.96.32.239]) by mail.imente.com (Postfix) with ESMTP id 2DCED835 for <bug-Apache-Session [...] rt.cpan.org>; Fri, 16 Mar 2007 16:56:34 +0100 (CET)
Delivered-To: cpan-bug+apache-session [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #25461] Problems writing to the sessions file
Return-Path: <avp [...] imente.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-Apache-Session [...] rt.cpan.org
Date: Fri, 16 Mar 2007 16:56:42 +0100
Message-Id: <DA8EB4E6-4254-4273-94DB-654CA0BCA5A9 [...] imente.com>
To: bug-Apache-Session [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Albert Vila <avp [...] imente.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-5087-1174090778-1846.25461-0-0 [...] rt.cpan.org>
Content-Length: 726
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 > >
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-5087-1174090778-1846.25461-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
References: <RT-Ticket-25461 [...] rt.cpan.org> <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com> <rt-3.6.HEAD-5059-1173983316-1918.25461-6-0 [...] rt.cpan.org> <DA8EB4E6-4254-4273-94DB-654CA0BCA5A9 [...] imente.com> <rt-3.6.HEAD-5087-1174090778-1846.25461-0-0 [...] rt.cpan.org>
Message-Id: <rt-3.6.HEAD-16493-1179859940-1179.25461-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
From: cvicente [...] cpan.org
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 1577
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
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-16493-1179859940-1179.25461-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-16488-1179868900-1433.25461-0-0 [...] rt.cpan.org>
References: <RT-Ticket-25461 [...] rt.cpan.org> <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com> <rt-3.6.HEAD-5059-1173983316-1918.25461-6-0 [...] rt.cpan.org> <DA8EB4E6-4254-4273-94DB-654CA0BCA5A9 [...] imente.com> <rt-3.6.HEAD-5087-1174090778-1846.25461-0-0 [...] rt.cpan.org> <rt-3.6.HEAD-16493-1179859940-1179.25461-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 246
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
MIME-Version: 1.0
In-Reply-To: <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-11237-1192365863-394.25461-0-0 [...] rt.cpan.org>
References: <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 217
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
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-16488-1179868900-1433.25461-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Charset: utf8
References: <RT-Ticket-25461 [...] rt.cpan.org> <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com> <rt-3.6.HEAD-5059-1173983316-1918.25461-6-0 [...] rt.cpan.org> <DA8EB4E6-4254-4273-94DB-654CA0BCA5A9 [...] imente.com> <rt-3.6.HEAD-5087-1174090778-1846.25461-0-0 [...] rt.cpan.org> <rt-3.6.HEAD-16493-1179859940-1179.25461-0-0 [...] rt.cpan.org> <rt-3.6.HEAD-16488-1179868900-1433.25461-0-0 [...] rt.cpan.org>
Message-Id: <rt-3.6.HEAD-22054-1202759695-448.25461-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
From: VKHERA [...] cpan.org
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 348
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.
MIME-Version: 1.0
In-Reply-To: <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com>
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
References: <82266F80-DE98-43BC-BA6D-DC42649B78BC [...] imente.com>
Message-Id: <rt-3.6.HEAD-11898-1225712830-1442.25461-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: cvicente [...] cpan.org, VKHERA [...] cpan.org
Content-Length: 201
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.