Apache Problems

  • Hello,


    I have been trying to tinker with apache to get the link http://myip/rutorrent to work. Unfortunately things have gone from bad to worse and I have completely smoked apache and the omv website.


    As things got unusable I tried to deleted the /etc/apache2 folder removed apache2 for a fresh reinstall of apache. . . . I think this was a bad call.


    When I try to reinstall apache or openmediavault (as this reinstalls apache) I get the following errors;



    At present I have nowhere to move and cannot access any webpages, including the openmediavault default webpage.


    Any help would be appreciated, its not often I get myself into this much of a mess. . .


    C

    • Offizieller Beitrag

    Recreate the /etc/default/openmediavault file with the following code:


    nano /etc/default/openmediavault


    ctrl-o to save
    ctrl-x to exit


    apt-get remove openmediavault-website
    apt-get install --reinstall apache2
    apt-get install --reinstall openmediavault



    You probably just need to remove the website file in /etc/apache2/sites-enabled.

    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!

  • Thank-you for your reply and assistance.


    I have created the folder but now get;


    The folder /usr/share/openmediavault . . . . does not exist, I think openmediavault has been removed . . . gulp!


    Many thanks,
    C

    • Offizieller Beitrag

    That's ok. Just switch it around.


    apt-get install --reinstall apache2
    apt-get install --reinstall openmediavault
    apt-get remove openmediavault-website

    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!

    • Offizieller Beitrag

    What's the output of:


    dpkg -l | grep openmediavault

    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!

  • it is;


    Code
    root@qnap:~# dpkg -l | grep openmediavault
    ii  openmediavault-keyring                 0.2                          GnuPG archive keys of the OpenMediaVault archive
    rH  openmediavault-website                 0.5.2                        OpenMediaVault website plugin
    • Offizieller Beitrag

    Try


    dpkg --force-all -P openmediavault-website


    Then


    apt-get install apache2 openmediavault

    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!

    • Offizieller Beitrag

    I have a few more things...


    wget http://packages.openmediavault…mediavault_0.5.17_all.deb
    dpkg --force-all -i openmediavault_0.5.17_all.deb
    dpkg --force-all -P openmediavault-website
    apt-get install apache2

    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 was thinking along the same lines, but was thinking I needed to find the openmediavault-website deb / dpkg file to reinstall the plugin?


    I ran the commands as per your post but am still having problems;



    I appreciate your help, do you have any other ideas?

  • . . . . and when I run the last 2 x commands from your previous post I get;


    Code
    Removing openmediavault-website ...
    /var/lib/dpkg/info/openmediavault-website.postrm: 43: a2dissite: not found
    /var/lib/dpkg/info/openmediavault-website.postrm: 43: /etc/init.d/apache2: not found
    dpkg: error processing openmediavault-website (--remove):
     subprocess installed post-removal script returned error exit status 127
    configured to not write apport reports
                                          Errors were encountered while processing:
     openmediavault-website
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@qnap:/#


    Still no go unfortunately

    • Offizieller Beitrag

    If you reinstall the website plugin, it will want to install openmediavault.


    I think you need to extract the openmediavault deb I had you download and replace the missing omv files.


    dpkg-deb -x *.deb /tmp/extract/


    Then try to remove the website plugin 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!

  • I cannot find any files to replace, the files in the extraction all seem (I think) to be on my installed system.


    I think the issue is that the file /var/lib/dpkg/info/openmediavault-website.postrm requires the presence of both a2dissite and /etc/init.d/apache2 to be able to uninstall openmediavault-website. But a2dissite and /etc/init.d/apache2 are part of apache2 which is no longer on the system and cannot be installed until openmediavault-website is removed. . . . catch22!!


    I dont know what to do, have been googling, looking through the forums but coming up short. . .

    • Offizieller Beitrag

    Then we will edit the postrm file. It can't remove the omv stuff because it is gone and it can't restart apache because the files are gone. So remove them :)


    nano /var/lib/dpkg/info/openmediavault-website.postrm


    delete the following lines


    Code
    omv_config_delete "//services/website"
    a2dissite openmediavault-website || true
    /etc/init.d/apache2 graceful


    and


    Code
    a2dissite openmediavault-website || true
            /etc/init.d/apache2 graceful


    ctrl-o to save
    ctrl-x to exit


    apt-get remove --purge openmediavault-website

    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!

  • Well, I created empty bash files /usr/sbin/a2dissite and /etc/init.d/apache2 and was then able to remove the offending openmediavault-website, i.e. bypass the errors.


    I then reinstalled apache2 and openmediavault (took a loooonnnggg time - man I deleted nearly half my system!!)


    I then rebooted my system for good measure and I can access the OVM GUI again - success!


    I suppose after enforcing such trauma on my system I may have a few other side effects to resolve but at least I have something to work with now.


    Many thanks for your assistance ryecoaaron! much appreciated

    • Offizieller Beitrag

    Glad you got it fixed :)

    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!