Jump to content
linuxserver.io

[Support] Linuxserver.io - Nextcloud

2209 posts in this topic Last Reply

Recommended Posts

will do and start fresh again

 

Actually you don't even need to do the first bit either.

 

You can set the root password via the MariaDB container setup.

 

 

I still have to add insert 'skip-log-bin' to custom.cnf right?

Share this post


Link to post

Not if you set the binlog_format=mixed

 

 

Share this post


Link to post

Incidentally I wrote a guide a couple of days ago to install this.  Needs some editing and then we'll publish it on our website.

 

chop chop then, the wet noodle beating is over.

 

Side note: I am using the lets encrypt docker and proxy, working great i can get to my nextcloud, however when i try to setup a sync client , the sync client tells me it cannot find the server instance. anyone else having that issue. i have not tried just port forwarding nextcloud on my router because i really want to use the lets encrypt SSL.

Share this post


Link to post

I'm not sure I follow you with the sync client thing...  What sync client?

Share this post


Link to post

I'm not sure I follow you with the sync client thing...  What sync client?

 

I assume the Owncloud Sync client for desktop systems.

Share this post


Link to post

I'm not sure I follow you with the sync client thing...  What sync client?

 

I assume the Owncloud Sync client for desktop systems.

 

yes

 

nextcloud2.jpg.7290982ff7928d22a7b32bfa2251bbdb.jpg

Share this post


Link to post

I don't use the desktop one but my Android one works fine...

 

Sent from my LG-H815 using Tapatalk

 

 

Share this post


Link to post

I don't use the desktop one but my Android one works fine...

 

Sent from my LG-H815 using Tapatalk

 

I can get it from my web address just fine its the sync client that wont connect. i not sure its because i am using DDNS or what. i'll post on the nextcloud forums, just happy its up and running.

Share this post


Link to post

I don't use the desktop one but my Android one works fine...

 

Sent from my LG-H815 using Tapatalk

 

I can get it from my web address just fine its the sync client that wont connect. i not sure its because i am using DDNS or what. i'll post on the nextcloud forums, just happy its up and running.

 

I'm using ddns and just installed it, working fine using the WAN address..

Share this post


Link to post

I don't use the desktop one but my Android one works fine...

 

Sent from my LG-H815 using Tapatalk

 

I can get it from my web address just fine its the sync client that wont connect. i not sure its because i am using DDNS or what. i'll post on the nextcloud forums, just happy its up and running.

Can you get to the web address from outside your house?

Share this post


Link to post

I don't use the desktop one but my Android one works fine...

 

Sent from my LG-H815 using Tapatalk

 

I can get it from my web address just fine its the sync client that wont connect. i not sure its because i am using DDNS or what. i'll post on the nextcloud forums, just happy its up and running.

Can you get to the web address from outside your house?

 

Yes,

nextcloud3.jpg.5f7453ff38c602ae9b6b1b5cebe805e4.jpg

Share this post


Link to post

Both the Android and Desktop clients connect fine for me outside my LAN.

Share this post


Link to post

Both the Android and Desktop clients connect fine for me outside my LAN.

 

I probably will have to work on my let's-encrypt docker, that probably the issue.

Share this post


Link to post

Seems strange if you can connect to the website but can't connect with the client.  Get any error messages?

 

Sent from my LG-H815 using Tapatalk

 

 

Share this post


Link to post

Seems strange if you can connect to the website but can't connect with the client.  Get any error messages?

 

Sent from my LG-H815 using Tapatalk

 

haven't had a  chance to look at the logs in nextcloud but i will.

Share this post


Link to post

did not find anything in nextcloud logs but i did find errors in the lets-encrypt/nginx docker.

I can see where my web client connects just fine but when a sync clients attemps to connect i get a weird error.

 

2016/07/07 14:02:47 [error] 99#99: *465 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.77.198., server: owncloud7$
2016/07/07 14:02:51 [error] 99#99: *465 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.77.198., server: owncloud7$
2016/07/07 14:02:52 [error] 99#99: *465 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.77.198., server: owncloud7$
2016/07/07 14:02:53 [error] 99#99: *465 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.77.198., server: owncloud7$
2016/07/07 14:02:54 [error] 99#99: *465 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 107.77.198., server: owncloud7$

Share this post


Link to post

Can't help you with that one I'm afraid...... I don't understand nginx let alone letsencrypt...

 

Sent from my LG-H815 using Tapatalk

 

 

Share this post


Link to post

I have copied a large set of backup data to my nextcloud user's /files folder and I would like to run the 'occ' command to sync but I'm getting errors similar to this post for an owncloud container: http://lime-technology.com/forum/index.php?topic=38930.msg481198#msg481198

 

