Resource icon

Scripted installation of Nextcloud 28 in iocage jail 2018-03-23

Morrian

Dabbler
Joined
Nov 7, 2019
Messages
19
I have 11.2 u7
Where can i Check the DNS credentials?

Ahhhh now i understand. I will post my File . But i didnt wrote any dns settings in it

Edit:
Im using cloudflare DNS Plugin and standalone-cert=1
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Im using cloudflare DNS Plugin and standalone-cert=1
That isn't going to work--if you're using the cloudflare DNS plugin, you'll need to include those credentials in your config file, and set DNS_CERT=1.
 

Morrian

Dabbler
Joined
Nov 7, 2019
Messages
19
Sooo new try same error:
Code:
nextcloud successfully created!
Testing SRV response to FreeBSD
pkg.freebsd.org's SRV record could not be verified.
Testing DNSSEC response to FreeBSD                
pkg.freebsd.org could not be reached via DNSSEC.
Testing DNS response to FreeBSD                  
pkg.freebsd.org could not be reached via DNS, check your network
Failed to create jail  
root@freenas[~/freenas-iocage-nextcloud]#

here is the config:
Code:
JAIL_IP="192.168.1.199"
DEFAULT_GW_IP="192.168.1.1"
POOL_PATH="/mnt/tank"
TIME_ZONE="Europe/Berlin"
HOST_NAME="blahblah.de"
DNS_CERT=1
CERT_EMAIL="blahblah@blah.com"
DNS_PLUGIN="cloudflare"
DNS_ENV="CLOUDFLARE_EMAIL=blahblah@blah.com CLOUDFLARE_API_KEY=xxxxxxxxx"  


cant host google.de within the jail. Do i need to change the ip or something inside the jail?

edit2: i can see the freenas and the nextcloud in my fritzbox




edit 3: Its up and running, but i cant reach my server over the browser. CLoudflare error 523. Caddy is running as pid 93839. should be ok
 
Last edited:

Morrian

Dabbler
Joined
Nov 7, 2019
Messages
19
Ok. So what do i have to do to get my cloud running withoug cloudflare? Hoe do i connect my nextcloud to my domain?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
So what do i have to do to get my cloud running withoug cloudflare?
It's unlikely that Cloudflare is causing your problems, but to simplify troubleshooting, turn off their proxy (on the DNS page, turn off the orange cloud). It should look like this:
1579960133750.png

Not this:
1579960155495.png

This will just remove a possible source of errors. Now, what happens when you try to browse to your Nextcloud installation from inside your LAN?
 

Morrian

Dabbler
Joined
Nov 7, 2019
Messages
19
404 Site 192.168.178.199 is not served on this interface

and over my domain is not working too. Cant connect to website

1579983514094.png





edit i can reach my domain/nextcloud OVER my mobilephone that i not in my network wlan.
BUT i had some messages, that it is not safe. https is in red and strikethrough

edit: nevermind. did "iocage exec nextcloud /root/remove-staging.sh" is ok now, still no lokal working possible

edit2: lokal usage is now working. what ever why......

edit3: now i get the error "too many redirects". i only stoped and restartet the jail. i wantet to mount my other folders
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
404 Site 192.168.178.199 is not served on this interface
That's expected; this script is designed to serve Nextcloud only over the domain name.

I'm not sure after your edits--what's the current status?
 

Morrian

Dabbler
Joined
Nov 7, 2019
Messages
19
Now i get the error ERR_TOO_MANY_REDIRECTS

i see that the switch is working when i try to enter my site
 

Morrian

Dabbler
Joined
Nov 7, 2019
Messages
19
i reinstalled freenas, inportet my settings. made a fresh install of the script. Sill get the error:
1580039196049.png


dont know what im missing right now

searched a bit:
Code:
> --------------------------------------------
> 301 Moved Permanently
> --------------------------------------------

Status:    301 Moved Permanently
Code:    301
Date:    Sun, 26 Jan 2020 11:55:59 GMT
Content-Type:    text/html; charset=utf-8
Connection:    close
Set-Cookie:    __cfduid=d834bfac82be86dbf89b5ce32c94b2b611580039759; expires=Tue, 25-Feb-20 11:55:59 GMT; path=/; domain=.mydomain.de; HttpOnly; SameSite=Lax; Secure
Location:    https://mydomain.de/
CF-Cache-Status:    DYNAMIC
Expect-CT:    max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server:    cloudflare
CF-RAY:    55b24d122fade66c-LHR
 
Last edited:
Joined
Jun 24, 2017
Messages
338
Hey Dan... Hoping I didnt screw up too badly....
I was dicking around trying to get my website FQDN and ended up issuing a different CA for the HTTPS conection...

It was done through LetsEncryot using Cloudflare as the signer...

Is it possible to just put the issued fullkey.pem and the privkey.pem somewhere in the nextcloud build to get it to work (still the same site, still the same redirect... just wrong keys now...

Or is there a different fix i could apply?

Hoping you might know the answer!


Disregard, I ended up rsyncing the entire file system to a temp drive... files are good, ill reload NextCloud and go from there.
 
Last edited:

Morrian

Dabbler
Joined
Nov 7, 2019
Messages
19
Still geht the Error.... Wich config so i have to Check. And where ist IT to find

edit: the error while installing the script
1580227860824.png

and so on and so on. where is the problem?
 
Last edited:

Morrian

Dabbler
Joined
Nov 7, 2019
Messages
19
made a new installation. This time without creating DB pools and so on.
Showed no error while installing.

Still not working "ERR_TOO_MANY_REDIRECTS "



got it working. Problem was my fritz box port stuff:

1580243947758.png

DONT check the port stuff. its stupid and wont work


ok. now i only need to get a smb client installet BUT it wont work ether.....
root@nextcloud:~/repo1 # pkg install pecl-smbclient
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
pkg: No packages available to install matching 'pecl-smbclient' have been found in the repositories


SO CLOSE to get it working..........
 
Last edited:

blueether

Patron
Joined
Aug 6, 2018
Messages
259
pkg install phpXX-pecl-smbclient?


this is ny fritzbox config (55 is nextcloud, 54 is a caddy reverse proxy that points to nextcloud, WordPress,etc)
1580278121226.png
 

tokopah

Cadet
Joined
Jan 30, 2020
Messages
2
Hi all

Reletively new to all of this but have been trying to get nextcloud working properly today using the script. Had previously been using the plugin just on the LAN but after updating to 11.3 decided to get it working properly.

I've been struggling with the script. I think I've got all of the config setup properly. I keep on getting

"11.3-RELEASE-P5 was not found!
Failed to create jail"

If it's just not supported by the script yet then I'm happy to wait or try and roll back and see how I go.

Thanks
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
If it's just not supported by the script yet
It isn't, apparently 11.3 reports the release differently. It's going to take a little bit of tinkering to get this to work; hopefully I'll be able to get to it this weekend.
 

tokopah

Cadet
Joined
Jan 30, 2020
Messages
2
It isn't, apparently 11.3 reports the release differently. It's going to take a little bit of tinkering to get this to work; hopefully I'll be able to get to it this weekend.
Ace, was looking through the script myself naïvely thinking I might be able to work it out myself and couldn't help but be impressed with all of your work. Thanks for what must undoubtedly have been a mountain of work.
 

Adecarcer

Cadet
Joined
Jan 27, 2020
Messages
5
Hello,

I'm a total newbie in this things.

I've installed the script several times (superb job!) on my freenas server, and always happens the same.
it takes forever to finish the installation and, once finished, the resulting installed nextcloud server is sluggish (it may take more than 3 minutes to open a page) and throws back constant time out errors, making it totally unusuable.

If I install the Freenas pluging version. it works like a charm (although no https version then ) and if I do a manual install following Samuel Dowling instructions, it also works (only it takes a lot of typing, cut an paste, and potential mistakes..)

I'm I doing something stupid or wrong with your script.??

thanks for the wonderful work.
 

Adecarcer

Cadet
Joined
Jan 27, 2020
Messages
5
I've also noticed that when running the installation of php73 it echoes the following lines:

php73-memcache...
- php73-memcache failed to install, retry #1
- php73-memcache failed to install, retry #2
- php73-memcache failed to install, retry #3
pkg: No packages available to install matching 'php73-memcache' have been found in the repositories

but it continues installing until the end of the process (takes more than 3 hours to install though)
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
takes more than 3 hours to install though
That really sounds like a problem--20-30 minutes would be expected, but not multiple hours. What version of FreeNAS are you running, and what's your hardware?
 

Adecarcer

Cadet
Joined
Jan 27, 2020
Messages
5
That really sounds like a problem--20-30 minutes would be expected, but not multiple hours. What version of FreeNAS are you running, and what's your hardware?

Just initiated an install when posting my first question 9:49pm my time and still with the cursor blinking after this: (now is 0:49am next day here in Madrid) and will possibly stay for another more hour to finish.

caddy_enable: -> YES

caddy_cert_email: ->

caddy_env: ->

* Stopping nextcloud
+ Running prestop OK
+ Stopping services OK
+ Removing devfs_ruleset: 6 OK
+ Removing jail process OK
+ Running poststop OK
* Starting nextcloud
+ Started OK

+ Starting services OK


here are my system specs:

Version:
FreeNAS-11.2-U7

Physical Memory:
20361 MiB

Model:
AMD Athlon(tm) X2 340 Dual Core Processor

Not very new but, also not very old with a good processor and plenty of RAM

As previously mentioned, no issues at all when installing Nextcloud Freenas plugin, nor when going through the full process of installing Sam Dawlings guide...

For some reason your script takes ages to install (tried more than ten times) and once finished there is a constant time out and an awful lag when loading pages.

??

Thank you very much for your response and support.

A.
 
Top