Wo sollte ich den am besten den python script hinterlegen wenn nicht in "www" und auch nicht in den unter Ordnern? Meine Struktur sieht bis jetzt so aus:
Ich habe ein paar Anleitungen im Internet gefunden, welche genau diese Struktur empfehlen.
Ich weiß, das Passwort wird bis jetzt noch im Klartext gespeichert, dies werde ich noch ändern
Code: Alles auswählen
[Mon Feb 22 10:42:09.312811 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] Traceback (most recent call last):
[Mon Feb 22 10:42:09.312813 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2447, in wsgi_app
[Mon Feb 22 10:42:09.312815 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] response = self.full_dispatch_request()
[Mon Feb 22 10:42:09.312817 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1952, in full_dispatch_request
[Mon Feb 22 10:42:09.312819 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] rv = self.handle_user_exception(e)
[Mon Feb 22 10:42:09.312821 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1821, in handle_user_exception
[Mon Feb 22 10:42:09.312823 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] reraise(exc_type, exc_value, tb)
[Mon Feb 22 10:42:09.312825 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/flask/_compat.py", line 39, in reraise
[Mon Feb 22 10:42:09.312827 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] raise value
[Mon Feb 22 10:42:09.312829 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1950, in full_dispatch_request
[Mon Feb 22 10:42:09.312831 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] rv = self.dispatch_request()
[Mon Feb 22 10:42:09.312832 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1936, in dispatch_request
[Mon Feb 22 10:42:09.312834 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] return self.view_functions[rule.endpoint](**req.view_args)
[Mon Feb 22 10:42:09.312839 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/var/www/webApp/webApp/__init__.py", line 389, in register
[Mon Feb 22 10:42:09.312841 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] db.session.flush()
[Mon Feb 22 10:42:09.312843 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/scoping.py", line 163, in do
[Mon Feb 22 10:42:09.312845 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] return getattr(self.registry(), name)(*args, **kwargs)
[Mon Feb 22 10:42:09.312847 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/session.py", line 2540, in flush
[Mon Feb 22 10:42:09.312849 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] self._flush(objects)
[Mon Feb 22 10:42:09.312851 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/session.py", line 2682, in _flush
[Mon Feb 22 10:42:09.312853 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] transaction.rollback(_capture_exception=True)
[Mon Feb 22 10:42:09.312855 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
[Mon Feb 22 10:42:09.312857 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] with_traceback=exc_tb,
[Mon Feb 22 10:42:09.312858 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/util/compat.py", line 182, in raise_
[Mon Feb 22 10:42:09.312860 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] raise exception
[Mon Feb 22 10:42:09.312862 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/session.py", line 2642, in _flush
[Mon Feb 22 10:42:09.312864 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] flush_context.execute()
[Mon Feb 22 10:42:09.312866 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 422, in execute
[Mon Feb 22 10:42:09.312868 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] rec.execute(self)
[Mon Feb 22 10:42:09.312870 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 589, in execute
[Mon Feb 22 10:42:09.312872 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] uow,
[Mon Feb 22 10:42:09.312874 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/persistence.py", line 245, in save_obj
[Mon Feb 22 10:42:09.312878 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] insert,
[Mon Feb 22 10:42:09.312880 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/orm/persistence.py", line 1136, in _emit_insert_statements
[Mon Feb 22 10:42:09.312882 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] statement, params
[Mon Feb 22 10:42:09.312884 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 1011, in execute
[Mon Feb 22 10:42:09.312886 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] return meth(self, multiparams, params)
[Mon Feb 22 10:42:09.312888 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
[Mon Feb 22 10:42:09.312890 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] return connection._execute_clauseelement(self, multiparams, params)
[Mon Feb 22 10:42:09.312892 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 1130, in _execute_clauseelement
[Mon Feb 22 10:42:09.312894 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] distilled_params,
[Mon Feb 22 10:42:09.312896 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 1317, in _execute_context
[Mon Feb 22 10:42:09.312898 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] e, statement, parameters, cursor, context
[Mon Feb 22 10:42:09.312900 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 1511, in _handle_dbapi_exception
[Mon Feb 22 10:42:09.312902 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] sqlalchemy_exception, with_traceback=exc_info[2], from_=e
[Mon Feb 22 10:42:09.312904 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/util/compat.py", line 182, in raise_
[Mon Feb 22 10:42:09.312906 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] raise exception
[Mon Feb 22 10:42:09.312908 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
[Mon Feb 22 10:42:09.312910 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] cursor, statement, parameters, context
[Mon Feb 22 10:42:09.312912 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] File "/usr/local/lib/python3.7/dist-packages/sqlalchemy/engine/default.py", line 608, in do_execute
[Mon Feb 22 10:42:09.312914 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] cursor.execute(statement, parameters)
[Mon Feb 22 10:42:09.312918 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) attempt to write a readonly database
[Mon Feb 22 10:42:09.312920 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] [SQL: INSERT INTO user (email, password, bestellungen, paypal_adresse, amazon_profil_link, tokens, earned, affilates, guthaben) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)]
[Mon Feb 22 10:42:09.312922 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] [parameters: ('asdasdasd', 'asdasdasd', '[]', '', '', 1, 0, '[]', 0)]
[Mon Feb 22 10:42:09.312924 2021] [wsgi:error] [pid 1169:tid 139865593173760] [client 141.101.99.92:51934] (Background on this error at: http://sqlalche.me/e/13/e3q8)