Open GabrieleCalarota opened 3 years ago
Hi, I got this error too using default database configs. Then I switched to using postgres, and I get a new error similar to previous one
| No commit has been made, due to the following error: (psycopg2.InternalError) current transaction is aborted, commands ignored until end of transaction block
asset-manager |
asset-manager | [SQL: INSERT INTO "fmd_asset_managerRequest" (endpoint_id, duration, time_requested, version_requested, group_by, ip, status_code) VALUES (%(endpoint_id)s, %(duration)s, %(time_requested)s, %(version_requested)s, %(group_by)s, %(ip)s, %(status_code)s) RETURNING "fmd_asset_managerRequest".id]
here is how make the configurations:
dashboard.config.table_prefix = "fmd_asset_manager"
dashboard.config.database_name = "postgresql://{}:{}@{}:{}/{}".format(DB_CONF.get("user"), DB_CONF.get("password"),
DB_CONF.get("host"), DB_CONF.get("port"),
DB_CONF.get("db"))
dashboard.bind(app)
Describe the bug Since I've integrated the flask-monitoringdashboard into flask apps with just this 2 lines of code in every file with a flask app (in order to have a share dashboard for every app)
I've started noticing this error in apache2/error.log
Where NAME-OF-ENDPOINT is every name of my endpoint on flask API that I've been calling on production server. Can't say if it's correlated but my API with a WSGIScriptAlias have been stuck in "pending requests" and made my system not working/working only in particular scenarios
Screenshots![image](https://user-images.githubusercontent.com/20482413/98810478-9bb74f00-241f-11eb-9473-92c9b8c9b320.png)
Desktop (please complete the following information):
Additional context Flask is running on virtualhost apache configuration like below port 443
I've tried to search on past issues but the only one with a not so similar error is #324