I remain having this problem even after trying everything I have looked up on the internet.
Output of dpkg -l | grep openm after omv-aptclean:
ii libopenmpt0:amd64 0.2.7386~beta20.3-3+deb9u3 amd64 module music library based on OpenMPT -- shared library
ii openmediavault 4.1.35-1 all openmediavault - The open network attached storage solution
rc openmediavault-docker-gui 4.1.6 all OpenMediaVault plugin for Docker
ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
ii openmediavault-letsencrypt 3.4.5 all Generate free and valid SSL certificates for OMV
ii openmediavault-minidlna 3.3.11 all OpenMediaVault miniDLNA (DLNA server) plugin
ii openmediavault-mysql 4.1.1 all MySQL plugin for OpenMediaVault.
rc openmediavault-nginx 4.0.4 all Nginx plugin for OpenMediaVault.
ii openmediavault-omvextrasorg 4.1.16 all OMV-Extras.org Package Repositories for OpenMediaVault
ii openmediavault-wakealarm 4.0 all wakealarm plugin for OpenMediaVault.
ii openmediavault-wol 3.4.2 all OpenMediaVault WOL plugin
Alles anzeigen
I have tried everything listed here in combination with rebooting:
- Reloading/reinstalling nginx
- Clearing the web control cache multiple times (as much as I did the omv-aptclean)
- sudo chown -R openmediavault-webgui:openmediavault-webgui /var/cache/openmediavault
- Letting the cache.omv\controlpanel\login_js.json regenerate multiple times
- changing the cache.omv\controlpanel\login_js.json into cache.omv (folder) > controlpanel (folder) > login_js.json
- renaming cache.omv\controlpanel\login_js.json to login_js.json
- Downloading someone elses cache.omv\controlpanel\login_js.json and install it
- Changing my problem from
Error #0:
OMV\Exception: Failed to read file '/var/cache/openmediavault/cache.omv\controlpanel\login_js.json' (size=0). in /usr/share/php/openmediavault/json/file.inc:207
Stack trace:
#0 /usr/share/php/openmediavault/json/file.inc(223): OMV\Json\File->getContents()
#1 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(173): OMV\Json\File->read()
#2 /var/www/openmediavault/index.php(46): OMV\ControlPanel\ControlPanelAbstract->render()
#3 {main}
to
Error #0:
OMV\Exception: Failed to open file (filename=/var/cache/openmediavault/cache.omv\controlpanel\login_js.json, mode=w+). in /usr/share/php/openmediavault/json/file.inc:78
Stack trace:
#0 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(182): OMV\Json\File->open('w+')
#1 /var/www/openmediavault/index.php(46): OMV\ControlPanel\ControlPanelAbstract->render()
#2 {main}
and tried multiple possible solutions.
Note:
This error came after I did omv-aptclean. I did the command because there was a login loop.
Each time when I delete the cache.omv\controlpanel\login_js.json, the login page shows the way it always has been. But once I try to log in, it gives the error again.
After I did the sudo chown -R openmediavault-webgui:openmediavault-webgui /var/cache/openmediavault command, it magicly worked. I saw my plugins and noticed not all, that were supposed to be installed, were there. For example, nginx, which also couldn't be found in the extensions.
After about 2 days, the login loop came back and resulted into the same process as I explained here.
I hope everything you need to help me is given. If not, just ask. I'll answer pretty rapidly.
Thanks in advance for the help! I really appreciate it.