Thanks! David. So I'll continue testing on CentOs then.. Lets see what Massimo has to say for the issue /error reported earlier.
Thanks, Rahul D On Wednesday, April 18, 2012 2:29:08 PM UTC+5:30, David Marko wrote: > > * fcntl* is related to UNIX. As I know gunicorn is not intended to work > on Windows because of internal design. > > David > > Dne středa, 18. dubna 2012 10:34:53 UTC+2 Rahul napsal(a): >> >> Also tried this on Win7 with web2py from trunk, it gives me below issue >> - Simply trying to start web2py using anyserver and gunicorn on default >> port (no command line options called). So we have 2 issues one reported >> earlier on centos and other on win7(this issue). Let me know if i am >> missing some thing. >> >> *web2py>anyserver -s gunicorn* >> starting *gunicorn *on 127.0.0.1:8000... >> Traceback (most recent call last): >> File "C:\web2py\anyserver.py", line 306, in <module> >> main() >> File "C:\web2py\anyserver.py", line 303, in main >> >> run(options.server,options.ip,options.port,logging=options.logging,profiler= >> options.profiler) >> File "C:\web2py\anyserver.py", line 165, in run >> getattr(Servers,servername)(application,(ip,int(port))) >> File "C:\web2py\anyserver.py", line 128, in gunicorn >> from gunicorn.app.base import Application >> File "C:\web2py\gluon\custom_import.py", line 293, in _ >> _call__ >> fromlist, level) >> File "C:\web2py\gluon\custom_import.py", line 78, in __ >> call__ >> level) >> File >> "C:\Python27\lib\site-packages\gunicorn-0.14.2-py2.7.egg\gunicorn\app\bas >> e.py", line 12, in <module> >> from gunicorn.glogging import Logger >> File "C:\web2py\gluon\custom_import.py", line 293, in _ >> _call__ >> fromlist, level) >> File "C:\web2py\gluon\custom_import.py", line 78, in __ >> call__ >> level) >> File >> "C:\Python27\lib\site-packages\gunicorn-0.14.2-py2.7.egg\gunicorn\gloggin >> g.py", line 19, in <module> >> from gunicorn import util >> File "C:\web2py\gluon\custom_import.py", line 293, in _ >> _call__ >> fromlist, level) >> File "C:\web2py\gluon\custom_import.py", line 78, in __ >> call__ >> level) >> File >> "C:\Python27\lib\site-packages\gunicorn-0.14.2-py2.7.egg\gunicorn\util.py >> ", line 17, in <module> >> import fcntl >> File "C:\web2py\gluon\custom_import.py", line 293, in _ >> _call__ >> fromlist, level) >> File "C:\web2py\gluon\custom_import.py", line 78, in __ >> call__ >> level) >> *ImportError: No module named fcntl* >> >> >> *Sincerely, Rahul D.* >> >> On Wednesday, April 18, 2012 1:44:48 PM UTC+5:30, Rahul wrote: >>> >>> I tried with the latest code in trunk - There seems to be some issue. It >>> ignores -s or --server= parameters. it always starts rocket server. Please >>> see the logs below. >>> >>> *-bash-3.2$ python anyserver.py -s gunicorn* >>> starting gunicorn on 127.0.0.1:8000... >>> Usage: anyserver.py [options] >>> >>> anyserver.py: error: no such option: -s >>> >>> *-bash-3.2$ python anyserver.py --server=gunicorn* >>> starting gunicorn on 127.0.0.1:8000... >>> Usage: anyserver.py [options] >>> >>> anyserver.py: error: no such option: --server >>> >>> >>> *-bash-3.2$ python anyserver.py -s gunicorn -i 72.3.247.225 -p 9065* >>> starting gunicorn on 72.3.247.225:9065... >>> Usage: anyserver.py [options] >>> >>> >>> anyserver.py: error: no such option: -s >>> >>> *========It only starts rocket server*=====* This works for me but >>> only on rocket* >>> -bash-3.2$ *python anyserver.py gunicorn -i 72.3.247.225 -p 9065* >>> starting *rocket on 72.3.247.225:9065*... >>> >>> *-bash-3.2$ python anyserver.py --server="gunicorn" -i 72.3.247.225 -p >>> 9065* >>> starting gunicorn on 72.3.247.225:9065... >>> Usage: anyserver.py [options] >>> >>> *anyserver.py: error: no such option: --server* >>> >>> *-bash-3.2$ python anyserver.py -s "gunicorn" -i 72.3.247.225 -p 9065* >>> starting gunicorn on 72.3.247.225:9065... >>> Usage: anyserver.py [options] >>> >>> anyserver.py: error: no such option: -s >>> >>> ===Starts rocket ======= >>> *-bash-3.2$ python anyserver.py "gunicorn" -i 72.3.247.225 -p 9065* >>> *starting rocket on 72.3.247.225:9065...* >>> >>> Please suggest - >>> >>> Thanks, >>> >>> Sincerely, Rahul D. [www.flockbird.com] >>> ========================================================================= >>> On Tuesday, April 17, 2012 8:54:58 PM UTC+5:30, Massimo Di Pierro wrote: >>>> >>>> Can you try the anyserver in trunk? Looks like they changed some API. >>>> >>>> On Tuesday, 17 April 2012 05:43:51 UTC-5, Rahul wrote: >>>>> >>>>> Hi Massimo, >>>>> I did the typo in the "anyserver.py" file but now I am >>>>> getting this issue. >>>>> >>>>> -bash-3.2$ *python anyserver.py -s gunicorn* >>>>> starting gunicorn on 127.0.0.1:8000... >>>>> Traceback (most recent call last): >>>>> File "anyserver.py", line 299, in <module> >>>>> main() >>>>> File "anyserver.py", line 295, in main >>>>> >>>>> run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) >>>>> File "anyserver.py", line 157, in run >>>>> getattr(Servers,servername)(application,(ip,int(port))) >>>>> File "anyserver.py", line 129, in gunicorn >>>>> gunicorn.arbiter.Arbiter(address, 4, app).run() >>>>> TypeError: __init__() takes exactly 2 arguments (4 given) >>>>> =================== >>>>> Same case for custom ip and port >>>>> =================== >>>>> -bash-3.2$ *python anyserver.py -s gunicorn -i 72.3.247.225 -p 9065* >>>>> starting gunicorn on 72.3.247.225:9065... >>>>> Traceback (most recent call last): >>>>> File "anyserver.py", line 299, in <module> >>>>> main() >>>>> File "anyserver.py", line 295, in main >>>>> >>>>> run(options.server,options.ip,options.port,logging=options.logging,profiler=options.profiler) >>>>> File "anyserver.py", line 157, in run >>>>> getattr(Servers,servername)(application,(ip,int(port))) >>>>> File "anyserver.py", line 129, in gunicorn >>>>> gunicorn.arbiter.Arbiter(address, 4, app).run() >>>>> TypeError: __init__() takes exactly 2 arguments (4 given) >>>>> >>>>> Please suggest what could be wrong. I am new to gunicorn and >>>>> anyserver. Also direct me to some quality documentation for anyserver.py >>>>> >>>>> >>>>> Thanks, >>>>> Sincerely, Rahul D. >>>>> >>>>> >>>>> On Friday, July 22, 2011 8:36:11 PM UTC+5:30, Massimo Di Pierro wrote: >>>>>> >>>>>> Hello everybody, >>>>>> >>>>>> heroku will be supporting web2py. They run gunicorn. web2py runs with >>>>>> gunicorn but I have never tried it. >>>>>> >>>>>> Any volunteer to run some stress tests? >>>>>> >>>>>> cd web2py >>>>>> python anyserver -s gunicorn >>>>>> >>>>>> Massimo >>>>> >>>>>