ZodiacUHD
Patron
- Joined
- Aug 28, 2015
- Messages
- 226
Hi all, i recently had to restore defaults settings on my Nas, since the data is still there, what should i do to restore nextcloud install? Is mounting back the datasets enough?
Bump :(
Hi all, i recently had to restore defaults settings on my Nas, since the data is still there, what should i do to restore nextcloud install? Is mounting back the datasets enough?
Hi all, i recently had to restore defaults settings on my Nas, since the data is still there, what should i do to restore nextcloud install? Is mounting back the datasets enough?
Here you can find the complete official guide:
[NC] https://docs.nextcloud.com/server/11/admin_manual/maintenance/backup.html
[OC] https://doc.owncloud.org/server/9.0/admin_manual/maintenance/backup.html
@Joshua Parker Ruehlig: Thanks for this detailed how to. If I remember right I used that years ago to setup my owncloud - still runs perfectly ;)
Now that I´m upgrading to a whole new system the question came up if you`ll update or adapt this how to to fit the new iocage jails?
Someone asked one page before if anybody tired it, but I guess the answer was more on FreeNAS 11.1 than on iocage. As 11.1 has both jail types on board. Old ui = warden jail and in the new ui created jails = iocage.
iocage console nameofyourjail
and you just type in the same commands you would type for warden. Easy as that :)How so? The directions are step by step so anyone can do it.Interesting and detailed installation instructions, but you still assume much about the level of experience of your audience.
I have not been able to get certbot working for the life of me. When I run the command you listed, I get "pkg: repository FreeBSD contains packages for the wrong OS version..."Just install certbotpkg install py27-certbot
and set it up according to the docs.
After creating an iocage jail that shows up in myI was able to get it running in Iocage quite easily. The process is pretty much the same. You create the jail using Iocage, youiocage console nameofyourjail
and you just type in the same commands you would type for warden. Easy as that :)
iocage list
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly, please wait... pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:11:amd64/quarterly/Latest/pkg.txz: Operation timed out A pre-built version of pkg could not be found for your system. Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
Because FreeBSD 11 is no longer supported. Build a jail based on 11.1 and it will work.What am I doing wrong that it just doesn't work like a fresh warden jail?
I guess that is why I canBecause FreeBSD 11 is no longer supported. Build a jail based on 11.1 and it will work.
pkg install nano
iocage create -n "wordpress" -p /tmp/pkg.json -r 11.1-RELEASE ip4_addr="vnet0|192.168.5.74/24" defaultrouter="192.168.5.1" vnet="on" allow_raw_sockets="1" boot="on"
Works, Thanks.I didDon't know how it happened but my /var/run/php-fpm.sock is missing.Code:php-fpm status php_fpm is running as pid 55255.
pkg install php70-bz2 php70-ctype php70-curl php70-dom php70-exif php70-fileinfo php70-filter php70-gd php70-hash php70-iconv php70-intl php70-json php70-mbstring php70-mcrypt php70-pdo_mysql php70-openssl php70-posix php70-session php70-simplexml php70-xml php70-xmlreader php70-xmlwriter php70-xsl php70-wddx php70-zip php70-zlib php70-opcache
service nginx restart && service php-fpm restart && service mysql-server restart && service redis restart
ls -l total 18 -rw-r--r-- 1 root wheel 0 Mar 13 18:43 clean_var -rw------- 1 root wheel 5 Mar 13 18:43 cron.pid drwxr-xr-x 3 root wheel 3 Feb 6 18:44 cups drwxr-xr-x 2 root wheel 2 Feb 6 18:44 dbus -r--r--r-- 1 root wheel 304 Mar 13 18:43 ld-elf.so.hints -r--r--r-- 1 root wheel 139 Mar 13 18:43 ld-elf32.so.hints srw-rw-rw- 1 root wheel 0 Mar 13 18:43 log srw------- 1 root wheel 0 Mar 13 18:43 logpriv -rw-r--r-- 1 root wheel 6 Mar 13 18:59 nginx.pid -rw-r--r-- 1 root wheel 5 Mar 13 18:59 php-fpm.pid srw-rw---- 1 www www 0 Mar 13 18:59 php-fpm.sock drwxrwx--- 2 root network 2 Jul 20 2017 ppp drwxr-xr-x 2 redis redis 3 Mar 13 18:43 redis drwx--x--x 2 root wheel 2 Jan 1 20:24 sudo -rw------- 1 root wheel 5 Mar 13 18:43 syslog.pid -rw-r--r-- 1 root wheel 0 Mar 13 18:43 syslogd.sockets drwx------ 2 _tss _tss 2 Jan 1 21:00 tpm -rw-r--r-- 1 root wheel 394 Mar 13 18:43 utx.active drwxr-xr-x 2 root wheel 2 Jul 20 2017 wpa_supplicant
2018/03/13 00:13:17 [error] 43793#103741: *414 directory index of "/usr/local/www/" is forbidden, client: 103.53.208.109, server: 192.168.5.81, request: "GET / HTTP/1.1", host: "my.outside.ip" 2018/03/13 00:36:08 [error] 43791#100876: *415 open() "/usr/local/www/admin/config.php" failed (2: No such file or directory), client: 120.234.128.5, server: 192.168.5.81, request: "GET /admin/config.php HTTP/1.1", host: "my.outside.ip" 2018/03/13 03:29:21 [error] 43791#100876: *420 directory index of "/usr/local/www/" is forbidden, client: 54.224.57.103, server: 192.168.5.81, request: "HEAD / HTTP/1.1", host: "my.outside.ip" 2018/03/13 03:29:21 [error] 43790#101340: *421 open() "/usr/local/www/clientaccesspolicy.xml" failed (2: No such file or directory), client: 54.224.57.103, server: 192.168.5.81, request: "GET /clientaccesspolicy.xml HTTP/1.1", host: "96.234.1$ 2018/03/13 04:06:04 [error] 43794#103883: *422 open() "/usr/local/www/SiteViews/Simplified/Index/Images/Home/f2.png" failed (2: No such file or directory), client: 159.65.135.137, server: 192.168.5.81, request: "HEAD /SiteViews/Simplified/Ind$ 2018/03/13 07:23:50 [crit] 43793#103741: *423 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.158, server: 192.168.5.81, request: "GET /nextcloud/ HTTP/1.1", upstre$ 2018/03/13 09:33:54 [error] 43794#103883: *425 directory index of "/usr/local/www/" is forbidden, client: 216.218.206.66, server: 192.168.5.81, request: "GET / HTTP/1.1", host: "my.outside.ip" 2018/03/13 09:43:55 [error] 43791#100876: *430 open() "/usr/local/www/wp-includes/SimplePie/ogi.exe" failed (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/SimplePie/ogi.exe HTTP/1.1",$ 2018/03/13 09:43:56 [error] 43791#100876: *428 open() "/usr/local/www/wp-includes/js/nri.exe" failed (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/js/nri.exe HTTP/1.1", host: "96.234$ 2018/03/13 09:43:57 [error] 43791#100876: *429 "/usr/local/www/wp-includes/index.html" is not found (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/ HTTP/1.1", host: "my.outside.ip:443" 2018/03/13 10:48:50 [error] 43794#103883: *431 directory index of "/usr/local/www/" is forbidden, client: 38.142.119.106, server: 192.168.5.81, request: "GET / HTTP/1.1", host: "my.ddns" 2018/03/13 12:11:15 [error] 43793#103741: *432 "/usr/local/www/a2billing/index.html" is not found (2: No such file or directory), client: 46.161.55.106, server: 192.168.5.81, request: "GET /a2billing/ HTTP/1.1", host: "my.outside.ip" 2018/03/13 12:35:30 [error] 43793#103741: *433 directory index of "/usr/local/www/" is forbidden, client: 38.140.143.226, server: 192.168.5.81, request: "GET / HTTP/1.1", host: "my.ddns" 2018/03/13 15:30:22 [error] 43790#101340: *435 directory index of "/usr/local/www/" is forbidden, client: 216.244.83.210, server: 192.168.5.81, request: "GET / HTTP/1.0" 2018/03/13 17:14:48 [error] 43790#101340: *438 open() "/usr/local/www/wp-includes/SimplePie/ogi.exe" failed (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/SimplePie/ogi.exe HTTP/1.1",$ 2018/03/13 17:14:48 [error] 43793#103741: *436 "/usr/local/www/wp-includes/index.html" is not found (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/ HTTP/1.1", host: "my.outside.ip:80" 2018/03/13 17:14:48 [error] 43790#101340: *437 open() "/usr/local/www/wp-includes/js/nri.exe" failed (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/js/nri.exe HTTP/1.1", host: "96.234$ 2018/03/13 18:14:11 [error] 43793#103741: *439 directory index of "/usr/local/www/" is forbidden, client: 178.73.215.171, server: 192.168.5.81, request: "GET / HTTP/1.0" 2018/03/13 18:25:12 [crit] 43794#103883: *440 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.158, server: 192.168.5.81, request: "GET /nextcloud/apps/files/?dir=/&$ 2018/03/13 18:28:35 [crit] 43793#103741: *442 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.30, server: 192.168.5.81, request: "GET /nextcloud/status.php HTTP/1.1$ 2018/03/13 18:28:35 [crit] 43793#103741: *444 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.30, server: 192.168.5.81, request: "GET /nextcloud/status.php HTTP/1.1$ 2018/03/13 18:29:07 [crit] 43794#103883: *446 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.30, server: 192.168.5.81, request: "GET /nextcloud/status.php HTTP/1.1$
I have the Same problem as NasKar. Who can I find the Log of nginx.I did
pkg install php70-bz2 php70-ctype php70-curl php70-dom php70-exif php70-fileinfo php70-filter php70-gd php70-hash php70-iconv php70-intl php70-json php70-mbstring php70-mcrypt php70-pdo_mysql php70-openssl php70-posix php70-session php70-simplexml php70-xml php70-xmlreader php70-xmlwriter php70-xsl php70-wddx php70-zip php70-zlib php70-opcache
andCode:service nginx restart && service php-fpm restart && service mysql-server restart && service redis restart
Now php-fpm.sock is back
Code:ls -l total 18 -rw-r--r-- 1 root wheel 0 Mar 13 18:43 clean_var -rw------- 1 root wheel 5 Mar 13 18:43 cron.pid drwxr-xr-x 3 root wheel 3 Feb 6 18:44 cups drwxr-xr-x 2 root wheel 2 Feb 6 18:44 dbus -r--r--r-- 1 root wheel 304 Mar 13 18:43 ld-elf.so.hints -r--r--r-- 1 root wheel 139 Mar 13 18:43 ld-elf32.so.hints srw-rw-rw- 1 root wheel 0 Mar 13 18:43 log srw------- 1 root wheel 0 Mar 13 18:43 logpriv -rw-r--r-- 1 root wheel 6 Mar 13 18:59 nginx.pid -rw-r--r-- 1 root wheel 5 Mar 13 18:59 php-fpm.pid srw-rw---- 1 www www 0 Mar 13 18:59 php-fpm.sock drwxrwx--- 2 root network 2 Jul 20 2017 ppp drwxr-xr-x 2 redis redis 3 Mar 13 18:43 redis drwx--x--x 2 root wheel 2 Jan 1 20:24 sudo -rw------- 1 root wheel 5 Mar 13 18:43 syslog.pid -rw-r--r-- 1 root wheel 0 Mar 13 18:43 syslogd.sockets drwx------ 2 _tss _tss 2 Jan 1 21:00 tpm -rw-r--r-- 1 root wheel 394 Mar 13 18:43 utx.active drwxr-xr-x 2 root wheel 2 Jul 20 2017 wpa_supplicant
but when run the mynextcloudIP/nextcloud I get
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Here is my nginx error.log
Code:2018/03/13 00:13:17 [error] 43793#103741: *414 directory index of "/usr/local/www/" is forbidden, client: 103.53.208.109, server: 192.168.5.81, request: "GET / HTTP/1.1", host: "my.outside.IP" 2018/03/13 00:36:08 [error] 43791#100876: *415 open() "/usr/local/www/admin/config.php" failed (2: No such file or directory), client: 120.234.128.5, server: 192.168.5.81, request: "GET /admin/config.php HTTP/1.1", host: "my.outside.IP" 2018/03/13 03:29:21 [error] 43791#100876: *420 directory index of "/usr/local/www/" is forbidden, client: 54.224.57.103, server: 192.168.5.81, request: "HEAD / HTTP/1.1", host: "my.outside.IP" 2018/03/13 03:29:21 [error] 43790#101340: *421 open() "/usr/local/www/clientaccesspolicy.xml" failed (2: No such file or directory), client: 54.224.57.103, server: 192.168.5.81, request: "GET /clientaccesspolicy.xml HTTP/1.1", host: "96.234.1$ 2018/03/13 04:06:04 [error] 43794#103883: *422 open() "/usr/local/www/SiteViews/Simplified/Index/Images/Home/f2.png" failed (2: No such file or directory), client: 159.65.135.137, server: 192.168.5.81, request: "HEAD /SiteViews/Simplified/Ind$ 2018/03/13 07:23:50 [crit] 43793#103741: *423 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.158, server: 192.168.5.81, request: "GET /nextcloud/ HTTP/1.1", upstre$ 2018/03/13 09:33:54 [error] 43794#103883: *425 directory index of "/usr/local/www/" is forbidden, client: 216.218.206.66, server: 192.168.5.81, request: "GET / HTTP/1.1", host: "my.outside.IP" 2018/03/13 09:43:55 [error] 43791#100876: *430 open() "/usr/local/www/wp-includes/SimplePie/ogi.exe" failed (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/SimplePie/ogi.exe HTTP/1.1",$ 2018/03/13 09:43:56 [error] 43791#100876: *428 open() "/usr/local/www/wp-includes/js/nri.exe" failed (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/js/nri.exe HTTP/1.1", host: "96.234$ 2018/03/13 09:43:57 [error] 43791#100876: *429 "/usr/local/www/wp-includes/index.html" is not found (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/ HTTP/1.1", host: "my.outside.IP:443" 2018/03/13 10:48:50 [error] 43794#103883: *431 directory index of "/usr/local/www/" is forbidden, client: 38.142.119.106, server: 192.168.5.81, request: "GET / HTTP/1.1", host: "my.ddns" 2018/03/13 12:11:15 [error] 43793#103741: *432 "/usr/local/www/a2billing/index.html" is not found (2: No such file or directory), client: 46.161.55.106, server: 192.168.5.81, request: "GET /a2billing/ HTTP/1.1", host: "my.outside.IP" 2018/03/13 12:35:30 [error] 43793#103741: *433 directory index of "/usr/local/www/" is forbidden, client: 38.140.143.226, server: 192.168.5.81, request: "GET / HTTP/1.1", host: "my.ddns" 2018/03/13 15:30:22 [error] 43790#101340: *435 directory index of "/usr/local/www/" is forbidden, client: 216.244.83.210, server: 192.168.5.81, request: "GET / HTTP/1.0" 2018/03/13 17:14:48 [error] 43790#101340: *438 open() "/usr/local/www/wp-includes/SimplePie/ogi.exe" failed (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/SimplePie/ogi.exe HTTP/1.1",$ 2018/03/13 17:14:48 [error] 43793#103741: *436 "/usr/local/www/wp-includes/index.html" is not found (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/ HTTP/1.1", host: "my.outside.IP:80" 2018/03/13 17:14:48 [error] 43790#101340: *437 open() "/usr/local/www/wp-includes/js/nri.exe" failed (2: No such file or directory), client: 183.129.160.229, server: 192.168.5.81, request: "GET /wp-includes/js/nri.exe HTTP/1.1", host: "96.234$ 2018/03/13 18:14:11 [error] 43793#103741: *439 directory index of "/usr/local/www/" is forbidden, client: 178.73.215.171, server: 192.168.5.81, request: "GET / HTTP/1.0" 2018/03/13 18:25:12 [crit] 43794#103883: *440 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.158, server: 192.168.5.81, request: "GET /nextcloud/apps/files/?dir=/&$ 2018/03/13 18:28:35 [crit] 43793#103741: *442 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.30, server: 192.168.5.81, request: "GET /nextcloud/status.php HTTP/1.1$ 2018/03/13 18:28:35 [crit] 43793#103741: *444 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.30, server: 192.168.5.81, request: "GET /nextcloud/status.php HTTP/1.1$ 2018/03/13 18:29:07 [crit] 43794#103883: *446 connect() to unix:/var/run/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.5.30, server: 192.168.5.81, request: "GET /nextcloud/status.php HTTP/1.1$
I got an error Code 1portsnap fetch extract
make config-recursive install -C /usr/ports/databases/pecl-redis
make config-recursive install -C /usr/ports/devel/pecl-APCu
sysrc 'nginx_enable=YES' 'php_fpm_enable=YES' 'mysql_enable=YES' 'redis_enable=YES'