Ticket #153 (closed issue: fixed)

Opened 5 months ago

Last modified 5 months ago

Failure of CPAN install Bundle::HoneyClient::Util

Reported by: anonymous Assigned to: kindlund
Priority: normal Milestone: 1.1
Component: HoneyClient::Util Version: 1.02
Severity: none Keywords: urllist, cpan, install, bundle
Cc:

Description

Following the "Install Perl Dependencies" section. In step 2, I can successfully install Bundle::CPAN, but Bundle::HoneyClient::Util fails:

cpan> install Bundle::HoneyClient::Util  
Warning: Cannot install Bundle::HoneyClient::Util, don't know what it is.
Try the command

    i /Bundle::HoneyClient::Util/

to find objects with matching identifiers.


cpan> i  /Bundle::HoneyClient::Util/   
No objects found of any type for argument /Bundle::HoneyClient::Util/

cpan> i  /Bundle::HoneyClient/      
No objects found of any type for argument /Bundle::HoneyClient/

cpan> o conf
$CPAN::Config options from '/etc/perl/CPAN/Config.pm':
    commit             [Commit changes to disk]
    defaults           [Reload defaults from disk]
    help               [Short help about 'o conf' usage]
    init               [Interactive setting of all options]

    applypatch         []
    auto_commit        [0]
    build_cache        [10]
    build_dir          [/home/earlyjp/honeyclient/cpan/build]
    build_dir_reuse    [0]
    build_requires_install_policy [ask/yes]
    bzip2              [/bin/bzip2]
    cache_metadata     [1]
    check_sigs         [0]
    colorize_debug     undef
    colorize_output    [0]
    colorize_print     undef
    colorize_warn      undef
    commandnumber_in_prompt [0]
    commands_quote     undef
    cpan_home          [/home/earlyjp/honeyclient/cpan]
    curl               []
    dontload_hash     
    dontload_list      undef
    ftp                [/usr/bin/ftp]
    ftp_passive        [1]
    ftp_proxy          []
    getcwd             [cwd]
    gpg                [/usr/bin/gpg]
    gzip               [/bin/gzip]
    histfile           [/home/earlyjp/honeyclient/cpan/histfile]
    histsize           [100]
    http_proxy         []
    inactivity_timeout [0]
    index_expire       [0.001]
    inhibit_startup_message [0]
    keep_source_where  [/home/earlyjp/honeyclient/cpan/sources]
    load_module_verbosity [v]
    lynx               [/usr/bin/lynx]
    make               [/usr/bin/make]
    make_arg           []
    make_install_arg   []
    make_install_make_command [/usr/bin/make]
    makepl_arg         [INSTALLDIRS=site]
    mbuild_arg         []
    mbuild_install_arg []
    mbuild_install_build_command [./Build]
    mbuildpl_arg       []
    ncftp              []
    ncftpget           []
    no_proxy           []
    pager              [/usr/bin/less]
    password           undef
    patch              [/usr/bin/patch]
    prefer_installer   [MB]
    prefs_dir          [/home/honeyclient/cpan/prefs]
    prerequisites_policy [ask]
    proxy_pass         undef
    proxy_user         undef
    randomize_urllist  undef
    scan_cache         [atstart]
    shell              [/bin/bash]
    show_unparsable_versions [0]
    show_upload_date   [0]
    show_zero_versions [0]
    tar                [/bin/tar]
    tar_verbosity      [v]
    term_is_latin      [1]
    term_ornaments     [1]
    test_report        [0]
    unzip              [/usr/bin/unzip]
    urllist           
        0 [ftp://carroll.cac.psu.edu/pub/CPAN/]
        1 [file:///home/earlyjp/honeyclient/cpan/]
    use_sqlite         [0]
    username           undef
    wait_list          undef
    wget               [/usr/bin/wget]
    yaml_load_code     [0]
    yaml_module        [YAML]

Previous reports suggest that there is an updated installation document (I'm using the link from the main page). Should I try something else?

Thank you.

Attachments

Change History

03/25/08 14:33:53 changed by kindlund

  • keywords set to urllist, cpan, install, bundle.
  • status changed from new to assigned.

The UserGuide has been fully updated and is the most recent version. You should probably start at this location:

http://www.honeyclient.org/trac/wiki/UserGuide#InitializeCPAN

Specifically, your urllist is incorrect. You have:

urllist           
        0 [ftp://carroll.cac.psu.edu/pub/CPAN/]
        1 [file:///home/earlyjp/honeyclient/cpan/]

This should be:

urllist           
        0 [file:///home/earlyjp/honeyclient/cpan/]

The point is that when you specify "install Bundle::HoneyClient::Util", cpan will try the first urllist entry in the configuration. CPAN successfully contacts that ftp site and discovers that this bundle does not exist on that ftp site.

Thus, CPAN never gets to the second urllist entry, where this bundle is actually defined.

Update your urllist and let us know if you run into any other problems.

Thanks,

— Darien

03/25/08 15:15:16 changed by anonymous

Hello, Darien. Thank you for the prompt response. Unfortunately, I'm still getting the error with the updated urllist you suggest:

cpan> install Bundle::HoneyClient::Util
Warning: Cannot install Bundle::HoneyClient::Util, don't know what it is.
Try the command

    i /Bundle::HoneyClient::Util/

to find objects with matching identifiers.

cpan> i /Bundle::HoneyClient::Util/      
No objects found of any type for argument /Bundle::HoneyClient::Util/

cpan> o conf
$CPAN::Config options from '/etc/perl/CPAN/Config.pm':
    commit             [Commit changes to disk]
    defaults           [Reload defaults from disk]
    help               [Short help about 'o conf' usage]
    init               [Interactive setting of all options]

    applypatch         []
    auto_commit        [0]
    build_cache        [10]
    build_dir          [/home/earlyjp/honeyclient/cpan/build]
    build_dir_reuse    [0]
    build_requires_install_policy [ask/yes]
    bzip2              [/bin/bzip2]
    cache_metadata     [1]
    check_sigs         [0]
    colorize_debug     undef
    colorize_output    [0]
    colorize_print     undef
    colorize_warn      undef
    commandnumber_in_prompt [0]
    commands_quote     undef
    cpan_home          [/home/earlyjp/honeyclient/cpan]
    curl               []
    dontload_hash     
    dontload_list      undef
    ftp                [/usr/bin/ftp]
    ftp_passive        [1]
    ftp_proxy          []
    getcwd             [cwd]
    gpg                [/usr/bin/gpg]
    gzip               [/bin/gzip]
    histfile           [/home/earlyjp/honeyclient/cpan/histfile]
    histsize           [100]
    http_proxy         []
    inactivity_timeout [0]
    index_expire       [0.001]
    inhibit_startup_message [0]
    keep_source_where  [/home/earlyjp/honeyclient/cpan/sources]
    load_module_verbosity [v]
    lynx               [/usr/bin/lynx]
    make               [/usr/bin/make]
    make_arg           []
    make_install_arg   []
    make_install_make_command [/usr/bin/make]
    makepl_arg         [INSTALLDIRS=site]
    mbuild_arg         []
    mbuild_install_arg []
    mbuild_install_build_command [./Build]
    mbuildpl_arg       []
    ncftp              []
    ncftpget           []
    no_proxy           []
    pager              [/usr/bin/less]
    password           undef
    patch              [/usr/bin/patch]
    prefer_installer   [MB]
    prefs_dir          [/home/honeyclient/cpan/prefs]
    prerequisites_policy [ask]
    proxy_pass         undef
    proxy_user         undef
    randomize_urllist  undef
    scan_cache         [atstart]
    shell              [/bin/bash]
    show_unparsable_versions [0]
    show_upload_date   [0]
    show_zero_versions [0]
    tar                [/bin/tar]
    tar_verbosity      [v]
    term_is_latin      [1]
    term_ornaments     [1]
    test_report        [0]
    unzip              [/usr/bin/unzip]
    urllist           
        0 [file:///home/earlyjp/honeyclient/cpan]
    use_sqlite         [0]
    username           undef
    wait_list          undef
    wget               [/usr/bin/wget]
    yaml_load_code     [0]
    yaml_module        [YAML]

Also, I notice that the instructions for updating the urllist produces an entry that is just "=":

cpan> o conf urllist = file:///home/earlyjp/honeyclient/cpan
Please use 'o conf commit' to make the config permanent!



cpan> o conf                                                
$CPAN::Config options from '/etc/perl/CPAN/Config.pm':
<snip>
    unzip              [/usr/bin/unzip]
    urllist           
        0 [=]
        1 [file:///home/earlyjp/honeyclient/cpan]
    use_sqlite         [0]

I'm trying to set up the HoneyClient under Ubuntu Server, 2.6.20-16-server kernel.

Thanks for your help.

03/25/08 16:37:10 changed by xkovah

In addition, you will have to wipe the perl Metadata, since it will have cached incorrect module information. Try deleting /home/earlyjp/honeyclient/cpan/Metadata and running the command again, and let us know the result.

Xeno

03/26/08 09:32:52 changed by anonymous

Hello, Xeno. Thanks for the suggestion. Unfortuntely, removing the Metadata file does not permit cpan to discover the HoneyClient modules. Further, I notice that when I try to install Bundle::HoneyClient::Util, CPAN asks if it can attach to the internet. I assume that this is because I have only one file entry in the URL list:

cpan> o conf
<snip>
    unzip              [/usr/bin/unzip]
    urllist           
        0 [file:///home/earlyjp/honeyclient/cpan]
    use_sqlite         [0]
<snip>

cpan> install Bundle::HoneyClient::Util
CPAN: Storable loaded ok (v2.15)
CPAN: LWP::UserAgent loaded ok (v2.033)
CPAN: Time::HiRes loaded ok (v1.86)
CPAN: URI::URL loaded ok (v5.03)
Could not find '/home/earlyjp/honeyclient/cpan/authors/01mailrc.txt.gz'
Fetching with LWP:
  file:///home/earlyjp/honeyclient/cpan/authors/01mailrc.txt.gz
LWP failed with code[404] message[File `/home/earlyjp/honeyclient/cpan/authors/01mailrc.txt.gz' does not exist]
Could not find '/home/earlyjp/honeyclient/cpan/authors/01mailrc.txt.gz'
Fetching with LWP:
  file:///home/earlyjp/honeyclient/cpan/authors/01mailrc.txt.gz
LWP failed with code[404] message[File `/home/earlyjp/honeyclient/cpan/authors/01mailrc.txt.gz' does not exist]

As a last ressort we now switch to the external ftp command '/usr/bin/ftp'
to get '/home/earlyjp/honeyclient/cpan/sources/authors/01mailrc.txt.gz.tmp11595'.

Doing so often leads to problems that are hard to diagnose.

If you're victim of such problems, please consider unsetting the ftp
config variable with

    o conf ftp ""
    o conf commit


I would like to connect to one of the following sites to get 'authors/01mailrc.txt.gz':

 http://www.perl.org/CPAN/
 ftp://ftp.perl.org/pub/CPAN/

Is it OK to try to connect to the Internet? [yes] no
CPAN: YAML loaded ok (v0.66)
Please check, if the URLs I found in your configuration file
(file:///home/earlyjp/honeyclient/cpan) are valid. The urllist can be
edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch authors/01mailrc.txt.gz
Trying to get away with old file:
1951700  144 -rw-r--r--  1 0        0          141703 Mar 26 09:12 /home/earlyjp/honeyclient/cpan/sources/authors/01mailrc.txt.gz
Going to read /home/earlyjp/honeyclient/cpan/sources/authors/01mailrc.txt.gz
CPAN: Compress::Zlib loaded ok (v2.008)
............................................................................DONE
Could not find '/home/earlyjp/honeyclient/cpan/modules/02packages.details.txt.gz'
Fetching with LWP:
  file:///home/earlyjp/honeyclient/cpan/modules/02packages.details.txt.gz
LWP failed with code[404] message[File `/home/earlyjp/honeyclient/cpan/modules/02packages.details.txt.gz' does not exist]
Could not find '/home/earlyjp/honeyclient/cpan/modules/02packages.details.txt.gz'
Fetching with LWP:
  file:///home/earlyjp/honeyclient/cpan/modules/02packages.details.txt.gz
LWP failed with code[404] message[File `/home/earlyjp/honeyclient/cpan/modules/02packages.details.txt.gz' does not exist]

As a last ressort we now switch to the external ftp command '/usr/bin/ftp'
to get '/home/earlyjp/honeyclient/cpan/sources/modules/02packages.details.txt.gz.tmp11595'.

Doing so often leads to problems that are hard to diagnose.

If you're victim of such problems, please consider unsetting the ftp
config variable with

    o conf ftp ""
    o conf commit

Please check, if the URLs I found in your configuration file
(file:///home/earlyjp/honeyclient/cpan) are valid. The urllist can be
edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch modules/02packages.details.txt.gz
Trying to get away with old file:
1967629  624 -rw-r--r--  1 0        0          633041 Mar 26 09:12 /home/earlyjp/honeyclient/cpan/sources/modules/02packages.details.txt.gz
Going to read /home/earlyjp/honeyclient/cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Wed, 26 Mar 2008 06:30:55 GMT
............................................................................DONE
Could not find '/home/earlyjp/honeyclient/cpan/modules/03modlist.data.gz'
Fetching with LWP:
  file:///home/earlyjp/honeyclient/cpan/modules/03modlist.data.gz
LWP failed with code[404] message[File `/home/earlyjp/honeyclient/cpan/modules/03modlist.data.gz' does not exist]
Could not find '/home/earlyjp/honeyclient/cpan/modules/03modlist.data.gz'
Fetching with LWP:
  file:///home/earlyjp/honeyclient/cpan/modules/03modlist.data.gz
LWP failed with code[404] message[File `/home/earlyjp/honeyclient/cpan/modules/03modlist.data.gz' does not exist]

As a last ressort we now switch to the external ftp command '/usr/bin/ftp'
to get '/home/earlyjp/honeyclient/cpan/sources/modules/03modlist.data.gz.tmp11595'.

Doing so often leads to problems that are hard to diagnose.

If you're victim of such problems, please consider unsetting the ftp
config variable with

    o conf ftp ""
    o conf commit

Please check, if the URLs I found in your configuration file
(file:///home/earlyjp/honeyclient/cpan) are valid. The urllist can be
edited. E.g. with 'o conf urllist push ftp://myurl/'

Could not fetch modules/03modlist.data.gz
Trying to get away with old file:
1967492  148 -rw-r--r--  1 0        0          145683 Mar 26 09:12 /home/earlyjp/honeyclient/cpan/sources/modules/03modlist.data.gz
Going to read /home/earlyjp/honeyclient/cpan/sources/modules/03modlist.data.gz
............................................................................DONE
Going to write /home/earlyjp/honeyclient/cpan/Metadata
Warning: Cannot install Bundle::HoneyClient::Util, don't know what it is.
Try the command

    i /Bundle::HoneyClient::Util/

to find objects with matching identifiers.

cpan> 

I've tried this using 'yes' and 'no' for "connect to the internet" question, as well as trying to remove FTPstats.yml, and I always get the same error. Lastly, I tried to unset the ftp option as indicated above, but again get the same error.

My CPAN version is 1.9205. After installing Bundle::CPAN, the manual configuration options are very different from those in the HoneyClient instructions. Is there some other CPAN option I should change?

Thanks for your help.

03/26/08 12:13:20 changed by xkovah

Did you install the code via the package on the download page or via svn? If via svn, please check that when you do svn info in the honeyclient directory that you get

URL: svn://svn.honeyclient.org/honeyclient/tags/rel/1.0.2
Repository Root: svn://svn.honeyclient.org
Repository UUID: 143ac459-0e48-db11-92d1-000d614347cd
Revision: 1388

If this is not the case, you have the wrong code checked out.

If this is not the case, do an svn revert —recursive * just to be sure that nothing has changed in your local copy. (You can also do svn status which should return no output if nothing has changed.)

Otherwise you must confirm that our list of available modules is in place and correct. The fact that you are getting errors like "File `/home/earlyjp/honeyclient/cpan/modules/02packages.details.txt.gz' does not exist" means something is wrong with your filesystem structure, which will most likely be debugged by the above, but try this anyway:

cd ~/honeyclient/cpan/sources/modules/ gunzip 02packages.details.txt.gz open 02packages.details.txt and confirm there is an entries like

Bundle::HoneyClient::Agent 1.01 M/MI/MITREHC/Bundle-HoneyClient-Agent-1.0.1.tar.gz Bundle::HoneyClient::Manager 1.01 M/MI/MITREHC/Bundle-HoneyClient-Manager-1.0.1.tar.gz Bundle::HoneyClient::Util 1.01 M/MI/MITREHC/Bundle-HoneyClient-Util-1.0.1.tar.gz

If they are there gzip 02packages.details.txt to make the file correct again.

If the file exists and has the correct entries, and you deleted the Metadata again, and it still says it can't find it, then let me know.

As for the instructions for configuring being different after you install Bundle::CPAN, that is because it installs the Build module, which unfortunately changes the way cpan behaves. At a more fundamental level, the fact that you installed Bundle::CPAN from the internet rather than our local repository means that I can't guarantee that there will be no further issues even if you debug the missing file issue.

Still, let me know the results of the above checks.

Xeno

03/26/08 12:15:40 changed by xkovah

I forgot to account for formatting…the commands should be separated like

cd ~/honeyclient/cpan/sources/modules/

gunzip 02packages.details.txt.gz

then open 02packages.details.txt and confirm there is an entries like

03/26/08 15:03:20 changed by anonymous

  • status changed from assigned to closed.
  • resolution set to fixed.

Thanks, Xeno. I checked the packages file as indicated above and found the HoneyClient modules listed without the Bundle prefix. My guess is that the internet installation of the CPAN bundle overwrote 02packages.details.txt.gz with a newer version. So, I started with a brand new extraction of the downloaded package, set up the CPAN urllist, then installed both the Bundle::HoneyClient::Util and Bundle::HoneyClient::Manager packages with no difficulty.

I think my confusion stemed from the CPAN configuration example found at: http://www.honeyclient.org/trac/wiki/UserGuide/CPANExampleConfigurationHostSystem You will notice that in it the first ftp mirror is selected in addtion to the file entry. I did a similar thing that enabled the internet Bundle::CPAN install to work, but failed for the Bundle::HoneyClient::* installs.

Thanks again for your help!

P.S. Is it possible to remove/alter my e-mail address in the initial submission to thwart its harvesting? Thanks.

03/26/08 15:21:02 changed by xkovah

Ah ha…Thanks for the tip on the CPANExampleConfigurationHostSystem page. A mistake appears to have been made in editing, and thus you see a version which has the ftp site first, whereas in a previous version if you would have selected "1" at the given cpan prompt you would see that you were selecting no URL (note that on that page the (1) is actually missing though that's what's supposed to be selected…though again, that assumed a clean install). I can see how that would be confusing, so we will fix that.

As for the email address, Darien should be able to fix that for you.

Xeno

03/26/08 19:20:16 changed by kindlund

Okay, I'm glad this issue has been resolved. Xeno, I've updated the UserGuide/CPANExampleConfigurationHostSystem and UserGuide/CPANExampleConfigurationMasterVM pages to reflect the issues discussed here. Basically, selecting "1" from the URL list inside CPAN should give you a completely empty urllist to start from; for what ever reason, our example did not clearly state that (I probably forgot to include it when migrating the documentation over for the v1.0 release).

Reporter, I'll make sure your email address is wiped from the ticket; keep in mind that in doing so, you'll no longer get any email updates for this ticket.

Regards,

— Darien

03/26/08 19:22:26 changed by kindlund

  • reporter changed from earlyjp@gmail.com to anonymous.

Add/Change #153 (Failure of CPAN install Bundle::HoneyClient::Util)




Change Properties
Action