5.6.4-1 post-installation script error

  • same issue here. Followed ryecoaaron's instructions above in post #18 and all fixed. Did not tweak the post install scripts.


    Thanks to ryecoarron. as always he fixes everyone. Just need to dig into the forums to find any and all answers.

  • I have similar problems when running omv-upgrade:

    I tried ryecoaaron commands. Output is:

    Code
    ➜  / sudo omv-salt deploy run nginx phpfpm monit
    odroidxu4:
        Data failed to compile:
    ----------
        Rendering SLS 'base:omv.deploy.nginx.10webgui' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'omv_conf.get'
    ----------
        Rendering SLS 'base:omv.deploy.monit.default' failed: Jinja variable 'salt.utils.templates.AliasedLoader object' has no attribute 'omv_conf.get'

    ryecoaaron Do you have another idea? Thanks!

    • Offizieller Beitrag

    I would try installing python3-lxml since the output says it can't find lxml. apt-get install python3-lxml

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • Thanks for the quick reply. It says it is already installed:

    • Offizieller Beitrag

    what is the output of:

    dpkg -l | grep -E "openme|python"

    ls -al /usr/lib/python3/dist-packages/lxml/

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • Message was too long, continue:

    • Offizieller Beitrag

    ls: cannot access '/usr/lib/python3/dist-packages/lxml/

    This is your problem. You must have deleted the files in the this directory.


    apt-get install --reinstall python3-lxml

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

  • No but you shouldn't need to. What is the output of:


    sudo omv-confdbadm migrate "conf" "5.0.0"

    sudo omv-salt deploy run nginx phpfpm monit

    Hi

    Run these commands and then apt-update followed by apt-upgrade but still can't get post upgrade to work.

    this is my output :

    • Offizieller Beitrag

    rr:15 https://dl.bintray.com/crystal/deb all InRelease
    403 Forbidden [IP: 35.157.134.10 443]

    omv-extras repos moving to github


    Err:17 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu hirsute Release
    404 Not Found [IP: 91.189.95.85 80]

    You need to remove this ppa. Not sure why you are installing a desktop app on a server that should not be running a desktop environment.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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 stumbled over the same problem, with "apt upgrade" failing on the the openmediavault postinstall script.

    Unfortunately, none of the previous suggested hints helped to resolve this.


    Since this problem seems to have many possible causes, I woud like to share some details how to analyze it. Finally, I managed to resolve the issue in this case.


    First of all, enable trace logging for the postinst script, by setting "#!/bin/sh -x" in /var/lib/dpkg/info/openmediavault.postinst.

    This will print each line of the postinst script being executed on your next apt invocation.

    In my case, it terminated right after

    "omv-salt deploy run --no-color apt cronapt"


    So I ran this command by itself and discovered the cause of the problem:

    ...

    salt.exceptions.CommandExecutionError: E: The repository 'https://download.docker.com/linux/debian buster Release' no longer has a Release file.

    E: The repository 'https://openmediavault.github.io/packages usul Release' no longer has a Release file.

    E: The repository 'https://openmediavault-plugin-developers.github.io/packages/debian usul Release' no longer has a Release file.

    E: The repository 'https://openmediavault-plugin-developers.github.io/packages/debian usul-extras Release' no longer has a Release file.

    ...


    Basically it resolved to two issues:

    - There was an old sources list file present for omv-extras, which obviously contained bogus links.

    - The configured HTTPS proxy was rendered invalid as https://my.proxy (instead of http://my.proxy).


    I removed the bogus source file and removed the proxy. (Actually, I found no way to configure the HTTPS proxy correctly via the UI - Bug!?!?)

    After that, everything ran through smoothly.

    • Offizieller Beitrag

    There was an old sources list file present for omv-extras, which obviously contained bogus links.

    What are you calling bogus links? The repo urls in your output are correct. Something happened to the apt-get update if your system isn't finding Release files.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | 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!

Jetzt mitmachen!

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