NethServer Version: 8
Module: samba
Environment
- Cluster setup: NS8 with multiple nodes
- Primary Samba module:
samba1running on a separate machine (working fine) - Secondary Samba module:
samba3installed on node 2 (problematic)
What happened
- During a system update, node 2 froze and had to be restarted manually.
- After reboot, the secondary Samba module (
samba3) became corrupted.
Symptoms
- Provider configuration errors
- When accessing Samba providers in Cockpit, the following error appears:
JSON Schema output validation aborted at step /home/samba3/.config/actions/get-password-policy/validate-output.json:
JSON unmarshal error: unexpected end of JSON input. Input data: []
- Removal/Reconfigure actions fail
- Attempting to remove the app results in:
JSON Schema input validation aborted at step /home/samba3/.config/actions/leave-domain/validate-input.json:
Schema compile error for file ... EOF
- The cluster reports:
agent.tasks.exceptions.TaskSubmissionCheckFailed: Client "module/samba3" was not found
- Podman container issues
- Restarting the container fails with:
Error: unable to determine if ".../userdata/shm" is mounted: lstat ... no such file or directory
- This indicates the container runtime was removed or corrupted.
- Agent service problems
- On node 2,
nethserver-agent.serviceis not loaded, so the cluster cannot manage apps there.
What has been tried
- Pulled the correct image manually:
podman pull ghcr.io/nethserver/samba:3.1.1
- Cleaned Podman storage with
podman system pruneandpodman volume prune. - Attempted to restart/remove/reconfigure the module via Cockpit and CLI, but all failed due to corrupted JSON schema files and missing agent client.
- Tried to locate JWT token for API calls, but the static file is not present in
/var/lib/nethserver/node/state/.
Current status
- The primary Samba (
samba1) is healthy. - The secondary Samba (
samba3) on node 2 is broken: no valid container, corrupted config files, and cannot be removed or reconfigured through Cockpit. - Backup restoration is blocked because the app cannot be removed first.
Request for help
- How can I forcefully remove or repair the
samba3module on node 2 so that I can reinstall it and restore from backup? - Is there a supported way to clean up corrupted module references when the agent reports
Client "module/samba3" was not found? - What is the correct procedure to obtain an API token (JWT) in NS8 for manual module removal when Cockpit actions fail?