Hello Everyone,
I am having hard time figuring out what is causing internal server error on a 5 year old setup on AWS.
Mariadb is working. can do `bench --site {sitename} mariadb
supervisor is working when I check with systemd status.
restarting supervisord brings up the login page and after few minutes it goes back to internal server error.
I find 2 suspicious error in logs.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ImportError: cannot import name 'get_default_company'
in frappe log.
the issue is with the second one where updating frappe and erpnext fixed it for few months until it broke again, version is 12 which I am scheduled to upgrade in coming weeks but I would like to understand what is going on with it.
After updating frappe now I am getting pickle error on migrate
AttributeError: Can't pickle local object 'allow_regional.<locals>.caller'
Tried this but no luck.
This is where all pickle is being used
apps/frappe/frappe/utils/redis_wrapper.py:6:from six.moves import cPickle as pickle
apps/frappe/frappe/utils/redis_wrapper.py:46: self.setex(key, pickle.dumps(val), expires_in_sec)
apps/frappe/frappe/utils/redis_wrapper.py:48: self.set(key, pickle.dumps(val))
apps/frappe/frappe/utils/redis_wrapper.py:75: val = pickle.loads(val)
apps/frappe/frappe/utils/redis_wrapper.py:160: key, pickle.dumps(value))
apps/frappe/frappe/utils/redis_wrapper.py:165: return {key: pickle.loads(value) for key, value in
apps/frappe/frappe/utils/redis_wrapper.py:183: value = pickle.loads(value)