Cannot remove openmediavault-roundcube, openmediavault-mysql, no webgui, ssh accessible and Nginx cannot start.

    • Resolved
    • Cannot remove openmediavault-roundcube, openmediavault-mysql, no webgui, ssh accessible and Nginx cannot start.

      Hello,

      I apologize in advance if this is not the correct section for posting. This is my first time partaking in a forum. I am facing various problems.I installed roundcube and all sorts of weirdness began. Before I (foolishly) rebooted the server, I received error 4000. One problem is that Nginx won't start and Nginx.conf test failed. Any time I try to make modifications to packages such as

      Source Code

      1. ​apt-get remove --purge mysql
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. E: Unable to locate package mysql
      6. root@OpenMediaVault:~# apt-get --purge remove openmediavault-roundcube
      7. Reading package lists... Done
      8. Building dependency tree
      9. Reading state information... Done
      10. The following packages will be REMOVED:
      11. openmediavault-mysql openmediavault-roundcube
      12. 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
      13. 2 not fully installed or removed.
      14. After this operation, 260 kB disk space will be freed.
      15. Do you want to continue [Y/n]? y
      16. (Reading database ... 56300 files and directories currently installed.)
      17. Removing openmediavault-roundcube ...
      18. Reloading PHP5 FastCGI Process Manager: php5-fpm.
      19. Reloading nginx configuration: nginx: [emerg] "client_max_body_size" directive invalid value in /etc/nginx/openmediavault-webgui.d/openmediavault-webdav.conf:3
      20. nginx: configuration file /etc/nginx/nginx.conf test failed
      21. dpkg: error processing openmediavault-roundcube (--remove):
      22. subprocess installed post-removal script returned error exit status 1
      23. Removing openmediavault-mysql ...
      24. Reloading nginx configuration: nginx: [emerg] "client_max_body_size" directive invalid value in /etc/nginx/openmediavault-webgui.d/openmediavault-webdav.conf:3
      25. nginx: configuration file /etc/nginx/nginx.conf test failed
      26. invoke-rc.d: initscript nginx, action "reload" failed.
      27. dpkg: error processing openmediavault-mysql (--remove):
      28. subprocess installed post-removal script returned error exit status 1
      29. Processing triggers for openmediavault ...
      30. Restarting engine daemon ...
      31. Errors were encountered while processing:
      32. openmediavault-roundcube
      33. openmediavault-mysql
      34. Creating index of upgradeable packages ...
      35. Creating index of openmediavault plugins ...
      36. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All


      There is an error code.

      I have also tried dpkg -l | grep openmediavault which gives me this

      Source Code

      1. ​dpkg -l | grep openmediavault
      2. ii openmediavault 2.1.25 all Open network attached storage solution
      3. ii openmediavault-backup 1.0.11 all backup plugin for OpenMediaVault.
      4. ii openmediavault-clamav 2.1 all OpenMediaVault ClamAV plugin
      5. ii openmediavault-cups 2.1 all OpenMediaVault CUPS (network printer server) plugin.
      6. ii openmediavault-fail2ban 1.1.4 all OpenMediaVault Fail2ban plugin
      7. ii openmediavault-flashmemory 1.9.1 all folder2ram plugin for OpenMediaVault
      8. ii openmediavault-keyring 0.4 all GnuPG archive keys of the OpenMediaVault archive
      9. ii openmediavault-letsencrypt 2.3 all Generate free and valid SSL certificates for OMV
      10. ii openmediavault-minidlna 1.1 all OpenMediaVault miniDLNA (DLNA server) plugin
      11. ii openmediavault-mumble 1.0.2 all Mumble server plugin for OpenMediaVault.
      12. rH openmediavault-mysql 2.1 all MySQL plugin for OpenMediaVault.
      13. ii openmediavault-omvextrasorg 2.13.1 all OMV-Extras.org Package Repositories for OpenMediaVault
      14. ii openmediavault-plexmediaserver 1.0.14 all OpenMediaVault Plex Media Server plugin
      15. rH openmediavault-roundcube 1.1 all OpenMediaVault Roundcube (webmail) plugin
      16. ii openmediavault-transmissionbt 1.4 all OpenMediaVault Transmission (BitTorrent client) plugin.
      17. ii openmediavault-virtualbox 1.3 all VirtualBox plugin for OpenMediaVault.
      18. ii openmediavault-webdav 2.0 all OpenMediaVault WebDAV plugin.
      Display All


      If I try dpkg -l | grep mysql

      Source Code

      1. ​dpkg -l | grep mysql
      2. ii libdbd-mysql-perl 4.021-1+b1 amd64 Perl5 database interface to the MySQL database
      3. ii libmysqlclient18:amd64 5.5.47-0+deb7u1 amd64 MySQL database client library
      4. ii mysql-client-5.5 5.5.47-0+deb7u1 amd64 MySQL database client binaries
      5. ii mysql-common 5.5.47-0+deb7u1 all MySQL database common files, e.g. /etc/mysql/my.cnf
      6. ii mysql-server 5.5.47-0+deb7u1 all MySQL database server (metapackage depending on the latest version)
      7. ii mysql-server-5.5 5.5.47-0+deb7u1 amd64 MySQL database server binaries and system database setup
      8. ii mysql-server-core-5.5 5.5.47-0+deb7u1 amd64 MySQL database server binaries
      9. rH openmediavault-mysql 2.1 all MySQL plugin for OpenMediaVault.


      The OMV Webserver does not work although other services do. All I get is a page saying "It works!"

      If I try to start nginx with service nginx start, this is the output

      Source Code

      1. service nginx start
      2. Starting nginx: nginx: [emerg] "client_max_body_size" directive invalid value in /etc/nginx/openmediavault-webgui.d/openmediavault-webdav.conf:3
      3. nginx: configuration file /etc/nginx/nginx.conf test failed​


      Please help, I have reached a dead end and no other forum post that I have read has helped.
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • This is the output of apt-cache policy nginx

      Source Code

      1. apt-cache policy nginx
      2. nginx:
      3. Installed: 1.2.1-2.2+wheezy3
      4. Candidate: 1.2.1-2.2+wheezy3
      5. Version table:
      6. *** 1.2.1-2.2+wheezy3 0
      7. 500 http://ftp.us.debian.org/debian/ wheezy/main amd64 Packages
      8. 500 http://security.debian.org/ wheezy/updates/main amd64 Packages
      9. 100 /var/lib/dpkg/status


      Thanks for the assistance @subzero79
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • Ok so I tried accessing the webgui in a different web browser and there is no connection. Shares and services are still working. This is the output of service apache2 status

      Source Code

      1. service apache2 status
      2. Apache2 is NOT running.​


      This confirms that the problem is not related to apache2 but I still do not know how to repair the server. Here is the output of service nginx status

      Source Code

      1. service nginx status
      2. nginx is not running ... failed!​
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • This is the output of omv-showkey webdav

      Source Code

      1. omv-showkey webdav
      2. <webdav>
      3. <enable>1</enable>
      4. <sharedfolderref>07312a05-b635-4ece-97b8-4d5430932819</sharedfolderref>
      5. </webdav>
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • @subzero79, my server's webgui does not work, I cannot access it. This all started after I installed roundcube /mySQL and figured that the service would not fit my needs so I uninstalled it. The WebGUI for Plex is still working if that is of any use to indicate the problem.
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • sorry i forgot about that. Somehow the plugin is missing an entry in the config.xml when it was installed

      Try apt-get purge openmediavault-webdav, After that look at this folder /etc/nginx/openmediavault-webgui.d/ make sure the webdav file is gone otherwise remove it manually.

      The start nginx /etc/init.d/nginx start
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • This is the output of apt-get purge openmediavault-webdav

      Source Code

      1. apt-get purge openmediavault-webdav
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. The following packages will be REMOVED:
      6. openmediavault-mysql openmediavault-roundcube openmediavault-webdav*
      7. 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
      8. 2 not fully installed or removed.
      9. After this operation, 326 kB disk space will be freed.
      10. Do you want to continue [Y/n]? y
      11. (Reading database ... 56300 files and directories currently installed.)
      12. Removing openmediavault-roundcube ...
      13. Reloading PHP5 FastCGI Process Manager: php5-fpm.
      14. Reloading nginx configuration: nginx: [emerg] "client_max_body_size" directive invalid value in /etc/nginx/openmediavault-webgui.d/openmediavault-webdav.conf:3
      15. nginx: configuration file /etc/nginx/nginx.conf test failed
      16. dpkg: error processing openmediavault-roundcube (--remove):
      17. subprocess installed post-removal script returned error exit status 1
      18. Removing openmediavault-mysql ...
      19. Reloading nginx configuration: nginx: [emerg] "client_max_body_size" directive invalid value in /etc/nginx/openmediavault-webgui.d/openmediavault-webdav.conf:3
      20. nginx: configuration file /etc/nginx/nginx.conf test failed
      21. invoke-rc.d: initscript nginx, action "reload" failed.
      22. dpkg: error processing openmediavault-mysql (--remove):
      23. subprocess installed post-removal script returned error exit status 1
      24. Processing triggers for openmediavault ...
      25. Restarting engine daemon ...
      26. Errors were encountered while processing:
      27. openmediavault-roundcube
      28. openmediavault-mysql
      29. Creating index of upgradeable packages ...
      30. Creating index of openmediavault plugins ...
      31. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All


      If i try to remove a package, there is an error. Sorry to ask this but I am a linux Noob and do not know how to browse a folder. What command would I use to browse for /etc/nginx/openmediavault-webgui.d/? cd maybe?
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • @subzero79 I removed the webdav.conf and started nginx. Thankfully you have restored my ability to login and edit items. I am in deep gratitude to you. Shall I do a test reboot to ensure the system is fully working?
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • I rebooted and everything worked correctly. Thank you very much to @subzero79 for assisting me in repairing openmediavault.
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • @subzero79 This is the result of apt-get purge openmediavault-webdav

      Source Code

      1. ​apt-get purge openmediavault-webdav
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. The following packages will be REMOVED:
      6. openmediavault-webdav*
      7. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
      8. After this operation, 65.5 kB disk space will be freed.
      9. Do you want to continue [Y/n]? y
      10. (Reading database ... 56300 files and directories currently installed.)
      11. Removing openmediavault-webdav ...
      12. Reloading nginx configuration: nginx.
      13. Reloading PHP5 FastCGI Process Manager: php5-fpm.
      14. Purging configuration files for openmediavault-webdav ...
      15. dpkg: warning: while removing openmediavault-webdav, directory '/var/www/webdav/config' not empty so not removed
      16. Processing triggers for openmediavault ...
      17. Restarting engine daemon ...
      18. Creating index of upgradeable packages ...
      19. Creating index of openmediavault plugins ...
      Display All
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.
    • This is the output of apt-get -f install

      Source Code

      1. ​apt-get -f install
      2. Reading package lists... Done
      3. Building dependency tree
      4. Reading state information... Done
      5. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


      From this code it seems that there is nothing left to repair. Only 1 package to upgrade. Thank you @subzero79.
      "It is better to offer no excuse than a bad one." -George Washington

      Current OMV Server Configuration: 8GB Avexir DDR4 Ram, Pentium G4400 Dual Core CPU, Corsair CS550M Power Supply, Fractal Design Core 1100, 2X2 TB WD RE4 HDD, MSI B150M-PRO VD, 2X ISTARUSA 5.25 to Hot Swap Drive Trays.