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
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
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).
Subject: Re: [rt.cpan.org #71722] Locking issue on Windows
Date: Sun, 29 Mar 2015 21:12:09 +0200
To: bug-CPAN [...] rt.cpan.org
From: Andreas Koenig <andreas.koenig.7os6VVqR [...] franz.ak.mind.de>
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.