OMV returns error 500 after try to save settings

  • Hello,


    I decided to run the OMV on a Zyxel 542. I managed to install it on an 8 GB USB flash drive. I got the installation from here:


    http://seafile.servator.de/nas…lseye-21.218-armhf.img.gz and as kernel use this http://seafile.servator.de/nas…4.9.2-10_deb8u1-armhf.zip


    There is several problems whit the install. First to login whit WEB GUI I need to use this command which run from a serial connection whit cable:

    Code
    omv-engined -d -f

    Without running this command it is impossible to login in OMV OS.


    The second problem is when I make some changes to the server settings. Even a simple attempt to set the time zone and then apply the setting, after a while error 500 error appears. I was interesting that I managed to change the user password for login via the GUI despite this error 500.... But this is so annoying problem.


    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 chrony 2>&1' with exit code '1': Traceback (most recent call last):

    File "/usr/sbin/omv-salt", line 152, in <module>

    sys.exit(main())

    File "/usr/sbin/omv-salt", line 147, in main

    cli()

    File "/usr/lib/python3/dist-packages/click/core.py", line 829, in __call__

    return self.main(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main

    rv = self.invoke(ctx)

    File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

    File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

    File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke

    return ctx.invoke(self.callback, **ctx.params)

    File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke

    return callback(*args, **kwargs)

    File "/usr/sbin/omv-salt", line 133, in deploy_run

    caller = salt.client.Caller(mopts=mopts)

    File "/usr/lib/python3/dist-packages/salt/client/__init__.py", line 2170, in __init__

    self.sminion = salt.minion.SMinion(self.opts)

    File "/usr/lib/python3/dist-packages/salt/minion.py", line 920, in __init__

    opts["grains"] = salt.loader.grains(opts)

    File "/usr/lib/python3/dist-packages/salt/loader/__init__.py", line 1116, in grains

    ret = funcs[key]()

    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 1228, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1243, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/grains/core.py", line 1882, in os_data

    grains["systemd"]["version"] = systemd_info[0].split()[1]

    IndexError: list index out of range

    [ERROR ] An un-handled exception was caught by Salt's global exception handler:

    IndexError: list index out of range

    Traceback (most recent call last):

    File "/usr/sbin/omv-salt", line 152, in <module>

    sys.exit(main())

    File "/usr/sbin/omv-salt", line 147, in main

    cli()

    File "/usr/lib/python3/dist-packages/click/core.py", line 829, in __call__

    return self.main(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main

    rv = self.invoke(ctx)

    File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

    File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke

    return _process_result(sub_ctx.command.invoke(sub_ctx))

    File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke

    return ctx.invoke(self.callback, **ctx.params)

    File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke

    return callback(*args, **kwargs)

    File "/usr/sbin/omv-salt", line 133, in deploy_run

    caller = salt.client.Caller(mopts=mopts)

    File "/usr/lib/python3/dist-packages/salt/client/__init__.py", line 2170, in __init__

    self.sminion = salt.minion.SMinion(self.opts)

    File "/usr/lib/python3/dist-packages/salt/minion.py", line 920, in __init__

    opts["grains"] = salt.loader.grains(opts)

    File "/usr/lib/python3/dist-packages/salt/loader/__init__.py", line 1116, in grains

    ret = funcs[key]()

    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 1228, in run

    return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 1243, in _run_as

    return _func_or_method(*args, **kwargs)

    File "/usr/lib/python3/dist-packages/salt/grains/core.py", line 1882, in os_data

    grains["systemd"]["version"] = systemd_info[0].split()[1]

    IndexError: list index out of range





    Please advice what to do. Read lot of stuff but I am in a dead end for now now very good in Linux. Already try to update packages. The last is that try to update the Python to last version it takes lot of time to do it and not sure if it is finushed correctly.


    Any help would be greatly appreciated and I would be grateful to anyone who could give me guidance and help.



    Thank you in advance! :)

  • Hello votdev,


    I abandoned this installation... alas I think the image itself is not well prepared because files and whole folders are missing... now I start from a OMV 4



    and then to update to 5... but for now i am stuck whit the proper execute the commands. Most of them I made via serial connection whit USB cable. I read here for info about the upgrade from 4 to 5 https://forum.openmediavault.org/index.php?thread/37269-upgrade-scripts-for-non-interactive-major-release-upgrades-2-3-3-4-4-5/&pageNo=17


    And try to move the repository but not sure if i made it right... it's seems that the file is edited and the URL is there but after execute the final

    sudo apt-get update I am still on ver.4


    If you ask me why I am trying whit this and not install OMV6 the answer is that the hardware is an old Zyxel NAS542 and all attempts to install OMV5 failed... seems something whit the images or other not sure. And what i managed for now Is to flash the kernel and the main OS to this ver.4 of OMV. Not know if someone managed to run OMV 6 on this Zyxel NAS542... but if I managed to update it ver.5 it will be good as start.


    So I will be happy for any help and advice's :)


    Regards!



    PC: Even a fresh install on this NAS542 whit the image which is for OMV 4 after I execute systemctl --version there is no any return as answer...


    I am working on this guide https://techdudes.de/1930/zyxe…n-und-openmediavault-omv/ . Used the http://seafile.servator.de/nas…retch-21.213-armhf.img.gz and as kernel used the most new I found in this site http://seafile.servator.de/nas…4.9.2-10_deb8u1-armhf.zip


    command lsb_release -a think it is important because I guess there is no systemctl ?


    root@debian-nas:/# lsb_release -a

    No LSB modules are available.

    Distributor ID: Debian

    Description: Debian GNU/Linux 10 (buster)

    Release: 10

    Codename: buster






  • Is there a way to repair the missing systemctl ??? After systemctl --version noting was in return as answer...


    sudo apt-get update


    sudo apt-get install systemd


    and install not help at all... All images for this NAS542 seems totally mutilated... Not sure if I will manage to make it work... Strangely they are several images for OMV 5 which should fit but they have many problems after install and run...


    Regards!

  • Thank you for the answer Votdev. What I know is that for this type NAS there is no kernel for Debian 11. Is there a easy way to create one if I will boot and run the OS from a SD or USB flash card? The hardware specs are known of the NAS so I guess there is a way...

  • Thank you for the answer Votdev. What I know is that for this type NAS there is no kernel for Debian 11. Is there a easy way to create one if I will boot and run the OS from a SD or USB flash card? The hardware specs are known of the NAS so I guess there is a way...

    I have the same problem. Hope someone can explain one solution.

    • Official Post

    Thank you for the answer Votdev. What I know is that for this type NAS there is no kernel for Debian 11. Is there a easy way to create one if I will boot and run the OS from a SD or USB flash card? The hardware specs are known of the NAS so I guess there is a way...

    What is the device? Unless we are talking something really really obscure, one would think if it worked on Debian 10 (ie, OMV 5).. it would work fine on Debian 11 w/ OMV 6.

  • Zyxel 542

    KM0201


    The equipment above.

    And the SPECS are OFF-THE-CHART


    That CPU is probably what's giving the headaches.


    Although, even if it is doable to install Debian/OMV, it will be very limited resources.

    • Official Post

    I guess I should have read the full first post more carefully.


    You would think just a standard armbian 32bit image would work.. but.. I'm just assuming that is wishful thinking.


    Reason number 1024 to always build a server vs buying this off the shelf stuff.

  • You would think just a standard armbian 32bit image would work.

    Yep, that was what I was considering to tell the OP.

    Since the device has an SD card reader and it's an ARM device, maybe one of the ArmBian versions might work.


    But I don't even know if it boot's as an Arm device, if it uses a BIOS/UEFI or whatever.


    Or, the most logical is using a proprietary firmware!!!! Who know's....


    This looks like another white-rabbit chase on the same scope of those who want to install Debian on a WesternDigital My Cloud.

  • Hello every one,


    First of all I want to mention that OMV old versions like 2 or 3 works fine over this NAS542...There are people managed to install even OMV 5 and there are images and kernels for that OMV version but not know why I stick and after many installs always have errors or something is not working as it should.. I guess it could run even OMV 6 if the kernel properly configured or OMV is not so heavy and for the sport I will try to compile kernel and see what will happens. So what is the last stable version of Derbian 11 - I am looking here for them https://tracker.debian.org/pkg/linux ? Is this ver 5.10.140-1 ? Info how to compile and install I find here https://kernel-team.pages.debi…book/ch-common-tasks.html


    I have SD card 32 GB and Debian 11 install on virtual box so I can download all the stuff and prepare the SD in the OS...



    What what do you think? Is it possible this job to be done?


    PS: made some research. The Zyxel NAS542 have CPU ARM Cortex-A9 implementing the ARM v7 architecture instruction set. So after a search here https://linuxhint.com/about-arm64-armel-armhf/ it is found that we need Debian ARM ports Debian/armhf.


    So I can download a live ISO whit which is armhf boot from it and then make all the changes...


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!