After upgrading to Aria Automation config the following error message is seen repeated in the /etc/raas/raas log. When trying to log into the UI after an undetermined about of time being up a 404 is revived. Restarting the Aria Automation Config service will allow users to log in again for a non-determinant amount of time.
XXX [org_id:None][celery.app.trace ][ERROR :216 ][ForkPoolWorker-2:XXX] Task sync_auth_backends[XXX] raised unexpected: NameError("name 'math' is not defined")
Traceback (most recent call last):
File "celery/app/trace.py", line 477, in trace_task
R = retval = fun(*args, **kwargs)
File "raas/utils/org.py", line 194, in wraps
return func(*args, **kwargs)
File "raas/tasks/__init__.py", line 21, in __call__
return self.run(*args, **kwargs)
File "raas/tasks/__init__.py", line 94, in wrapper
return target(*args, **kwargs)
File "raas/tasks/auth.py", line 46, in sync_auth_backends
self.app.hub.db.op.sync_auth_backends()
File "pop/contract.py", line 170, in __call__
return self.func(*args, **kwargs)
File "/var/lib/raas/unpack/_MEIlZxdpg/raas/mods/db/sqla.py", line 13362, in sync_auth_backends
NameError: name 'math' is not defined
Aria Config 8.17.0.x
The cause is due to a known defect in this version of RaaS.
The current best solution is to downgrade back to 8.16.2.x if you have a good backup. Please see the article Backing Up and Restoring Your Postgresql Database for RaaS or Aria Config for information on how to create to backups prior to upgrades.
This is currently scheduled to be remediated in a forthcoming release of Aria Config.