Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error - UI Attacks #829

Open
jtoalu opened this issue Nov 22, 2021 · 5 comments
Open

Internal Server Error - UI Attacks #829

jtoalu opened this issue Nov 22, 2021 · 5 comments

Comments

@jtoalu
Copy link

jtoalu commented Nov 22, 2021

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
Copy link
Collaborator

What steps have you taken to resolve this?

@jtoalu
Copy link
Author

jtoalu commented Nov 22, 2021

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
Copy link
Author

jtoalu commented Nov 25, 2021

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
Copy link

himuura commented Jan 18, 2022

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
Copy link
Author

jtoalu commented Jan 18, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants