• Bug
  • Debian 12 (Supported): Multiple problems in Grommunio Settings > Updates

Check for Update:

Jan 07 20:20:41 grm uwsgi[978]: [WARNING] (grommunio Admin API) POST /api/v1/system/updates/check?repo=supported from 203.0.113.119 -> 500 '{"message":"The server encountered an error while processing the request."}\n'
Jan 07 20:20:50 grm uwsgi[978]: [ERROR] (misc) FileNotFoundError: 2 - No such file or directory
Jan 07 20:20:50 grm uwsgi[978]: [ERROR] (grommunio Admin API) Traceback (most recent call last):
Jan 07 20:20:50 grm uwsgi[978]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in full_dispatch_request
Jan 07 20:20:50 grm uwsgi[978]:     rv = self.dispatch_request()
Jan 07 20:20:50 grm uwsgi[978]:          ^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:20:50 grm uwsgi[978]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1796, in dispatch_request
Jan 07 20:20:50 grm uwsgi[978]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Jan 07 20:20:50 grm uwsgi[978]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:20:50 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/api/core.py", line 204, in wrapper
Jan 07 20:20:50 grm uwsgi[978]:     return call()
Jan 07 20:20:50 grm uwsgi[978]:            ^^^^^^
Jan 07 20:20:50 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/api/core.py", line 169, in call
Jan 07 20:20:50 grm uwsgi[978]:     ret = func(*args, **kwargs)
Jan 07 20:20:50 grm uwsgi[978]:           ^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:20:50 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/endpoints/system/misc.py", line 328, in checkForUpdates
Jan 07 20:20:50 grm uwsgi[978]:     pid = callUpdateScript(command or "check", repo)
Jan 07 20:20:50 grm uwsgi[978]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:20:50 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/tools/misc.py", line 404, in callUpdateScript
Jan 07 20:20:50 grm uwsgi[978]:     return pid or -1
Jan 07 20:20:50 grm uwsgi[978]:            ^^^
Jan 07 20:20:50 grm uwsgi[978]: UnboundLocalError: cannot access local variable 'pid' where it is not associated with a value
Jan 07 20:20:50 grm uwsgi[978]: [WARNING] (grommunio Admin API) POST /api/v1/system/updates/check?repo=supported from 203.0.113.119 -> 500 '{"message":"The server encountered an error while processing the request."}\n'

Update:

Jan 07 20:22:47 grm uwsgi[978]: [ERROR] (misc) FileNotFoundError: 2 - No such file or directory
Jan 07 20:22:47 grm uwsgi[978]: [ERROR] (grommunio Admin API) Traceback (most recent call last):
Jan 07 20:22:47 grm uwsgi[978]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in full_dispatch_request
Jan 07 20:22:47 grm uwsgi[978]:     rv = self.dispatch_request()
Jan 07 20:22:47 grm uwsgi[978]:          ^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:22:47 grm uwsgi[978]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1796, in dispatch_request
Jan 07 20:22:47 grm uwsgi[978]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Jan 07 20:22:47 grm uwsgi[978]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:22:47 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/api/core.py", line 204, in wrapper
Jan 07 20:22:47 grm uwsgi[978]:     return call()
Jan 07 20:22:47 grm uwsgi[978]:            ^^^^^^
Jan 07 20:22:47 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/api/core.py", line 169, in call
Jan 07 20:22:47 grm uwsgi[978]:     ret = func(*args, **kwargs)
Jan 07 20:22:47 grm uwsgi[978]:           ^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:22:47 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/endpoints/system/misc.py", line 328, in checkForUpdates
Jan 07 20:22:47 grm uwsgi[978]:     pid = callUpdateScript(command or "check", repo)
Jan 07 20:22:47 grm uwsgi[978]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:22:47 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/tools/misc.py", line 404, in callUpdateScript
Jan 07 20:22:47 grm uwsgi[978]:     return pid or -1
Jan 07 20:22:47 grm uwsgi[978]:            ^^^
Jan 07 20:22:47 grm uwsgi[978]: UnboundLocalError: cannot access local variable 'pid' where it is not associated with a value
Jan 07 20:22:47 grm uwsgi[978]: [WARNING] (grommunio Admin API) POST /api/v1/system/updates/update?repo=supported from 203.0.113.119 -> 500 '{"message":"The server encountered an error while processing the request."}\n'

Upgrade:

Jan 07 20:23:42 grm uwsgi[978]: [ERROR] (misc) FileNotFoundError: 2 - No such file or directory
Jan 07 20:23:42 grm uwsgi[978]: [ERROR] (grommunio Admin API) Traceback (most recent call last):
Jan 07 20:23:42 grm uwsgi[978]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1820, in full_dispatch_request
Jan 07 20:23:42 grm uwsgi[978]:     rv = self.dispatch_request()
Jan 07 20:23:42 grm uwsgi[978]:          ^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:23:42 grm uwsgi[978]:   File "/usr/lib/python3/dist-packages/flask/app.py", line 1796, in dispatch_request
Jan 07 20:23:42 grm uwsgi[978]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Jan 07 20:23:42 grm uwsgi[978]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:23:42 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/api/core.py", line 204, in wrapper
Jan 07 20:23:42 grm uwsgi[978]:     return call()
Jan 07 20:23:42 grm uwsgi[978]:            ^^^^^^
Jan 07 20:23:42 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/api/core.py", line 169, in call
Jan 07 20:23:42 grm uwsgi[978]:     ret = func(*args, **kwargs)
Jan 07 20:23:42 grm uwsgi[978]:           ^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:23:42 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/endpoints/system/misc.py", line 328, in checkForUpdates
Jan 07 20:23:42 grm uwsgi[978]:     pid = callUpdateScript(command or "check", repo)
Jan 07 20:23:42 grm uwsgi[978]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jan 07 20:23:42 grm uwsgi[978]:   File "/usr/share/grommunio-admin-api/tools/misc.py", line 404, in callUpdateScript
Jan 07 20:23:42 grm uwsgi[978]:     return pid or -1
Jan 07 20:23:42 grm uwsgi[978]:            ^^^
Jan 07 20:23:42 grm uwsgi[978]: UnboundLocalError: cannot access local variable 'pid' where it is not associated with a value
Jan 07 20:23:42 grm uwsgi[978]: [WARNING] (grommunio Admin API) POST /api/v1/system/updates/upgrade?repo=supported from 203.0.113.119 -> 500 '{"message":"The server encountered an error while processing the request."}\n'
7 days later

Any update on this?

    ckd Hello there, we have all been quite busy over the last few days.
    I just looked at the code and immediately found the cause for this. Unfortunately, the crash is caused by not properly catching an error while calling the updaterscript.
    So essentially, fixing this bug probably won't fix the entire issue

    © 2020-2024 grommunio GmbH. All rights reserved. | https://grommunio.com | Data Protection | Legal notice