Ticket #68 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

Startup running per /usr/bin/StartManager.pl to test with URL List fails

Reported by: santacruz_rsc@hotmail.com Assigned to: kindlund
Priority: highest Milestone: 0.9
Component: HoneyClient::Manager Version: 0.99
Severity: blocker Keywords: manager, db, connectivity, disable, patch
Cc: santacruz_rsc@hotmail.com

Description (Last modified by kindlund)

Good morning,

I am at the point of testing the honeyclient by starting up the Manager with a list of URL's.

I get the following error below when I attempt to run the manager. It appears as though it creates a new VMWARE image then soon after I get the following error output to the screen.

perl /usr/bin/StartManager.pl --url_list urllist.txt
2007-08-03 11:03:49  WARN [HoneyClient::DB::db_exists] (/usr/lib/perl5/site_perl/5.8.5/HoneyClient/DB.pm:1102) - Unable to connect to database: HoneyClient     DBI connect('database=HoneyClient;host=172.16.164.1;port=3306','honeyclient_user',...) failed: Can't connect to MySQL server on '172.16.164.1' (110) at /usr/lib/perl5/site_perl/5.8.5/HoneyClient/DB.pm line 887
Died at /usr/lib/perl5/site_perl/5.8.5/HoneyClient/DB.pm line 391.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/HoneyClient/DB/Fingerprint.pm line 1.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/HoneyClient/DB/Fingerprint.pm line 1.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.5/HoneyClient/Manager.pm line 172.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.5/HoneyClient/Manager.pm line 172.
Compilation failed in require at /usr/bin/StartManager.pl line 20.
BEGIN failed--compilation aborted at /usr/bin/StartManager.pl line 20.

Wondering if you guys have seen this issue before or if you might have some pointers. cheers!

Attachments

68.patch (319 bytes) - added by kindlund on 08/03/07 17:07:22.
Patch for Manager (switch DB use to DB require).

Change History

(follow-up: ↓ 2 ) 08/03/07 11:48:13 changed by mbriggs

  • owner changed from knwang to mbriggs.
  • component changed from Unknown to HoneyClient::Manager.
  • severity changed from none to minor.

The problem is that the database capability is enabled, and you have not defined a proper mysql database to connect to. There are two fixes:

  1. If you plan to use the database (which is still under development):
    1. Ensure you have mysql installed and the daemon is running.
    2. Edit the HoneyClient::DB section in /etc/honeyclient.xml. Set the following Values:
      • host (database host adress)
      • user (database user name)
      • pass (password for this user)
      • dbname (database name)
    3. Run /bin/install_honeyclient_db.pl. (You will be prompted a few times).
  2. If you don't wish to use the database at this time, disable it:
    1. In the HoneyClient::DB section of /etc/honeyclient.xml set enable to 0.

(in reply to: ↑ 1 ) 08/03/07 12:17:23 changed by anonymous

Replying to mbriggs:

The problem is that the database capability is enabled, and you have not defined a proper mysql database to connect to. There are two fixes: 1. If you plan to use the database (which is still under development): a. Ensure you have mysql installed and the daemon is running. a. Edit the HoneyClient::DB section in /etc/honeyclient.xml. Set the following Values: * host (database host adress) * user (database user name) * pass (password for this user) * dbname (database name) a. Run /bin/install_honeyclient_db.pl. (You will be prompted a few times). 1. If you don't wish to use the database at this time, disable it: a. In the HoneyClient::DB section of /etc/honeyclient.xml set enable to 0.

thanks for the quick reply, it appears as though it is already set to 0 below is the snippet of vi /etc/honeyclient.xml

</Integrity>

</Agent> <!— HoneyClient::DB Options —> <DB>

<enable description="Enables database operations. 1 enables, 0 disables." default="0">

0

</enable> <host description="The system providing the HoneyClient database. If the database is installed on the same host system as the Manager, then localhost should be used." default="127.0.0.1">

172.16.164.1

</host> <dbname description="The name of the HoneyClient database." default="HoneyClient">

HoneyClient

</dbname> <user description="The username to use, when connecting to the HoneyClient database.">

honeyclient_user

</user> <pass description="The password to use, when connecting to the HoneyClient database.">

honeyclient_password

thanks again

08/03/07 16:48:22 changed by kindlund

  • status changed from new to assigned.
  • description changed.
  • priority changed from normal to highest.
  • owner changed from mbriggs to kindlund.
  • milestone set to 1.0.
  • keywords set to manager, db, connectivity, disable, patch.
  • severity changed from minor to blocker.

Hello,

Yes, I think I understand the issue that you're running into. Basically, even though you have the DB portion disabled, the Manager code still tries to connect to an existing database.

This is definitely a bug in our 0.9.8 code, and I'll be working on a patch shortly. Once it's ready, would you be willing to test the patch and let us know if it works?

Thanks,

— Darien

08/03/07 17:07:22 changed by kindlund

  • attachment 68.patch added.

Patch for Manager (switch DB use to DB require).

08/03/07 17:11:09 changed by kindlund

Hi again,

Okay, I think I have fixed this issue, but would appreciate it if you could download and test out the following patch file:

http://www.honeyclient.org/trac/attachment/ticket/68/68.patch?format=raw

1. Save the file as "68.patch".

2. Then, copy this file into your perl library directory, where Manager.pm sits.

3. Then, apply the patch using the following command:

patch -p2 < 68.patch

That should fix the Manager.pm file, and no longer give you these errors.

Please let me know if this works. In the meantime, I'll be re-rolling new packages (v0.9.9) for the fix.

Regards,

— Darien

(follow-up: ↓ 6 ) 08/07/07 13:17:06 changed by kindlund

  • cc set to santacruz_rsc@hotmail.com.
  • status changed from assigned to closed.
  • resolution set to fixed.

Hello,

I've regression tested the patch and have incorporated it into v0.9.9 of the code. In order to upgrade, simply download the latest version of the HoneyClient-Manager package from:

http://honeyclient.mitre.org/HoneyClient-Manager.tar.gz

And install it. This should resolve the issue you mentioned.

Since I haven't heard back from you regarding the patch, I'll assume this issue has been resolved.

However, if it does not resolve this issue for you and you still run into the same issue, please re-open this ticket accordingly. If you run into a new issues, please submit new tickets — one per issue.

Thanks,

— Darien

(in reply to: ↑ 5 ) 08/08/07 19:42:37 changed by anonymous

Replying to kindlund:

Hello, I've regression tested the patch and have incorporated it into v0.9.9 of the code. In order to upgrade, simply download the latest version of the HoneyClient-Manager package from: http://honeyclient.mitre.org/HoneyClient-Manager.tar.gz And install it. This should resolve the issue you mentioned. Since I haven't heard back from you regarding the patch, I'll assume this issue has been resolved. However, if it does not resolve this issue for you and you still run into the same issue, please re-open this ticket accordingly. If you run into a new issues, please submit new tickets — one per issue. Thanks, — Darien

Sorry for the late reply Darien. I was successfully able to apply the patch and now everything is working.

thanks for the help.

08/29/07 14:05:46 changed by kindlund

  • version changed from none to 0.99.
  • milestone changed from 1.0 to 0.9.

Add/Change #68 (Startup running per /usr/bin/StartManager.pl to test with URL List fails)




Change Properties
Action