I recently upgraded from OMV 6 to 7 via omv-release-upgrade. Everything seemed to work fine. From the Snapraid UI, I saw my data and parity disks intact. Now that I need to change data/parity disks, I keep getting this error:
500 - OK
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color snapraid 2>&1' with exit code '1': debian: Data failed to compile: ---------- Rendering SLS 'base:omv.deploy.snapraid.default' failed: Jinja error: drives.drive[6].paritynum: The value 7 is bigger than 6. Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/utils/templates.py", line 477, in render_jinja_tmpl output = template.render(**decoded_context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "<template>", line 18, in top-level template code File "/usr/lib/python3/dist-packages/jinja2/sandbox.py", line 396, in call return __context.call(__obj, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 149, in __call__ return self.loader.run(run_func, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1234, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^...
I attached a full log from syslog when the error happened in the UI.
My issue seems to be isolated to the Snapraid UI, and it may have something to do with the path changes in Snapraid's config. Prior to OMV 7, my config has always been in /etc/snapraid.conf. ryecoaaron mentioned in the other threads that the new path is now in /etc/snapraid, and the config name seems to resemble omv-snapraid-UUID_of_array.conf. These folder and file did not exist.
I tried to fix the path, but I was unsuccessful. I looked for the UUID of my array in /etc/openmediavault/config.xml. It was named array1 in the Snapraid UI:
# cat /etc/openmediavault/config.xml | grep -B 2 array1
<array>
<uuid>114a88d2-53ed-11ed-8eee-b3f2573b9c38</uuid>
<name>array1</name>
# mkdir /etc/snapraid
# cat /etc/snapraid.conf > /etc/snapraid/omv-snapraid-114a88d2-53ed-11ed-8eee-b3f2573b9c38.conf
However, it didn't change anything. I am still getting the same error from the Snapraid UI. Hopefully, the maintainer or someone who had the same issue can give me guidance on how to fix this without starting from scratch/reinstalling.
Snapraid plugin: openmediavault-snapraid 7.0.6