Setting up openmediavault (5.6.26-1)

  • Setting up openmediavault (5.6.26-1) ...

    Creating users/groups ...

    Updating local package archive ...

    Updating service units ...

    systemd-journald.service is a disabled or a static unit, not starting it.

    Creating configuration database ...

    ERROR: Failed to create the default configuration: "The environment variable 'OMV_CONFIG_FILE' does not exist in '/etc/default/openmediavault'"

    Traceback (most recent call last):

    File "/usr/share/openmediavault/confdbadm/commands.d/create.py", line 65, in execute

    self.create_backup()

    File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 72, in create_backup

    config_path = openmediavault.getenv("OMV_CONFIG_FILE")

    File "/usr/lib/python3/dist-packages/openmediavault/__init__.py", line 49, in getenv

    return openmediavault.settings.Environment.get_str(key, default)

    File "/usr/lib/python3/dist-packages/openmediavault/settings.py", line 124, in get_str

    env_var = Environment._get(key, default)

    File "/usr/lib/python3/dist-packages/openmediavault/settings.py", line 113, in _get

    % (key, DEFAULT_FILE)

    KeyError: "The environment variable 'OMV_CONFIG_FILE' does not exist in '/etc/default/openmediavault'"


    During handling of the above exception, another exception occurred:


    Traceback (most recent call last):

    File "/usr/share/openmediavault/confdbadm/commands.d/create.py", line 85, in execute

    self.rollback_changes()

    File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 108, in rollback_changes

    raise RuntimeError("No configuration backup exists.")

    RuntimeError: No configuration backup exists.


    During handling of the above exception, another exception occurred:


    Traceback (most recent call last):

    File "/usr/sbin/omv-confdbadm", line 76, in <module>

    sys.exit(main())

    File "/usr/sbin/omv-confdbadm", line 72, in main

    return cmd_inst.execute(*sys.argv)

    File "/usr/share/openmediavault/confdbadm/commands.d/create.py", line 88, in execute

    self.unlink_backup()

    File "/usr/lib/python3/dist-packages/openmediavault/confdbadm.py", line 91, in unlink_backup

    raise RuntimeError("No configuration backup exists.")

    RuntimeError: No configuration backup exists.

    dpkg: error processing package openmediavault (--configure):

    installed openmediavault package post-installation script subprocess returned error exit status 1

    Errors were encountered while processing:

    openmediavault

    E: Sub-process /usr/bin/dpkg returned an error code (1)

  • "The environment variable 'OMV_CONFIG_FILE' does not exist in '/etc/default/openmediavault'"


    cat /etc/default/openmediavault

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • I can provide you with mine. Do you need Pi or Amd64?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.


  • Check the values if you need something different. (It is OMV6 upgraded from 4 to 4 to 5 to 6)

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • root@ :~# omv-confdbadm populate

    Traceback (most recent call last):

    File "/usr/sbin/omv-confdbadm", line 76, in <module>

    sys.exit(main())

    File "/usr/sbin/omv-confdbadm", line 72, in main

    return cmd_inst.execute(*sys.argv)

    File "/usr/share/openmediavault/confdbadm/commands.d/exists.py", line 55, in execute

    return 0 if db.exists(cmd_args.id, filter) else 1

    File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 164, in exists

    query.execute()

    File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 697, in execute

    self._response = self._elements_to_object(elements)

    File "/usr/lib/python3/dist-packages/openmediavault/config/database.py", line 472, in _elements_to_object

    obj.set_dict(self._element_to_dict(element), False)

    File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 208, in set_dict

    self.set(key, value, validate)

    File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 182, in set

    self.assert_exists(name)

    File "/usr/lib/python3/dist-packages/openmediavault/config/object.py", line 154, in assert_exists

    % (name, self.model.id)

    openmediavault.exceptions.AssertException: The property 'options' does not exist in the model 'conf.system.network.interface'.

  • Do you have a backup of omv4 os or the error messages from the update?


    It looks like the omv config db is not correct.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Might have backup of OMV4 not 100% though. will check.

    For 4-5.0 and distro updated to debain 10.12 I'm Not sure where it's accessible from, sftp or the specific .log will just sys.log, dpkg.logm or user.log do?


    i know there is a current error log from the web panel but not the Gui since Nginx is dead atm.

    cockpit is only accessible some how there is a log there too.

  • As I understand, you have tried to upgrade from OMV4 to OMV5 and this failed.

    The upgrade produces a lot of messages and this is what I need to see where it failed.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • It is written to the console, not stored in a file.
    How / when did you upgrade?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • I remeber upgrade from 4 to 5 was painfull even with dleidert s upgrade scripts.

    https://github.com/dleidert/openmediavault-upgrade


    If you do not have the skills to analyze where the problems are and do not have the output, you have two options:

    1. Do a fresh install of OMV6
    2. Restore your OS backup and try the backup script linked above and keep the messages around.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • "Take a step back and think, what data is stored on the os disk.

    - OMV config -> You can take a copy od /etc/openmediavault/config.xml to suoort your memory, what was installed.

    - docker -root (if you did not move it to some other place) can be backed up easily if you used portainer oder docker-compose to define your stacks.

    - /etc/password -> list of users and their home directories

    - /etc/group -> list of groups


    You data will not be affected by a clean install, only ownership of files may change if you create users in a different order from what you did before, but this can be fixed from the cli."


    Found a Comment from yourself on another posting and just wanted to confirm some of this to possibly ease into a new fresh install.

    -----------------------------------------

    Does this include Raid setup etc?

    I'm more than willing to fresh install, long as i don't loose said info User ownership etc eliminating the stress of everything loosing everything.
    For fast tracking a install with said config files etc as above is there a proper way to accomplish this with minimal risk with relative ease of install to OMV6

  • Disconnect the drives while doing the install, then connect the data disks and re-create the shared folders on directories where they are now.

    keep a copy of the files named above and if you do not want the users to remember new passwords, you will need a copy of /etc/shadow too.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

Jetzt mitmachen!

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