I restarted Freenas just to make sure it nextcloud would work again, and to my surprise when I went to the URL is says:
Code:
502 Bad Gateway
nginx/1.10.2
so I went into the jail shell and did the following:
Code:
root@nextcloud_1:/ # service nginx restart
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Stopping nginx.
Waiting for PIDS: 33869.
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
root@nextcloud_1:/ # sockstat -l
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
www nginx 34005 7 tcp4 *:80 *:*
www nginx 34004 7 tcp4 *:80 *:*
root nginx 34003 7 tcp4 *:80 *:*
mysql mysqld 33091 70 stream /tmp/mysql.sock
www php-fpm 32983 0 tcp4 127.0.0.1:9000 *:*
www php-fpm 32982 0 tcp4 127.0.0.1:9000 *:*
root php-fpm 32981 7 tcp4 127.0.0.1:9000 *:*
redis redis-serv 32977 4 stream /tmp/redis.sock
root syslogd 32916 4 dgram /var/run/log
root syslogd 32916 5 dgram /var/run/logpriv
root syslogd 32916 6 udp6 *:514 *:*
root syslogd 32916 7 udp4 *:514 *:*
root@nextcloud_1:/ #
I checked the nginx.conf and
www.conf files and they look the same like I left them before the restart.
What can it be now ?