Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] Linuxserver.io - Nextcloud

Featured Replies

Thanks worked perfectly.

 

I got one more question though. Is there a possibility to regularky (weekly) backup whole nextcloud (meaning all data folder, installation AND MySQL database) to another share? I searched a lot but i havent found any feasible automated combination.

  • Replies 7.1k
  • Views 1.7m
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Here's my list of instructions....    Use them at your own risk.....   If upgrading to v12 please see here:   ##Turn on maintenance mode docker exec -it nextcloud occ m

  • When i did enter the docker container with ssh and did run the following command the error message was gone   sudo -u abc php /config/www/nextcloud/occ db:add-missing-indices   Onl

  • gustomucho
    gustomucho

    After tinkering with this for a while, it seems the solution is much simpler than I thought. For some reason, the only step required is to modify the config.php file. No need to install ffmp

Posted Images

Community Applications will backup appdata.

 

Data folder may be possible as well.  Not sure.

 

Sent from my LG-H815 using Tapatalk

 

 

the problem is with database, how can i automatically backup database?? for data folder i can use crashplan.

Well the databases are stored in the MySQL/MariaDb appdata so I think my answer still stands.

 

Sent from my LG-H815 using Tapatalk

 

 

Hello there, and first for all, thank you all for your hard work.

 

I'm trying to setup nextcloud and before posting I've spend 2 days reading ALL the post about it.

 

But when I try to setup an admin account on nextcloud, I have this error : 2006 Mysql server has gone away....

 

I'm using mariadb in a docker with the setting posted in page #28. Thanks in advance for the help.

Hello there, and first for all, thank you all for your hard work.

 

I'm trying to setup nextcloud and before posting I've spend 2 days reading ALL the post about it.

 

But when I try to setup an admin account on nextcloud, I have this error : 2006 Mysql server has gone away....

 

I'm using mariadb in a docker with the setting posted in page #28. Thanks in advance for the help.

 

 

Can you actually post your info?  Both the docker run command for mariadb and nextcloud and I can take a look.

