I keep getting this error in my error log with a page like this: https://ibb.co/GT1YBF7 It works on my PC when I run my flask app locally but when I upload it this stuff happens. I assume it has something to do with my MongoDB
I keep getting this error in my error log with a page like this: https://ibb.co/GT1YBF7 It works on my PC when I run my flask app locally but when I upload it this stuff happens. I assume it has something to do with my MongoDB
anyone know how to fix this?
What are the detailed error messages that you get in the error log?
this is what gets put in the log when I perform actions on the web pages:
2023-02-20 18:51:52,138: OSError: write error
2023-02-20 18:53:38,735: OSError: write error
however this is my full error log:
2023-02-18 19:21:17,691: OSError: write error
2023-02-19 12:29:15,046: OSError: write error
2023-02-19 12:29:15,047: OSError: write error
2023-02-19 22:45:52,854: OSError: write error
2023-02-19 23:22:12,522: OSError: write error
2023-02-20 16:21:22,884: OSError: write error
2023-02-20 18:49:27,187: Error running WSGI application
2023-02-20 18:49:27,191: ModuleNotFoundError: No module named 'flask_app'
2023-02-20 18:49:27,191: File "/var/www/www_3lakesproperties_com_wsgi.py", line 16, in <module>
2023-02-20 18:49:27,191: from flask_app import app as application # noqa
2023-02-20 18:49:27,191: ***************************************************
2023-02-20 18:49:27,191: If you're seeing an import error and don't know why,
2023-02-20 18:49:27,191: we have a dedicated help page to help you debug:
2023-02-20 18:49:27,191: https://help.pythonanywhere.com/pages/DebuggingImportError/
2023-02-20 18:49:27,192: ***************************************************
2023-02-20 18:49:27,882: Error running WSGI application
2023-02-20 18:49:27,883: ModuleNotFoundError: No module named 'flask_app'
2023-02-20 18:49:27,883: File "/var/www/www_3lakesproperties_com_wsgi.py", line 16, in <module>
2023-02-20 18:49:27,883: from flask_app import app as application # noqa
2023-02-20 18:49:27,883: ***************************************************
2023-02-20 18:49:27,883: If you're seeing an import error and don't know why,
2023-02-20 18:49:27,883: we have a dedicated help page to help you debug:
2023-02-20 18:49:27,883: https://help.pythonanywhere.com/pages/DebuggingImportError/
2023-02-20 18:49:27,883: ***************************************************
2023-02-20 18:49:32,277: Error running WSGI application
2023-02-20 18:49:32,286: ModuleNotFoundError: No module named 'flask_app'
2023-02-20 18:49:32,287: File "/var/www/www_3lakesproperties_com_wsgi.py", line 16, in <module>
2023-02-20 18:49:32,287: from flask_app import app as application # noqa
2023-02-20 18:49:32,287: ***************************************************
2023-02-20 18:49:32,287: If you're seeing an import error and don't know why,
2023-02-20 18:49:32,287: we have a dedicated help page to help you debug:
2023-02-20 18:49:32,287: https://help.pythonanywhere.com/pages/DebuggingImportError/
2023-02-20 18:49:32,288: ***************************************************
2023-02-20 18:49:32,627: Error running WSGI application
2023-02-20 18:49:32,628: ModuleNotFoundError: No module named 'flask_app'
2023-02-20 18:49:32,628: File "/var/www/www_3lakesproperties_com_wsgi.py", line 16, in <module>
2023-02-20 18:49:32,628: from flask_app import app as application # noqa
2023-02-20 18:49:32,628: ***************************************************
2023-02-20 18:49:32,628: If you're seeing an import error and don't know why,
2023-02-20 18:49:32,629: we have a dedicated help page to help you debug:
2023-02-20 18:49:32,629: https://help.pythonanywhere.com/pages/DebuggingImportError/
2023-02-20 18:49:32,629: ***************************************************
2023-02-20 18:49:41,161: Error running WSGI application
2023-02-20 18:49:41,162: ModuleNotFoundError: No module named 'flask_app'
2023-02-20 18:49:41,162: File "/var/www/www_3lakesproperties_com_wsgi.py", line 16, in <module>
2023-02-20 18:49:41,162: from flask_app import app as application # noqa
2023-02-20 18:49:41,162: ***************************************************
2023-02-20 18:49:41,162: If you're seeing an import error and don't know why,
2023-02-20 18:49:41,162: we have a dedicated help page to help you debug:
2023-02-20 18:49:41,163: https://help.pythonanywhere.com/pages/DebuggingImportError/
2023-02-20 18:49:41,163: ***************************************************
2023-02-20 18:49:41,400: Error running WSGI application
2023-02-20 18:49:41,401: ModuleNotFoundError: No module named 'flask_app'
2023-02-20 18:49:41,401: File "/var/www/www_3lakesproperties_com_wsgi.py", line 16, in <module>
2023-02-20 18:49:41,401: from flask_app import app as application # noqa
2023-02-20 18:49:41,401: ***************************************************
2023-02-20 18:49:41,402: If you're seeing an import error and don't know why,
2023-02-20 18:49:41,402: we have a dedicated help page to help you debug:
2023-02-20 18:49:41,402: https://help.pythonanywhere.com/pages/DebuggingImportError/
2023-02-20 18:49:41,402: ***************************************************
2023-02-20 18:51:52,138: OSError: write error
2023-02-20 18:53:38,735: OSError: write error
it seems to run the functions for mongodb, as it edits the database. but it looks to have trouble redirecting to a new page, although it works when i test it locally and should work here.
We have a dedicated help page to help you debug import errors: https://help.pythonanywhere.com/pages/DebuggingImportError/