Thanks. I will probably try with the repos version and submit a pull request with a script for the web2py source. Also making a tool to publish to Qt cloud services. Perhaps we could add it to admin. On Aug 26, 2014 9:31 PM, "Paolo Valleri" <[email protected]> wrote:
> For rpi I see few alternatives: > - switch to upstart (mind that would be a big change for your operating > system) > - create your own uwsgi script in /etc/init.d/ (google for it) > - place the command line a posted before in /etc/rc.local (mind to add an > & at the end) > - uninstall the uwsgi installed by pip and install the one from the > raspbian repository (it comes with the /etc/init.d/... script). In this > case, I suggest to install uwsgi-emperor and uwsgi-plugin-python using > apt-get, add the line 'plugin=python' in web2py.ini and place that file in > /etc/uwsgi-emperor/vassals. > > Paolo > > 2014-08-24 20:46 GMT+02:00 Jason (spot) Brower <[email protected]>: > >> Yeah. Looks like that was it! How do I make this change permanent? >> On Aug 24, 2014 6:26 PM, "Paolo Valleri" <[email protected]> wrote: >> >>> The script you mentioned is based on upstart but on the raspberry-pi the >>> init script are handled by sysvinit. >>> So that, I'd say that uwsgi is not running? >>> Try to run it manually: >>> >>> sudo uwsgi --master --die-on-term --emperor /etc/uwsgi --logto /var/log/ >>> uwsgi/uwsgi.log >>> >>> Paolo >>> >>> On Sunday, August 24, 2014 11:00:49 AM UTC+2, Encompass solutions wrote: >>>> >>>> Hi, >>>> Currently I am getting a 502 Bad Gateway Error when trying to access my >>>> web2py server running on Raspberry Pi. >>>> I first tried the setup with the script setup-web2py-nginx-ubuntu.sh as >>>> it's nearly identical to the instructoins found here. >>>> http://web2py.com/books/default/chapter/29/13#Nginx >>>> After doing the script I got the 502 Bad Gateway error. >>>> I know I am on the right server as I can see the request in the logs. >>>> I then went through the tutorial on the website I previously mentioned >>>> and still got the error. >>>> There were a few differences in the script. For example web2py.ini >>>> verses web2py.xml (which is informationally the same.) >>>> >>>> Any ideas on how to diagnose this and find the correct solution? >>>> >>>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "web2py-users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/web2py/Bx_9u0iC86o/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/Bx_9u0iC86o/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/Bx_9u0iC86o/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

