There was an error on menu JSON generation

After reboot of VM appliance (6.10) to add more CPU (2->4) I got this error:



Any ideas ?

Comments

  • Hi,

    Looks like corrupted etc/web_config/users.json

    there should be a backup copy of that file in
    cd /home/lpar2rrd/lpar2rrd
    ls -ltr etc/.web_config/users.json-*

    1. make backup of actual one
    cp etc/web_config/users.json etc/web_config/users.json-bad

    2. revert back the latest one
    cp etc/.web_config/users.json-<timestamp> etc/web_config/users.json


    Keep same user rights as on the original file. It must be owned by apache user (lpar2rrd on the virtual appliance)

    BTW this is something what should not happed in actually latest version 6.16

  • Thx it worked!
    I will try to update to 6.16 asap

    Bye 
  • Hi,

    @Pavel I have the same problem after updating to version 7.
    I implemented the above solutions, but it did not work ...

    stor2rrd works fine after upgrading to v7 - do you have any other suggestions for solutions?

    Best Regards
    Mariusz
  • tail /var/tmp/lpar*realt*
  • Hi @Pavel,

    Thank you for reply.

    I found file:

    cat /var/tmp/systemd-private-3bf31c68c71d4ccd987ae436e79033e7-httpd.service-h1gOGe/tmp/lpar2rrd-realt-error.log<br>[Tue Nov 10 09:54:16 2020] genjson.pl: Wide character in subroutine entry at /home/lpar2rrd/lpar2rrd/bin/genjson.pl line 4155. <br>[Tue Nov 10 10:01:19 2020] genjson.pl: Wide character in subroutine entry at /home/lpar2rrd/lpar2rrd/bin/genjson.pl line 4155.&nbsp;

    in 4155 line in genjson.pl file is:

    my $hash = substr( md5_hex($hashstr), 0, 7 );
  • Hello, 

    please send us this file for analyse:
    /home/lpar2rrd/lpar2rrd/tmp/menu.txt

    Use our upload website: https://upload.lpar2rrd.com , zip it please before upload

    Thanks in advance

  • Hello,

    we made a fix already, there was a problem with encoding on some menu entries
    You can get it here:

    https://download.lpar2rrd.com/patch/7.03-8-g5f38/genjson.pl.gz

    Gunzip it and copy to /home/lpar2rrd/lpar2rrd/bin (755, lpar2rrd owner)
    -rwxr-xr-x 1 lpar2rrd lpar2rrd 165174 Nov 10 14:18 genjson.pl

    If your web browser gunzips it automatically then just rename it: mv genjson.pl.gz genjson.pl
    Assure that file size is the same as on above example

    Menu should be back as soon as the patch is applied, let us know please


  • Hi,
    @Jirka thank you very much - it works !!!!!
Sign In or Register to comment.