Forums

Kill a bash console and my website crash

I wanted to retrace my steps in my website to make a timestamp. so i decided to restart a new bash console by killing an old bash console. however after killing it, my website crash . and the error log looks like

Error running WSGI application 2023-07-28 07:24:48,905: werkzeug.exceptions.BadRequestKeyError: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand. 2023-07-28 07:24:48,905: KeyError: 'contents' 2023-07-28 07:24:48,905: File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2095, in call 2023-07-28 07:24:48,905: return self.wsgi_app(environ, start_response) 2023-07-28 07:24:48,905: 2023-07-28 07:24:48,905: File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2080, in wsgi_app 2023-07-28 07:24:48,906: response = self.handle_exception(e) 2023-07-28 07:24:48,906: 2023-07-28 07:24:48,906: File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2077, in wsgi_app 2023-07-28 07:24:48,906: response = self.full_dispatch_request() 2023-07-28 07:24:48,906: 2023-07-28 07:24:48,906: File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request 2023-07-28 07:24:48,906: rv = self.handle_user_exception(e) 2023-07-28 07:24:48,906: 2023-07-28 07:24:48,906: File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request 2023-07-28 07:24:48,906: rv = self.dispatch_request() 2023-07-28 07:24:48,906: 2023-07-28 07:24:48,906: File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request 2023-07-28 07:24:48,907: return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) 2023-07-28 07:24:48,907: 2023-07-28 07:24:48,907: File "/home/Strawberryjing/mysite/flask_app.py", line 13, in index 2023-07-28 07:24:48,907: comments.append(request.form["contents"]) 2023-07-28 07:24:48,907: 2023-07-28 07:24:48,907: File "/usr/local/lib/python3.10/site-packages/werkzeug/datastructures.py", line 375, in getitem 2023-07-28 07:24:48,907: raise exceptions.BadRequestKeyError(key) 2023-07-31 17:02:05,283: Error running WSGI application 2023-07-31 17:02:05,315: sqlalchemy.exc.DatabaseError: (mysql.connector.errors.DatabaseError) 2005 (HY000): Unknown MySQL server host 'the database host address from the 'Databases' tab' (-2) 2023-07-31 17:02:05,315: (Background on this error at: https://sqlalche.me/e/14/4xp6)

Those errors are from days ago. Make sure you're reading the most recent error messages.