Hallo Arnaud,
du kannst es reproduzieren, also tritt der Fehler bei dir ebenfalls auf?
ajenti-panel --dev --stock-plugins --plugins /usr/lib/linuxmuster-webui/plugins
hatte ich schon in einem anderen Thread gefunden. Ich habe das gerade nochmals ausgeführt, im ersten Durchlauf (auf die ERRORs reduziert):
[...]
25.04.2025 14:21:05 [worker 82199] gate.py:167 DEBUG Building resources in /usr/lib/linuxmuster-webui/plugins
25.04.2025 14:21:05 [worker 82199] gate.py:167 DEBUG Popen: ['ajenti-dev-multitool', '--build']
25.04.2025 14:21:05 [worker 82199] gate.py:167 ERROR Resource compilation failed: please install ajenti-dev-multitool.
[...]
25.04.2025 14:21:06 [worker 82199] gate.py:167 ERROR Unhandled endpoint error at /api/core/identity
Traceback (most recent call last):
File "/usr/lib/linuxmuster-webui/plugins/lmn_auth/api.py", line 367, in get_profile
if self.context.schoolmgr.schools and len(self.context.schoolmgr.schools) > 1 and "role-globaladministrator" in ''.join(profil.get('memberOf', [])):
AttributeError: 'Context' object has no attribute 'schoolmgr'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/aj/api/endpoint.py", line 77, in wrapper
result = fx(self, context, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/ajenti_plugin_core/views/api.py", line 44, in handle_api_identity
'profile': AuthenticationService.get(self.context).get_provider().get_profile(
File "/usr/lib/linuxmuster-webui/plugins/lmn_auth/api.py", line 379, in get_profile
logging.error(e)
File "/usr/local/lib/python3.10/dist-packages/aj/log.py", line 139, in <lambda>
(lambda method: lambda message, *args: fx(
File "/usr/local/lib/python3.10/dist-packages/aj/gate/worker.py", line 204, in send_log_event
'message': message % args,
[...]
hmm… also pip3 install ajenti-dev-multitool
installiert, zweiter Durchlauf:
25.04.2025 14:23:51 [worker 82259] gate.py:167 DEBUG Building resources in /usr/lib/linuxmuster-webui/plugins
25.04.2025 14:23:51 [worker 82259] gate.py:167 DEBUG Popen: ['ajenti-dev-multitool', '--build']
25.04.2025 14:23:51 [worker 82259] gate.py:167 ERROR Resource compilation failed
25.04.2025 14:23:51 [worker 82259] gate.py:167 ERROR 2025-04-25 14:23:51 XXX-FQDN-XXX root[82260] INFO Building resources for ./lmn_auth
2025-04-25 14:23:51 XXX-FQDN-XXX root[82260] INFO Compiling ./lmn_auth/resources/js/module.coffee
2025-04-25 14:23:51 XXX-FQDN-XXX root[82260] INFO Compiling ./lmn_auth/resources/js/controllers/index.controller.coffee
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "/usr/local/bin/ajenti-dev-multitool", line 114, in worker
set_cached(path, subprocess.check_output(args, stderr=subprocess.STDOUT) + b'\n')
File "/usr/local/lib/python3.10/dist-packages/gevent/subprocess.py", line 404, in check_output
with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
File "/usr/local/lib/python3.10/dist-packages/gevent/subprocess.py", line 807, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.10/dist-packages/gevent/subprocess.py", line 1814, in _execute_child
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'coffee'
2025-04-25T12:23:51Z <Greenlet at 0x7f34c1251800: worker('./lmn_auth/resources/js/module.coffee', ['coffee', '-p', '-c', './lmn_auth/resources/js/mo)> failed with FileNotFoundError
Traceback (most recent call last):
File "src/gevent/greenlet.py", line 908, in gevent._gevent_cgreenlet.Greenlet.run
File "/usr/local/bin/ajenti-dev-multitool", line 114, in worker
set_cached(path, subprocess.check_output(args, stderr=subprocess.STDOUT) + b'\n')
File "/usr/local/lib/python3.10/dist-packages/gevent/subprocess.py", line 404, in check_output
with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
File "/usr/local/lib/python3.10/dist-packages/gevent/subprocess.py", line 807, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.10/dist-packages/gevent/subprocess.py", line 1814, in _execute_child
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'coffee'
2025-04-25T12:23:51Z <Greenlet at 0x7f34c12532e0: worker('./lmn_auth/resources/js/controllers/index.control, ['coffee', '-p', '-c', './lmn_auth/resources/js/co)> failed with FileNotFoundError
Traceback (most recent call last):
File "/usr/local/bin/ajenti-dev-multitool", line 716, in <module>
run_build(plugin, True)
File "/usr/local/bin/ajenti-dev-multitool", line 172, in run_build
all_js += get_cached(path)
TypeError: can only concatenate str (not "NoneType") to str
Jetzt fehlt coffee
, wobei ich da jetzt nicht weiß, welches Paket dafür zuständig ist.
Ich finde es noch immer komisch, dass das Problem so urplötzlich auftritt…
In /var/log/ajenti
gibt’s lediglich
2025-04-25 14:14:52,555 ERROR : Unhandled endpoint error at /api/core/identity
also den selben Fehler nur weniger detailliert.
Grüße
Alex