My attempts:

ur $ docker exec -it nextcloud /bin/bash
nc $ chsh -s /bin/bash www-data
user 'www-data' does not exist

 

So then I exit back to my unraid terminal and do this

 

ur $ docker exec -it nextcloud php /config/www/nextcloud/occ help  
Console has to be executed with the user that owns the file config/config.php
Current user: root
Owner of config.php: abc
Try adding 'sudo -u abc ' to the beginning of the command (without the single quotes)

 

so then I run...

 

ur $ docker exec -it nextcloud sudo -u abc php /config/www/nextcloud/occ help
exec: "sudo": executable file not found in $PATH

 

And also running occ inside the container...

 

nc $ php occ status
Console has to be executed with the user that owns the file config/config.php
Current user: root
Owner of config.php: abc
Try adding 'sudo -u abc ' to the beginning of the command (without the single quotes)

 

Here's my config.php user:group from inside container

 

nc $ ls -la /config/www/nextcloud/config/config.php 
-rw-r-----    1 abc      abc            640 Jul  7 22:27 /config/www/nextcloud/config/config.php

 

How do you run occ on your nextcloud container?

What are the correct owner and group for the nextcloud's /config and /data folders? My /config files and folders are owned by abc:abc

 

Cheers

Share this post


Link to post

How do you run occ on your nextcloud container?

What are the correct owner and group for the nextcloud's /config and /data folders? My /config files and folders are owned by abc:abc

 

Cheers

 

I was wondering the same thing. Need to run ./occ upgrade manually to migrate from owncloud, and to do maintenance away from the GUI. I'm sure there's an easy solution?

Share this post


Link to post

How do you run occ on your nextcloud container?

What are the correct owner and group for the nextcloud's /config and /data folders? My /config files and folders are owned by abc:abc

 

Cheers

 

abc:abc are nobody:users to ensure that permissions are correct on Unraid.  We'll look into this and get back to you.

Share this post


Link to post

Ok, have added sudo to the container.  So update your container.

 

So this should work to enable you to run occ..

 

docker exec -it nextcloud bash
sudo -u abc php /config/www/nextcloud/occ

 

Just remember as stated on the first post, we're not supporting migrations from Owncloud, so you're on your own...  ;)

Share this post


Link to post

Ok, have added sudo to the container.  So update your container.

 

So this should work to enable you to run occ..

 

docker exec -it nextcloud bash
sudo -u abc php /config/www/nextcloud/occ

 

Just remember as stated on the first post, we're not supporting migrations from Owncloud, so you're on your own...  ;)

 

Thanks for your efforts BTW. As long as the tools are available within the docker(s) I think most people will be able to perform their own maintenance as needed.

Share this post


Link to post

Thanks for your efforts BTW. As long as the tools are available within the docker(s) I think most people will be able to perform their own maintenance as needed.

 

You have more faith than me... lol

 

We need to draw the line somewhere and covering migration was definitely one we didn't want to cover, not saying people won't do it, nor that it's not possible, and some users will be more than capable others less so, but I'm sure you understand where we're coming from.

 

The fact yourself and preginald are already familiar with occ, means you're not the people we're worried about.  The problem with supporting docker containers is drawing the line between docker support and app support.  It's a very indistinct line and difficult to gauge....

Share this post


Link to post

Curious: has anyone tried checking ssllabs.com to test the Nextcloud/Nginx install? My Nextcloud installation showed graded as B with a few vulnerability issues. If the plain vanilla install I did grades as B then I would imagine everyone else's will as well. As someone previously suggested with owncloud a while back, I went ahead and made the same changes to /nextcloud/config/nginx/config.php:

 

server {
  listen 443 ssl;
  server_name _;

### Set Certificates ###
ssl_certificate    /config/keys/cert.crt;
ssl_certificate_key  /config/keys/cert.key;

### Add Diffie–Hellman key exchange ###
ssl_dhparam /config/keys/dhparam.pem;

### Disable SSL by enforcing TLS ###
ssl_protocols    TLSv1 TLSv1.1 TLSv1.2;

### Add some ciphers and reject weaker ones ###
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
ssl_prefer_server_ciphers on;
ssl_session_cache  shared:SSL:10m;
ssl_session_timeout  10m;
ssl_verify_depth 2;

   # Add headers to serve security related headers
  add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload;";
  add_header X-Content-Type-Options nosniff;
  add_header X-Frame-Options "SAMEORIGIN";
  add_header X-XSS-Protection "1; mode=block";
  add_header X-Robots-Tag none;
  add_header X-Download-Options noopen;
  add_header X-Permitted-Cross-Domain-Policies none;

 

Hope this helps.

Share this post


Link to post

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.