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.
- Install new version of mongodb:
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
- Add this line to /etc/apt/sources.list
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen - apt-get remove mongodb
- apt-get update && apt-get install mongodb-10gen
- Install new version of pyexiv2
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 22CC47F8
- Add this line to /etc/apt/sources.list
deb http://ppa.launchpad.net/pyexiv2-developers/ppa/ubuntu lucid main
deb-src http://ppa.launchpad.net/pyexiv2-developers/ppa/ubuntu lucid main - apt-get update && apt-get install python-pyexiv2
- 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.
- apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
- echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list
- apt-get update
- apt-get install mongodb-10gen
- apt-get remove python-magic
- pip install foorep --upgrade
Closing this ticket now.