Invalid RPC Response in Snapraid Plugin

  • I just remarked that whenever i try to access the Array or Drives section of the Snapraid plugin in the OMV GUI I get an RPC error.


    Syslog tells me the following about this. Whats happening here?




  • The update was done yesterday and it might have broken something.

    openmediavault-snapraid/debian/changelog at master · OpenMediaVault-Plugin-Developers/openmediavault-snapraid (github.com)

    Code
    openmediavault-snapraid (7.0.7) stable; urgency=low
    
      * Fix parity number issues on upgrades
    
     -- OpenMediaVault Plugin Developers <plugins@omv-extras.org>  Fri, 12 Apr 2024 12:50:33 -0500


    Give it some time and ryecoaaron will surely get on it.

    • Neu
    • Offizieller Beitrag

    Sorry about the bug. It is fixed now and 7.0.8 is in the repo.

    fix typo · OpenMediaVault-Plugin-Developers/openmediavault-snapraid@af2891c
    Signed-off-by: Aaron Murray <plugins@omv-extras.org>
    github.com


    Unfortunately, I can't push a fix that restores the old config.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Neu
    • Offizieller Beitrag

    o that means if we apply the fix, it won't help us?

    Yes. There isn't anything I can do once 7.0.7 has been installed.

    We have to get the old config from a backup?

    Yes.


    How to do this?

    How do you backup the OS?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Neu
    • Offizieller Beitrag

    You can either restore the whole OS or you can uninstall the plugin and reinstall it. Then recreate the array from the config in /etc/snapraid/

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • recreate the array from the config that is in my backup under folder /etc/snapraid? So reinstall plugin and then copy the contents of the /etc/snapraid backup folder to the current?


    I have a clonezilla backup but it is already 6 weeks old. So dont really wanna restore the full drive.

    • Neu
    • Offizieller Beitrag

    ecreate the array from the config that is in my backup under folder /etc/snapraid? So reinstall plugin and then copy the contents of the /etc/snapraid backup folder to the current?

    No. The current (or backup) version of the /etc/snapraid/ config file would just be for reference. If you can look at the backup of the /etc/openmediavault/config.xml, it would be even better. But most snapraid setups are easy to recreate after reinstalling the plugin.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I have uninstalled and reinstalled plugin.


    I create an array called Array1.

    I try to add disk with content and data. and get this error:


    paritynum: The value "1" is not an integer.


    OMV\Json\SchemaValidationException: paritynum: The value "1" is not an integer. in /usr/share/php/openmediavault/json/schema.inc:342

    Stack trace:

    #0 /usr/share/php/openmediavault/json/schema.inc(293): OMV\Json\Schema->validateInteger()

    #1 /usr/share/php/openmediavault/json/schema.inc(631): OMV\Json\Schema->validateType()

    #2 /usr/share/php/openmediavault/json/schema.inc(399): OMV\Json\Schema->checkProperties()

    #3 /usr/share/php/openmediavault/json/schema.inc(289): OMV\Json\Schema->validateObject()

    #4 /usr/share/php/openmediavault/json/schema.inc(261): OMV\Json\Schema->validateType()

    #5 /usr/share/php/openmediavault/rpc/paramsvalidator.inc(59): OMV\Json\Schema->validate()

    #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(179): OMV\Rpc\ParamsValidator->validate()

    #7 /usr/share/openmediavault/engined/rpc/snapraid.inc(257): OMV\Rpc\ServiceAbstract->validateMethodParams()

    #8 [internal function]: OMVRpcServiceSnapRaid->setDrive()

    #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()

    #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()

    #11 /usr/sbin/omv-engined(535): OMV\Rpc\Rpc::call()

    #12 {main}

    Inwin MS04 case with 315 W PSU

    ASUS Prime H310i-Plus R2.0 board

    Two port PCI-E SATA card

    16GB Kingston DDR4

    Intel Pentium Coffee Lake G5400 CPU

    Samsung Evo M.2 256GB OS drive

    4x4TB WD Red NAS drives + 1x4TB + 1x5TB Seagate drives - MergerFS pool

    Seagate 5TB USB drives - SnapRAID parity x 2

    • Neu
    • Offizieller Beitrag

    I create an array called Array1.

    I try to add disk with content and data. and get this error:


    paritynum: The value "1" is not an integer.

    uncheck the data checkbox, change parity num to 2, check data checkbox. I will fix this.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Neu
    • Offizieller Beitrag

    7.0.9 is in the repo.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • OK array manually recreated - looks as it was - thanks.

    Inwin MS04 case with 315 W PSU

    ASUS Prime H310i-Plus R2.0 board

    Two port PCI-E SATA card

    16GB Kingston DDR4

    Intel Pentium Coffee Lake G5400 CPU

    Samsung Evo M.2 256GB OS drive

    4x4TB WD Red NAS drives + 1x4TB + 1x5TB Seagate drives - MergerFS pool

    Seagate 5TB USB drives - SnapRAID parity x 2

    • Neu
    • Offizieller Beitrag

    I will try not to break it again.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Looks like solved here as well.


    No worries. You have helped me and others a lot.

    We all know that you cannot be perfect all the time. But i can for sure say you are pretty good in what you do.

    Let's keep trust and humanity float forth and back ;) That's the spirit of of this forum, it's experts and users.

Jetzt mitmachen!

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