So I was getting this error while trying to uninstall CP, I plan to reinstall. I know I probably deleted something I wasn't supposed to.
So I tried to add user which I seen on another post. http://forum.openmediavault.or…ot-uninstall-Couchpotato/
Then I got this error when I try to enable CP after installing it.
exception 'OMVException' with message 'Failed to execute command 'omv-mkconf couchpotato 2>&1': fatal: could not create work tree dir '/opt/couchpotato'.: Permission denied' in /usr/share/openmediavault/engined/module/couchpotato.inc:55#3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)#4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)#7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
Now I get this if I try to uninstall it
exception 'OMVException' with message 'Failed to execute command 'export LANG=C; apt-get --yes --auto-remove --purge remove openmediavault-couchpotato 2>&1': Reading package lists...E: Sub-process /usr/bin/dpkg returned an error code (1)' in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:170#2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('remove', Array, Array)
I can get back to the first errors by doing.
I don't want to reinstall OMV again like I've been doing every time I get errors and try fixing them myself in ssh.