apt-portal/python threading problem

Joao Pinto joao.pinto at getdeb.net
Wed Aug 26 12:26:00 CEST 2009


.

On Wed, Aug 26, 2009 at 2:40 AM, David Reyes Samblas
Martinez<david at tuxbrain.com> wrote:
> hi marcus  in what machine/distro had you have success on make run apt-portal?
> I'm triying diferent machines distros without succes :(
> Ubuntu 8.10/intel quadcore
> Ubuntu 9.04/     "
> debian lenny/qemux86 on the quadcore compiled/install py2.6 from sources
> eeeBuntu 8.10/intel atom compiled/install py2.6 from sources
>
> and allways the same error
> mutrox at dardo:~$ cd apt-portal; python2.6 ./apt-portal.py playdeb
> /var/lib/python-support/python2.5/sqlalchemy/util.py:7:
> DeprecationWarning: the sets module is deprecated
>  import inspect, itertools, new, operator, sets, sys, warnings, weakref
> Traceback (most recent call last):
>  File "./apt-portal.py", line 274, in <module>
> Exception in thread HTTPServer Thread-2:
> Traceback (most recent call last):
>  File "/usr/local/lib/python2.6/threading.py", line 525, in __bootstrap_inner
>    self.run()
>  File "/usr/local/lib/python2.6/threading.py", line 477, in run
>    self.__target(*self.__args, **self.__kwargs)
>  File "/var/lib/python-support/python2.5/cherrypy/process/servers.py",
> line 73, in _start_http_thread
>    self.httpserver.start()
>  File "/var/lib/python-support/python2.5/cherrypy/wsgiserver/__init__.py",
> line 1603, in start
>    self.requests.start()
>  File "/var/lib/python-support/python2.5/cherrypy/wsgiserver/__init__.py",
> line 1300, in start
>    worker.start()
>  File "/usr/local/lib/python2.6/threading.py", line 471, in start
>    _start_new_thread(self.__bootstrap, ())
> error: can't start new thread
>
>    cherrypy.quickstart(cherrypy.root, '/', config=conf)
>  File "/var/lib/python-support/python2.5/cherrypy/__init__.py", line
> 248, in quickstart
>    engine.start()
>  File "/var/lib/python-support/python2.5/cherrypy/process/wspbus.py",
> line 184, in start
>    self.publish('start')
>  File "/var/lib/python-support/python2.5/cherrypy/process/wspbus.py",
> line 147, in publish
>    output.append(listener(*args, **kwargs))
>  File "/var/lib/python-support/python2.5/cherrypy/_cpserver.py", line
> 90, in start
>    ServerAdapter.start(self)
>  File "/var/lib/python-support/python2.5/cherrypy/process/servers.py",
> line 60, in start
>    self.wait()
>  File "/var/lib/python-support/python2.5/cherrypy/process/servers.py",
> line 95, in wait
>    raise self.interrupt
> thread.error: can't start new thread
>
> and thn I have to kill the process to exit
> --
> David Reyes Samblas Martinez
> http://www.tuxbrain.com
> Open ultraportable & embedded solutions
> Openmoko, Openpandora,  Arduino
> Hey, watch out!!! There's a linux in your pocket!!!
>
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>


David,
please edit  apt-portal.py, change the 'server.thread_pool': 1000, to
'server.thread_pool': 10 .

I have set a very large thread pool, 10 is cherrypy's default

-- 
João Luís Marques Pinto
GetDeb Team Leader
http://www.getdeb.net
http://blog.getdeb.net



More information about the community mailing list