Skip Menu |
 

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 71722
Status: open
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in:
  • 1.9600
  • 2.05
Fixed in: (no value)



Subject: Locking issue on Windows
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 473
Download (untitled) / with headers
text/plain 473b
The following message appears if trying to start a CPAN shell while another is already running: C:>cpan CPAN.pm panic: Found invalid lockfile 'C:\strawberry\cpan\.lock', please remove. Cannot proceed. This is different from Unix behaviour, where the user may bypass the locking. Also the error message is misleading --- I don't think that there's a problem with the lockfile here. (This is on a Windows XP system running Strawberry Perl 5.12.3.0) Regards, Slaven
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-17662-1426233127-142.71722-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 605
Download (untitled) / with headers
text/plain 605b
On 2011-10-16 10:54:41, SREZIC wrote: Show quoted text
> The following message appears if trying to start a CPAN shell while > another is already running: > > C:>cpan > CPAN.pm panic: Found invalid lockfile 'C:\strawberry\cpan\.lock', please > remove. > Cannot proceed. > > This is different from Unix behaviour, where the user may bypass the > locking. > > Also the error message is misleading --- I don't think that there's a > problem with the lockfile here. > > (This is on a Windows XP system running Strawberry Perl 5.12.3.0) >
This is still an issue on recent systems (Strawberry Perl 5.20.1.x, CPAN 2.05).
MIME-Version: 1.0
X-Spam-Status: No, score=-5.2 tagged_above=-99.9 required=10 tests=[AWL=0.700, BAYES_00=-1.9, FROM_OUR_RT=-4, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
X-Authentication-Warning: k85.linux.bogus: k set sender to andreas.koenig.7os6VVqR [...] franz.ak.mind.de using -f
In-Reply-To: <rt-4.0.18-17662-1426233128-1365.71722-5-0 [...] rt.cpan.org> (Slaven Rezic via's message of "Fri, 13 Mar 2015 03:52:08 -0400")
X-Spam-Flag: NO
X-RT-Interface: API
References: <RT-Ticket-71722 [...] rt.cpan.org> <rt-4.0.18-17662-1426233128-1365.71722-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <87h9t3obxy.fsf [...] k85.linux.bogus>
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -5.2
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 020A22400DA for <cpan-bug+CPAN [...] hipster.bestpractical.com>; Sun, 29 Mar 2015 15:12:31 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J+uKcNxGG4dc for <cpan-bug+CPAN [...] hipster.bestpractical.com>; Sun, 29 Mar 2015 15:12:29 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 696EB240029 for <bug-CPAN [...] rt.cpan.org>; Sun, 29 Mar 2015 15:12:29 -0400 (EDT)
Received: (qmail 20105 invoked by alias); 29 Mar 2015 19:12:27 -0000
Received: from rz1.akoenig.de (HELO rz1.akoenig.de) (83.223.90.65) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 29 Mar 2015 12:12:25 -0700
Received: from franz.ak.mind.de (p4FC96981.dip0.t-ipconnect.de [79.201.105.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "franz.ak.mind.de", Issuer "franz.ak.mind.de" (not verified)) by rz1.akoenig.de (Postfix) with ESMTPS id 18FB5200E3 for <bug-CPAN [...] rt.cpan.org>; Sun, 29 Mar 2015 21:09:56 +0200 (CEST)
Received: from k85.linux.bogus (localhost [127.0.0.1]) by k85.linux.bogus (8.14.4/8.14.4/Debian-4) with ESMTP id t2TJC98X011238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <bug-CPAN [...] rt.cpan.org>; Sun, 29 Mar 2015 21:12:10 +0200
Received: (from k [...] localhost) by k85.linux.bogus (8.14.4/8.14.4/Submit) id t2TJC9Ih011237; Sun, 29 Mar 2015 21:12:09 +0200
Delivered-To: cpan-bug+CPAN [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #71722] Locking issue on Windows
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Return-Path: <andreas.koenig.7os6VVqR [...] franz.ak.mind.de>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+CPAN [...] hipster.bestpractical.com
X-RT-Mail-Extension: cpan
Date: Sun, 29 Mar 2015 21:12:09 +0200
X-Spam-Level:
To: bug-CPAN [...] rt.cpan.org
From: Andreas Koenig <andreas.koenig.7os6VVqR [...] franz.ak.mind.de>
RT-Message-ID: <rt-4.0.18-18640-1427656351-1339.71722-0-0 [...] rt.cpan.org>
Content-Length: 537
Download (untitled) / with headers
text/plain 537b
The problem with the lockfile was that it could not be read. Mandatory locking on Windows gets in the way. This is what I got from 'type .lock': "The process cannot access the file because another process has locked a portion of the file." Perl can open and close the lockfile just fine but when it tries to read the content it gets undef for each line and not the above error message. I have checked in a workaround as c8b50c2 that seems to work. I have tried it with strawberry perl 5.20.2.1. Thanks for the report! -- andreas


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.