install NextCloud 12.0.0 on omv 3.0.39, webui doesn't work any more, ssh, network share works fine

  • updated: the new issue is "SSH ok, network shares ok, just webui doesn't work"



    I follow this instruction
    NextCloud Installation
    and stuck at step: 7. open your browser and enter your local ip such as: http://192.168.1.11:90 to begin the installation.


    I believe my mistake are
    1) install MySQL, Nginx through ssh, then install plugin through webui
    2) uninstall Nginx


    the issue I face is that I can't access omv webui, but I can access through ssh, and network share works too.


    here is what I have:
    openmediavault 3.0.39
    openmediavault-nginx 3.0.11
    nextcloud 12.0.0 (https://download.nextcloud.com…ases/nextcloud-12.0.0.zip)



    0) logging & setting
    logging:
    http://imgur.com/a/S3ISb
    (openmediavault nginx bad gateway 502, no such file or directory while connecting to upstream /favicon.ico)


    setting:
    http://imgur.com/a/zdQwq

    1) First try


    error message say


    This site can’t be reached


    192.168.1.11 refused to connect.
    Try:

    ERR_CONNECTION_REFUSED



    I can access omv webui throught this link (http://192.168.1.11 )
    I also temporarily turn off firewall, but same error.


    2) second try


    I then go to webui -> Nginx (websites) -> settings -> general settings -> checked "enabled", retrying the URL get this new error message:


    502 Bad Gateway


    in file "/etc/nginx/nginx.conf", the first 3 lines are:


    user www-data;
    worker_processes 4;
    pid /run/nginx.pid;


    I read this post (https://help.nextcloud.com/t/bad-gateway-502-error/2317/4), last response said :


    "
    I had the same, till I noticed I had forgotten one instruction. At:
    vi /etc/nginx/nginx.conf
    I had forgotten to change the first line in:
    user www-data;
    Problem solved
    "


    But I don't know what to change to


    btw, I use port 90, and I didn't enable SSL.



    3) third try
    I remote in through putty, and run "sudo apt-get remove nginx", now I can't get into webUI (port 80), get error (http://imgur.com/a/4pou0)


    then I try sudo apt-get install nginx, then restart box, same error


    And I check it's 755:


    root@mothership:/var/www# ls -l
    total 8
    drwxr-xr-x 2 root root 4096 Jun 18 14:12 html
    drwxr-xr-x 3 openmediavault-webgui openmediavault-webgui 4096 Jun 22 10:24 openmediavault



    SSH ok, shares ok, just webui doesn't work


    I also tried:
    1.service php5-fpm restart
    2.service nginx restart
    3. netstat -tulpen | grep 90
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 44217 3171/nginx -g daemo


    4. netstat -tulpen | grep 90
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 44372 3190/nginx -g daemo


    5. omv-firstaid
    -bash: omv-firstaid: command not found


    6. rm -f /var/cache/openmediavault/*.json


    7. reboot multiple times.


    8. $ dpkg -l| grep openmediavault
    rc openmediavault 3.0.80 all Open network attached storagesolution
    rc openmediavault-backup 3.6 all backup plugin for OpenMediaVault.
    rc openmediavault-flashmemory 3.4.3 all folder2ram plugin for OpenMediaVault
    ii openmediavault-keyring 1.0 all GnuPG archive keys of theOpenMediaVault archive
    rc openmediavault-mysql 3.0.4 all MySQL plugin for OpenMediaVault.
    rc openmediavault-nginx 3.0.11 all Nginx plugin for OpenMediaVault.
    rc openmediavault-omvextrasorg 3.4.25 all OMV-Extras.org Package Repositoriesfor OpenMediaVault
    rc openmediavault-syncthing 3.10 all Syncthing plugin for OpenMediaVault.


    4) attempt omv-firstaid, but no luck


    I ssh in as 3 account: root, user#1, user#2


    case#1) when login ssh as "root" , then run omv-firstaid, I always got the "command not found" error


    case#2)when I ssh using 1st user account, there two scenario
    2a) "omv-firstaid" generate this error “-dash: 1: omv-firstaid: not found”


    2b) "sudo omv-firstaid" get this
    *We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:
    Respect the privacy of others. Think before you type. With great power comes great responsibility.[sudo] password for*
    However, after I enter password, it show "not in the sudoers file. This incident will be reported."


    Then I ran this "sudo usermod -aG sudo,adm 1st_account".
    After that I repeat "sudo omv-firstaid", and I got the same ""command not found" error.


    case#3) I then ssh using 2nd account, and I can reproduce exact same behavior as 1st account.



    btw, in /usr/sbin, I search for omv*, only this one show up: omv-mkgraph


    5) not sure what to do next

    Before I do anything, I want to hear your opinion first.
    yesterday I did a backup from webUI using the backup plugin. and I saw this folder in my storage drive
    http://imgur.com/a/zwxkF


    My goal is to restore omv so I can access webui. "isntall nextcloud" will be next time.


    Q1: I am not sure how to restore omv
    Q2: and should I disconnect my storage drive (two wd 8tb red, raid 1) first?
    Q3: And after I restore, and plug in the storage drive back, will that automatically format? maybe plug 1st and see if the data is safe, then plug the 2nd one?
    Q4: I use a 8GB USB stick for boot. if it's time to re-install OMV on a usb HDD, what step I should take? my main concern is the two storage drive (8TB WD RED), I don't want a mis step wipe out the data.


    Thank you for reading :)



    Thank you!

  • Hi,


    i have try to install the Nextcloud 12 as well on OMV 3.0.80


    don't install the MySQL & Nginx plug in... no need!


    then you can follow this webpage: https://www.linuxbabe.com/clou…16-04-apache-mariadb-php7


    - Step 1, change the donwload link to:
    wget https://download.nextcloud.com…ases/nextcloud-12.0.0.zip
    sudo apt install unzip
    unzip nextcloud-12.0.0.zip
    - add Apache Webserver
    sudo apt-get install apache2 apache2-utils
    systemctl status apache2
    sudo systemctl start apache2
    sudo systemctl enable apache2



    - Step 2, after install the MariaDB manual:
    sudo apt-get install mariadb-server mariadb-client
    systemctl status mysql
    sudo systemctl start mysql
    sudo systemctl enable mysql
    sudo mysql_secure_installation
    - then follow the Step 3


    - Step 3 no need


    - Step4, change the PHP install to V5
    sudo apt-get install php5-fpm php5-mysql php5-common php5-gd php5-json php5-cli php5-curl libapache2-mod-php5



    Then you can access the Nextcloud by your domain, if the router has the right settings.
    Now the nextcloud is reachable by port 80. Anyway it is better to put the http-port for OMV to 8080.


    If you want to have the SSL as well, follow the "Secure it with HTTPS" on the end of this Webpage.


    For me it works fine! ...and i dont know why Nginx don't want to work with Nextcloud 12.


    Good Luck!!!

  • i don't know... :)


    but i can access the OMV-page on port 8080
    and the nextcloud 12 on port 443 by domain and port 80 in local network.


    it is running..

Jetzt mitmachen!

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