After downgrading to version 31 it shouldn’t show 32.0.6 or did you upgrade again?
Let’s check the version in config.php:
runagent -m nextcloud1
podman unshare grep version $(podman volume inspect nextcloud-app-data --format={{.Mountpoint}})/config/config.php
exit
Maybe it helps to set the version as explained here.
You can run occ like this, see GitHub - NethServer/ns8-nextcloud: Nextcloud module for NS8 · GitHub
runagent -m nextcloud1 occ <args>
Maybe related issue: