FAQ
I think NFS issues are confusing my CPAN.pm and causing it to stall
while it waits for a lock. I'm still trying to track down this problem,
but maybe someone has run into before.

I'm creating a bootstrapping program to install a Perl environment
starting with only a standard Perl 5.10.0 installation, so I'm using
CPAN.pm 1.9205. I can install a later CPAN.pm, but I can't start
with one. Part of this process involves a sandboxed continuous
integration step where multiple CPAN.pm clients can run simultaneously
because they get a chrooted environment to themselves.

With environments that mount the starting directory over NFS,
CPAN::Shell->install() hangs while trying to lock FTPstats.yml (output
at the end of the message). However YAML is not installed and CPAN.pm
warns about this.

Running the same code on the same account but on the system that
exports the directory has no problems.

Utlimately, I wouldn't mind a feature to disable locking, like
"no_really_i_know_what_im_doing_so_dont_lock_kthxbye".

-----

% perl5.10.0 -MCPAN -e 'install( "Test::Output" )'
CPAN: Storable loaded ok (v2.18)
Going to read /home/bfoy/.cpan/Metadata
Database was generated on Tue, 17 Feb 2009 20:30:01 GMT
Running install for module 'Test::Output'
CPAN: Data::Dumper loaded ok (v2.121_14)
'YAML' not installed, falling back to Data::Dumper and Storable to
read prefs '/home/bfoy/.cpan/prefs'
Running make for S/SS/SSORICHE/Test-Output-0.12.tar.gz
CPAN: Digest::SHA loaded ok (v5.45)
CPAN: Time::HiRes loaded ok (v1.9711)
Waiting for a read lock on '/home/bfoy/.cpan/FTPstats.yml' (since Tue
Feb 17 15:56:31 2009)
Waiting for a read lock on '/home/bfoy/.cpan/FTPstats.yml' (since Tue
Feb 17 15:56:31 2009)
Waiting for a read lock on '/home/bfoy/.cpan/FTPstats.yml' (since Tue
Feb 17 15:56:31 2009)
Waiting for a read lock on '/home/bfoy/.cpan/FTPstats.yml' (since Tue
Feb 17 15:56:31 2009)
Waiting for a read lock on '/home/bfoy/.cpan/FTPstats.yml' (since Tue
Feb 17 15:56:31 2009)

Search Discussions

  • David Golden at Feb 17, 2009 at 10:31 pm

    On Tue, Feb 17, 2009 at 5:14 PM, brian d foy wrote:
    Utlimately, I wouldn't mind a feature to disable locking, like
    "no_really_i_know_what_im_doing_so_dont_lock_kthxbye".

    -----

    % perl5.10.0 -MCPAN -e 'install( "Test::Output" )'
    Monkeypatch it?

    % perl5.10.0 -MCPAN -e '*CPAN::_flock = sub { 1 }; install( "Test::Output" )'

    -- David
  • Brian d foy at Feb 18, 2009 at 12:05 am
    In article
    <5d4beb40902171431h28bf2123x55ea936adbb69666@mail.gmail.com>, David
    Golden wrote:
    On Tue, Feb 17, 2009 at 5:14 PM, brian d foy wrote:
    Utlimately, I wouldn't mind a feature to disable locking, like
    "no_really_i_know_what_im_doing_so_dont_lock_kthxbye".

    -----

    % perl5.10.0 -MCPAN -e 'install( "Test::Output" )'
    Monkeypatch it?

    % perl5.10.0 -MCPAN -e '*CPAN::_flock = sub { 1 }; install( "Test::Output" )'
    That's what I'm doing, but I don't particularly like it for a long term
    fix. It's not like this is Ruby. :)

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcpan-workers @
categoriesperl
postedFeb 17, '09 at 10:15p
activeFeb 18, '09 at 12:05a
posts3
users2
websitecpan.org

2 users in discussion

Brian d foy: 2 posts David Golden: 1 post

People

Translate

site design / logo © 2021 Grokbase