TravisFSmith / SweetSecurity

Network Security Monitoring on Raspberry Pi type devices
Apache License 2.0
777 stars 190 forks source link

error 500 after install on ubuntu 16.04 #54

Open westerbros123 opened 5 years ago

westerbros123 commented 5 years ago

I've been trying to get this to work over the last several days but the closest I get is having the apache server return a 500 error after I log in using the credentials I chose. Has anyone else gotten this issue before? I followed all the instructions I believe exactly. Is there something simple I am missing? Thanks

westerbros123 commented 5 years ago

error:

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

ovadweet commented 5 years ago

I am getting the same error too any help? seem like there is something wrong regarding flask here is my apache logs

`Wed Jun 26 18:43:03.536918 2019] [mpm_event:notice] [pid 18570:tid 140458838603648] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Wed Jun 26 18:43:03.537169 2019] [core:notice] [pid 18570:tid 140458838603648] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 26 18:43:05.885163 2019] [mpm_event:notice] [pid 18570:tid 140458838603648] AH00493: SIGUSR1 received. Doing graceful restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [Wed Jun 26 18:43:05.895235 2019] [mpm_event:notice] [pid 18570:tid 140458838603648] AH00489: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Wed Jun 26 18:43:05.895257 2019] [core:notice] [pid 18570:tid 140458838603648] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 26 18:43:06.814608 2019] [mpm_event:notice] [pid 18570:tid 140458838603648] AH00491: caught SIGTERM, shutting down [Wed Jun 26 18:43:08.011111 2019] [wsgi:warn] [pid 18925:tid 140230579332992] mod_wsgi: Compiled for Python/2.7.11. [Wed Jun 26 18:43:08.011259 2019] [wsgi:warn] [pid 18925:tid 140230579332992] mod_wsgi: Runtime using Python/2.7.12. [Wed Jun 26 18:43:08.012766 2019] [mpm_event:notice] [pid 18925:tid 140230579332992] AH00489: Apache/2.4.18 (Ubuntu) mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations [Wed Jun 26 18:43:08.012826 2019] [core:notice] [pid 18925:tid 140230579332992] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 26 19:10:36.061215 2019] [mpm_event:notice] [pid 18925:tid 140230579332992] AH00491: caught SIGTERM, shutting down [Wed Jun 26 19:10:37.318823 2019] [ssl:warn] [pid 32072:tid 140215641155456] AH01906: 127.0.1.1:5602:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:10:37.318945 2019] [ssl:warn] [pid 32072:tid 140215641155456] AH01909: 127.0.1.1:5602:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:10:37.319394 2019] [ssl:error] [pid 32072:tid 140215641155456] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:10:37.319410 2019] [ssl:error] [pid 32072:tid 140215641155456] AH02604: Unable to configure certificate 127.0.1.1:5602:0 for stapling [Wed Jun 26 19:10:37.320130 2019] [ssl:warn] [pid 32072:tid 140215641155456] AH01906: 127.0.1.1:9201:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:10:37.320147 2019] [ssl:warn] [pid 32072:tid 140215641155456] AH01909: 127.0.1.1:9201:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:10:37.320388 2019] [ssl:error] [pid 32072:tid 140215641155456] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:10:37.320401 2019] [ssl:error] [pid 32072:tid 140215641155456] AH02604: Unable to configure certificate 127.0.1.1:9201:0 for stapling [Wed Jun 26 19:10:37.321188 2019] [ssl:warn] [pid 32072:tid 140215641155456] AH01906: 127.0.1.1:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:10:37.321241 2019] [ssl:warn] [pid 32072:tid 140215641155456] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:10:37.321552 2019] [ssl:error] [pid 32072:tid 140215641155456] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:10:37.321567 2019] [ssl:error] [pid 32072:tid 140215641155456] AH02604: Unable to configure certificate 127.0.1.1:443:0 for stapling [Wed Jun 26 19:10:37.345005 2019] [ssl:warn] [pid 32073:tid 140215641155456] AH01906: 127.0.1.1:5602:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:10:37.345055 2019] [ssl:warn] [pid 32073:tid 140215641155456] AH01909: 127.0.1.1:5602:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:10:37.345277 2019] [ssl:error] [pid 32073:tid 140215641155456] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:10:37.345288 2019] [ssl:error] [pid 32073:tid 140215641155456] AH02604: Unable to configure certificate 127.0.1.1:5602:0 for stapling [Wed Jun 26 19:10:37.345671 2019] [ssl:warn] [pid 32073:tid 140215641155456] AH01906: 127.0.1.1:9201:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:10:37.345682 2019] [ssl:warn] [pid 32073:tid 140215641155456] AH01909: 127.0.1.1:9201:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:10:37.345853 2019] [ssl:error] [pid 32073:tid 140215641155456] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:10:37.345863 2019] [ssl:error] [pid 32073:tid 140215641155456] AH02604: Unable to configure certificate 127.0.1.1:9201:0 for stapling [Wed Jun 26 19:10:37.346383 2019] [ssl:warn] [pid 32073:tid 140215641155456] AH01906: 127.0.1.1:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:10:37.346412 2019] [ssl:warn] [pid 32073:tid 140215641155456] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:10:37.346573 2019] [ssl:error] [pid 32073:tid 140215641155456] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:10:37.346583 2019] [ssl:error] [pid 32073:tid 140215641155456] AH02604: Unable to configure certificate 127.0.1.1:443:0 for stapling [Wed Jun 26 19:10:37.346709 2019] [wsgi:warn] [pid 32073:tid 140215641155456] mod_wsgi: Compiled for Python/2.7.11. [Wed Jun 26 19:10:37.346735 2019] [wsgi:warn] [pid 32073:tid 140215641155456] mod_wsgi: Runtime using Python/2.7.12. [Wed Jun 26 19:10:37.348288 2019] [mpm_event:notice] [pid 32073:tid 140215641155456] AH00489: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations [Wed Jun 26 19:10:37.348361 2019] [core:notice] [pid 32073:tid 140215641155456] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 26 19:13:16.082129 2019] [wsgi:error] [pid 32077:tid 140215331002112] ERROR:webapp:Exception on / [GET] [Wed Jun 26 19:13:16.082193 2019] [wsgi:error] [pid 32077:tid 140215331002112] Traceback (most recent call last): [Wed Jun 26 19:13:16.082205 2019] [wsgi:error] [pid 32077:tid 140215331002112] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app [Wed Jun 26 19:13:16.082215 2019] [wsgi:error] [pid 32077:tid 140215331002112] response = self.full_dispatch_request() [Wed Jun 26 19:13:16.082224 2019] [wsgi:error] [pid 32077:tid 140215331002112] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request [Wed Jun 26 19:13:16.082234 2019] [wsgi:error] [pid 32077:tid 140215331002112] rv = self.handle_user_exception(e) [Wed Jun 26 19:13:16.082243 2019] [wsgi:error] [pid 32077:tid 140215331002112] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception [Wed Jun 26 19:13:16.082253 2019] [wsgi:error] [pid 32077:tid 140215331002112] reraise(exc_type, exc_value, tb) [Wed Jun 26 19:13:16.082262 2019] [wsgi:error] [pid 32077:tid 140215331002112] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request [Wed Jun 26 19:13:16.082289 2019] [wsgi:error] [pid 32077:tid 140215331002112] rv = self.dispatch_request() [Wed Jun 26 19:13:16.082300 2019] [wsgi:error] [pid 32077:tid 140215331002112] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request [Wed Jun 26 19:13:16.082309 2019] [wsgi:error] [pid 32077:tid 140215331002112] return self.view_functionsrule.endpoint [Wed Jun 26 19:13:16.082318 2019] [wsgi:error] [pid 32077:tid 140215331002112] File "/var/www/webapp/webapp/init.py", line 71, in home_page [Wed Jun 26 19:13:16.082326 2019] [wsgi:error] [pid 32077:tid 140215331002112] if allAlerts['hits']['total'] > 0: [Wed Jun 26 19:13:16.082335 2019] [wsgi:error] [pid 32077:tid 140215331002112] TypeError: 'NoneType' object has no attribute 'getitem' [Wed Jun 26 19:17:04.256236 2019] [wsgi:error] [pid 32076:tid 140215431714560] ERROR:webapp:Exception on / [GET] [Wed Jun 26 19:17:04.256311 2019] [wsgi:error] [pid 32076:tid 140215431714560] Traceback (most recent call last): [Wed Jun 26 19:17:04.256324 2019] [wsgi:error] [pid 32076:tid 140215431714560] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app [Wed Jun 26 19:17:04.256334 2019] [wsgi:error] [pid 32076:tid 140215431714560] response = self.full_dispatch_request() [Wed Jun 26 19:17:04.256344 2019] [wsgi:error] [pid 32076:tid 140215431714560] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request [Wed Jun 26 19:17:04.256354 2019] [wsgi:error] [pid 32076:tid 140215431714560] rv = self.handle_user_exception(e) [Wed Jun 26 19:17:04.256363 2019] [wsgi:error] [pid 32076:tid 140215431714560] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception [Wed Jun 26 19:17:04.256372 2019] [wsgi:error] [pid 32076:tid 140215431714560] reraise(exc_type, exc_value, tb) [Wed Jun 26 19:17:04.256381 2019] [wsgi:error] [pid 32076:tid 140215431714560] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request [Wed Jun 26 19:17:04.256390 2019] [wsgi:error] [pid 32076:tid 140215431714560] rv = self.dispatch_request() [Wed Jun 26 19:17:04.256399 2019] [wsgi:error] [pid 32076:tid 140215431714560] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request [Wed Jun 26 19:17:04.256408 2019] [wsgi:error] [pid 32076:tid 140215431714560] return self.view_functionsrule.endpoint [Wed Jun 26 19:17:04.256417 2019] [wsgi:error] [pid 32076:tid 140215431714560] File "/var/www/webapp/webapp/init.py", line 71, in home_page [Wed Jun 26 19:17:04.256426 2019] [wsgi:error] [pid 32076:tid 140215431714560] if allAlerts['hits']['total'] > 0: [Wed Jun 26 19:17:04.256435 2019] [wsgi:error] [pid 32076:tid 140215431714560] TypeError: 'NoneType' object has no attribute 'getitem' [Wed Jun 26 19:17:21.599010 2019] [wsgi:error] [pid 32076:tid 140215389751040] ERROR:webapp:Exception on / [GET] [Wed Jun 26 19:17:21.599114 2019] [wsgi:error] [pid 32076:tid 140215389751040] Traceback (most recent call last): [Wed Jun 26 19:17:21.599146 2019] [wsgi:error] [pid 32076:tid 140215389751040] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app [Wed Jun 26 19:17:21.599170 2019] [wsgi:error] [pid 32076:tid 140215389751040] response = self.full_dispatch_request() [Wed Jun 26 19:17:21.599192 2019] [wsgi:error] [pid 32076:tid 140215389751040] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request [Wed Jun 26 19:17:21.599215 2019] [wsgi:error] [pid 32076:tid 140215389751040] rv = self.handle_user_exception(e) [Wed Jun 26 19:17:21.599237 2019] [wsgi:error] [pid 32076:tid 140215389751040] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception [Wed Jun 26 19:17:21.599253 2019] [wsgi:error] [pid 32076:tid 140215389751040] reraise(exc_type, exc_value, tb) [Wed Jun 26 19:17:21.599287 2019] [wsgi:error] [pid 32076:tid 140215389751040] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request [Wed Jun 26 19:17:21.599298 2019] [wsgi:error] [pid 32076:tid 140215389751040] rv = self.dispatch_request() [Wed Jun 26 19:17:21.599307 2019] [wsgi:error] [pid 32076:tid 140215389751040] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request [Wed Jun 26 19:17:21.599316 2019] [wsgi:error] [pid 32076:tid 140215389751040] return self.view_functionsrule.endpoint [Wed Jun 26 19:17:21.599329 2019] [wsgi:error] [pid 32076:tid 140215389751040] File "/var/www/webapp/webapp/init.py", line 71, in home_page [Wed Jun 26 19:17:21.599348 2019] [wsgi:error] [pid 32076:tid 140215389751040] if allAlerts['hits']['total'] > 0: [Wed Jun 26 19:17:21.599401 2019] [wsgi:error] [pid 32076:tid 140215389751040] TypeError: 'NoneType' object has no attribute 'getitem' [Wed Jun 26 19:27:02.302358 2019] [mpm_event:notice] [pid 32073:tid 140215641155456] AH00491: caught SIGTERM, shutting down [Wed Jun 26 19:28:42.007285 2019] [ssl:warn] [pid 1345:tid 140694933542784] AH01906: 127.0.1.1:5602:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:28:42.007445 2019] [ssl:warn] [pid 1345:tid 140694933542784] AH01909: 127.0.1.1:5602:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:28:42.008861 2019] [ssl:error] [pid 1345:tid 140694933542784] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:28:42.008876 2019] [ssl:error] [pid 1345:tid 140694933542784] AH02604: Unable to configure certificate 127.0.1.1:5602:0 for stapling [Wed Jun 26 19:28:42.009149 2019] [ssl:warn] [pid 1345:tid 140694933542784] AH01906: 127.0.1.1:9201:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:28:42.009163 2019] [ssl:warn] [pid 1345:tid 140694933542784] AH01909: 127.0.1.1:9201:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:28:42.009275 2019] [ssl:error] [pid 1345:tid 140694933542784] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:28:42.009312 2019] [ssl:error] [pid 1345:tid 140694933542784] AH02604: Unable to configure certificate 127.0.1.1:9201:0 for stapling [Wed Jun 26 19:28:42.009596 2019] [ssl:warn] [pid 1345:tid 140694933542784] AH01906: 127.0.1.1:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:28:42.009615 2019] [ssl:warn] [pid 1345:tid 140694933542784] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:28:42.009795 2019] [ssl:error] [pid 1345:tid 140694933542784] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:28:42.009810 2019] [ssl:error] [pid 1345:tid 140694933542784] AH02604: Unable to configure certificate 127.0.1.1:443:0 for stapling [Wed Jun 26 19:28:42.028509 2019] [ssl:warn] [pid 1346:tid 140694933542784] AH01906: 127.0.1.1:5602:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:28:42.028538 2019] [ssl:warn] [pid 1346:tid 140694933542784] AH01909: 127.0.1.1:5602:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:28:42.028663 2019] [ssl:error] [pid 1346:tid 140694933542784] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:28:42.028716 2019] [ssl:error] [pid 1346:tid 140694933542784] AH02604: Unable to configure certificate 127.0.1.1:5602:0 for stapling [Wed Jun 26 19:28:42.028977 2019] [ssl:warn] [pid 1346:tid 140694933542784] AH01906: 127.0.1.1:9201:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:28:42.028989 2019] [ssl:warn] [pid 1346:tid 140694933542784] AH01909: 127.0.1.1:9201:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:28:42.029090 2019] [ssl:error] [pid 1346:tid 140694933542784] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:28:42.029101 2019] [ssl:error] [pid 1346:tid 140694933542784] AH02604: Unable to configure certificate 127.0.1.1:9201:0 for stapling [Wed Jun 26 19:28:42.029365 2019] [ssl:warn] [pid 1346:tid 140694933542784] AH01906: 127.0.1.1:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Wed Jun 26 19:28:42.029378 2019] [ssl:warn] [pid 1346:tid 140694933542784] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name [Wed Jun 26 19:28:42.029478 2019] [ssl:error] [pid 1346:tid 140694933542784] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: L=Portland,ST=OR,C=US / issuer: L=Portland,ST=OR,C=US / serial: FBE96F1E9295662C / notbefore: Jun 26 23:08:01 2019 GMT / notafter: Jun 25 23:08:01 2020 GMT] [Wed Jun 26 19:28:42.029488 2019] [ssl:error] [pid 1346:tid 140694933542784] AH02604: Unable to configure certificate 127.0.1.1:443:0 for stapling [Wed Jun 26 19:28:42.037528 2019] [wsgi:warn] [pid 1346:tid 140694933542784] mod_wsgi: Compiled for Python/2.7.11. [Wed Jun 26 19:28:42.037552 2019] [wsgi:warn] [pid 1346:tid 140694933542784] mod_wsgi: Runtime using Python/2.7.12. [Wed Jun 26 19:28:42.039300 2019] [mpm_event:notice] [pid 1346:tid 140694933542784] AH00489: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g mod_wsgi/4.3.0 Python/2.7.12 configured -- resuming normal operations [Wed Jun 26 19:28:42.039347 2019] [core:notice] [pid 1346:tid 140694933542784] AH00094: Command line: '/usr/sbin/apache2' [Wed Jun 26 19:28:49.891373 2019] [wsgi:error] [pid 1349:tid 140694723221248] WARNING:elasticsearch:POST http://localhost:9200/sweet_security/sensors [status:N/A request:0.001s] [Wed Jun 26 19:28:49.891405 2019] [wsgi:error] [pid 1349:tid 140694723221248] Traceback (most recent call last): [Wed Jun 26 19:28:49.891410 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 232, in perform_request [Wed Jun 26 19:28:49.891415 2019] [wsgi:error] [pid 1349:tid 140694723221248] method, url, body, retries=Retry(False), headers=request_headers, kw [Wed Jun 26 19:28:49.891420 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 641, in urlopen [Wed Jun 26 19:28:49.891424 2019] [wsgi:error] [pid 1349:tid 140694723221248] _stacktrace=sys.exc_info()[2]) [Wed Jun 26 19:28:49.891428 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 344, in increment [Wed Jun 26 19:28:49.891433 2019] [wsgi:error] [pid 1349:tid 140694723221248] raise six.reraise(type(error), error, _stacktrace) [Wed Jun 26 19:28:49.891437 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 603, in urlopen [Wed Jun 26 19:28:49.891441 2019] [wsgi:error] [pid 1349:tid 140694723221248] chunked=chunked) [Wed Jun 26 19:28:49.891445 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 355, in _make_request [Wed Jun 26 19:28:49.891473 2019] [wsgi:error] [pid 1349:tid 140694723221248] conn.request(method, url, httplib_request_kw) [Wed Jun 26 19:28:49.891479 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1057, in request [Wed Jun 26 19:28:49.891484 2019] [wsgi:error] [pid 1349:tid 140694723221248] self._send_request(method, url, body, headers) [Wed Jun 26 19:28:49.891488 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request [Wed Jun 26 19:28:49.891492 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.endheaders(body) [Wed Jun 26 19:28:49.891497 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders [Wed Jun 26 19:28:49.891501 2019] [wsgi:error] [pid 1349:tid 140694723221248] self._send_output(message_body) [Wed Jun 26 19:28:49.891505 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 897, in _send_output [Wed Jun 26 19:28:49.891509 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.send(msg) [Wed Jun 26 19:28:49.891513 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 859, in send [Wed Jun 26 19:28:49.891517 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.connect() [Wed Jun 26 19:28:49.891521 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 183, in connect [Wed Jun 26 19:28:49.891526 2019] [wsgi:error] [pid 1349:tid 140694723221248] conn = self._new_conn() [Wed Jun 26 19:28:49.891530 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 169, in _new_conn [Wed Jun 26 19:28:49.891534 2019] [wsgi:error] [pid 1349:tid 140694723221248] self, "Failed to establish a new connection: %s" % e) [Wed Jun 26 19:28:49.891538 2019] [wsgi:error] [pid 1349:tid 140694723221248] NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff5fd3490d0>: Failed to establish a new connection: [Errno 111] Connection refused [Wed Jun 26 19:28:50.893859 2019] [wsgi:error] [pid 1349:tid 140694723221248] WARNING:elasticsearch:POST http://localhost:9200/sweet_security/sensors [status:N/A request:0.001s] [Wed Jun 26 19:28:50.893903 2019] [wsgi:error] [pid 1349:tid 140694723221248] Traceback (most recent call last): [Wed Jun 26 19:28:50.893908 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 232, in perform_request [Wed Jun 26 19:28:50.893913 2019] [wsgi:error] [pid 1349:tid 140694723221248] method, url, body, retries=Retry(False), headers=request_headers, kw [Wed Jun 26 19:28:50.893918 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 641, in urlopen [Wed Jun 26 19:28:50.893922 2019] [wsgi:error] [pid 1349:tid 140694723221248] _stacktrace=sys.exc_info()[2]) [Wed Jun 26 19:28:50.893925 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 344, in increment [Wed Jun 26 19:28:50.893929 2019] [wsgi:error] [pid 1349:tid 140694723221248] raise six.reraise(type(error), error, _stacktrace) [Wed Jun 26 19:28:50.893933 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 603, in urlopen [Wed Jun 26 19:28:50.893937 2019] [wsgi:error] [pid 1349:tid 140694723221248] chunked=chunked) [Wed Jun 26 19:28:50.893941 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 355, in _make_request [Wed Jun 26 19:28:50.893945 2019] [wsgi:error] [pid 1349:tid 140694723221248] conn.request(method, url, httplib_request_kw) [Wed Jun 26 19:28:50.893949 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1057, in request [Wed Jun 26 19:28:50.893983 2019] [wsgi:error] [pid 1349:tid 140694723221248] self._send_request(method, url, body, headers) [Wed Jun 26 19:28:50.893988 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request [Wed Jun 26 19:28:50.893993 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.endheaders(body) [Wed Jun 26 19:28:50.893997 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders [Wed Jun 26 19:28:50.894001 2019] [wsgi:error] [pid 1349:tid 140694723221248] self._send_output(message_body) [Wed Jun 26 19:28:50.894004 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 897, in _send_output [Wed Jun 26 19:28:50.894008 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.send(msg) [Wed Jun 26 19:28:50.894012 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 859, in send [Wed Jun 26 19:28:50.894016 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.connect() [Wed Jun 26 19:28:50.894020 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 183, in connect [Wed Jun 26 19:28:50.894024 2019] [wsgi:error] [pid 1349:tid 140694723221248] conn = self._new_conn() [Wed Jun 26 19:28:50.894027 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 169, in _new_conn [Wed Jun 26 19:28:50.894031 2019] [wsgi:error] [pid 1349:tid 140694723221248] self, "Failed to establish a new connection: %s" % e) [Wed Jun 26 19:28:50.894036 2019] [wsgi:error] [pid 1349:tid 140694723221248] NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff5fd349290>: Failed to establish a new connection: [Errno 111] Connection refused [Wed Jun 26 19:28:53.895763 2019] [wsgi:error] [pid 1349:tid 140694723221248] WARNING:elasticsearch:POST http://localhost:9200/sweet_security/sensors [status:N/A request:0.001s] [Wed Jun 26 19:28:53.895803 2019] [wsgi:error] [pid 1349:tid 140694723221248] Traceback (most recent call last): [Wed Jun 26 19:28:53.895809 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 232, in perform_request [Wed Jun 26 19:28:53.895814 2019] [wsgi:error] [pid 1349:tid 140694723221248] method, url, body, retries=Retry(False), headers=request_headers, kw [Wed Jun 26 19:28:53.895818 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 641, in urlopen [Wed Jun 26 19:28:53.895823 2019] [wsgi:error] [pid 1349:tid 140694723221248] _stacktrace=sys.exc_info()[2]) [Wed Jun 26 19:28:53.895827 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 344, in increment [Wed Jun 26 19:28:53.895831 2019] [wsgi:error] [pid 1349:tid 140694723221248] raise six.reraise(type(error), error, _stacktrace) [Wed Jun 26 19:28:53.895836 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 603, in urlopen [Wed Jun 26 19:28:53.895840 2019] [wsgi:error] [pid 1349:tid 140694723221248] chunked=chunked) [Wed Jun 26 19:28:53.895844 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 355, in _make_request [Wed Jun 26 19:28:53.895849 2019] [wsgi:error] [pid 1349:tid 140694723221248] conn.request(method, url, httplib_request_kw) [Wed Jun 26 19:28:53.895853 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1057, in request [Wed Jun 26 19:28:53.895857 2019] [wsgi:error] [pid 1349:tid 140694723221248] self._send_request(method, url, body, headers) [Wed Jun 26 19:28:53.895875 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request [Wed Jun 26 19:28:53.895880 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.endheaders(body) [Wed Jun 26 19:28:53.895884 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders [Wed Jun 26 19:28:53.895889 2019] [wsgi:error] [pid 1349:tid 140694723221248] self._send_output(message_body) [Wed Jun 26 19:28:53.895893 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 897, in _send_output [Wed Jun 26 19:28:53.895897 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.send(msg) [Wed Jun 26 19:28:53.895901 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/lib/python2.7/httplib.py", line 859, in send [Wed Jun 26 19:28:53.895905 2019] [wsgi:error] [pid 1349:tid 140694723221248] self.connect() [Wed Jun 26 19:28:53.895909 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 183, in connect [Wed Jun 26 19:28:53.895914 2019] [wsgi:error] [pid 1349:tid 140694723221248] conn = self._new_conn() [Wed Jun 26 19:28:53.895918 2019] [wsgi:error] [pid 1349:tid 140694723221248] File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py", line 169, in _new_conn [Wed Jun 26 19:28:53.895922 2019] [wsgi:error] [pid 1349:tid 140694723221248] self, "Failed to establish a new connection: %s" % e) [Wed Jun 26 19:28:53.895927 2019] [wsgi:error] [pid 1349:tid 140694723221248] NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff5fd349210>: Failed to establish a new connection: [Errno 111] Connection refused [Wed Jun 26 19:31:17.393017 2019] [wsgi:error] [pid 1349:tid 140694698043136] ERROR:webapp:Exception on / [GET] [Wed Jun 26 19:31:17.393083 2019] [wsgi:error] [pid 1349:tid 140694698043136] Traceback (most recent call last): [Wed Jun 26 19:31:17.393095 2019] [wsgi:error] [pid 1349:tid 140694698043136] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app [Wed Jun 26 19:31:17.393105 2019] [wsgi:error] [pid 1349:tid 140694698043136] response = self.full_dispatch_request() [Wed Jun 26 19:31:17.393115 2019] [wsgi:error] [pid 1349:tid 140694698043136] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request [Wed Jun 26 19:31:17.393124 2019] [wsgi:error] [pid 1349:tid 140694698043136] rv = self.handle_user_exception(e) [Wed Jun 26 19:31:17.393133 2019] [wsgi:error] [pid 1349:tid 140694698043136] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception [Wed Jun 26 19:31:17.393142 2019] [wsgi:error] [pid 1349:tid 140694698043136] reraise(exc_type, exc_value, tb) [Wed Jun 26 19:31:17.393151 2019] [wsgi:error] [pid 1349:tid 140694698043136] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request [Wed Jun 26 19:31:17.393160 2019] [wsgi:error] [pid 1349:tid 140694698043136] rv = self.dispatch_request() [Wed Jun 26 19:31:17.393170 2019] [wsgi:error] [pid 1349:tid 140694698043136] File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request [Wed Jun 26 19:31:17.393179 2019] [wsgi:error] [pid 1349:tid 140694698043136] return self.view_functionsrule.endpoint [Wed Jun 26 19:31:17.393188 2019] [wsgi:error] [pid 1349:tid 140694698043136] File "/var/www/webapp/webapp/init.py", line 71, in home_page [Wed Jun 26 19:31:17.393197 2019] [wsgi:error] [pid 1349:tid 140694698043136] if allAlerts['hits']['total'] > 0: [Wed Jun 26 19:31:17.393206 2019] [wsgi:error] [pid 1349:tid 140694698043136] TypeError: 'NoneType' object has no attribute 'getitem'

erikjjpost commented 4 years ago

anyone got this fixed ?