pwnlandia / mhn

Modern Honey Network
GNU Lesser General Public License v2.1
2.43k stars 630 forks source link

Internal Server Error - UI Attacks #829

Open jtoalu opened 2 years ago

jtoalu commented 2 years ago

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. http://[ip-address]/ui/attacks/

wrharding commented 2 years ago

What steps have you taken to resolve this?

jtoalu commented 2 years ago

MHN log any error message in the following files? Found the following log files in my MHN-Admin server: -rw-r----- 1 syslog adm 10715 Nov 22 07:18 syslog -rw-r----- 1 syslog adm 10377 Nov 22 06:25 syslog.1 -rw-r----- 1 syslog adm 1988 Nov 21 06:25 syslog.2.gz -rw-r----- 1 syslog adm 1333 Nov 20 06:25 syslog.3.gz -rw-r----- 1 syslog adm 1204 Nov 19 06:25 syslog.4.gz -rw-r----- 1 syslog adm 1336 Nov 18 06:25 syslog.5.gz -rw-r----- 1 syslog adm 25129 Nov 17 06:25 syslog.6.gz

jtoalu commented 2 years ago

Found the MHN log files at /var/log/mhn -rw-r--r-- 1 root root 64 Nov 16 04:51 geoloc.err -rw-r--r-- 1 root root 4096 Nov 16 06:41 geoloc.log -rw-r--r-- 1 root root 27569 Nov 25 04:25 hpfeeds-broker.err -rw-r--r-- 1 root root 0 Nov 16 04:49 hpfeeds-broker.log -rw-r--r-- 1 root root 67562 Nov 24 12:58 mhn-celery-beat.err -rw-r--r-- 1 root root 0 Nov 16 05:01 mhn-celery-beat.log -rw-r--r-- 1 www-data www-data 3691565 Nov 24 12:59 mhn-celery-worker.err -rw-r--r-- 1 www-data www-data 0 Nov 16 05:01 mhn-celery-worker.log -rw-r--r-- 1 root root 50 Nov 16 05:01 mhn-collector.err -rw-r--r-- 1 root root 358 Nov 16 05:01 mhn-collector.log -rw-r--r-- 1 root root 383936 Nov 25 07:55 mhn-uwsgi.err -rw-r--r-- 1 root root 18346 Nov 25 06:33 mhn-uwsgi.log -rw-r--r-- 1 root root 2251 Nov 25 07:55 mhn.log -rw-r--r-- 1 root root 9003 Nov 25 06:33 mhn.log.1 -rw-r--r-- 1 root root 9022 Nov 23 09:17 mhn.log.2 -rw-r--r-- 1 root root 9022 Nov 23 09:05 mhn.log.3 -rw-r--r-- 1 root root 9028 Nov 23 06:15 mhn.log.4 -rw-r--r-- 1 root root 9028 Nov 23 06:06 mhn.log.5 -rw-r--r-- 1 root root 5737522 Nov 25 07:59 mnemosyne.err -rw-r--r-- 1 root root 5737522 Nov 25 07:59 mnemosyne.log -rw-r--r-- 1 root root 0 Nov 16 04:50 mnemosyne.out

himuura commented 2 years ago

My opinion -rw-r--r-- 1 root root 2251 Nov 25 07:55 mhn.log It might not work correctly if it's not on the www-data user. Had that issue before. Same might be valid for mhn-uwsgi.log and mhn-uwsgi.err Solution:

sudo chown www-data:www.data /var/log/mhn.log sudo supervisorctl restart all

The all part isn't interely necessary but just in case.

jtoalu commented 2 years ago

Thank You for the information. It was a class project and the virtual machine has been eliminated (I had completed the course/class). However, I will keep in mind the suggested solution in case I encounter something like this in the future.