Ticket #106 (closed issue: invalid)

Opened 1 year ago

Last modified 11 months ago

Errors while running the Honeyclient - Can't locate is_running.al

Reported by: mbridges Assigned to: kindlund
Priority: low Milestone: 0.9
Component: HoneyClient::Agent Version: 0.99
Severity: none Keywords: WARN, threads, INC, is_running
Cc:

Description

When trying to run the Honeyclient it will not chack any site and there are a few errors. I made sure threads were installed on the host and the master vm.

[neo@localhost FIRM]$ perl /usr/bin/StartManager.pl --url_list urls.txt
Starting new session...
VM Daemon Listening On: http://localhost:8089/HoneyClient/Manager/VM
Calling setMasterVM()...
Result: 1
Calling quickCloneVM()...
Result: /vm/clones/44701182243118f926ccb0a415/master.vmx
Calling isRegisteredVM()...
Calling isRegisteredVM()...
Result: /vm/clones/44701182243118f926ccb0a415/master.vmx
Calling getStateVM()...
OFF
Calling getStateVM()...
ON
Calling getMACaddrVM()...
Result: 00:0c:29:37:e3:1a
Calling getIPaddrVM()...
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getIPaddrVM()...
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
2007-09-26 00:35:14  INFO [HoneyClient::Manager::runSession] (/usr/lib/perl5/site_perl/5.8.8/HoneyClient/Manager.pm:609) - Created clone VM (44701182243118f926ccb0a415) using IP (10.0.0.128) and MAC (00:0c:29:37:e3:1a).
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Calling getIPaddrVM()...
Result: 10.0.0.128
Calling getNameVM()...
Result: 44701182243118f926ccb0a415
Calling getStatus()...
Result:
$VAR1 = {
          'HoneyClient::Agent::Driver::Browser::FF' => {
                                                       'thread_id' => undef,
                                                       'next' => undef,
                                                       'status' => undef,
                                                       'state' => undef
                                                     },
          'HoneyClient::Agent::Driver::Browser::IE' => {
                                                       'thread_id' => undef,
                                                       'next' => undef,
                                                       'status' => undef,
                                                       'state' => undef
                                                     }
        };
VM State Table:
$VAR1 = {
          '44701182243118f926ccb0a415' => {
                                          'sources' => {
                                                         '00:0c:29:37:e3:1a' => {
                                                                                '10.0.0.128' => {
                                                                                                'tcp' => undef
                                                                                              }
                                                                              }
                                                       }
                                        }
        };

Cannot encode unnamed element as 'hash'. Will be encoded as 'map' instead
Cannot encode 'sources' element as 'hash'. Will be encoded as 'map' instead
Cannot encode 'value' element as 'hash'. Will be encoded as 'map' instead
Calling updateState()...
Calling getState()...
Calling getStatus()...
Result:
$VAR1 = {
          'links_remaining' => 3,
          'is_running' => 0,
          'links_processed' => 0,
          'percent_complete' => '0.00%',
          'is_compromised' => 0,
          'relative_links_remaining' => 1,
          'links_total' => 3
        };
VM Integrity Check: OK!
Cannot encode unnamed element as 'hash'. Will be encoded as 'map' instead
Cannot encode 'sources' element as 'hash'. Will be encoded as 'map' instead
Cannot encode 'value' element as 'hash'. Will be encoded as 'map' instead
VM State Table:
$VAR1 = {
          '44701182243118f926ccb0a415' => {
                                          'targets' => {
                                                         'www.google.com' => {
                                                                               'tcp' => [
                                                                                          80
                                                                                        ]
                                                                             }
                                                       },
                                          'sources' => {
                                                         '00:0c:29:37:e3:1a' => {
                                                                                '10.0.0.128' => {
                                                                                                'tcp' => undef
                                                                                              }
                                                                              }
                                                       }
                                        }
        };

