How to install Nextcloud on unRAID

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.

            1. Install Mariadb app VIA CA community apps plugin. (Author Linuxserver)
                1. Create a user in Mariadb  docker exec -it mariadb-nextcloud bash
                2. Login as the root user with the password you created during the set up. mysql -uroot -p
                3. Follow the code below and type them in separately. Replace username and password 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

            2. Install Nextcloud via the CA plugin. (Author Linuxserver)
              1. Log into Nextcloud
            3.  Install LetsEncrypt via the CA plugin. (Author Linuxserver)
                1. Browse to the folder in letsencrypt appdata /config/nginx/site-confs/
                2. Replace the the file called “default” with this info. Replace server name nextcloud.server.com and server proxy info 192.168.1.20:444 with your own.
                3. You can get the file here.
            4. Edit a file in your Nextcloud appdata now.
                1. Browse to the folder /config/www/nextcloud/config/config.php
                2. Add another line under array with your Domain Name. It should look like this 1 => 'nextcloud.server.com',
                3. Restart both Dockers LetsEncrypt and Nextcloud.
            5. Add the entry to your hosts file to access it from your local network and that’s it!

 

 

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!

10 thoughts on “How to install Nextcloud on unRAID”

  1. 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

    Reply
    • 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.

      Reply
  2. 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

    Reply
  3. 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?

    Reply
  4. 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

    Reply
  5. 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.

    Reply

Leave a Comment