Error 0 when accessing WebUI

  • I know this has been asked before, but my research and attempts to fix it haven't worked. I am relatively new to Linux, so I'm a bit dangerous at times, but since I knew DOS very well back in the day (yes, I'm a little older, but don't call me old :-)), the idea of a command line is not foreign to me. I get this error when trying to access the WebGUI:


    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(198): OMV\Json\File->read()

    #2 /var/www/openmediavault/index.php(46): OMV\ControlPanel\ControlPanelAbstract->render()

    #3 {main}


    Everything else seems functional - I can access my data and can access the server via Putty. I navigated to my login_js.json file and noticed that it is 0 bytes in size, and I am thinking this is the root of the issue. Someone recommended deleting the file (or renaming it) and it would re-generate because it is a cache file. I did that and while it does regenerate on a login attempt, it regenerates at 0 bytes - can't be good. In an older thread gderf uploaded a .zip file that contained a login_js.json file which wasn't 0 bytes, so I thought maybe I'd use his file to replace my 0 byte file - can't hurt, right? Trouble is, since my OMV server doesn't have a desktop interface (it actually runs headless in a Proxmox VM), I don't know how to download his .json file to my OMV box (or transfer it in some other way (tried PSCP and couldn't get it to work) and replace my current file with it. Perhaps there is a better idea here as well? Can anyone help me from this point? Sorry if I know just enough to be dangerous, but what can I say - we are all trying to learn, right? Thanks very much in advance for any help offered. - jpar5

  • votdev - thanks for the response and attempt to help. I am not sure what you sent that you said solves the problem. Looks like an OMV code change or something? Is there anything I can do with that to solve my issue? Also, you are correct that there are lots of error messages in the error log file you reference. Here is a snipet:

    2020/07/07 00:00:09 [error] 6855#6855: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:00:40 [error] 7083#7083: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:01:11 [error] 7101#7101: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:01:41 [error] 7117#7117: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:02:12 [error] 7133#7133: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:02:42 [error] 7148#7148: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:03:13 [error] 7164#7164: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:03:43 [error] 7181#7181: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:04:14 [error] 7199#7199: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:04:44 [error] 7228#7228: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:05:15 [error] 7244#7244: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:05:46 [error] 7260#7260: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:06:16 [error] 7276#7276: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:06:47 [error] 7299#7299: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:07:17 [error] 7315#7315: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:07:48 [error] 7331#7331: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:08:18 [error] 7347#7347: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:08:49 [error] 7362#7362: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:09:19 [error] 7379#7379: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:09:50 [error] 7471#7471: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:10:21 [error] 7488#7488: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:10:51 [error] 7504#7504: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:11:22 [error] 7520#7520: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:11:52 [error] 7536#7536: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:12:23 [error] 7552#7552: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:12:53 [error] 7568#7568: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:13:24 [error] 7584#7584: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:13:54 [error] 7601#7601: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:14:25 [error] 7617#7617: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:14:56 [error] 7647#7647: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:15:26 [error] 7664#7664: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:15:57 [error] 7862#7862: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:16:27 [error] 7879#7879: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$

    2020/07/07 00:16:58 [error] 7895#7895: *1 FastCGI sent in stderr: "PHP message: PHP Warning: fread(): Length parameter must be greater than 0 in /usr/share/php/openmediavau$


    Lastly, one thing I noticed is that my boot partition, while 8GB, is out of space. I don't know Linux well enough to figure out what is taking up all that space (maybe the log file above if there are enough errors that it just keeps growing??). I had a problem during OMV install where although I had a 24GB drive, OMV set my boot partition at 8GB and gave me a 16GB extended partition, most of which seems to be used for Swap. I have been unable to resize things to just give most of the drive to OMV, so something certainly seem very wrong here. Any additional thoughts based on these new discoveries/info? Oh, and yes, I have installed OMV plugins: Flashmedia, UnionFS, SnapRaid, Resetperms are all plugins I use. Thanks again.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!