let me know if you need anythings else. All other parameters are by defaults (i've reinstalled the dockers and erased theirs confirmation directory in .apps)

58aad85093365_Capture_dcran_2017-01-28__12_06_26.png.e7ac931aefc3f1f14f4d776eee2d82a8.png

58aad8509b6a7_Capture_dcran_2017-01-28__12_06_47.png.4989c7cb26b38cf7af80ca66bd2e370d.png

OK that all looks good, so what can you post me a screenshot of the Nextcloud setup screen please?

here it is, If now on I'm not responding quickly it's because I'm going to work. Thanks

 

Hummm, I did try to setup with a wrong mysql password, and I've got the same error!!! Stange, I can connect to the db using docker exec....

58aad8509fefe_Capture_dcran_2017-01-28__12_27_05.jpg.9ec69e804b938374b1d052ab085e1745.jpg

Hey guys, I am a happy user of this docker, just I am not able to delete multiple folders. It always finnishes with ERROR deleting folder. What is weired, in my log I have no error message. in data/nextcloud logs is no error message. I have set the loglevel on 2. I have tried changing it to even 0 but clearly still no error messages. I tried to rescan all files from commandline but that hasnt halped either. I even tried deleting all entries from oc_file_locks but still no help.

Do u have any idea why this happend and why my logs are empty?

Thank

Hey guys, I am a happy user of this docker, just I am not able to delete multiple folders. It always finnishes with ERROR deleting folder. What is weired, in my log I have no error message. in data/nextcloud logs is no error message. I have set the loglevel on 2. I have tried changing it to even 0 but clearly still no error messages. I tried to rescan all files from commandline but that hasnt halped either. I even tried deleting all entries from oc_file_locks but still no help.

Do u have any idea why this happend and why my logs are empty?

Thank

 

Sorry, no idea.  Probably a permissions thing I'd imagine.

Hey guys, I am a happy user of this docker, just I am not able to delete multiple folders. It always finnishes with ERROR deleting folder. What is weired, in my log I have no error message. in data/nextcloud logs is no error message. I have set the loglevel on 2. I have tried changing it to even 0 but clearly still no error messages. I tried to rescan all files from commandline but that hasnt halped either. I even tried deleting all entries from oc_file_locks but still no help.

Do u have any idea why this happend and why my logs are empty?

Thank

 

Sorry, no idea.  Probably a permissions thing I'd imagine.

 

should I check the permisions inside of docker image or just the data/ folder?

Hey guys, I am a happy user of this docker, just I am not able to delete multiple folders. It always finnishes with ERROR deleting folder. What is weired, in my log I have no error message. in data/nextcloud logs is no error message. I have set the loglevel on 2. I have tried changing it to even 0 but clearly still no error messages. I tried to rescan all files from commandline but that hasnt halped either. I even tried deleting all entries from oc_file_locks but still no help.

Do u have any idea why this happend and why my logs are empty?

Thank

 

Sorry, no idea.  Probably a permissions thing I'd imagine.

 

should I check the permisions inside of docker image or just the data/ folder?

 

Wherever the folders you're trying to delete are would be my suggestion.

Hey guys, I am having the oddest issue lately...

 

I set everything as per instructions and it was working perfectly. However mid day today, while I was configuring a "front hub" page for the Nginx/Letsencrypt, the NextCloud docker is extremely slow to load. The login page loads up after approximately a minute, often missing parts like logo. When I attempt to login the website times out with 504. All the other entries are working fine and fast. Here are my configs:

 

letsencrypt/nginx/site-confs/default

upstream backend {
server local_ip:19999;
keepalive 64;
}

server {
listen 443 ssl default_server;
listen 80 default_server;
root /config/www;
index index.html index.htm index.php;

server_name _;

ssl_certificate /config/keys/letsencrypt/fullchain.pem;
ssl_certificate_key /config/keys/letsencrypt/privkey.pem;
ssl_dhparam /config/nginx/dhparams.pem;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_prefer_server_ciphers on;

client_max_body_size 0;

location /robot.txt {
add_header Content-type text/plain;
return 200 "User-agent: *\nDisallow: /\n";
}

location = / {
	auth_basic "Restricted";
	auth_basic_user_file /config/nginx/.htpasswd;
	try_files $uri $uri/ /index.html /index.php?$args =404;
}

location /sonarr {
	auth_basic "Restricted";
	auth_basic_user_file /config/nginx/.htpasswd;
	include /config/nginx/proxy.conf;
	proxy_pass http://local_ip:8989/sonarr;
}


location /transmission {
	include /config/nginx/proxy.conf;
	proxy_pass http://local_ip:9091/transmission;
}

#PLEX
location /web {
	# serve the CSS code
	proxy_pass http://local_ip:32400;
}

# Main /plex rewrite
location /plex {
	# proxy request to plex server
	proxy_pass http://local_ip:32400/web;
}

location /nextcloud {
	include /config/nginx/proxy.conf;
	proxy_pass https://local_ip:444/nextcloud;
}

location /requests {
	auth_basic "Restricted";
	auth_basic_user_file /config/nginx/.htpasswd;
	include /config/nginx/proxy.conf;
	proxy_pass http://local_ip:3000/requests;
}

location ~ /netdata/(?<ndpath>.*) {
	proxy_set_header X-Forwarded-Host $host;
	proxy_set_header X-Forwarded-Server $host;
	proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
	proxy_pass http://backend/$ndpath$is_args$args;
	proxy_http_version 1.1;
	proxy_pass_request_headers on;
	proxy_set_header Connection "keep-alive";
	proxy_store off;
}
}

 

letsencrypt/nginx/proxy.conf

client_max_body_size 4000M;
client_body_buffer_size 128k;

#Timeout if the real server is dead
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

# Advanced Proxy Config
send_timeout 5m;
proxy_read_timeout 240;
proxy_send_timeout 240;
proxy_connect_timeout 240;

# Basic Proxy Config
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect  http://  $scheme://;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
proxy_buffers 32 4k;

 

/nextcloud/www/nextcloud.config/config.php

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'ocsl2k5v7dsp',
  'passwordsalt' => 'BgfEwYx7QOC4P/73FmzHuoBb7Eb3ea',
  'secret' => 'lzdo7LGtrhzaN7d6yr4el8Sto+sKJa9F7jQA0r3rU4CfC7YH',
  'trusted_domains' => 
  array (
    0 => 'local_ip',
    1 => 'www.xxx.com',
  ),
  'trusted_proxies' =>
  array (
  0 => 'local_ip',
  ),
  'overwrite.cli.url' => '/nextcloud',
#  'overwritehost' => 'xxx.duckdns.org',
#  'overwriteprotocol' => 'https',
  'overwritewebroot' => '/nextcloud',
  'dbtype' => 'mysql',
  'version' => '11.0.0.10',
  'dbname' => 'nextcloud',
  'dbhost' => 'local_ip:3305',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => 'OVNb8gG8Ta30pRiEQI0gpM8D8XoA0Q',
  'logtimezone' => 'UTC',
  'installed' => true,
);

 

