Accidentally removed Openmediavault - Need to restore

    • OMV 3.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • 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
      forum-bpi.de Visit on and help us, The Germany Forum :thumbsup:
      github.com/Wolf2000Pi
      Banana Pi /Armbian 3.4.109 / Openmediavault 2.x
      Banana Pi /Armbian 4.11.5-sunxi / Openmediavault 3.0.xx (Test)
      Dell Inspiron One 2205 | Openmediavault 3.0.xx / Kernel 4.7 (Test)
    • Succeeded to run the reinstall command by adding --reinstall but WebGUI still not accessible:

      Source Code

      1. root@openmediavault:~# apt-get install --reinstall openmediavault
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. The following packages were automatically installed and are no longer required:
      6. aspell aspell-en avahi-utils ca-certificates-java certbot cifs-utils
      7. cli-common curlftpfs dbconfig-common deluge deluge-common deluge-console
      8. deluge-gtk deluge-web deluged desktop-file-utils dictionaries-common dkms
      9. dnsmasq dnsmasq-base docker-ce duplicati emacsen-common exo-utils
      10. fonts-freefont-ttf gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0
      11. gir1.2-gtk-2.0 gir1.2-pango-1.0 git git-man gstreamer0.10-alsa
      12. gstreamer0.10-plugins-base gtk-sharp2 gtk-sharp2-examples gtk-sharp2-gapi
      13. gtk2-engines-xfce imagemagick-common intltool java-common
      14. libappindicator0.1-cil libappindicator1 libaspell15 libatk1.0-dev
      15. libboost-python-dev libboost-python1.55-dev libboost-python1.55.0
      16. libboost-system-dev libboost-system1.55-dev libboost-system1.55.0
      17. libboost1.55-dev libcairo-script-interpreter2 libcairo2-dev libcdparanoia0
      18. libcrypt-openssl-random-perl libcrypt-passwdmd5-perl libcrypto++9
      19. libdbusmenu-glib4 libdbusmenu-gtk4 libdirectfb-1.2-9 libelfg0 libenchant1c2a
      20. liberror-perl libexif12 libexo-1-0 libexo-common libexo-helpers libffi-dev
      21. libfluidsynth1 libfontconfig1-dev libfontenc1 libfreetype6-dev libgarcon-1-0
      22. libgarcon-common libgdiplus libgdk-pixbuf2.0-dev libgeoip-dev libgif4
      23. libglade2-0 libglade2.0-cil libglade2.0-cil-dev libglib2.0-bin
      24. libglib2.0-cil libglib2.0-cil-dev libglib2.0-dev libgsoap5
      25. libgstreamer-plugins-base0.10-0 libgstreamer-plugins-base1.0-0
      26. libgstreamer0.10-0 libgstreamer1.0-0 libgtk2.0-cil libgtk2.0-cil-dev
      27. libgtk2.0-dev libgudev-1.0-0 libharfbuzz-dev libharfbuzz-gobject0
      28. libharfbuzz-icu0 libhunspell-1.3-0 libical1a libice-dev libindicator7
      29. libjavascriptcoregtk-1.0-0 libkeybinder0 liblqr-1-0 libmad0
      30. libmagickcore-6.q16-2 libmagickwand-6.q16-2 libmikmod3 libminiupnpc10
      31. libmono-2.0-1 libmono-accessibility4.0-cil libmono-cairo4.0-cil
      32. libmono-cecil-private-cil libmono-corlib2.0-cil libmono-corlib4.0-cil
      33. libmono-corlib4.5-cil libmono-csharp4.0c-cil libmono-data-tds4.0-cil
      34. libmono-i18n-west4.0-cil libmono-i18n4.0-cil libmono-messaging4.0-cil
      35. libmono-microsoft-csharp4.0-cil libmono-posix2.0-cil libmono-posix4.0-cil
      36. libmono-security2.0-cil libmono-security4.0-cil libmono-sharpzip4.84-cil
      37. libmono-sqlite4.0-cil libmono-system-configuration-install4.0-cil
      38. libmono-system-configuration4.0-cil libmono-system-core4.0-cil
      39. libmono-system-data4.0-cil libmono-system-drawing4.0-cil
      40. libmono-system-enterpriseservices4.0-cil
      41. libmono-system-identitymodel-selectors4.0-cil
      42. libmono-system-identitymodel4.0-cil libmono-system-messaging4.0-cil
      43. libmono-system-net-http-webrequest4.0-cil libmono-system-net-http4.0-cil
      44. libmono-system-net4.0-cil libmono-system-numerics4.0-cil
      45. libmono-system-runtime-serialization-formatters-soap4.0-cil
      46. libmono-system-runtime-serialization4.0-cil libmono-system-security4.0-cil
      47. libmono-system-servicemodel-activation4.0-cil
      48. libmono-system-servicemodel-discovery4.0-cil
      49. libmono-system-servicemodel4.0a-cil libmono-system-serviceprocess4.0-cil
      50. libmono-system-transactions4.0-cil
      51. libmono-system-web-applicationservices4.0-cil
      52. libmono-system-web-services4.0-cil libmono-system-web4.0-cil
      53. libmono-system-windows-forms4.0-cil libmono-system-xml-linq4.0-cil
      54. libmono-system-xml4.0-cil libmono-system2.0-cil libmono-system4.0-cil
      55. libmono-web4.0-cil libmono-webbrowser4.0-cil libmonoboehm-2.0-1 libmtdev1
      56. libnatpmp1 libnetfilter-conntrack3 liborc-0.4-0 libpango1.0-0
      57. libpango1.0-dev libpcre3-dev libpcrecpp0 libpixman-1-dev libpng12-dev
      58. libpolkit-gobject-1-0 libportmidi0 libpthread-stubs0-dev libpython3.4
      59. libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5
      60. libqt5printsupport5 libqt5qml5 libqt5quick5 libqt5sql5 libqt5webkit5
      61. libqt5widgets5 libqt5x11extras5 libsctp1 libsdl-image1.2 libsdl-mixer1.2
      62. libsdl-ttf2.0-0 libsdl1.2debian libsecret-1-0 libsecret-common libsm-dev
      63. libsmpeg0 libssl-dev libstartup-notification0 libthunarx-2-0
      64. libtorrent-rasterbar-dev libtorrent-rasterbar7 libunique-1.0-0 libutempter0
      65. libvisual-0.4-0 libvncserver0 libwebkit1.1-cil libwebkitgtk-1.0-0
      66. libwebkitgtk-1.0-common libwnck-common libwnck22 libx11-dev libxau-dev
      67. libxaw7 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0
      68. libxcb-render-util0 libxcb-render0-dev libxcb-shm0-dev libxcb-util0
      69. libxcb-xkb1 libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev
      70. libxdmcp-dev libxext-dev libxfce4ui-1-0 libxfce4ui-utils libxfce4util-common
      71. libxfce4util6 libxfconf-0-2 libxfixes-dev libxfont1 libxft-dev libxi-dev
      72. libxinerama-dev libxkbcommon-x11-0 libxkbfile1 libxklavier16
      73. libxml-libxml-perl libxml-namespacesupport-perl libxml-parser-perl
      74. libxml-sax-base-perl libxml-sax-perl libxml2-utils libxmu6 libxrandr-dev
      75. libxrender-dev libxres1 libxt6 libxxf86dga1 linux-headers-amd64 makepasswd
      76. mono-4.0-gac mono-gac mono-runtime mono-runtime-common mono-runtime-sgen
      77. monodoc-base monodoc-browser monodoc-gtk2.0-manual monodoc-manual mywebsql
      78. openjdk-7-jre-headless orage par2 php-sabre-dav php-sabre-vobject
      79. php-symfony-class-loader php5 php5-curl php5-imagick php5-mysqlnd php5-pgsql
      80. php5-sqlite phpvirtualbox pkg-config plexmediaserver python-acme
      81. python-appindicator python-certbot python-cffi python-cffi-backend
      82. python-characteristic python-chardet python-cheetah python-configargparse
      83. python-configobj python-cryptography python-enum34 python-feedparser
      84. python-funcsigs python-geoip python-glade2 python-gobject
      85. python-gobject-2-dev python-gtk2-dev python-idna python-ipaddress
      86. python-libtorrent python-lxml python-mako python-markupsafe python-mock
      87. python-ndg-httpsclient python-notify python-openssl python-parsedatetime
      88. python-pbr python-pkg-resources python-ply python-pyasn1
      89. python-pyasn1-modules python-pycparser python-pygame python-requests
      90. python-rfc3339 python-service-identity python-setuptools python-six
      91. python-software-properties python-twisted python-twisted-bin
      92. python-twisted-conch python-twisted-core python-twisted-lore
      93. python-twisted-mail python-twisted-names python-twisted-news
      94. python-twisted-runner python-twisted-web python-twisted-words python-tz
      95. python-urllib3 python-xdg python-yenc python-zope.component
      96. python-zope.event python-zope.interface qml-module-qtquick-controls
      97. qml-module-qtquick-dialogs qml-module-qtquick-layouts
      98. qml-module-qtquick-privatewidgets qml-module-qtquick-window2
      99. qml-module-qtquick2 shellinabox sqlite3 syncthing syncthing-inotify
      100. teamviewer-host thunar thunar-data tightvncserver transmission-cli
      101. transmission-common transmission-daemon tzdata-java unattended-upgrades
      102. unrar-free unzip urbackup-server virtualbox virtualbox-dkms
      103. virtualbox-ext-pack-installer x11-utils x11-xkb-utils x11proto-composite-dev
      104. x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev
      105. x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
      106. x11proto-xinerama-dev xbitmaps xdg-utils xfce-keyboard-shortcuts xfce4
      107. xfce4-appfinder xfce4-mixer xfce4-panel xfce4-session xfce4-settings xfconf
      108. xfdesktop4 xfdesktop4-data xfonts-base xfonts-encodings xfonts-utils xfwm4
      109. xorg-sgml-doctools xrdp xterm xtrans-dev zlib1g-dev
      110. Use 'apt-get autoremove' to remove them.
      111. 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
      112. Need to get 0 B/926 kB of archives.
      113. After this operation, 0 B of additional disk space will be used.
      114. Preconfiguring packages ...
      115. (Reading database ... 111053 files and directories currently installed.)
      116. Preparing to unpack .../openmediavault_3.0.89_all.deb ...
      117. Unpacking openmediavault (3.0.89) over (3.0.89) ...
      118. Setting up openmediavault (3.0.89) ...
      119. Updating configuration database ...
      120. Updating configuration ...
      121. Processing triggers for openmediavault (3.0.89) ...
      122. Restarting engine daemon ...
      123. Updating locale files ...
      124. Updating file permissions ...
      125. Purging internal cache ...
      Display All

      Source Code

      1. Error #0:
      2. 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
      3. Stack trace:
      4. #0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
      5. #1 [internal function]: OMVRpcServiceSession->login(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
      8. #4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
      9. #5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
      10. #6 {main}
      11. OK
      12. Show details
      Display All
    • Thank you, I ran the commands

      Source Code

      1. root@openmediavault:~# omv-mkconf php5fpm
      2. root@openmediavault:~# service php5-fpm restart
      3. root@openmediavault:~#

      Tried to login and stil error:

      Source Code

      1. Login
      2. Language
      3. English
      4. Username
      5. admin
      6. Password
      7. ••••••••
      8. Login
      9. Error
      10. Failed to connect to socket: No such file or directory
      11. Error #0:
      12. 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
      13. Stack trace:
      14. #0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
      15. #1 [internal function]: OMVRpcServiceSession->login(Array, Array)
      16. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      17. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
      18. #4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
      19. #5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
      20. #6 {main}
      21. OK
      22. Show details
      Display All
      What else should I do?
    • Emptied cache, rebooted PC and Server but still error:

      Source Code

      1. Error #0:
      2. 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
      3. Stack trace:
      4. #0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
      5. #1 [internal function]: OMVRpcServiceSession->login(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
      8. #4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
      9. #5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
      10. #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:

      Source Code

      1. ERROR: [Errno 2] No such file or directory


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

      Source Code

      1. Login
      2. Language
      3. English
      4. Username
      5. admin
      6. Password
      7. ••••••••
      8. Login
      9. Error
      10. Failed to connect to socket: No such file or directory
      11. Error #0:
      12. 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
      13. Stack trace:
      14. #0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
      15. #1 [internal function]: OMVRpcServiceSession->login(Array, Array)
      16. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      17. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
      18. #4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
      19. #5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
      20. #6 {main}
      21. OK
      22. Show details
      Display All
      I looked in my Email and saw:

      Source Code

      1. Does not exist Service omv-engined
      and

      Source Code

      1. Execution failed Service omv-engined
      2. Date: Wed, 18 Oct 2017 22:16:54
      3. Action: alert
      4. Host: openmediavault.local
      5. 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

      Source Code

      1. root@openmediavault:~# omv-mkconf php5fpm
      2. root@openmediavault:~# service php5-fpm restart
      3. root@openmediavault:~#

      Tried to login and stil error:

      Source Code

      1. Login
      2. Language
      3. English
      4. Username
      5. admin
      6. Password
      7. ••••••••
      8. Login
      9. Error
      10. Failed to connect to socket: No such file or directory
      11. Error #0:
      12. 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
      13. Stack trace:
      14. #0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
      15. #1 [internal function]: OMVRpcServiceSession->login(Array, Array)
      16. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
      17. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
      18. #4 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
      19. #5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
      20. #6 {main}
      21. OK
      22. Show details
      Display All
      What else should I do?
    • systemd tells you your service is masked (marked as not startable):

      Source Code

      1. 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

      Source Code

      1. systemctl list-unit-files
      and unmask it with

      Source Code

      1. systemctl unmask openmediavault-engined
    • 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?

      The post was edited 2 times, last by danieliod ().