The saga continues but i have more information to share.
There are several issues going on, I'll break them down.
(1) "Something went wrong error page"
I can now replicate this error. If I am on the site and am inactive for a while (5-10 minutes), then the next page load gives me the error page and I get a wall of output in the error log. The most interesting part of the log for me is these lines:
File "/home/drewxcom/.virtualenvs/rhenv2/lib/python3.10/site-packages/mysql/connector/connection_cext.py", line 706, in cursor
raise OperationalError("MySQL Connection not available.")
sqlalchemy.exc.OperationalError: (mysql.connector.errors.OperationalError) MySQL Connection not available.
I've tried lower the recycle time and added SQLALCHEMY_POOL_PRE_PING = True
but it doesn't seem to be helping. Again, this was not an issue before the upgrade to haggis.
As a troubleshooting step I opened a separate account with you guys, installed an upgraded version of my site (current packages, changed to app factory pattern and reworked my imports) but I am still experiencing the same issues on both sites. If I can just get this part fixed I could just use my new account (user: hyraxmax) instead but I'm not making any progress after days and days of work. Any help with this would be great.
(2) I seem to have lost privileges to run a dump of my database. When I try to run a dump command from the bash shell I get errors.
(rhenv2) 11:19 ~ $ mysqldump -u drewxcom --set-gtid-purged=OFF -h drewxcom.mysql.pythonanywhere-services.com 'drewxcom$rh' > db-backup.sql
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'drewxcom$rh' AND TABLE_NAME = 'announcement';': Unknown table 'COLUMN_STATISTICS' in information_schema (1109).
I tried this with my virtual environment active and also with it deactivated.
When I try to grant privileges I get another error:
mysql> GRANT ALL PRIVILEGES on rh.* TO 'drewxcom'@'%' WITH GRANT OPTION;
ERROR 1044 (42000): Access denied for user 'drewxcom'@'%' to database 'rh'
mysql> use rh;
ERROR 1044 (42000): Access denied for user 'drewxcom'@'%' to database 'rh'
I don't know whats going on with this but I don't have the same issues with my second account. Again, if I could just get a current dump of the database I could update my second account site and use that but I'm stuck.
(3) Scheduled tasks won't run. I've tried all the things I can think to do here, and nothing is working. I am not having the same issues on my second account. Everything there works as expected. This isn't a huge deal if I can get the other two issues sorted, then I'll just move over to my second account.
[edited by admin]