Any help would be greatly appreciated.

 

I've had this up and running for a few days and really like the simplicity, I have pydio set up elsewhere and it can be a bit of a pain. Only thing its missing is pretty URLs, I don't like seeing the index.php in the address bar  8) , any way to turn it on? I've done a lot of googling but the only official word I can find says this:

 

Pretty URLs are created automatically when .htaccess is writable by the HTTP user, mod_env and mod_rewrite are installed, and 'overwrite.cli.url' in your config.php is set to any non-null value.

 

I'm assuming the above applies to apache, I've no experience with nginx, can it be done?

I've followed the instructions here: https://www.linuxserver.io/2016/07/28/installing-nextcloud-on-unraid/ and keep running into an issue trying to create the admin account for nextcloud. I'm getting an access denied message with an internal docker IP, despite entering my unRAID instance IP and db port. I have tried logging into the db via terminal and get the same messages. Appreciate any advice on how to resolve this issue.

 

Edit: Reinstalled MariaDb docker and can now successfully login to mysql via terminal and Sequel Pro. But I'm still getting the access denied message with a docker IP on the admin account creation page.

Screen_Shot_2017-02-04_at_10_29.59_PM.png.cd025f5c86608414fb7e50d306037ede.png

This config works for me with aptalca's excellent nginx-letsencrypt container accessing nextcloud on nextcloud.server.com using this container on port 444

 

Can upload files, tested with one 1.5gb sample and not getting any security warnings in nextcloud and getting an A+ on ssllabs at the moment.  Also syncs via my Android client perfectly.

 

The only changes I've made to nextcloud are an update to 10.0, the ones detailed in my guide and changed the file upload size limit via the webui.

 

X6wVj6p.png

 

tCBaylJ.png

 

server {
listen 80;

listen 443 ssl;

root /config/www;
index index.html index.htm index.php;

server_name nextcloud.server.com;

###SSL Certificates
ssl_certificate /config/keys/fullchain.pem;
ssl_certificate_key /config/keys/privkey.pem;

###Diffie–Hellman key exchange ###
ssl_dhparam /config/nginx/dhparams.pem;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';


        ###Extra Settings###
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;

        ### Add HTTP Strict Transport Security ###
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains";
add_header Front-End-Https on;

client_max_body_size 0;

location / {
    proxy_pass https://192.168.0.1:444/;
  }
}

 

Hey, I dont quite understand this. I have letsencrypt running on 80 and 443. Then i have nextcloud running on 444 like you said. Im trying to do it like server.com/nextcloud not nextcloud.server.com is this an issue? The config you provided is that for the letsencrypt server?

I am stuck a setting up NC. I followed the directions as outlined in #408, except for the last set of instructions, which I cannot figure how to execute:

 

root

$MARIADB-ROOT-PASSWORD

