there are instances, where a module crashes completely, and updating is not possible for the module,
in this scenario, even uninstalling the module, sometimes is out of the question. and would ussually present errors,
like
cluster/remove-module
Task ID: Copy to clipboard
48a9fc4a-bbfa-4fd7-9a04-c3482ca39102
Traceback (most recent call last):
File "/var/lib/nethserver/cluster/actions/remove-module/50update", line 72, in <module>
raise ex
File "/var/lib/nethserver/cluster/actions/remove-module/50update", line 57, in <module>
destroy_module_result = agent.tasks.run(
^^^^^^^^^^^^^^^^
File "/usr/local/agent/pypkg/agent/tasks/run.py", line 39, in run
results = runp([taskrq], **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/agent/pypkg/agent/tasks/run.py", line 50, in runp
return asyncio.run(_runp(tasks, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/asyncio/base_events.py", line 654, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/local/agent/pypkg/agent/tasks/run.py", line 131, in _runp
return await asyncio.gather(*runners, return_exceptions=(len(tasks) > 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/agent/pypkg/agent/tasks/run.py", line 137, in _run_with_protocol
return await run_redisclient(taskrq, **pconn)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/agent/pypkg/agent/tasks/redisclient.py", line 77, in run_redisclient
await _task_submission_check_client_idle(rdb, taskrq, kwargs['check_idle_time'])
File "/usr/local/agent/pypkg/agent/tasks/redisclient.py", line 41, in _task_submission_check_client_idle
raise TaskSubmissionCheckFailed(f"Client \"{taskrq['agent_id']}\" was not found")
agent.tasks.exceptions.TaskSubmissionCheckFailed: Client "module/erpnext19" was not found
this issues, prompt a complete rm -rf nuking of the folder holsing the module.
while the module folder, and files would have been removed in the backedna dn on the server.
the UI would still be reporting the given module, as being available.
COuld we get the ability, to completely flush these modules, when the folder for the said module has completely been wiped clean?