berggren / foorep

Forensics/Malware repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cherrypy starts and then goes down...

kyelsmith2 opened this issue · comments

SIFT workstation, almost vanilla.

sudo foorepd

[19/Dec/2012:10:12:38] ENGINE Bus STARTING
CherryPy Checker:
The config entry 'tools.login_required.on' may be invalid, because the 'login_required' tool was not found.
section: [/]

[19/Dec/2012:10:12:38] ENGINE Started monitor thread '_TimeoutMonitor'.
[19/Dec/2012:10:12:38] ENGINE Started monitor thread 'Autoreloader'.
[19/Dec/2012:10:12:38] ENGINE Serving on 127.0.0.1:4780
[19/Dec/2012:10:12:38] ENGINE Bus STARTED
/usr/local/lib/python2.6/dist-packages/cherrypy/process/wspbus.py:225: RuntimeWarning: The main thread is exiting, but the Bus is in the states.STARTED state; shutting it down automatically now. You must either call bus.block() after start(), or call bus.exit() before the main thread exits.
"main thread exits." % self.state, RuntimeWarning)
[19/Dec/2012:10:12:38] ENGINE Bus STOPPING
[19/Dec/2012:10:12:38] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 4780)) shut down
[19/Dec/2012:10:12:38] ENGINE Stopped thread '_TimeoutMonitor'.
[19/Dec/2012:10:12:38] ENGINE Stopped thread 'Autoreloader'.
[19/Dec/2012:10:12:38] ENGINE Bus STOPPED
[19/Dec/2012:10:12:38] ENGINE Bus EXITING
[19/Dec/2012:10:12:38] ENGINE Bus EXITED

Also, might want to add apt-get install python-pyexiv2 to the install instructions.

Hi!

Thanks for the report, I will look into this today and see what is the cause of this.
You are right about python-pyexiv2, and I have actually fixed this in master. If pyexiv2 isn't installed, the exif plugin will not run.

Ok, I have done some fixes, and identified some problems with ubuntu v < 12.04. The version of mongodb is to old and doesnt have support for all the features we are using. The version of pyexiv2 and python-magic is broken in at least 10.04.

I am downloading SIFT workstation now and will try it out on that.

Here are a workaround. I will document this proper asap.

  1. Install new version of mongodb:
  1. Install new version of pyexiv2
  1. Install proper python-magic
    pip install python-magic

And don't forget to update foorep.I have pushed 0.1.2 to pypi.

Ok, I have found the bug. I installed SIFT workstation. The problem is that Cherrypy and python 2.6 needs the process to call block(). I have fixed this now, please upgrade foorep to 0.1.3-1.

You also need to install a newer version of mongodb.

  1. apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
  2. echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list
  3. apt-get update
  4. apt-get install mongodb-10gen
  5. apt-get remove python-magic
  6. pip install foorep --upgrade

Closing this ticket now.