You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example the history in the webui doesn't work because of it. It throws internal server error:
ERROR:arm.ui:Exception on /history [GET]
Traceback (most recent call last):
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/opt/arm/arm/../arm/ui/routes.py", line 493, in history
jobs = Job.query.order_by(Job.start_time.desc()).paginate(page, 100, False)
TypeError: paginate() takes 1 positional argument but 4 were given
model.py:228 and model.py:493 need to be changed to this respectively:
line 228
jobs = Job.query.order_by(db.desc(Job.job_id)).paginate(page=page, per_page=100, error_out=False)
line 493
jobs = Job.query.order_by(Job.start_time.desc()).paginate(page=page, per_page=100, error_out=False)
I've changed this on my install and now the history is working again.
The text was updated successfully, but these errors were encountered:
Darn. I really like arm and upgraded to 22.04. Is there a hotfix or patch planned for this?
Not at the moment, but that's part of why we've spent so much time on the docker container. Just make sure to delete the udev rules that are already there, as it will trigger the docker container as well
For example the history in the webui doesn't work because of it. It throws internal server error:
model.py:228
andmodel.py:493
need to be changed to this respectively:line 228
line 493
I've changed this on my install and now the history is working again.
The text was updated successfully, but these errors were encountered: