Hi Everyone,
Here is a brief guide on how to install Nextcloud on unRAID. Below are the steps I use to get it working, but follow the video for the proper setup as these steps are brief.
-
-
-
-
-
- Install Mariadb app VIA CA community apps plugin. (Author Linuxserver)
-
- Create a user in Mariadb docker exec -it mariadb-nextcloud bash
- Login as the root user with the password you created during the set up.
mysql -uroot -p
- Follow the code below and type them in separately. Replace
username
andpassword
with what you want to use.
CREATE USER 'username' IDENTIFIED by 'password';
CREATE DATABASE IF NOT EXISTS nextcloud;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username' IDENTIFIED BY 'password';
Exit -
- Install Nextcloud via the CA plugin. (Author Linuxserver)
- Log into Nextcloud
- Install LetsEncrypt via the CA plugin. (Author Linuxserver)
-
- Browse to the folder in letsencrypt appdata
/config/nginx/site-confs/
- Replace the the file called “default” with this info. Replace server name
nextcloud.server.com
and server proxy info192.168.1.20:444
with your own. - You can get the file here.
- Browse to the folder in letsencrypt appdata
-
- Edit a file in your Nextcloud appdata now.
-
- Browse to the folder
/config/www/nextcloud/config/config.php
- Add another line under array with your Domain Name. It should look like this
1 => 'nextcloud.server.com',
- Restart both Dockers LetsEncrypt and Nextcloud.
- Browse to the folder
-
- Add the entry to your hosts file to access it from your local network and that’s it!
- Install Mariadb app VIA CA community apps plugin. (Author Linuxserver)
-
-
-
-
This post was made with the help from Linuxserver.io. Link here. Also, the help here from Cylanlabs.
If this video helped you please consider buying us a cup of coffee. Thank you for the support we love you very much!
Any advice on how to do this on Mac without putty ?
Thanks
Hi Jason, currently we are not aware of a work around for this. (sorry for the delay we are experiencing website issues.)
Use terminal and ssh into your unraid server
ssh root@xxx.xxx.xxx.xxx (replace with your servers local ip address)
Let’s Encrypt isn’t able to create a certificate. See the error message below:
Failed authorization procedure. my.domain.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://my.domain.com/.well-known/acme-challenge/3R3vYvSKgMVXh4F9sS7zuWyhnF3cRmtPZMfwwLAKgbg: ”
404 Not Found
404 Not Found
”
IMPORTANT NOTES:
– The following errors were reported by the server:
Domain: my.domain.com
Type: unauthorized
Detail: Invalid response from
http://my.domain.com/.well-known/acme-challenge/3R3vYvSKgMVXh4F9sS7zuWyhnF3cRmtPZMfwwLAKgbg:
”
404 Not Found
404 Not Found
”
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container
I replaced my real domain with ‘my.domain.com’. I also set the port forwarding in the router settings correctly, I guess.
Any solution about that?
Best regards
Hi George, We apologize for the delay in response, currently experiencing webserver downtime. We will look into your issue and get back as soon as we can.
Let’s Encrypt isn’t able to create a certificate. See the error message below:
Failed authorization procedure. my.domain.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://my.domain.com/.well-known/acme-challenge/3R3vYvSKgMVXh4F9sS7zuWyhnF3cRmtPZMfwwLAKgbg: ”
404 Not Found
404 Not Found
”
IMPORTANT NOTES:
– The following errors were reported by the server:
Domain: my.domain.com
Type: unauthorized
Detail: Invalid response from
http://my.domain.com/.well-known/acme-challenge/3R3vYvSKgMVXh4F9sS7zuWyhnF3cRmtPZMfwwLAKgbg:
”
404 Not Found
404 Not Found
”
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
ERROR: Cert does not exist! Please see the validation error above. The issue may be due to incorrect dns or port forwarding settings. Please fix your settings and recreate the container
I replaced my real domain with ‘my.domain.com’. I also set the port forwarding in the router settings correctly, I guess.
Any solution about that?
Best regards
Install of the DB fails on step 2 every time I enter ‘ mysql -uroot -p’ and then type in my password..I get a message that my password is incorrect.. I have deleted and reinstalled the DB several times, with the same results, incorrect password… Any thoughts?
Did you ever find a solution to this problem? It’s happening to me as well.
Any advice on using caddy instead of letsencrypt?
Whenever I try and access it via Caddy, I get the following error:
The plain HTTP request was sent to HTTPS port
What command is used to rescan the files. I have tried many combinations and could not make it work. The occ file has a “*” next to it. Do I need to change permissions. Currently the directory and files are owned by nobody:users, any help appreciated.