Authentik uninstall fails

Sorry, I’m out of ideas.
@davidep do you have an idea how to clean half installed/removed apps.

Recap:

Nobody else?

How are you, bro? Tries:

api-cli run remove-module --data ‘{“module_id”:“goauthentik1”, “force”:true, “no_preserve”:true}’

Have you checked if there are references, for example:

/var/lib/nethserver/cluster/*
/var/lib/nethserver/catalog/*

2 Likes

The error you saw (TaskSubmissionCheckFailed) indicates that the module registration is stuck in the task and agent management system, which relies on Redis. Manual removal involves deleting the Redis-related keys and metadata files.

Manipulating Redis directly can corrupt the NethServer 8 cluster state if not done correctly. Make a backup or make sure you understand the risk.

2 Likes

I found that a good old fashioned complete reboot of the server/node cleared and killed the NS8, no longer wanted but persistent, tasks in Node memory.

2 Likes

Server rebooted and error persists.

Maybe this thread has usefull information?

I have tried it before. Not usefull for my case.

Ping @davidep

1 Like

There might still be some Redis values containing a module_id reference that need to be manually cleaned up. The module_id is used as a value inside complex structures like HASH and SET, so it’s not always an obvious part of the key. For example, see the HASH cluster/module_node.

You can refer to the Python code for the complete list: ns8-core/core/imageroot/var/lib/nethserver/cluster/actions/remove-module/50update at main · NethServer/ns8-core · GitHub

2 Likes