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:
- Checking the connection
- Checking the proxy and the firewall
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!