Couchpotato Errors

    • OMV 2.x
    • Couchpotato Errors

      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.

      Source Code

      1. Removing openmediavault-couchpotato ...
      2. Purging configuration files for openmediavault-couchpotato ...
      3. userdel: couchpotato mail spool (/var/mail/couchpotato) not found
      4. userdel: /home/couchpotato not owned by couchpotato, not removing
      5. dpkg: error processing openmediavault-couchpotato (--purge):
      6. subprocess installed post-removal script returned error exit status 12
      7. Processing triggers for openmediavault ...
      8. Restarting engine daemon ...
      9. Errors were encountered while processing:
      10. openmediavault-couchpotato
      So I tried to add user which I seen on another post. forum.openmediavault.org/index…ot-uninstall-Couchpotato/

      Source Code

      1. adduser --quiet \--system \--group \--no-create-home \--disabled-password \couchpotato
      Then I got this error when I try to enable CP after installing it.

      Source Code

      1. Error #4000:
      2. 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. Stack trace:
      4. #0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleCouchpotato->applyConfig()
      5. #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      8. #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      9. #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      12. #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      13. #9 {main}
      Display All
      Now I get this if I try to uninstall it

      Source Code

      1. Error #4000:
      2. 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...
      3. Building dependency tree...
      4. Reading state information...
      5. The following packages will be REMOVED:
      6. openmediavault-couchpotato*
      7. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
      8. After this operation, 54.3 kB disk space will be freed.
      9. (Reading database ...
      10. 30996 files and directories currently installed.)
      11. Removing openmediavault-couchpotato ...
      12. Purging configuration files for openmediavault-couchpotato ...
      13. userdel: couchpotato mail spool (/var/mail/couchpotato) not found
      14. userdel: /home/couchpotato not owned by couchpotato, not removing
      15. dpkg: error processing openmediavault-couchpotato (--purge):
      16. subprocess installed post-removal script returned error exit status 12
      17. Processing triggers for openmediavault ...
      18. Restarting engine daemon ...
      19. Errors were encountered while processing:
      20. openmediavault-couchpotato
      21. Creating index of upgradeable packages ...
      22. Creating index of openmediavault plugins ...
      23. E: Sub-process /usr/bin/dpkg returned an error code (1)' in /usr/share/openmediavault/engined/rpc/pluginmgmt.inc:170
      24. Stack trace:
      25. #0 [internal function]: OMVRpcServicePluginMgmt->remove(Array, Array)
      26. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      27. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('remove', Array, Array)
      28. #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Plugin', 'remove', Array, Array, 1)
      29. #4 {main}
      Display All
      I can get back to the first errors by doing.

      Source Code

      1. rm -f /var/lib/dpkg/info/openmediavault-couchpotato.postrm
      2. apt-get purge openmediavault-couchpotato
      3. rm -rf /opt/couchpotato /var/opt/couchpotato
      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. :/ ?(