error logging with nginx and uWSGI

204 views
Skip to first unread message

Larry Martell

unread,
Apr 23, 2015, 2:05:39 PM4/23/15
to django...@googlegroups.com
This is not really a django question, but I think these are issues
folks here have faced, so I hope someone can help me.

Prior to now, all the django projects I've worked on have used apache
and WSGI. With those, when an error occurred I went to
/var/log/httpd/error_log and details of the error were clearly there.

Now for the first time I am working on a project using nginx and
uWSGI. Here, the /var/log/nginx/error_log is always empty. And the
uWSGI logs have some messages, but nothing about any errors. In this
setup where would I go to find the errors that
/var/log/httpd/error_log logs? Is there some config setting that is
suppressing the nginx errors?

Andrew Farrell

unread,
Apr 23, 2015, 2:45:13 PM4/23/15
to django...@googlegroups.com
Hi Larry,

What does 
cd /etc/nginx && ag log
Give you?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACwCsY5aoz8ZS7dJR%2BUh%3DSPs9mNp%2BCsiVJv7VE5y3EO6JMQD1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Larry Martell

unread,
Apr 23, 2015, 3:08:59 PM4/23/15
to django...@googlegroups.com
On Thu, Apr 23, 2015 at 2:44 PM, Andrew Farrell <armors...@gmail.com> wrote:
> Hi Larry,
>
> What does
> cd /etc/nginx && ag log
> Give you?

Not familar with the ag command, and it's not on my system. Googling
it, it seems to be some sort of grep like tool. Grepping for log in
that dir shows this:

nginx.conf: access_log /var/log/nginx/access.log;
nginx.conf: error_log /var/log/nginx/error.log;

And as I said before, the error log is always empty:

$ ls -l /var/log/nginx/error.log
-rw-r----- 1 www-data adm 0 Apr 19 06:48 /var/log/nginx/error.log
> https://groups.google.com/d/msgid/django-users/CA%2By5TLZ-U3HwrKd4U-z-b8O%3DXW2mbfkZkhq1uDJah1gHb3LiEA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages