[Support] Linuxserver.io - Nextcloud


Recommended Posts

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.

Link to comment

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.

Link to comment

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.

Link to comment

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

Link to comment

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.

Link to comment

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?

Link to comment

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.

Link to comment

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.

 

Link to comment

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?

Link to comment

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

Link to comment

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?

Link to comment

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

Link to comment

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)

Link to comment

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.

Link to comment

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.

Link to comment

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.

Link to comment

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.