Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-29 Thread Jim S
Anyone else using Ansible for managing servers?  I am just getting started 
with it and wrote up a couple playbooks to install web2py on Ubuntu 20.04 
using Python 3 or Python 2. 

https://github.com/jpsteil/web2py_ansible_playbook

I started a github repo with what I have so far.  It is working for me with 
both Python 2 and Python 3 on Ubuntu 20.04.

Thanks to Clemens for the document you shared this weekend and thanks to 
Paolo for the set-web2py-nginx-uwsgi-ubuntu.sh script shared in the web2py 
scripts directory.

Please share any comments so we can improve.

-Jim

On Monday, April 27, 2020 at 5:36:32 AM UTC-5, VJ Sosa wrote:
>
> Dear Clemens,
>
> Thank you for this guide.  It looks great, I will try later today.
> Greetings from a small place in Castilla La Mancha, Spain.
>
> Have a nice week,
> Víctor
>
> On Sun, Apr 26, 2020 at 3:54 PM Clemens  > wrote:
>
>> Attached please find the PDF document.
>>
>> Best regards
>> Clemens
>>
>>
>> On Friday, April 24, 2020 at 8:19:10 PM UTC+2, VJ Sosa wrote:
>>>
>>> Thanks Clemens,
>>>
>>> I have a similar work to do right now :-)
>>> For sure , your pdf manual will be very helpful for me.  Please send it 
>>> when you can.
>>> Regards,
>>> Víctor
>>>
>>> On Fri, Apr 24, 2020 at 6:03 PM Clemens  
>>> wrote:
>>>
 Sure! But now I have to make fire for the kids and their stick breads 
 :-) I will clean up my notes on Sunday and send here.

 Have a nice weekend!


 On Friday, April 24, 2020 at 5:44:40 PM UTC+2, Jim S wrote:
>
> Clemens
>
> Can you share that PDF with all of us when you have it complete?
>
> -Jim
>
>
> On Friday, April 24, 2020 at 10:28:22 AM UTC-5, Clemens wrote:
>>
>> Victor,
>>
>> I've written my personal step-by-step deployment guide for web2py and 
>> Nginx which I'm using for my production system. If interested, I can 
>> send 
>> you as a PDF document.
>>
>> But what I couldn't realize is to use the web2py-Nginx-enviroment for 
>> debugging. As long only for production it's fine for me but not for 
>> development.
>>
>> Thus, I still hope there will be a solution for the 
>> rocket-socket-prob.
>>
>> Best regards
>> Clemens
>>
>>
>> On Friday, April 24, 2020 at 5:20:42 PM UTC+2, VJ Sosa wrote:
>>>
>>>   Thanks Jim,
>>>
>>> I will follow your advice on using Nginx. 
>>> However, it is not quite intuitive the way this configuration is 
>>> explained in the web2py book. Details are given for the  Apache2 
>>> configuration.
>>> It is assumed that the reader has enough knowledge on how to 
>>> configure a web server.
>>> Could your recommend an step-by-step tutorial (Web2py + nginx 
>>> configuration for dummies), especially where secure configuration is 
>>> activated (HTTPS).
>>>
>>> Best regards,
>>> Víctor.
>>>  
>>>
>>> On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:
>>>
 VJ

 I agree web2py + rocket is a good way to go about this.

 But, in the documentation I believe it is recommended to not use 
 Rocket for a production server.  If running on linux I believe nginx 
 is the 
 best place choice for a web server.  Yes, it is more complicated to 
 setup, 
 but in th end you're going to have a more reliable web stack.

 That being said, I have 3 production servers running my app.  One 
 uses nginx (Server A) and the other 2 (Servers B and C) use Rocket.  
 However, I front-end servers B and C with haproxy to load balance 
 between 
 the two running rocket.  I don't know what the issue is, but at least 
 every 
 few days I have to restart servers B and C because they lock up.  I 
 haven't 
 been able to find any messages when this happens so I haven't been 
 able to 
 trouble-shoot yet.  My plans are to rebuild these servers with nginx 
 instead of rocket.

 TLDR;

 Rocket is great for development work, but I'd recommend using nginx 
 in a production environment based on the recommendation in the book 
 and on 
 my own experience.

 -Jim

 On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:
>
> Hi Jim and Clemen,
>
> I really appreciate your support and time.
> I'm newbie in python programming, so my idea was to have an easy 
> implementation of my wepapp using web2py + Rocket (it was an excelent 
> option for me until this issue with Rocket arised). 
> So, I have decided to leave Rocket out of the equation and try to  
> move into the Apache or Nginx configuration, which implies to include 
>  a 
> little more stuff, 
> so I hope to be able of migrating my 

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-27 Thread VJ Sosa
Dear Clemens,

Thank you for this guide.  It looks great, I will try later today.
Greetings from a small place in Castilla La Mancha, Spain.

Have a nice week,
Víctor

On Sun, Apr 26, 2020 at 3:54 PM Clemens 
wrote:

> Attached please find the PDF document.
>
> Best regards
> Clemens
>
>
> On Friday, April 24, 2020 at 8:19:10 PM UTC+2, VJ Sosa wrote:
>>
>> Thanks Clemens,
>>
>> I have a similar work to do right now :-)
>> For sure , your pdf manual will be very helpful for me.  Please send it
>> when you can.
>> Regards,
>> Víctor
>>
>> On Fri, Apr 24, 2020 at 6:03 PM Clemens 
>> wrote:
>>
>>> Sure! But now I have to make fire for the kids and their stick breads
>>> :-) I will clean up my notes on Sunday and send here.
>>>
>>> Have a nice weekend!
>>>
>>>
>>> On Friday, April 24, 2020 at 5:44:40 PM UTC+2, Jim S wrote:

 Clemens

 Can you share that PDF with all of us when you have it complete?

 -Jim


 On Friday, April 24, 2020 at 10:28:22 AM UTC-5, Clemens wrote:
>
> Victor,
>
> I've written my personal step-by-step deployment guide for web2py and
> Nginx which I'm using for my production system. If interested, I can send
> you as a PDF document.
>
> But what I couldn't realize is to use the web2py-Nginx-enviroment for
> debugging. As long only for production it's fine for me but not for
> development.
>
> Thus, I still hope there will be a solution for the rocket-socket-prob.
>
> Best regards
> Clemens
>
>
> On Friday, April 24, 2020 at 5:20:42 PM UTC+2, VJ Sosa wrote:
>>
>>   Thanks Jim,
>>
>> I will follow your advice on using Nginx.
>> However, it is not quite intuitive the way this configuration is
>> explained in the web2py book. Details are given for the  Apache2
>> configuration.
>> It is assumed that the reader has enough knowledge on how to
>> configure a web server.
>> Could your recommend an step-by-step tutorial (Web2py + nginx
>> configuration for dummies), especially where secure configuration is
>> activated (HTTPS).
>>
>> Best regards,
>> Víctor.
>>
>>
>> On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:
>>
>>> VJ
>>>
>>> I agree web2py + rocket is a good way to go about this.
>>>
>>> But, in the documentation I believe it is recommended to not use
>>> Rocket for a production server.  If running on linux I believe nginx is 
>>> the
>>> best place choice for a web server.  Yes, it is more complicated to 
>>> setup,
>>> but in th end you're going to have a more reliable web stack.
>>>
>>> That being said, I have 3 production servers running my app.  One
>>> uses nginx (Server A) and the other 2 (Servers B and C) use Rocket.
>>> However, I front-end servers B and C with haproxy to load balance 
>>> between
>>> the two running rocket.  I don't know what the issue is, but at least 
>>> every
>>> few days I have to restart servers B and C because they lock up.  I 
>>> haven't
>>> been able to find any messages when this happens so I haven't been able 
>>> to
>>> trouble-shoot yet.  My plans are to rebuild these servers with nginx
>>> instead of rocket.
>>>
>>> TLDR;
>>>
>>> Rocket is great for development work, but I'd recommend using nginx
>>> in a production environment based on the recommendation in the book and 
>>> on
>>> my own experience.
>>>
>>> -Jim
>>>
>>> On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:

 Hi Jim and Clemen,

 I really appreciate your support and time.
 I'm newbie in python programming, so my idea was to have an easy
 implementation of my wepapp using web2py + Rocket (it was an excelent
 option for me until this issue with Rocket arised).
 So, I have decided to leave Rocket out of the equation and try to
 move into the Apache or Nginx configuration, which implies to include  
 a
 little more stuff,
 so I hope to be able of migrating my webapp soon.

 Just in case,  if you found any solution for this Rocket issue with
 Python 3 in web2py, it will be welcome. I'm  still convinced that 
 Web2py +
 Rocket is the best option for faster development of webapps in Python.

 Regards,
 Víctor.






 El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:
>
> Hello,
>
> it seems that there are some problems with rocket under Python
> 3.x. As posted a few weeks ago I have the following problem:
>
> *I've switched my web2py app from python2 to python3. The app
> itself works fine, but the web2py online debugger doesn't work 
> anymore and
> is mostly 

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-26 Thread Clemens
Jim,

have a try. In case you have any questions, please let me know. I can set 
up a cloud server as a kind of training environment, thus we can use for 
instructional purpose. To evaluate the cleaned-up description I've done 
this today - 10min for the server to run.

Enjoy your beautiful day in Wisconsin! I will do the same on this sunny day 
in Germany.

Clemens

On Sunday, April 26, 2020 at 4:30:36 PM UTC+2, Jim S wrote:
>
> Clemens
>
> Thank you for this.  I hope to get to reinstalling my servers this week 
> and will use this and the web2py document as a base.  FWIW, my goal will be 
> to build an Ansible playbook for my install.
>
> Thanks again and enjoy the rest of the weekend.  It's a beautiful day here 
> in Wisconsin!
>
> -Jim
>
>
> On Sun, Apr 26, 2020 at 8:54 AM Clemens  > wrote:
>
>> Attached please find the PDF document.
>>
>> Best regards
>> Clemens
>>
>>
>> On Friday, April 24, 2020 at 8:19:10 PM UTC+2, VJ Sosa wrote:
>>>
>>> Thanks Clemens,
>>>
>>> I have a similar work to do right now :-)
>>> For sure , your pdf manual will be very helpful for me.  Please send it 
>>> when you can.
>>> Regards,
>>> Víctor
>>>
>>> On Fri, Apr 24, 2020 at 6:03 PM Clemens  
>>> wrote:
>>>
 Sure! But now I have to make fire for the kids and their stick breads 
 :-) I will clean up my notes on Sunday and send here.

 Have a nice weekend!


 On Friday, April 24, 2020 at 5:44:40 PM UTC+2, Jim S wrote:
>
> Clemens
>
> Can you share that PDF with all of us when you have it complete?
>
> -Jim
>
>
> On Friday, April 24, 2020 at 10:28:22 AM UTC-5, Clemens wrote:
>>
>> Victor,
>>
>> I've written my personal step-by-step deployment guide for web2py and 
>> Nginx which I'm using for my production system. If interested, I can 
>> send 
>> you as a PDF document.
>>
>> But what I couldn't realize is to use the web2py-Nginx-enviroment for 
>> debugging. As long only for production it's fine for me but not for 
>> development.
>>
>> Thus, I still hope there will be a solution for the 
>> rocket-socket-prob.
>>
>> Best regards
>> Clemens
>>
>>
>> On Friday, April 24, 2020 at 5:20:42 PM UTC+2, VJ Sosa wrote:
>>>
>>>   Thanks Jim,
>>>
>>> I will follow your advice on using Nginx. 
>>> However, it is not quite intuitive the way this configuration is 
>>> explained in the web2py book. Details are given for the  Apache2 
>>> configuration.
>>> It is assumed that the reader has enough knowledge on how to 
>>> configure a web server.
>>> Could your recommend an step-by-step tutorial (Web2py + nginx 
>>> configuration for dummies), especially where secure configuration is 
>>> activated (HTTPS).
>>>
>>> Best regards,
>>> Víctor.
>>>  
>>>
>>> On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:
>>>
 VJ

 I agree web2py + rocket is a good way to go about this.

 But, in the documentation I believe it is recommended to not use 
 Rocket for a production server.  If running on linux I believe nginx 
 is the 
 best place choice for a web server.  Yes, it is more complicated to 
 setup, 
 but in th end you're going to have a more reliable web stack.

 That being said, I have 3 production servers running my app.  One 
 uses nginx (Server A) and the other 2 (Servers B and C) use Rocket.  
 However, I front-end servers B and C with haproxy to load balance 
 between 
 the two running rocket.  I don't know what the issue is, but at least 
 every 
 few days I have to restart servers B and C because they lock up.  I 
 haven't 
 been able to find any messages when this happens so I haven't been 
 able to 
 trouble-shoot yet.  My plans are to rebuild these servers with nginx 
 instead of rocket.

 TLDR;

 Rocket is great for development work, but I'd recommend using nginx 
 in a production environment based on the recommendation in the book 
 and on 
 my own experience.

 -Jim

 On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:
>
> Hi Jim and Clemen,
>
> I really appreciate your support and time.
> I'm newbie in python programming, so my idea was to have an easy 
> implementation of my wepapp using web2py + Rocket (it was an excelent 
> option for me until this issue with Rocket arised). 
> So, I have decided to leave Rocket out of the equation and try to  
> move into the Apache or Nginx configuration, which implies to include 
>  a 
> little more stuff, 
> so I hope to be able of migrating my webapp soon.
>
> Just in case,  if you found any 

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-26 Thread Jim Steil
Clemens

Thank you for this.  I hope to get to reinstalling my servers this week and
will use this and the web2py document as a base.  FWIW, my goal will be to
build an Ansible playbook for my install.

Thanks again and enjoy the rest of the weekend.  It's a beautiful day here
in Wisconsin!

-Jim


On Sun, Apr 26, 2020 at 8:54 AM Clemens 
wrote:

> Attached please find the PDF document.
>
> Best regards
> Clemens
>
>
> On Friday, April 24, 2020 at 8:19:10 PM UTC+2, VJ Sosa wrote:
>>
>> Thanks Clemens,
>>
>> I have a similar work to do right now :-)
>> For sure , your pdf manual will be very helpful for me.  Please send it
>> when you can.
>> Regards,
>> Víctor
>>
>> On Fri, Apr 24, 2020 at 6:03 PM Clemens 
>> wrote:
>>
>>> Sure! But now I have to make fire for the kids and their stick breads
>>> :-) I will clean up my notes on Sunday and send here.
>>>
>>> Have a nice weekend!
>>>
>>>
>>> On Friday, April 24, 2020 at 5:44:40 PM UTC+2, Jim S wrote:

 Clemens

 Can you share that PDF with all of us when you have it complete?

 -Jim


 On Friday, April 24, 2020 at 10:28:22 AM UTC-5, Clemens wrote:
>
> Victor,
>
> I've written my personal step-by-step deployment guide for web2py and
> Nginx which I'm using for my production system. If interested, I can send
> you as a PDF document.
>
> But what I couldn't realize is to use the web2py-Nginx-enviroment for
> debugging. As long only for production it's fine for me but not for
> development.
>
> Thus, I still hope there will be a solution for the rocket-socket-prob.
>
> Best regards
> Clemens
>
>
> On Friday, April 24, 2020 at 5:20:42 PM UTC+2, VJ Sosa wrote:
>>
>>   Thanks Jim,
>>
>> I will follow your advice on using Nginx.
>> However, it is not quite intuitive the way this configuration is
>> explained in the web2py book. Details are given for the  Apache2
>> configuration.
>> It is assumed that the reader has enough knowledge on how to
>> configure a web server.
>> Could your recommend an step-by-step tutorial (Web2py + nginx
>> configuration for dummies), especially where secure configuration is
>> activated (HTTPS).
>>
>> Best regards,
>> Víctor.
>>
>>
>> On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:
>>
>>> VJ
>>>
>>> I agree web2py + rocket is a good way to go about this.
>>>
>>> But, in the documentation I believe it is recommended to not use
>>> Rocket for a production server.  If running on linux I believe nginx is 
>>> the
>>> best place choice for a web server.  Yes, it is more complicated to 
>>> setup,
>>> but in th end you're going to have a more reliable web stack.
>>>
>>> That being said, I have 3 production servers running my app.  One
>>> uses nginx (Server A) and the other 2 (Servers B and C) use Rocket.
>>> However, I front-end servers B and C with haproxy to load balance 
>>> between
>>> the two running rocket.  I don't know what the issue is, but at least 
>>> every
>>> few days I have to restart servers B and C because they lock up.  I 
>>> haven't
>>> been able to find any messages when this happens so I haven't been able 
>>> to
>>> trouble-shoot yet.  My plans are to rebuild these servers with nginx
>>> instead of rocket.
>>>
>>> TLDR;
>>>
>>> Rocket is great for development work, but I'd recommend using nginx
>>> in a production environment based on the recommendation in the book and 
>>> on
>>> my own experience.
>>>
>>> -Jim
>>>
>>> On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:

 Hi Jim and Clemen,

 I really appreciate your support and time.
 I'm newbie in python programming, so my idea was to have an easy
 implementation of my wepapp using web2py + Rocket (it was an excelent
 option for me until this issue with Rocket arised).
 So, I have decided to leave Rocket out of the equation and try to
 move into the Apache or Nginx configuration, which implies to include  
 a
 little more stuff,
 so I hope to be able of migrating my webapp soon.

 Just in case,  if you found any solution for this Rocket issue with
 Python 3 in web2py, it will be welcome. I'm  still convinced that 
 Web2py +
 Rocket is the best option for faster development of webapps in Python.

 Regards,
 Víctor.






 El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:
>
> Hello,
>
> it seems that there are some problems with rocket under Python
> 3.x. As posted a few weeks ago I have the following problem:
>
> *I've switched my web2py app from python2 to 

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread VJ Sosa
Thanks Clemens,

I have a similar work to do right now :-)
For sure , your pdf manual will be very helpful for me.  Please send it
when you can.
Regards,
Víctor

On Fri, Apr 24, 2020 at 6:03 PM Clemens 
wrote:

> Sure! But now I have to make fire for the kids and their stick breads :-)
> I will clean up my notes on Sunday and send here.
>
> Have a nice weekend!
>
>
> On Friday, April 24, 2020 at 5:44:40 PM UTC+2, Jim S wrote:
>>
>> Clemens
>>
>> Can you share that PDF with all of us when you have it complete?
>>
>> -Jim
>>
>>
>> On Friday, April 24, 2020 at 10:28:22 AM UTC-5, Clemens wrote:
>>>
>>> Victor,
>>>
>>> I've written my personal step-by-step deployment guide for web2py and
>>> Nginx which I'm using for my production system. If interested, I can send
>>> you as a PDF document.
>>>
>>> But what I couldn't realize is to use the web2py-Nginx-enviroment for
>>> debugging. As long only for production it's fine for me but not for
>>> development.
>>>
>>> Thus, I still hope there will be a solution for the rocket-socket-prob.
>>>
>>> Best regards
>>> Clemens
>>>
>>>
>>> On Friday, April 24, 2020 at 5:20:42 PM UTC+2, VJ Sosa wrote:

   Thanks Jim,

 I will follow your advice on using Nginx.
 However, it is not quite intuitive the way this configuration is
 explained in the web2py book. Details are given for the  Apache2
 configuration.
 It is assumed that the reader has enough knowledge on how to configure
 a web server.
 Could your recommend an step-by-step tutorial (Web2py + nginx
 configuration for dummies), especially where secure configuration is
 activated (HTTPS).

 Best regards,
 Víctor.


 On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:

> VJ
>
> I agree web2py + rocket is a good way to go about this.
>
> But, in the documentation I believe it is recommended to not use
> Rocket for a production server.  If running on linux I believe nginx is 
> the
> best place choice for a web server.  Yes, it is more complicated to setup,
> but in th end you're going to have a more reliable web stack.
>
> That being said, I have 3 production servers running my app.  One uses
> nginx (Server A) and the other 2 (Servers B and C) use Rocket.  However, I
> front-end servers B and C with haproxy to load balance between the two
> running rocket.  I don't know what the issue is, but at least every few
> days I have to restart servers B and C because they lock up.  I haven't
> been able to find any messages when this happens so I haven't been able to
> trouble-shoot yet.  My plans are to rebuild these servers with nginx
> instead of rocket.
>
> TLDR;
>
> Rocket is great for development work, but I'd recommend using nginx in
> a production environment based on the recommendation in the book and on my
> own experience.
>
> -Jim
>
> On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:
>>
>> Hi Jim and Clemen,
>>
>> I really appreciate your support and time.
>> I'm newbie in python programming, so my idea was to have an easy
>> implementation of my wepapp using web2py + Rocket (it was an excelent
>> option for me until this issue with Rocket arised).
>> So, I have decided to leave Rocket out of the equation and try to
>> move into the Apache or Nginx configuration, which implies to include  a
>> little more stuff,
>> so I hope to be able of migrating my webapp soon.
>>
>> Just in case,  if you found any solution for this Rocket issue with
>> Python 3 in web2py, it will be welcome. I'm  still convinced that Web2py 
>> +
>> Rocket is the best option for faster development of webapps in Python.
>>
>> Regards,
>> Víctor.
>>
>>
>>
>>
>>
>>
>> El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:
>>>
>>> Hello,
>>>
>>> it seems that there are some problems with rocket under Python 3.x.
>>> As posted a few weeks ago I have the following problem:
>>>
>>> *I've switched my web2py app from python2 to python3. The app itself
>>> works fine, but the web2py online debugger doesn't work anymore and is
>>> mostly freezing. Sometimes a get the following error message:*
>>>
>>> *Exception timeout: timeout('timed out',)*
>>>
>>> *Traceback (most recent call last): File
>>> "/usr/lib/python3.6/socket.py"**, line 586, in readinto return
>>> self._sock.recv_into(b) socket.timeout: timed out*
>>>
>>> *My configuration is as follows:*
>>>
>>> *web2py 2.19.1-stable+timestamp.2020.**03.21.21.49.28 (Running on
>>> Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS*
>>>
>>> Do you have this problem too? Since this problem also depends on
>>> sockets, maybe this is a hint to a solution for "your" problem mentioned
>>> here. Of course I hope the solution 

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread VJ Sosa
Thank you Jim,

I'll take a look at that script.
Regards,
Víctor

On Fri, Apr 24, 2020 at 5:28 PM Jim S  wrote:

> There is a script available to do the nginx install on Ubuntu, but I
> haven't looked at it in a while.  When I went through it there were changes
> that were needed for me to get it working.  But, that was back pre-Ubuntu
> 16, so the script has changed to allow for systemd instead of upstart.  In
> the coming weeks I plan to get in to it to replace my rocket servers with
> nginx.  From my view, nginx is way easier to configure than apache.
>
> Here is the script:
>
>
> https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh
>
> -Jim
>
> On Friday, April 24, 2020 at 10:20:42 AM UTC-5, VJ Sosa wrote:
>>
>>   Thanks Jim,
>>
>> I will follow your advice on using Nginx.
>> However, it is not quite intuitive the way this configuration is
>> explained in the web2py book. Details are given for the  Apache2
>> configuration.
>> It is assumed that the reader has enough knowledge on how to configure a
>> web server.
>> Could your recommend an step-by-step tutorial (Web2py + nginx
>> configuration for dummies), especially where secure configuration is
>> activated (HTTPS).
>>
>> Best regards,
>> Víctor.
>>
>>
>> On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:
>>
>>> VJ
>>>
>>> I agree web2py + rocket is a good way to go about this.
>>>
>>> But, in the documentation I believe it is recommended to not use Rocket
>>> for a production server.  If running on linux I believe nginx is the best
>>> place choice for a web server.  Yes, it is more complicated to setup, but
>>> in th end you're going to have a more reliable web stack.
>>>
>>> That being said, I have 3 production servers running my app.  One uses
>>> nginx (Server A) and the other 2 (Servers B and C) use Rocket.  However, I
>>> front-end servers B and C with haproxy to load balance between the two
>>> running rocket.  I don't know what the issue is, but at least every few
>>> days I have to restart servers B and C because they lock up.  I haven't
>>> been able to find any messages when this happens so I haven't been able to
>>> trouble-shoot yet.  My plans are to rebuild these servers with nginx
>>> instead of rocket.
>>>
>>> TLDR;
>>>
>>> Rocket is great for development work, but I'd recommend using nginx in a
>>> production environment based on the recommendation in the book and on my
>>> own experience.
>>>
>>> -Jim
>>>
>>> On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:

 Hi Jim and Clemen,

 I really appreciate your support and time.
 I'm newbie in python programming, so my idea was to have an easy
 implementation of my wepapp using web2py + Rocket (it was an excelent
 option for me until this issue with Rocket arised).
 So, I have decided to leave Rocket out of the equation and try to  move
 into the Apache or Nginx configuration, which implies to include  a little
 more stuff,
 so I hope to be able of migrating my webapp soon.

 Just in case,  if you found any solution for this Rocket issue with
 Python 3 in web2py, it will be welcome. I'm  still convinced that Web2py +
 Rocket is the best option for faster development of webapps in Python.

 Regards,
 Víctor.






 El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:
>
> Hello,
>
> it seems that there are some problems with rocket under Python 3.x. As
> posted a few weeks ago I have the following problem:
>
> *I've switched my web2py app from python2 to python3. The app itself
> works fine, but the web2py online debugger doesn't work anymore and is
> mostly freezing. Sometimes a get the following error message:*
>
> *Exception timeout: timeout('timed out',)*
>
> *Traceback (most recent call last): File
> "/usr/lib/python3.6/socket.py"**, line 586, in readinto return
> self._sock.recv_into(b) socket.timeout: timed out*
>
> *My configuration is as follows:*
>
> *web2py 2.19.1-stable+timestamp.2020.**03.21.21.49.28 (Running on
> Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS*
>
> Do you have this problem too? Since this problem also depends on
> sockets, maybe this is a hint to a solution for "your" problem mentioned
> here. Of course I hope the solution would solve "my" problem too.
>
> In the meantime I've established short script switching between Python
> 2.x and 3.x. Means, using Python3 as long as I don't have to use the
> debugger and switching to Python 2 if required. The script is running
> under Linux. Any interest?
>
>
> Best regards
>
> Clemens
>
>
>
> On Thursday, April 23, 2020 at 10:24:36 PM UTC+2, Jim S wrote:
>>
>> VJ
>>
>> I just ran a test and can confirm I'm getting the same results as you.
>>
>> I just cloned the latest web2py from git.
>>

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread Clemens
Sure! But now I have to make fire for the kids and their stick breads :-) I 
will clean up my notes on Sunday and send here.

Have a nice weekend!


On Friday, April 24, 2020 at 5:44:40 PM UTC+2, Jim S wrote:
>
> Clemens
>
> Can you share that PDF with all of us when you have it complete?
>
> -Jim
>
>
> On Friday, April 24, 2020 at 10:28:22 AM UTC-5, Clemens wrote:
>>
>> Victor,
>>
>> I've written my personal step-by-step deployment guide for web2py and 
>> Nginx which I'm using for my production system. If interested, I can send 
>> you as a PDF document.
>>
>> But what I couldn't realize is to use the web2py-Nginx-enviroment for 
>> debugging. As long only for production it's fine for me but not for 
>> development.
>>
>> Thus, I still hope there will be a solution for the rocket-socket-prob.
>>
>> Best regards
>> Clemens
>>
>>
>> On Friday, April 24, 2020 at 5:20:42 PM UTC+2, VJ Sosa wrote:
>>>
>>>   Thanks Jim,
>>>
>>> I will follow your advice on using Nginx. 
>>> However, it is not quite intuitive the way this configuration is 
>>> explained in the web2py book. Details are given for the  Apache2 
>>> configuration.
>>> It is assumed that the reader has enough knowledge on how to configure a 
>>> web server.
>>> Could your recommend an step-by-step tutorial (Web2py + nginx 
>>> configuration for dummies), especially where secure configuration is 
>>> activated (HTTPS).
>>>
>>> Best regards,
>>> Víctor.
>>>  
>>>
>>> On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:
>>>
 VJ

 I agree web2py + rocket is a good way to go about this.

 But, in the documentation I believe it is recommended to not use Rocket 
 for a production server.  If running on linux I believe nginx is the best 
 place choice for a web server.  Yes, it is more complicated to setup, but 
 in th end you're going to have a more reliable web stack.

 That being said, I have 3 production servers running my app.  One uses 
 nginx (Server A) and the other 2 (Servers B and C) use Rocket.  However, I 
 front-end servers B and C with haproxy to load balance between the two 
 running rocket.  I don't know what the issue is, but at least every few 
 days I have to restart servers B and C because they lock up.  I haven't 
 been able to find any messages when this happens so I haven't been able to 
 trouble-shoot yet.  My plans are to rebuild these servers with nginx 
 instead of rocket.

 TLDR;

 Rocket is great for development work, but I'd recommend using nginx in 
 a production environment based on the recommendation in the book and on my 
 own experience.

 -Jim

 On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:
>
> Hi Jim and Clemen,
>
> I really appreciate your support and time.
> I'm newbie in python programming, so my idea was to have an easy 
> implementation of my wepapp using web2py + Rocket (it was an excelent 
> option for me until this issue with Rocket arised). 
> So, I have decided to leave Rocket out of the equation and try to  
> move into the Apache or Nginx configuration, which implies to include  a 
> little more stuff, 
> so I hope to be able of migrating my webapp soon.
>
> Just in case,  if you found any solution for this Rocket issue with 
> Python 3 in web2py, it will be welcome. I'm  still convinced that Web2py 
> + 
> Rocket is the best option for faster development of webapps in Python.
>
> Regards,
> Víctor.
>
>
>
>
>
>
> El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:
>>
>> Hello,
>>
>> it seems that there are some problems with rocket under Python 3.x. 
>> As posted a few weeks ago I have the following problem:
>>
>> *I've switched my web2py app from python2 to python3. The app itself 
>> works fine, but the web2py online debugger doesn't work anymore and is 
>> mostly freezing. Sometimes a get the following error message:*
>>
>> *Exception timeout: timeout('timed out',)*
>>
>> *Traceback (most recent call last): File 
>> "/usr/lib/python3.6/socket.py"**, line 586, in readinto return 
>> self._sock.recv_into(b) socket.timeout: timed out*
>>
>> *My configuration is as follows:*
>>
>> *web2py 2.19.1-stable+timestamp.2020.**03.21.21.49.28 (Running on 
>> Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS*
>>
>> Do you have this problem too? Since this problem also depends on 
>> sockets, maybe this is a hint to a solution for "your" problem mentioned 
>> here. Of course I hope the solution would solve "my" problem too.
>>
>> In the meantime I've established short script switching between 
>> Python 2.x and 3.x. Means, using Python3 as long as I don't have to use 
>> the 
>> debugger and switching to Python 2 if required. The script is 
>> running under Linux. Any 

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread Jim S
Clemens

Can you share that PDF with all of us when you have it complete?

-Jim


On Friday, April 24, 2020 at 10:28:22 AM UTC-5, Clemens wrote:
>
> Victor,
>
> I've written my personal step-by-step deployment guide for web2py and 
> Nginx which I'm using for my production system. If interested, I can send 
> you as a PDF document.
>
> But what I couldn't realize is to use the web2py-Nginx-enviroment for 
> debugging. As long only for production it's fine for me but not for 
> development.
>
> Thus, I still hope there will be a solution for the rocket-socket-prob.
>
> Best regards
> Clemens
>
>
> On Friday, April 24, 2020 at 5:20:42 PM UTC+2, VJ Sosa wrote:
>>
>>   Thanks Jim,
>>
>> I will follow your advice on using Nginx. 
>> However, it is not quite intuitive the way this configuration is 
>> explained in the web2py book. Details are given for the  Apache2 
>> configuration.
>> It is assumed that the reader has enough knowledge on how to configure a 
>> web server.
>> Could your recommend an step-by-step tutorial (Web2py + nginx 
>> configuration for dummies), especially where secure configuration is 
>> activated (HTTPS).
>>
>> Best regards,
>> Víctor.
>>  
>>
>> On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:
>>
>>> VJ
>>>
>>> I agree web2py + rocket is a good way to go about this.
>>>
>>> But, in the documentation I believe it is recommended to not use Rocket 
>>> for a production server.  If running on linux I believe nginx is the best 
>>> place choice for a web server.  Yes, it is more complicated to setup, but 
>>> in th end you're going to have a more reliable web stack.
>>>
>>> That being said, I have 3 production servers running my app.  One uses 
>>> nginx (Server A) and the other 2 (Servers B and C) use Rocket.  However, I 
>>> front-end servers B and C with haproxy to load balance between the two 
>>> running rocket.  I don't know what the issue is, but at least every few 
>>> days I have to restart servers B and C because they lock up.  I haven't 
>>> been able to find any messages when this happens so I haven't been able to 
>>> trouble-shoot yet.  My plans are to rebuild these servers with nginx 
>>> instead of rocket.
>>>
>>> TLDR;
>>>
>>> Rocket is great for development work, but I'd recommend using nginx in a 
>>> production environment based on the recommendation in the book and on my 
>>> own experience.
>>>
>>> -Jim
>>>
>>> On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:

 Hi Jim and Clemen,

 I really appreciate your support and time.
 I'm newbie in python programming, so my idea was to have an easy 
 implementation of my wepapp using web2py + Rocket (it was an excelent 
 option for me until this issue with Rocket arised). 
 So, I have decided to leave Rocket out of the equation and try to  move 
 into the Apache or Nginx configuration, which implies to include  a little 
 more stuff, 
 so I hope to be able of migrating my webapp soon.

 Just in case,  if you found any solution for this Rocket issue with 
 Python 3 in web2py, it will be welcome. I'm  still convinced that Web2py + 
 Rocket is the best option for faster development of webapps in Python.

 Regards,
 Víctor.






 El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:
>
> Hello,
>
> it seems that there are some problems with rocket under Python 3.x. As 
> posted a few weeks ago I have the following problem:
>
> *I've switched my web2py app from python2 to python3. The app itself 
> works fine, but the web2py online debugger doesn't work anymore and is 
> mostly freezing. Sometimes a get the following error message:*
>
> *Exception timeout: timeout('timed out',)*
>
> *Traceback (most recent call last): File 
> "/usr/lib/python3.6/socket.py"**, line 586, in readinto return 
> self._sock.recv_into(b) socket.timeout: timed out*
>
> *My configuration is as follows:*
>
> *web2py 2.19.1-stable+timestamp.2020.**03.21.21.49.28 (Running on 
> Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS*
>
> Do you have this problem too? Since this problem also depends on 
> sockets, maybe this is a hint to a solution for "your" problem mentioned 
> here. Of course I hope the solution would solve "my" problem too.
>
> In the meantime I've established short script switching between Python 
> 2.x and 3.x. Means, using Python3 as long as I don't have to use the 
> debugger and switching to Python 2 if required. The script is running 
> under Linux. Any interest?
>
>
> Best regards
>
> Clemens
>
>
>
> On Thursday, April 23, 2020 at 10:24:36 PM UTC+2, Jim S wrote:
>>
>> VJ
>>
>> I just ran a test and can confirm I'm getting the same results as you.
>>
>> I just cloned the latest web2py from git.
>>
>> I ran under Python 2.7 and it worked fine.

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread Clemens
Victor,

I've written my personal step-by-step deployment guide for web2py and Nginx 
which I'm using for my production system. If interested, I can send you as 
a PDF document.

But what I couldn't realize is to use the web2py-Nginx-enviroment for 
debugging. As long only for production it's fine for me but not for 
development.

Thus, I still hope there will be a solution for the rocket-socket-prob.

Best regards
Clemens


On Friday, April 24, 2020 at 5:20:42 PM UTC+2, VJ Sosa wrote:
>
>   Thanks Jim,
>
> I will follow your advice on using Nginx. 
> However, it is not quite intuitive the way this configuration is explained 
> in the web2py book. Details are given for the  Apache2 configuration.
> It is assumed that the reader has enough knowledge on how to configure a 
> web server.
> Could your recommend an step-by-step tutorial (Web2py + nginx 
> configuration for dummies), especially where secure configuration is 
> activated (HTTPS).
>
> Best regards,
> Víctor.
>  
>
> On Fri, Apr 24, 2020 at 2:41 PM Jim S > 
> wrote:
>
>> VJ
>>
>> I agree web2py + rocket is a good way to go about this.
>>
>> But, in the documentation I believe it is recommended to not use Rocket 
>> for a production server.  If running on linux I believe nginx is the best 
>> place choice for a web server.  Yes, it is more complicated to setup, but 
>> in th end you're going to have a more reliable web stack.
>>
>> That being said, I have 3 production servers running my app.  One uses 
>> nginx (Server A) and the other 2 (Servers B and C) use Rocket.  However, I 
>> front-end servers B and C with haproxy to load balance between the two 
>> running rocket.  I don't know what the issue is, but at least every few 
>> days I have to restart servers B and C because they lock up.  I haven't 
>> been able to find any messages when this happens so I haven't been able to 
>> trouble-shoot yet.  My plans are to rebuild these servers with nginx 
>> instead of rocket.
>>
>> TLDR;
>>
>> Rocket is great for development work, but I'd recommend using nginx in a 
>> production environment based on the recommendation in the book and on my 
>> own experience.
>>
>> -Jim
>>
>> On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:
>>>
>>> Hi Jim and Clemen,
>>>
>>> I really appreciate your support and time.
>>> I'm newbie in python programming, so my idea was to have an easy 
>>> implementation of my wepapp using web2py + Rocket (it was an excelent 
>>> option for me until this issue with Rocket arised). 
>>> So, I have decided to leave Rocket out of the equation and try to  move 
>>> into the Apache or Nginx configuration, which implies to include  a little 
>>> more stuff, 
>>> so I hope to be able of migrating my webapp soon.
>>>
>>> Just in case,  if you found any solution for this Rocket issue with 
>>> Python 3 in web2py, it will be welcome. I'm  still convinced that Web2py + 
>>> Rocket is the best option for faster development of webapps in Python.
>>>
>>> Regards,
>>> Víctor.
>>>
>>>
>>>
>>>
>>>
>>>
>>> El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:

 Hello,

 it seems that there are some problems with rocket under Python 3.x. As 
 posted a few weeks ago I have the following problem:

 *I've switched my web2py app from python2 to python3. The app itself 
 works fine, but the web2py online debugger doesn't work anymore and is 
 mostly freezing. Sometimes a get the following error message:*

 *Exception timeout: timeout('timed out',)*

 *Traceback (most recent call last): File "/usr/lib/python3.6/socket.py"**, 
 line 586, in readinto return self._sock.recv_into(b) socket.timeout: timed 
 out*

 *My configuration is as follows:*

 *web2py 2.19.1-stable+timestamp.2020.**03.21.21.49.28 (Running on 
 Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS*

 Do you have this problem too? Since this problem also depends on 
 sockets, maybe this is a hint to a solution for "your" problem mentioned 
 here. Of course I hope the solution would solve "my" problem too.

 In the meantime I've established short script switching between Python 
 2.x and 3.x. Means, using Python3 as long as I don't have to use the 
 debugger and switching to Python 2 if required. The script is running 
 under Linux. Any interest?


 Best regards

 Clemens



 On Thursday, April 23, 2020 at 10:24:36 PM UTC+2, Jim S wrote:
>
> VJ
>
> I just ran a test and can confirm I'm getting the same results as you.
>
> I just cloned the latest web2py from git.
>
> I ran under Python 2.7 and it worked fine.
> Running under Python 3.7 and I get results like you.
>
> To do a little debugging, I put a print statement ahead of line 105 in 
> gluon/rocket.py -> print('socket_tuple', socket_tuple)  I get the 
> following:
>
> Python 2.7
> ('sock_tuple', (, (
> 

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread Jim S
There is a script available to do the nginx install on Ubuntu, but I 
haven't looked at it in a while.  When I went through it there were changes 
that were needed for me to get it working.  But, that was back pre-Ubuntu 
16, so the script has changed to allow for systemd instead of upstart.  In 
the coming weeks I plan to get in to it to replace my rocket servers with 
nginx.  From my view, nginx is way easier to configure than apache.  

Here is the script:

https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh

-Jim

On Friday, April 24, 2020 at 10:20:42 AM UTC-5, VJ Sosa wrote:
>
>   Thanks Jim,
>
> I will follow your advice on using Nginx. 
> However, it is not quite intuitive the way this configuration is explained 
> in the web2py book. Details are given for the  Apache2 configuration.
> It is assumed that the reader has enough knowledge on how to configure a 
> web server.
> Could your recommend an step-by-step tutorial (Web2py + nginx 
> configuration for dummies), especially where secure configuration is 
> activated (HTTPS).
>
> Best regards,
> Víctor.
>  
>
> On Fri, Apr 24, 2020 at 2:41 PM Jim S > 
> wrote:
>
>> VJ
>>
>> I agree web2py + rocket is a good way to go about this.
>>
>> But, in the documentation I believe it is recommended to not use Rocket 
>> for a production server.  If running on linux I believe nginx is the best 
>> place choice for a web server.  Yes, it is more complicated to setup, but 
>> in th end you're going to have a more reliable web stack.
>>
>> That being said, I have 3 production servers running my app.  One uses 
>> nginx (Server A) and the other 2 (Servers B and C) use Rocket.  However, I 
>> front-end servers B and C with haproxy to load balance between the two 
>> running rocket.  I don't know what the issue is, but at least every few 
>> days I have to restart servers B and C because they lock up.  I haven't 
>> been able to find any messages when this happens so I haven't been able to 
>> trouble-shoot yet.  My plans are to rebuild these servers with nginx 
>> instead of rocket.
>>
>> TLDR;
>>
>> Rocket is great for development work, but I'd recommend using nginx in a 
>> production environment based on the recommendation in the book and on my 
>> own experience.
>>
>> -Jim
>>
>> On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:
>>>
>>> Hi Jim and Clemen,
>>>
>>> I really appreciate your support and time.
>>> I'm newbie in python programming, so my idea was to have an easy 
>>> implementation of my wepapp using web2py + Rocket (it was an excelent 
>>> option for me until this issue with Rocket arised). 
>>> So, I have decided to leave Rocket out of the equation and try to  move 
>>> into the Apache or Nginx configuration, which implies to include  a little 
>>> more stuff, 
>>> so I hope to be able of migrating my webapp soon.
>>>
>>> Just in case,  if you found any solution for this Rocket issue with 
>>> Python 3 in web2py, it will be welcome. I'm  still convinced that Web2py + 
>>> Rocket is the best option for faster development of webapps in Python.
>>>
>>> Regards,
>>> Víctor.
>>>
>>>
>>>
>>>
>>>
>>>
>>> El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:

 Hello,

 it seems that there are some problems with rocket under Python 3.x. As 
 posted a few weeks ago I have the following problem:

 *I've switched my web2py app from python2 to python3. The app itself 
 works fine, but the web2py online debugger doesn't work anymore and is 
 mostly freezing. Sometimes a get the following error message:*

 *Exception timeout: timeout('timed out',)*

 *Traceback (most recent call last): File "/usr/lib/python3.6/socket.py"**, 
 line 586, in readinto return self._sock.recv_into(b) socket.timeout: timed 
 out*

 *My configuration is as follows:*

 *web2py 2.19.1-stable+timestamp.2020.**03.21.21.49.28 (Running on 
 Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS*

 Do you have this problem too? Since this problem also depends on 
 sockets, maybe this is a hint to a solution for "your" problem mentioned 
 here. Of course I hope the solution would solve "my" problem too.

 In the meantime I've established short script switching between Python 
 2.x and 3.x. Means, using Python3 as long as I don't have to use the 
 debugger and switching to Python 2 if required. The script is running 
 under Linux. Any interest?


 Best regards

 Clemens



 On Thursday, April 23, 2020 at 10:24:36 PM UTC+2, Jim S wrote:
>
> VJ
>
> I just ran a test and can confirm I'm getting the same results as you.
>
> I just cloned the latest web2py from git.
>
> I ran under Python 2.7 and it worked fine.
> Running under Python 3.7 and I get results like you.
>
> To do a little debugging, I put a print statement ahead of line 105 in 
> 

Re: [web2py] Re: how to execute web2py with Rocket using SSL?

2020-04-24 Thread VJ Sosa
  Thanks Jim,

I will follow your advice on using Nginx.
However, it is not quite intuitive the way this configuration is explained
in the web2py book. Details are given for the  Apache2 configuration.
It is assumed that the reader has enough knowledge on how to configure a
web server.
Could your recommend an step-by-step tutorial (Web2py + nginx configuration
for dummies), especially where secure configuration is activated (HTTPS).

Best regards,
Víctor.


On Fri, Apr 24, 2020 at 2:41 PM Jim S  wrote:

> VJ
>
> I agree web2py + rocket is a good way to go about this.
>
> But, in the documentation I believe it is recommended to not use Rocket
> for a production server.  If running on linux I believe nginx is the best
> place choice for a web server.  Yes, it is more complicated to setup, but
> in th end you're going to have a more reliable web stack.
>
> That being said, I have 3 production servers running my app.  One uses
> nginx (Server A) and the other 2 (Servers B and C) use Rocket.  However, I
> front-end servers B and C with haproxy to load balance between the two
> running rocket.  I don't know what the issue is, but at least every few
> days I have to restart servers B and C because they lock up.  I haven't
> been able to find any messages when this happens so I haven't been able to
> trouble-shoot yet.  My plans are to rebuild these servers with nginx
> instead of rocket.
>
> TLDR;
>
> Rocket is great for development work, but I'd recommend using nginx in a
> production environment based on the recommendation in the book and on my
> own experience.
>
> -Jim
>
> On Friday, April 24, 2020 at 6:00:41 AM UTC-5, VJ Sosa wrote:
>>
>> Hi Jim and Clemen,
>>
>> I really appreciate your support and time.
>> I'm newbie in python programming, so my idea was to have an easy
>> implementation of my wepapp using web2py + Rocket (it was an excelent
>> option for me until this issue with Rocket arised).
>> So, I have decided to leave Rocket out of the equation and try to  move
>> into the Apache or Nginx configuration, which implies to include  a little
>> more stuff,
>> so I hope to be able of migrating my webapp soon.
>>
>> Just in case,  if you found any solution for this Rocket issue with
>> Python 3 in web2py, it will be welcome. I'm  still convinced that Web2py +
>> Rocket is the best option for faster development of webapps in Python.
>>
>> Regards,
>> Víctor.
>>
>>
>>
>>
>>
>>
>> El viernes, 24 de abril de 2020, 9:57:16 (UTC+2), Clemens escribió:
>>>
>>> Hello,
>>>
>>> it seems that there are some problems with rocket under Python 3.x. As
>>> posted a few weeks ago I have the following problem:
>>>
>>> *I've switched my web2py app from python2 to python3. The app itself
>>> works fine, but the web2py online debugger doesn't work anymore and is
>>> mostly freezing. Sometimes a get the following error message:*
>>>
>>> *Exception timeout: timeout('timed out',)*
>>>
>>> *Traceback (most recent call last): File "/usr/lib/python3.6/socket.py"**,
>>> line 586, in readinto return self._sock.recv_into(b) socket.timeout: timed
>>> out*
>>>
>>> *My configuration is as follows:*
>>>
>>> *web2py 2.19.1-stable+timestamp.2020.**03.21.21.49.28 (Running on
>>> Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS*
>>>
>>> Do you have this problem too? Since this problem also depends on
>>> sockets, maybe this is a hint to a solution for "your" problem mentioned
>>> here. Of course I hope the solution would solve "my" problem too.
>>>
>>> In the meantime I've established short script switching between Python
>>> 2.x and 3.x. Means, using Python3 as long as I don't have to use the
>>> debugger and switching to Python 2 if required. The script is running
>>> under Linux. Any interest?
>>>
>>>
>>> Best regards
>>>
>>> Clemens
>>>
>>>
>>>
>>> On Thursday, April 23, 2020 at 10:24:36 PM UTC+2, Jim S wrote:

 VJ

 I just ran a test and can confirm I'm getting the same results as you.

 I just cloned the latest web2py from git.

 I ran under Python 2.7 and it worked fine.
 Running under Python 3.7 and I get results like you.

 To do a little debugging, I put a print statement ahead of line 105 in
 gluon/rocket.py -> print('socket_tuple', socket_tuple)  I get the 
 following:

 Python 2.7
 ('sock_tuple', (, (
 '127.0.0.1', 32984)))
 ('sock_tuple', (, ('127.0.0.1',
 32986)))
 ('sock_tuple', (, (
 '127.0.0.1', 32988)))
 ('sock_tuple', (, (
 '127.0.0.1', 32990)))
 ('sock_tuple', (, ('127.0.0.1',
 32992)))
 ('sock_tuple', (, ('127.0.0.1',
 32994)))

 Python 3.7
 sock_tuple (>>> , type=SocketKind.SOCK_STREAM, proto=0>, ('127.0.0.1', 33048))
 sock_tuple (>>> SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 8000), raddr=(
 '127.0.0.1', 33050)>, ('127.0.0.1', 33050))
 sock_tuple (>>> , type=SocketKind.SOCK_STREAM, proto=0>, ('127.0.0.1', 33052))
 sock_tuple (>>> , type=SocketKind.SOCK_STREAM, proto=0>,