I am using a small server with nginx and a python flask app on aws, and uwsgi. It has already happened twice that the server went down with error 500, and no logs on behalf of nginx. I am not expert, could you please help in figuring why the following happen?
it looks like the server 'randomly'(?) stops with this error:
(I activated debug in error_log /pathtomylog/error.log debug in nginx.conf file to be able to see it):
2015/12/02 22:05:12 [debug] 19006#0: *1 http upstream process header
2015/12/02 22:05:12 [debug] 19006#0: *1 malloc: 0000000001D24CE0:4096
2015/12/02 22:05:12 [debug] 19006#0: *1 recv: fd:11 104 of 4096
2015/12/02 22:05:12 [debug] 19006#0: *1 http uwsgi status 500 "500 Internal Serv
er Error"
2015/12/02 22:05:12 [debug] 19006#0: *1 http uwsgi header: "Connection: close"
2015/12/02 22:05:12 [debug] 19006#0: *1 http uwsgi header: "Content-Type: text/p
lain"
2015/12/02 22:05:12 [debug] 19006#0: *1 http uwsgi header done
2015/12/02 22:05:12 [debug] 19006#0: *1 xslt filter header
2015/12/02 22:05:12 [debug] 19006#0: *1 HTTP/1.1 500 Internal Server Error
I tried to kill all the workers of uswgi. I tried to restart nginx. RAM memory looks still ok, and deactivated swapping for the sake of ElasticSearch (yes, I am using it on 1gb ram, but for the size of my index it did not complained yet).
Could you also point to a reference on how to set up an alarm or something? Since the error happened twice without having modified by conf files neither the app, static files are served ok, the API ending point not, I thought it be related to uswgi, but cannot figure out.
I am not an expert in server configuration and it is really a full of technical details world! Please help in districate in the jungle :)