Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-18 Thread Richard Vézina
Good to know! There seems to have an improved version though : https://groups.google.com/d/msg/web2py/8YWJU4FCdwg/_tm_TQKr1GQJ Richard On Fri, Aug 8, 2014 at 6:25 PM, Cliff Kachinske cjk...@gmail.com wrote: Richard, I used the ubuntu install script on a VPS at Digital Ocean. No problem.

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-08 Thread Richard Vézina
Yes Jim, it great if you come up with a ubuntu 14.04 tested script and you share with us. Regards Richard On Thu, Aug 7, 2014 at 3:07 PM, Jim S j...@qlf.com wrote: Finally figured out my problem. It seems to me that everything works fine if I use pip to install additional python packages.

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-08 Thread Richard Vézina
Ok got it. Yes easy_install is not recommended because you don't have a clean to uninstall package automatically... Richard On Fri, Aug 8, 2014 at 10:15 AM, Jim S j...@qlf.com wrote: Richard I didn't make any changes to the script provided by web2py. I just wrote my own script that

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-08 Thread Jim S
Richard I didn't make any changes to the script provided by web2py. I just wrote my own script that installed all of my other dependencies first and then calls the setup-web2py-nginx-uwsgi-ubuntu.sh script. That script worked fine for me on 14.04.1. The point I think, is that my problems we

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-08 Thread Cliff Kachinske
Richard, I used the ubuntu install script on a VPS at Digital Ocean. No problem. On Friday, August 8, 2014 9:53:22 AM UTC-4, Richard wrote: Yes Jim, it great if you come up with a ubuntu 14.04 tested script and you share with us. Regards Richard On Thu, Aug 7, 2014 at 3:07 PM, Jim S

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-07 Thread Jim S
Finally figured out my problem. It seems to me that everything works fine if I use pip to install additional python packages. But if I use easy_install then I get the python errors. I 'think', but am not sure that the problem lies in some egg cache files that exist in the logged-in users

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-05 Thread Richard Vézina
Make sure everything in web2py directory is owned by www-data user : sudo chown -R www-data.www-data web2py/ Richard On Mon, Aug 4, 2014 at 7:09 PM, Jim Steil ato.st...@gmail.com wrote: Just logged in and saw that I did install unixodbc before pyodbc. Also, this all works if I run using the

[web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim S
Hi I'm getting a page that says - Internal Server Error whenever I try to access my server. Here is the background. Installed web2py/nginx/uwsgi via scripts/setup-web2py-nginx-uwsgi-ubuntu.sh had it running but was having a problem getting pyodbc working. Rebooted the server Now, whenever

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Richard Vézina
Missing dependencies... Is the nginx-uwsgi-ubuntu script updated for 14.04 ?? Richard On Mon, Aug 4, 2014 at 3:33 PM, Jim S j...@qlf.com wrote: Hi I'm getting a page that says - Internal Server Error whenever I try to access my server. Here is the background. Installed

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
I don't know. Like I said, it worked until I rebooted after installing pyodbc. Well, I rebooted because it wouldn't import pyodbc. I'm going to wipe the server and try again 'after' installing pyodbc. -Jim On Mon, Aug 4, 2014 at 2:57 PM, Richard Vézina ml.richard.vez...@gmail.com wrote:

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Richard Vézina
conflic between libs... Try remove pyodbc... You can also just try to start uwsgi manually, maybe the startup script is not setup correctly... sudo start uwsgi-emperor Richard On Mon, Aug 4, 2014 at 3:59 PM, Jim Steil ato.st...@gmail.com wrote: I don't know. Like I said, it worked until

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
Removed pyodbc and restarted uwsgi fixed it. But, I still need pyodbc in my app. Any ideas? -Jim On Mon, Aug 4, 2014 at 3:03 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: conflic between libs... Try remove pyodbc... You can also just try to start uwsgi manually, maybe the

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Richard Vézina
virtualenv Why you need it? Maybe you can remove this dependencies and use only pgcog2?? Richard On Mon, Aug 4, 2014 at 4:09 PM, Jim Steil ato.st...@gmail.com wrote: Removed pyodbc and restarted uwsgi fixed it. But, I still need pyodbc in my app. Any ideas? -Jim On Mon, Aug 4, 2014

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
Accessing data on an AS/400. On Mon, Aug 4, 2014 at 3:12 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: virtualenv Why you need it? Maybe you can remove this dependencies and use only pgcog2?? Richard On Mon, Aug 4, 2014 at 4:09 PM, Jim Steil ato.st...@gmail.com wrote: Removed

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Richard Vézina
Hmm I see... So you need to identify where the conflic come from... Is pyodbc installing other packages that cause issue... Richard On Mon, Aug 4, 2014 at 4:12 PM, Jim Steil ato.st...@gmail.com wrote: Accessing data on an AS/400. On Mon, Aug 4, 2014 at 3:12 PM, Richard Vézina

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Richard Vézina
https://code.google.com/p/pyodbc/wiki/FAQs Search in page for dependency, seems there is something special to do with ubutnu requiring unixodbc to be install before pyodbc... Richard On Mon, Aug 4, 2014 at 4:18 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hmm I see... So you need to

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Richard Vézina
Also, the error you were having doesn't look like it coming from uswgi, because nginx says bad gateway message when uswgi is not working and not internal error that should coming from web2py... Richard On Mon, Aug 4, 2014 at 4:20 PM, Richard Vézina ml.richard.vez...@gmail.com wrote:

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
FWIW - it all works fine (with pyodbc installed) if I use the rocket web server. I'm going to do a clean install and install all of my dependencies before uwsgi. I'll let you know how that ends up. On Mon, Aug 4, 2014 at 3:21 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Also, the

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim S
Clean install with all dependencies in place before installing nginx/uwsgi/web2py yields the same results. It works if I don't have pyodbc installed. Any more thoughts on what I could do for debugging? -Jim -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Marin Pranjić
Did you copy wsgihandler.py inside web2py root? Marin On Mon, Aug 4, 2014 at 11:50 PM, Jim S j...@qlf.com wrote: Clean install with all dependencies in place before installing nginx/uwsgi/web2py yields the same results. It works if I don't have pyodbc installed. Any more thoughts on what

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
I did not. I used the script in the web2py/scripts directory. On Mon, Aug 4, 2014 at 5:07 PM, Marin Pranjić marin.pran...@gmail.com wrote: Did you copy wsgihandler.py inside web2py root? Marin On Mon, Aug 4, 2014 at 11:50 PM, Jim S j...@qlf.com wrote: Clean install with all

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Marin Pranjić
Is uwsgi running after restart? ps aux | grep uwsgi On Tue, Aug 5, 2014 at 12:08 AM, Jim Steil ato.st...@gmail.com wrote: I did not. I used the script in the web2py/scripts directory. On Mon, Aug 4, 2014 at 5:07 PM, Marin Pranjić marin.pran...@gmail.com wrote: Did you copy

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
appears to be. Also, keep in mind that all of this works with the rocket server... administrator@web1-14:/home/www-data/web2py$ ps aux | grep uwsgi root 788 0.0 0.1 39256 6380 ?Ss 17:15 0:00 uwsgi --master --die-on-term --emperor /etc/uwsgi --logto /var/log/uwsgi/uwsgi.log

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Marin Pranjić
Can you check again if there is wsgihandler.py inside web2py root directory? Can you make sure sockets are created inside /tmp and www-data owns them? What does nginx error log say when you try to make a request? I had a 5-hour fight with uwsgi last week. It's really hard to debug it because logs

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
I'll check those files first thing tomorrow, hinge now. There is nothing in the nginx error log. Jim On Aug 4, 2014 5:39 PM, Marin Pranjić marin.pran...@gmail.com wrote: Can you check again if there is wsgihandler.py inside web2py root directory? Can you make sure sockets are created inside

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Richard Vézina
Try install unixodbc before pyodbc as says in the link I posted above... To me, it looks like uwsgi and nginx and web2py are running but the pyodbc make web2py failing with internal error... Richard On Mon, Aug 4, 2014 at 6:38 PM, Marin Pranjić marin.pran...@gmail.com wrote: Can you check

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
Sorry, missed that not from you. Will try tomorrow. Jim On Aug 4, 2014 6:00 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Try install unixodbc before pyodbc as says in the link I posted above... To me, it looks like uwsgi and nginx and web2py are running but the pyodbc make web2py

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
Ok, couldn't wait, logged in from home. www-data does own the sockets in /tmp. wsgihandler.py is in the web2py root directory. On Mon, Aug 4, 2014 at 5:38 PM, Marin Pranjić marin.pran...@gmail.com wrote: Can you check again if there is wsgihandler.py inside web2py root directory? Can you

Re: [web2py] Nginx and uwsgi Internal Server Error

2014-08-04 Thread Jim Steil
Just logged in and saw that I did install unixodbc before pyodbc. Also, this all works if I run using the rocket web server instead of nginx/uwsgi. -Jim On Mon, Aug 4, 2014 at 5:59 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Try install unixodbc before pyodbc as says in the link I