$UNRAID-IP:PORT

 

When creating the admin user, I get the error in the attachment. I am stuck at this point.

 

Thank you,

 

Lev

NC_setup.jpg.912d5e3030a6ea9b772c1af3ce881369.jpg

I am stuck a setting up NC. I followed the directions as outlined in #408, except for the last set of instructions, which I cannot figure how to execute:

 

root

$MARIADB-ROOT-PASSWORD

$UNRAID-IP:PORT

 

When creating the admin user, I get the error in the attachment. I am stuck at this point.

 

Thank you,

 

Lev

 

$MARIADBROOTPASSWORD is the root password you set

 

$UNRAID-IP:PORT is the Unraid IP port (For me that would be 192.168.0.1:3305)

I am stuck a setting up NC. I followed the directions as outlined in #408, except for the last set of instructions, which I cannot figure how to execute:

 

root

$MARIADB-ROOT-PASSWORD

$UNRAID-IP:PORT

 

When creating the admin user, I get the error in the attachment. I am stuck at this point.

 

Thank you,

 

Lev

 

$MARIADBROOTPASSWORD is the root password you set

 

$UNRAID-IP:PORT is the Unraid IP port (For me that would be 192.168.0.1:3305)

 

Thank you.

 

When I initially setup MariaDB I set a simple password; however, when running

 

root

docker exec -it mariadb-nextcloud bash

mysql -uroot -p

 

That password was not accepted and only a blank response would lead to the next prompt.

 

So, when trying to add a NC admin account, I tried various combinations of the passwords, including just leaving it blank. None worked. Any chance on editing/setting a new MariaDB password so that I can use it during the NC setup.

I am stuck a setting up NC. I followed the directions as outlined in #408, except for the last set of instructions, which I cannot figure how to execute:

 

root

$MARIADB-ROOT-PASSWORD

$UNRAID-IP:PORT

 

When creating the admin user, I get the error in the attachment. I am stuck at this point.

 

Thank you,

 

Lev

 

$MARIADBROOTPASSWORD is the root password you set

 

$UNRAID-IP:PORT is the Unraid IP port (For me that would be 192.168.0.1:3305)

 

Thank you.

 

When I initially setup MariaDB I set a simple password; however, when running

 

root

docker exec -it mariadb-nextcloud bash

mysql -uroot -p

 

That password was not accepted and only a blank response would lead to the next prompt.

 

So, when trying to add a NC admin account, I tried various combinations of the passwords, including just leaving it blank. None worked. Any chance on editing/setting a new MariaDB password so that I can use it during the NC setup.

 

When you setup MariaDB did you set a root password in the template?  If not probably worth nuking the container and starting again.

I am stuck a setting up NC. I followed the directions as outlined in #408, except for the last set of instructions, which I cannot figure how to execute:

 

root

$MARIADB-ROOT-PASSWORD

$UNRAID-IP:PORT

 

When creating the admin user, I get the error in the attachment. I am stuck at this point.

 

Thank you,

 

Lev

 

$MARIADBROOTPASSWORD is the root password you set

 

$UNRAID-IP:PORT is the Unraid IP port (For me that would be 192.168.0.1:3305)

 

Thank you.

 

When I initially setup MariaDB I set a simple password; however, when running

 

root

docker exec -it mariadb-nextcloud bash

mysql -uroot -p

 

That password was not accepted and only a blank response would lead to the next prompt.

 

So, when trying to add a NC admin account, I tried various combinations of the passwords, including just leaving it blank. None worked. Any chance on editing/setting a new MariaDB password so that I can use it during the NC setup.

 

When you setup MariaDB did you set a root password in the template?  If not probably worth nuking the container and starting again.

 

During the initial mariadb setup I set a simple three letter password.

Should look like this..

 

x5ka6dp.png

Yes, I went past this prompt; however, the original password used during the setup of Mariadb was not accessible. I had to leave the password blank and hit enter to get to this prompt.

 

Sent from my SM-G935V using Tapatalk

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.