Re: [mezzanine-users] Default fabfile deploy, Internal Server Error
Thanks again for the help Steve! I ended up figuring it out and feel a bit silly now, I had some CDN hosted javascript inside the compress template tag resulting in an incompressible file error. My biggest question at this point is which log file should I have found that in. I'm still wondering if gunicorn produces a separate log file from niginx and supervisor. Thanks! On Sun, Mar 30, 2014 at 10:06 PM, Josh Cartmell joshcar...@gmail.comwrote: Thanks for giving it a shot Steve! I didn't get it to work yet (since it was just a non production demo I was satisfied to leave it with DEBUG True). I'll triple check those things in the morning and let you know how it goes. By the way, does gunicorn have a log of it's own or is it logged with nginx and/or supervisor? On Sun, Mar 30, 2014 at 4:16 PM, Stephen McDonald st...@jupo.org wrote: I can't reproduce this - just did deploy of Mezzanine 3.0.9 to a fresh ubuntu 12.04 machine without any issue. Only thing I can think of is some mismatch between ALLOWED_HOSTS, Site objects, and NGINX config - triple check those since the behaviour changes with DEBUG False. On Sat, Mar 29, 2014 at 5:25 AM, Josh Cartmell joshcar...@gmail.comwrote: I'm working on putting a dev server up for a client (to show them my progress) and figured I could do that quickly with the bundled fabfile and a VPS from Digital Ocean. I'm using essentially unmodified deploy config (I commented out some SSL stuff in the nginx config) and the VPS is 64 bit Ubuntu 12.0.4. If I set DEBUG = True the site runs fine, but when it is false the site just says Internal Server Error. I've checked the nginx and supervisor logs and nothing shows up in either when the site produces the error. Does gunicorn have a logfile and if so where is it? I also tried 64 bit Debian 7, and that also resulted in Internal Server Errors. Thanks! -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Default fabfile deploy, Internal Server Error
I'm interested in the gunicorn logging question as well. I had a similar issue as yours Josh and ended up putting the following line in the gunicorn.conf.py file of my project in order to get some logged output that led me to the cause of the error. errorlog = /tmp/gunicorn.error.log On Monday, March 31, 2014 2:35:48 PM UTC-5, Josh Cartmell wrote: Thanks again for the help Steve! I ended up figuring it out and feel a bit silly now, I had some CDN hosted javascript inside the compress template tag resulting in an incompressible file error. My biggest question at this point is which log file should I have found that in. I'm still wondering if gunicorn produces a separate log file from niginx and supervisor. Thanks! On Sun, Mar 30, 2014 at 10:06 PM, Josh Cartmell joshc...@gmail.comjavascript: wrote: Thanks for giving it a shot Steve! I didn't get it to work yet (since it was just a non production demo I was satisfied to leave it with DEBUG True). I'll triple check those things in the morning and let you know how it goes. By the way, does gunicorn have a log of it's own or is it logged with nginx and/or supervisor? On Sun, Mar 30, 2014 at 4:16 PM, Stephen McDonald st...@jupo.orgjavascript: wrote: I can't reproduce this - just did deploy of Mezzanine 3.0.9 to a fresh ubuntu 12.04 machine without any issue. Only thing I can think of is some mismatch between ALLOWED_HOSTS, Site objects, and NGINX config - triple check those since the behaviour changes with DEBUG False. On Sat, Mar 29, 2014 at 5:25 AM, Josh Cartmell joshc...@gmail.comjavascript: wrote: I'm working on putting a dev server up for a client (to show them my progress) and figured I could do that quickly with the bundled fabfile and a VPS from Digital Ocean. I'm using essentially unmodified deploy config (I commented out some SSL stuff in the nginx config) and the VPS is 64 bit Ubuntu 12.0.4. If I set DEBUG = True the site runs fine, but when it is false the site just says Internal Server Error. I've checked the nginx and supervisor logs and nothing shows up in either when the site produces the error. Does gunicorn have a logfile and if so where is it? I also tried 64 bit Debian 7, and that also resulted in Internal Server Errors. Thanks! -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Default fabfile deploy, Internal Server Error
Just for reference, --log-file and --error-logfile are the same http://docs.gunicorn.org/en/latest/settings.html#errorlog Cheers, Matt -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Default fabfile deploy, Internal Server Error
Thanks Matt and Doug, that's very helpful. So logging is disabled by default and then enabled if you specify a file location? On Mon, Mar 31, 2014 at 2:05 PM, Matthew Summers msummer...@gmail.comwrote: Just for reference, --log-file and --error-logfile are the same http://docs.gunicorn.org/en/latest/settings.html#errorlog Cheers, Matt -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Default fabfile deploy, Internal Server Error
As I understand supervisor will log stdout/stderr for any procs it manages under /var/log/supervisord), such as gunicorn. This is why gunicorn's own logging is disabled in the default setup. Maybe it'd be better to configure the opposite (gunicorn logs all and sends nothing to stdout/stderr), personally the log file naming convention supervisor uses is a bit annoying. On Tue, Apr 1, 2014 at 8:02 AM, Doug Evenhouse d...@evenhouseconsulting.com wrote: I'm interested in the gunicorn logging question as well. I had a similar issue as yours Josh and ended up putting the following line in the gunicorn.conf.py file of my project in order to get some logged output that led me to the cause of the error. errorlog = /tmp/gunicorn.error.log On Monday, March 31, 2014 2:35:48 PM UTC-5, Josh Cartmell wrote: Thanks again for the help Steve! I ended up figuring it out and feel a bit silly now, I had some CDN hosted javascript inside the compress template tag resulting in an incompressible file error. My biggest question at this point is which log file should I have found that in. I'm still wondering if gunicorn produces a separate log file from niginx and supervisor. Thanks! On Sun, Mar 30, 2014 at 10:06 PM, Josh Cartmell joshc...@gmail.comwrote: Thanks for giving it a shot Steve! I didn't get it to work yet (since it was just a non production demo I was satisfied to leave it with DEBUG True). I'll triple check those things in the morning and let you know how it goes. By the way, does gunicorn have a log of it's own or is it logged with nginx and/or supervisor? On Sun, Mar 30, 2014 at 4:16 PM, Stephen McDonald st...@jupo.orgwrote: I can't reproduce this - just did deploy of Mezzanine 3.0.9 to a fresh ubuntu 12.04 machine without any issue. Only thing I can think of is some mismatch between ALLOWED_HOSTS, Site objects, and NGINX config - triple check those since the behaviour changes with DEBUG False. On Sat, Mar 29, 2014 at 5:25 AM, Josh Cartmell joshc...@gmail.comwrote: I'm working on putting a dev server up for a client (to show them my progress) and figured I could do that quickly with the bundled fabfile and a VPS from Digital Ocean. I'm using essentially unmodified deploy config (I commented out some SSL stuff in the nginx config) and the VPS is 64 bit Ubuntu 12.0.4. If I set DEBUG = True the site runs fine, but when it is false the site just says Internal Server Error. I've checked the nginx and supervisor logs and nothing shows up in either when the site produces the error. Does gunicorn have a logfile and if so where is it? I also tried 64 bit Debian 7, and that also resulted in Internal Server Errors. Thanks! -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Default fabfile deploy, Internal Server Error
Thanks Steve and Matt, I'm running with DEBUG = False now which is great. I think you are spot on Steve, I see now that the supervisor directory in /var/log has three log files, and two of them appear to be specific to gunicorn. I'm guessing that will help me moving forwards, and is probably where the error messages ended up. On Mon, Mar 31, 2014 at 4:14 PM, Matthew Summers msummer...@gmail.comwrote: Josh, It seems so. Although if you're not running with --daemon stdout might come into play. In which case supervisord might handle the redirect to a file. I prefer to explicitly use a file for my use cases, and I'm not using supervisord at the moment. Cheers, Matt -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Default fabfile deploy, Internal Server Error
I can't reproduce this - just did deploy of Mezzanine 3.0.9 to a fresh ubuntu 12.04 machine without any issue. Only thing I can think of is some mismatch between ALLOWED_HOSTS, Site objects, and NGINX config - triple check those since the behaviour changes with DEBUG False. On Sat, Mar 29, 2014 at 5:25 AM, Josh Cartmell joshcar...@gmail.com wrote: I'm working on putting a dev server up for a client (to show them my progress) and figured I could do that quickly with the bundled fabfile and a VPS from Digital Ocean. I'm using essentially unmodified deploy config (I commented out some SSL stuff in the nginx config) and the VPS is 64 bit Ubuntu 12.0.4. If I set DEBUG = True the site runs fine, but when it is false the site just says Internal Server Error. I've checked the nginx and supervisor logs and nothing shows up in either when the site produces the error. Does gunicorn have a logfile and if so where is it? I also tried 64 bit Debian 7, and that also resulted in Internal Server Errors. Thanks! -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [mezzanine-users] Default fabfile deploy, Internal Server Error
Thanks for giving it a shot Steve! I didn't get it to work yet (since it was just a non production demo I was satisfied to leave it with DEBUG True). I'll triple check those things in the morning and let you know how it goes. By the way, does gunicorn have a log of it's own or is it logged with nginx and/or supervisor? On Sun, Mar 30, 2014 at 4:16 PM, Stephen McDonald st...@jupo.org wrote: I can't reproduce this - just did deploy of Mezzanine 3.0.9 to a fresh ubuntu 12.04 machine without any issue. Only thing I can think of is some mismatch between ALLOWED_HOSTS, Site objects, and NGINX config - triple check those since the behaviour changes with DEBUG False. On Sat, Mar 29, 2014 at 5:25 AM, Josh Cartmell joshcar...@gmail.comwrote: I'm working on putting a dev server up for a client (to show them my progress) and figured I could do that quickly with the bundled fabfile and a VPS from Digital Ocean. I'm using essentially unmodified deploy config (I commented out some SSL stuff in the nginx config) and the VPS is 64 bit Ubuntu 12.0.4. If I set DEBUG = True the site runs fine, but when it is false the site just says Internal Server Error. I've checked the nginx and supervisor logs and nothing shows up in either when the site produces the error. Does gunicorn have a logfile and if so where is it? I also tried 64 bit Debian 7, and that also resulted in Internal Server Errors. Thanks! -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Mezzanine Users group. To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.