Accidentally removed Openmediavault - Need to restore

  • Hello,


    I tried to install a Plug-In (OMV-Sensors) via SSH and used apt-get install openmediavault-.
    When I pressed on TAB twice, it has started to reinstall the openmediavault plugin by removing all my plugins.
    This is what it did and I pressed Ctrl-C to stop it when I realized it. First Step.txt


    After that, I have tried to access the WebGUI but received message '403...' so I have done: apt-get install openmediavault to try and recover.
    This is what it did: Second Step.txt



    Now I can reach the WebGUI but recieve the following message:


    Third Step.txt


    Please I need urgent assistance to reduce the damage and recover my system.


    Please guide me how to proceed.


    Thank you

  • If not purge has been executed then the configuration should remain
    I have with the backup not so good experience. I copy the config.xml of:


    /etc/openmediavault/config.xml

    https://github.com/Wolf2000Pi


    OMV6 Hewlett-Packard HPE-411at - Intel Core i7 CPU 870 @ 2.93GHz - 16GB Ram

    Proxmox omv 7 sandworm Dell OptiPlex 7050 i5-6500 CPU @ 3.20GHz - 32GB Ram (Test!!!!)

  • Succeeded to run the reinstall command by adding --reinstall but WebGUI still not accessible:


  • Thank you, I ran the commands


    Code
    root@openmediavault:~# omv-mkconf php5fpm
    root@openmediavault:~# service php5-fpm restart
    root@openmediavault:~#


    Tried to login and stil error:


    What else should I do?

  • Emptied cache, rebooted PC and Server but still error:


    Code
    Error #0:
    exception 'OMV\Rpc\Exception' with message 'Failed to connect to socket: No such file or directory' in /usr/share/php/openmediavault/rpc/rpc.inc:140
    Stack trace:
    #0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
    #1 [internal function]: OMVRpcServiceSession->login(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
    #4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
    #5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
    #6 {main}

    I tried also incognito in Chrome but same error, tried also Explorer


    I really appreciate the help, is there anything else to try?

  • Thank you.


    The first part was executed and finished.


    I ran the omv-first aid and select the WebGUI configuration and recieved:

    Code
    ERROR: [Errno 2] No such file or directory


    I reboot the server and cleaned cache in browser and tried to login but still error:

    I looked in my Email and saw:

    Code
    Does not exist Service omv-engined

    and


    Code
    Execution failed Service omv-engined
    
    
            Date:        Wed, 18 Oct 2017 22:16:54
            Action:      alert
            Host:        openmediavault.local
            Description: failed to start (exit status 1) -- /bin/systemctl: Failed to start openmediavault-engined.service: Unit openmediavault-engined.service is masked.

    Please help...

  • Thank you, I ran the commands


    Code
    root@openmediavault:~# omv-mkconf php5fpm
    root@openmediavault:~# service php5-fpm restart
    root@openmediavault:~#


    Tried to login and stil error:


    What else should I do?

  • Hello,


    I found a reference and opened SSH and executed:

    Code
    omv-engined -d -f

    This allows me to login as long as the session open.


    How do I make it permanent?


    Aslo, I don't see all the plugins that were installed and are still working. Is there a way to fix?

  • systemd tells you your service is masked (marked as not startable):

    Code
    Description: failed to start (exit status 1) -- /bin/systemctl: Failed to start openmediavault-engined.service: Unit openmediavault-engined.service is masked.


    try to verify this with

    Code
    systemctl list-unit-files

    and unmask it with

    Code
    systemctl unmask openmediavault-engined

    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.

  • Thank you, that fixed the issue and now the WebGUI is accessible.





    Now the second problem: I don't see in the Plugin section all the plugins that were installed and are still working. Is there a way to fix?
    And I also don't see the plugins from the OMV repository


    It also seems that I'm missing the PHP installation, how do I reinstall it?


    I have saved my original config.xml file, if I will replace it with the current one it should work?

Jetzt mitmachen!

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