Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Internal Server Error #30

Open
minhduy1302 opened this issue Mar 19, 2021 · 6 comments
Open

Internal Server Error #30

minhduy1302 opened this issue Mar 19, 2021 · 6 comments

Comments

@minhduy1302
Copy link

I installed Easywall by APT Package Manager and all are success but when I try to open http://myIP:12227 I have "Internal Server Error"
Could you please help me ?

@jpylypiw
Copy link
Owner

Hi @minhduy1302,
thank you for creating the issue!
Can you check the files /var/log/syslog and /var/log/easywall.log for any errors?
Any information would help 😄

@minhduy1302
Copy link
Author

minhduy1302 commented Mar 19, 2021

/var/log/syslog:

Mar 19 10:03:51 ubuntu easywall-web[22721]: [pid: 22751|app: -1|req: -1/52] 172.16.8.150 () {44 vars in 793 bytes} [Fri Mar 19 10:03:51 2021] GET /favicon.ico => generated 21 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 83 bytes (2 switches on core 1)
Mar 19 10:03:51 ubuntu easywall-web[22721]: --- no python application found, check your startup logs for errors ---
Mar 19 10:03:51 ubuntu easywall-web[22721]: [pid: 22750|app: -1|req: -1/53] 172.16.8.150 () {48 vars in 887 bytes} [Fri Mar 19 10:03:51 2021] GET / => generated 21 bytes in 5 msecs (HTTP/1.1 500) 2 headers in 83 bytes (2 switches on core 0)
Mar 19 10:03:51 ubuntu easywall-web[22721]: --- no python application found, check your startup logs for errors ---
Mar 19 10:03:51 ubuntu easywall-web[22721]: [pid: 22750|app: -1|req: -1/54] 172.16.8.150 () {44 vars in 793 bytes} [Fri Mar 19 10:03:51 2021] GET /favicon.ico => generated 21 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 83 bytes (2 switches on core 1)
Mar 19 10:03:52 ubuntu easywall-web[22721]: --- no python application found, check your startup logs for errors ---
Mar 19 10:03:52 ubuntu easywall-web[22721]: [pid: 22757|app: -1|req: -1/55] 172.16.8.150 () {48 vars in 887 bytes} [Fri Mar 19 10:03:52 2021] GET / => generated 21 bytes in 8 msecs (HTTP/1.1 500) 2 headers in 83 bytes (2 switches on core 1)
Mar 19 10:03:52 ubuntu easywall-web[22721]: --- no python application found, check your startup logs for errors ---
Mar 19 10:03:52 ubuntu easywall-web[22721]: [pid: 22757|app: -1|req: -1/56] 172.16.8.150 () {44 vars in 793 bytes} [Fri Mar 19 10:03:52 2021] GET /favicon.ico => generated 21 bytes in 1 msecs (HTTP/1.1 500) 2 headers in 83 bytes (2 switches on core 0)
Mar 19 10:17:01 ubuntu CRON[22800]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

and /var/log/easywall.log

[2021-03-19 09:49:46,124] [INFO] [acceptance.py:39] Acceptance Library initialized.
 Enabled: True
 Filename: .acceptance
[2021-03-19 09:49:46,126] [INFO] [__main__.py:54] easywall has been started
[2021-03-19 09:49:49,894] [INFO] [__main__.py:240] starting easywall-web
[2021-03-19 09:49:49,895] [INFO] [__main__.py:248] loading Flask production configuration
[2021-03-19 09:49:49,902] [INFO] [__main__.py:240] starting easywall-web
[2021-03-19 09:49:49,902] [INFO] [__main__.py:248] loading Flask production configuration
[2021-03-19 09:52:45,380] [INFO] [__main__.py:240] starting easywall-web
[2021-03-19 09:52:45,381] [INFO] [__main__.py:248] loading Flask production configuration

@jpylypiw
Copy link
Owner

Okay thank you :)
Can you execute the following commands and post the output into the issue:

systemctl restart easywall-web
grep easywall-web /var/log/syslog | tail -n 50

@minhduy1302
Copy link
Author

minhduy1302 commented Mar 19, 2021

I did as you asked and here is the output:

Mar 19 13:20:19 ubuntu easywall-web[22854]: current working directory: /opt/easywall
Mar 19 13:20:19 ubuntu easywall-web[22854]: detected binary path: /usr/bin/uwsgi-core
Mar 19 13:20:19 ubuntu easywall-web[22854]: dropping root privileges as early as possible
Mar 19 13:20:19 ubuntu easywall-web[22854]: your processes number limit is 31567
Mar 19 13:20:19 ubuntu easywall-web[22854]: your memory page size is 4096 bytes
Mar 19 13:20:19 ubuntu easywall-web[22854]: detected max file descriptor number: 1024
Mar 19 13:20:19 ubuntu easywall-web[22854]: lock engine: pthread robust mutexes
Mar 19 13:20:19 ubuntu easywall-web[22854]: thunder lock: disabled (you can enable it with --thunder-lock)
Mar 19 13:20:19 ubuntu easywall-web[22854]: uwsgi socket 0 bound to TCP address 0.0.0.0:12227 fd 5
Mar 19 13:20:19 ubuntu easywall-web[22854]: dropping root privileges after socket binding
Mar 19 13:20:19 ubuntu easywall-web[22854]: Python version: 3.6.9 (default, Jan 26 2021, 15:33:00)  [GCC 8.4.0]
Mar 19 13:20:19 ubuntu easywall-web[22854]: Python main interpreter initialized at 0x55df715c7270
Mar 19 13:20:19 ubuntu easywall-web[22854]: dropping root privileges after plugin initialization
Mar 19 13:20:19 ubuntu easywall-web[22854]: python threads support enabled
Mar 19 13:20:19 ubuntu easywall-web[22854]: your server socket listen backlog is limited to 100 connections
Mar 19 13:20:19 ubuntu easywall-web[22854]: your mercy for graceful operations on workers is 60 seconds
Mar 19 13:20:19 ubuntu easywall-web[22854]: mapped 645888 bytes (630 KB) for 10 cores
Mar 19 13:20:19 ubuntu easywall-web[22854]: *** Operational MODE: preforking+threaded ***
Mar 19 13:20:19 ubuntu easywall-web[22854]: [2021-03-19 13:20:19,635] [INFO] [__main__.py:240] starting easywall-web
Mar 19 13:20:19 ubuntu easywall-web[22854]: [2021-03-19 13:20:19,635] [INFO] [__main__.py:248] loading Flask production configuration
Mar 19 13:20:19 ubuntu easywall-web[22854]: [2021-03-19 13:20:19,642] [INFO] [__main__.py:240] starting easywall-web
Mar 19 13:20:19 ubuntu easywall-web[22854]: [2021-03-19 13:20:19,642] [INFO] [__main__.py:248] loading Flask production configuration
Mar 19 13:20:19 ubuntu easywall-web[22854]: Traceback (most recent call last):
Mar 19 13:20:19 ubuntu easywall-web[22854]:   File "easywall/web/__main__.py", line 270, in <module>
Mar 19 13:20:19 ubuntu easywall-web[22854]:     MAIN = Main()
Mar 19 13:20:19 ubuntu easywall-web[22854]:   File "easywall/web/__main__.py", line 249, in __init__
Mar 19 13:20:19 ubuntu easywall-web[22854]:     APP.config.from_object('easywall.web.__main__.ProductionConfig')
Mar 19 13:20:19 ubuntu easywall-web[22854]:   File "/usr/local/lib/python3.6/dist-packages/flask/config.py", line 174, in from_object
Mar 19 13:20:19 ubuntu easywall-web[22854]:     obj = import_string(obj)
Mar 19 13:20:19 ubuntu easywall-web[22854]:   File "/usr/local/lib/python3.6/dist-packages/werkzeug/utils.py", line 568, in import_string
Mar 19 13:20:19 ubuntu easywall-web[22854]:     __import__(import_name)
Mar 19 13:20:19 ubuntu easywall-web[22854]:   File "./easywall/web/__main__.py", line 270, in <module>
Mar 19 13:20:19 ubuntu easywall-web[22854]:     MAIN = Main()
Mar 19 13:20:19 ubuntu easywall-web[22854]:   File "./easywall/web/__main__.py", line 256, in __init__
Mar 19 13:20:19 ubuntu easywall-web[22854]:     ban_seconds=self.login_bantime, ipc=True)
Mar 19 13:20:19 ubuntu easywall-web[22854]:   File "/usr/local/lib/python3.6/dist-packages/flask_ipban/ip_ban.py", line 66, in __init__
Mar 19 13:20:19 ubuntu easywall-web[22854]:     self.load_allowed()
Mar 19 13:20:19 ubuntu easywall-web[22854]:   File "/usr/local/lib/python3.6/dist-packages/flask_ipban/ip_ban.py", line 461, in load_allowed
Mar 19 13:20:19 ubuntu easywall-web[22854]:     with open(file_name) as f:
Mar 19 13:20:19 ubuntu easywall-web[22854]: FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.6/dist-packages/flask_ipban/allowed.yaml'
Mar 19 13:20:19 ubuntu easywall-web[22854]: unable to load app 0 (mountpoint='') (callable not found or import error)
Mar 19 13:20:19 ubuntu easywall-web[22854]: *** no app loaded. going in full dynamic mode ***
Mar 19 13:20:19 ubuntu easywall-web[22854]: dropping root privileges after application loading
Mar 19 13:20:19 ubuntu easywall-web[22854]: *** uWSGI is running in multiple interpreter mode ***
Mar 19 13:20:19 ubuntu easywall-web[22854]: spawned uWSGI master process (pid: 22862)
Mar 19 13:20:19 ubuntu easywall-web[22854]: spawned uWSGI worker 1 (pid: 22889, cores: 2)
Mar 19 13:20:19 ubuntu easywall-web[22854]: spawned uWSGI worker 2 (pid: 22890, cores: 2)
Mar 19 13:20:19 ubuntu easywall-web[22854]: spawned uWSGI worker 3 (pid: 22893, cores: 2)
Mar 19 13:20:19 ubuntu easywall-web[22854]: spawned uWSGI worker 4 (pid: 22895, cores: 2)
Mar 19 13:20:19 ubuntu easywall-web[22854]: spawned uWSGI worker 5 (pid: 22898, cores: 2)

@jpylypiw
Copy link
Owner

Thank you for the output!
As I can see there is a error regarding the ipban library.
I will take a look at this later.

@visualies
Copy link

any updates on this ?

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

No branches or pull requests

3 participants