Cannot encode unnamed element as 'hash'. Will be encoded as 'map' instead
Cannot encode 'sources' element as 'hash'. Will be encoded as 'map' instead
Cannot encode 'value' element as 'hash'. Will be encoded as 'map' instead
Calling run()...
2007-09-26 00:36:56  WARN [HoneyClient::Manager::_handleFault] (/usr/lib/perl5/site_perl/5.8.8/HoneyClient/Manager.pm:342) - Error occurred during processing. soap:Server: Can't locate auto/threads/is_running.al in @INC (@INC contains: /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 . lib) at /usr/lib/perl5/5.8/AutoLoader.pm line 112
        AutoLoader::AUTOLOAD('threads=SCALAR(0x121fa63c)') called at /usr/lib/perl5/site_perl/5.8/HoneyClient/Agent.pm line 788
        HoneyClient::Agent::run('HoneyClient::Agent', 'driver_name', 'HoneyClient::Agent::Driver::Browser::IE') called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2569
        eval {...} called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2557
        eval {...} called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2526
        SOAP::Server::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)', '<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xs...') called at /usr/lib/perl5/site_perl/5.8/SOAP/Transport/HTTP.pm line 327
        SOAP::Transport::HTTP::Server::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)') called at /usr/lib/perl5/site_perl/5.8/SOAP/Transport/HTTP.pm line 497
        SOAP::Transport::HTTP::Daemon::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)') called at /usr/lib/perl5/site_perl/5.8/HoneyClient/Agent.pm line 441
        HoneyClient::Agent::init('HoneyClient::Agent') called at /usr/bin/StartAgent.pl line 21

HoneyClient::Manager->_handleFault(): Error occurred during processing.
soap:Server: Can't locate auto/threads/is_running.al in @INC (@INC contains: /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 . lib) at /usr/lib/perl5/5.8/AutoLoader.pm line 112
        AutoLoader::AUTOLOAD('threads=SCALAR(0x121fa63c)') called at /usr/lib/perl5/site_perl/5.8/HoneyClient/Agent.pm line 788
        HoneyClient::Agent::run('HoneyClient::Agent', 'driver_name', 'HoneyClient::Agent::Driver::Browser::IE') called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2569
        eval {...} called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2557
        eval {...} called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2526
        SOAP::Server::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)', '<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xs...') called at /usr/lib/perl5/site_perl/5.8/SOAP/Transport/HTTP.pm line 327
        SOAP::Transport::HTTP::Server::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)') called at /usr/lib/perl5/site_perl/5.8/SOAP/Transport/HTTP.pm line 497
        SOAP::Transport::HTTP::Daemon::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)') called at /usr/lib/perl5/site_perl/5.8/HoneyClient/Agent.pm line 441
        HoneyClient::Agent::init('HoneyClient::Agent') called at /usr/bin/StartAgent.pl line 21

 at /usr/lib/perl5/site_perl/5.8.8/SOAP/Lite.pm line 3412
