remote WebUI access broken: "Welcome to nginx!" // omv-firstaid not working // No module named 'apt'

    • OMV 3.x
    • remote WebUI access broken: "Welcome to nginx!" // omv-firstaid not working

      Something seems to have broken my setup. On the local network I can access the OMV WebUI just fine. However as of lately the remote access through my dyndns setup seems completely broken. I am seeing the default "Welcome to nginx!" page instead of the OMV WebUI. I browsed the forum and found countless similar threads, however most of them are referring to OMV 1.0 and the solutions didn't work for me (possibly outdated).

      I tried running omv-firstaid and received an error as well which is super strange

      Source Code

      1. File "/usr/sbin/omv-firstaid", line 23, in <module>
      2. import dialog
      3. ModuleNotFoundError: No module named 'dialog'

      Even reinstalling the openmediavault package doesn't work.

      Source Code

      1. root@vault:/home/disrupted# apt-get install --reinstall openmediavault
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
      6. Need to get 926 kB of archives.
      7. After this operation, 0 B of additional disk space will be used.
      8. Get:1 erasmus/main openmediavault all 3.0.90 [926 kB]
      9. Fetched 926 kB in 0s (1,797 kB/s)
      10. Preconfiguring packages ...
      11. (Reading database ... 87280 files and directories currently installed.)
      12. Preparing to unpack .../openmediavault_3.0.90_all.deb ...
      13. Unpacking openmediavault (3.0.90) over (3.0.90) ...
      14. Setting up openmediavault (3.0.90) ...
      15. Updating configuration database ...
      16. Traceback (most recent call last):
      17. File "/usr/sbin/omv-confdbadm", line 23, in <module>
      18. import openmediavault
      19. ModuleNotFoundError: No module named 'openmediavault'
      20. dpkg: error processing package openmediavault (--configure):
      21. subprocess installed post-installation script returned error exit status 1
      22. Errors were encountered while processing:
      23. openmediavault
      24. Traceback (most recent call last):
      25. File "/usr/sbin/omv-mkaptidx", line 35, in <module>
      26. import apt
      27. ModuleNotFoundError: No module named 'apt'
      28. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All

      What can I do to rescue my setup?