upgrade stuck on postinstall

  • Upgraded today from squeeze/fedaykin to jessie/erasmus. Obviously that's about as hard an upgrade as can be. However all seemed to be OK up to the postinstall for 3.0. I've been going at this all day and have hit the limit of my google fu, so hoping someone can help.


    Crux of issue in postinstall (including after reboot, triggered with apt-get install -f)


    Output of dpkg -l | grep openm :




    Code
    root@OMVBOX:~# dpkg -l | grep openm
    iF  openmediavault                        3.0.54                         all          Open network attached storage solution
    ii  openmediavault-keyring                1.0                            all          GnuPG archive keys of the OpenMediaVault archive
    root@OMVBOX:~#


    calling apt-get --reinstall install openmediavault triggers the postinstall script again and blocks the reinstall.


    Any ideas? I upgraded my other machine today OK but this one's got me stumped. TIA

  • Ok I was able to get by the stuck install to reinstall by removing /var/lib/dpkg/info/openmediavault.postinst. This allowed me to:


    apt-get install -f


    apt-get install --reinstall openmediavault


    omv-initsystem:


    Code
    root@OMVBOX:/var/lib/dpkg/info# omv-initsystem
    depmod: WARNING: could not open /var/tmp/mkinitramfs_a3iOI3/lib/modules/2.6.32-5-amd64/modules.builtin: No such file or directory
    insserv: warning: script 'K02jira' missing LSB tags and overrides
    insserv: warning: script 'jira' missing LSB tags and overrides
    /usr/sbin/omv-mkgraph: 29: [: -eq: argument expected
    root@OMVBOX:/var/lib/dpkg/info#


    systemctl stop openmediavault-engined && omv-engined -df :




    ??

  • Hi


    service apache2 stop
    update-rc.d -f apache2 remove
    service nginx start


    Hi Wolf, I tried that and seem to have gotten further with the reinstall, but now issues with users?


    • Offizieller Beitrag

    Did you skip directly from 0.5 to 3.x? If so, that is a bad idea.


    It is complaining that users and groups don't exist. Do the following:


    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!

  • Did you skip directly from 0.5 to 3.x? If so, that is a bad idea


    I did at least one intermediate step (to 1.0 I think) but tbh I was doing 2 servers at once and it's been a long day so I'm not sure exactly how it went down.


    That definitely helped, thanks. I can now reinstall and it completes without errors. However, when I run omv-initsystem, I get the following:


    Code
    root@OMVBOX:~# omv-initsystem
    depmod: WARNING: could not open /var/tmp/mkinitramfs_zestR6/lib/modules/2.6.32-5-amd64/modules.builtin: No such file or directory
    insserv: warning: script 'K02jira' missing LSB tags and overrides
    insserv: warning: script 'jira' missing LSB tags and overrides
    /usr/sbin/omv-mkgraph: 29: [: -eq: argument expected


    This line relates to rrdtool:



    Code
    # Exit here if the rrdtool service is disabled.
    [ 0 -eq  ] && exit 0


    which is installed, though I don't know enough about it to debug it?

    • Offizieller Beitrag

    depmod: WARNING: could not open /var/tmp/mkinitramfs_zestR6/lib/modules/2.6.32-5-amd64/modules.builtin: No such file or directory

    rm -rfv /lib/modules/2.6.32-5-amd64
    update-initramfs -u


    insserv: warning: script 'K02jira' missing LSB tags and overrides
    insserv: warning: script 'jira' missing LSB tags and overrides

    jira is causing this problem whatever it is. You will have to remove it if you want this warning to go away. It is just a warning though.


    /usr/sbin/omv-mkgraph: 29: [: -eq: argument expected

    Try:
    omv-mkconf collectd
    omv-mkconf rrdcached


    then:
    omv-firstaid to fix the rrd 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!

  • All good on the Jira stuff, thanks.


    All went ok until the firstaid:

    Code
    Checking all RRD files. Please wait ...
    All RRD database files are valid.
    Action failed -- Other action already in progress -- please try again later
    root@OMVBOX:~#


    omv-initsystem looks worse:



    Code
    root@OMVBOX:~# omv-initsystem
    depmod: ERROR: could not open directory /lib/modules/2.6.32-5-amd64: No such file or directory
    depmod: FATAL: could not search modules: No such file or directory
    depmod: WARNING: could not open /var/tmp/mkinitramfs_vjMqdg/lib/modules/2.6.32-5-amd64/modules.order: No such file or directory
    depmod: WARNING: could not open /var/tmp/mkinitramfs_vjMqdg/lib/modules/2.6.32-5-amd64/modules.builtin: No such file or directory
    insserv: warning: script 'K02jira' missing LSB tags and overrides
    insserv: warning: script 'jira' missing LSB tags and overrides
    root@OMVBOX:~#


    I'm rebooting just in case that affects initramfs, thanks heaps for the help so far


    *edit* reboot didn't help :(

    • Offizieller Beitrag

    After the reboot, post the output of: dpkg -l | grep -E "openm|linux-image"


    Probably have to remove the old kernels.

    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!

  • After the reboot, post the output of: dpkg -l | grep -E "openm|linux-image"


    Probably have to remove the old kernels.

    here:


    Code
    ii  linux-image-2.6-amd64                 3.2+46                         amd64        Linux for 64-bit PCs (dummy package)
    ii  linux-image-2.6.32-5-amd64            2.6.32-48squeeze19             amd64        Linux 2.6.32 for 64-bit PCs
    ii  linux-image-3.16.0-4-amd64            3.16.36-1+deb8u2               amd64        Linux 3.16 for 64-bit PCs
    ii  linux-image-3.2.0-4-amd64             3.2.82-1                       amd64        Linux 3.2 for 64-bit PCs
    ii  linux-image-amd64                     3.16+63                        amd64        Linux for 64-bit PCs (meta-package)
    ii  openmediavault                        3.0.54                         all          Open network attached storage solution
    ii  openmediavault-keyring                1.0                            all          GnuPG archive keys of the OpenMediaVault archive


    so with uname -a:


    Code
    root@OMVBOX:~# uname -a
    Linux OMVBOX 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux

    so sudo apt-get --purge autoremove ?

    • Offizieller Beitrag

    apt-get purge linux-image-2.6-amd64 linux-image-2.6.32-5-amd64 linux-image-3.2.0-4-amd64
    apt-get autoremove
    apt-get clean

    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!

  • OK I can get all the way through to a clean omv-initsystem now. Nginx and omv-engined running.


    Browser responds with:


    Error #0:
    exception 'OMV\Exception' with message 'Failed to open file (filename=/var/cache/openmediavault/cache.omv\controlpanel\login_js.json, mode=w+).' in /usr/share/php/openmediavault/json/file.inc:71
    Stack trace:
    #0 /usr/share/php/openmediavault/controlpanel/controlpanelabstract.inc(181): OMV\Json\File->open('w+')
    #1 /var/www/openmediavault/index.php(46): OMV\ControlPanel\ControlPanelAbstract->render()
    #2 {main}


    It's well broken eh :( Looks like permissions maybe?


    trying reinstall per Error #6000 cannot access GUI


    *edit* no joy :( same error even after reboot

    • Offizieller Beitrag

    These files are generated so you can remove them.
    rm -f /var/cache/openmediavault/*.json
    Then clear your browser cache or use incognito window and try again.

    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!

  • Done and done, same error in new incognito window :(


    In case it helps:


    Code
    root@OMVBOX:~# dpkg -l | grep openm
    ii  openmediavault                        3.0.54                         all          Open network attached storage solution
    ii  openmediavault-keyring                1.0                            all          GnuPG archive keys of the OpenMediaVault archive
    • Offizieller Beitrag

    chmod 775 /var/cache/openmediavault
    chown openmediavault:openmediavault-webgui /var/cache/openmediavault

    • Offizieller Beitrag

    send me a PM with your Reddit address, you just earned 3 months of gold.

    For me being such a tech nerd, you would think I knew that meant :D I mean I know what reddit is. Just glad the system is working :)

    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!