Sleeping for 10s...
2007-09-26 00:36:59  WARN [HoneyClient::Manager::VM::suspendVM] (/usr/lib/perl5/site_perl/5.8.8/HoneyClient/Manager/VM.pm:2042) - Could not suspend VM (/vm/clones/1c132a8c40123b7864b19153cd/master.vmx). (-8: Invalid operation for virtual machine's current state: The requested operation ("suspend") could not be completed because it conflicted with the state of the virtual machine ("off") at the time the request was received.  This error often occurs because the state of the virtual machine changed before it received the request.)
Calling getState()...
2007-09-26 00:41:40  INFO [HoneyClient::Manager::_cleanup] (/usr/lib/perl5/site_perl/5.8.8/HoneyClient/Manager.pm:361) - Cleaning up.
Perl exited with active threads:
        0 running and unjoined
        1 finished and unjoined
        0 running and detached
2007-09-26 00:41:53  INFO [HoneyClient::Manager::_cleanup] (/usr/lib/perl5/site_perl/5.8.8/HoneyClient/Manager.pm:394) - Calling suspendVM(config => /vm/clones/44701182243118f926ccb0a415/master.vmx).
Done!
2007-09-26 00:42:03  INFO [HoneyClient::Manager::_cleanup] (/usr/lib/perl5/site_perl/5.8.8/HoneyClient/Manager.pm:404) - Saving state to 'Manager.dump'.

Attachments

Change History

09/26/07 01:47:50 changed by mbridges

check*

Thanks in advance.

09/26/07 11:58:27 changed by kindlund

  • status changed from new to assigned.
  • component changed from HoneyClient::Manager::VM to HoneyClient::Agent.
  • summary changed from Running the Honeyclient errors to Errors while running the Honeyclient - Can't locate is_running.al.
  • priority changed from normal to low.
  • milestone set to 0.9.
  • keywords changed from WARN, threads, INC to WARN, threads, INC, is_running.

Hello,

Okay, so this error message is the core problem you're having:

2007-09-26 00:36:56  WARN [HoneyClient::Manager::_handleFault] (/usr/lib/perl5/site_perl/5.8.8/HoneyClient/Manager.pm:342) - Error occurred during processing. soap:Server: Can't locate auto/threads/is_running.al in @INC (@INC contains: /usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8 /usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin /usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 . lib) at /usr/lib/perl5/5.8/AutoLoader.pm line 112
        AutoLoader::AUTOLOAD('threads=SCALAR(0x121fa63c)') called at /usr/lib/perl5/site_perl/5.8/HoneyClient/Agent.pm line 788
        HoneyClient::Agent::run('HoneyClient::Agent', 'driver_name', 'HoneyClient::Agent::Driver::Browser::IE') called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2569
        eval {...} called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2557
        eval {...} called at /usr/lib/perl5/site_perl/5.8/SOAP/Lite.pm line 2526
        SOAP::Server::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)', '<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xs...') called at /usr/lib/perl5/site_perl/5.8/SOAP/Transport/HTTP.pm line 327
        SOAP::Transport::HTTP::Server::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)') called at /usr/lib/perl5/site_perl/5.8/SOAP/Transport/HTTP.pm line 497
        SOAP::Transport::HTTP::Daemon::handle('SOAP::Transport::HTTP::Daemon=HASH(0x11eeed68)') called at /usr/lib/perl5/site_perl/5.8/HoneyClient/Agent.pm line 441
        HoneyClient::Agent::init('HoneyClient::Agent') called at /usr/bin/StartAgent.pl line 21

This means that the error is located inside your master VM. Specifically, it can't find the is_running() subroutine in the 'threads' library. Even though you had indicated that you had upgraded the 'threads' library inside your master VM, I suspect the perl code is still trying to use an older version of threads.

I'd recommend doing the following:

1. Load up the master VM.

2. Run the following in a shell:

which perl
which cpan

Both binaries should sit either in /usr/bin or /usr/local/bin. However, if perl sits in /usr/local/bin/perl and cpan sits in /usr/bin/cpan, then you have multiple versions of perl installed and you need to execute the cpan binary that's located in the same location (e.g., use /usr/bin/cpan for /usr/bin/perl or use /usr/local/bin/cpan for /usr/local/bin/cpan).

3. Pick the right cpan binary and reinstall your 'threads' and 'threads::shared' modules in your master VM, as per ticket #81: http://www.honeyclient.org/trac/ticket/81#comment:1

# cpan
> install threads
...

> install threads::shared
...

> install threads
threads is up to date (1.63).

> install threads::shared
threads::shared is up to date (1.12).

4. If you're confident that 'threads' and 'threads::shared' was properly upgraded, execute a 'perldoc threads' on the master VM and see if you can locate documentation regarding the 'is_running' function. That would indicate that this function has been properly implemented in the installed 'threads' module.

Regards,

— Darien

10/02/07 16:48:51 changed by kindlund

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

Since I haven't heard back from you, I assume this issue has been resolved. Feel free to reopen this ticket otherwise.


Add/Change #106 (Errors while running the Honeyclient - Can't locate is_running.al)




Change Properties
Action