[Support] Linuxserver.io - Nextcloud


Recommended Posts

I have taken sometime to read thru support articles regarding my errors. I'm still a bit unsure how to correct some of these. I'm also unable to install letscrypt on the the unraid server. I can't find it in the search. 😞

The video posted was no help to the issues that i'm having.

 

Edited by LFCO
Link to comment
Collabora released new version 6.4.10.9, 3 days ago. that might do it for you
So, still no dice upgrading to 6.4.10.3. I downgrade to 6.4.9.3 and it immediately works fine.
 
Collabora must have changed something specific that inadvertently affects the functionality of mine in which the current way it is configured. Any idea where I can find change logs that would potentially elude me to what may have changed on their end?
 
Taking a quick gander do you see anything totally Awry on my part?
(Been SO long since I set it up; it's just always worked but I think initially some years ago I had used SI1's config tutorial)
430763101_ScreenShot2021-08-08at11_35_27AM.thumb.png.a7fe317b0737fdaf10f1eb7f0d752ec3.png
1338431090_ScreenShot2021-08-08at11_38_38AM.thumb.png.d32458bfc1a48b63de099c610fa00252.png
1089071526_ScreenShot2021-08-08at11_39_14AM.thumb.png.daf902def2be81673b736be50dd521c0.png
1775809581_ScreenShot2021-08-08at11_41_13AM.thumb.png.88dc90ffbc26b4e152b404b0d06704a2.png


Edit: don’t see anything useful here https://www.collaboraoffice.com/code-6-4-release-notes/

Could issues be related to newest version of Collabora AND the newest plugin app thing you have to install in Nextcloud to use Collabora as a WOPI or whatever? NC V 21.0.3 if it matters?
Link to comment
1 hour ago, blaine07 said:

So, still no dice upgrading to 6.4.10.3.

First, try 6.4.10.9 (not .3) ;) 
Second on your collabora docker template, try changing from cloud\\.domain\\.com to cloud\.domain\.com (single backslash), I think this was a change introduced in 6.4.9.* but was still backwards compatible.
 

Link to comment
2 hours ago, LFCO said:

I have taken sometime to read thru support articles regarding my errors. I'm still a bit unsure how to correct some of these. I'm also unable to install letscrypt on the the unraid server. I can't find it in the search. 😞

The video posted was no help to the issues that i'm having.

 

1. https://www.youtube.com/watch?v=I0lhZc25Sro

2. https://www.youtube.com/watch?v=qnEuHKdf7N0

I'll advice 1st watching both videos and then go apply it. Because there is some changes from lets encrypt to swag. 
After having reverse proxy on your nextcloud, it should resolve all the warnings you have right now.

 

 

 

Link to comment
First, try 6.4.10.9 (not .3)  
Second on your collabora docker template, try changing from cloud\\.domain\\.com to cloud\.domain\.com (single backslash), I think this was a change introduced in 6.4.9.* but was still backwards compatible.
 

Will report back. Yes did do .9 I fat fingered what I typed. .9 should show in pic I think.

None the less yes maybe the 1 slash thing is it.

Thanks so much; will report back soon
  • Like 1
Link to comment

Alright, I got everything setup. I'm having an issue with the SSL.

 

I did get the SSL Created for nextcloud.lfcompanies.com. 

Here is the log:


Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
SUBDOMAINS entered, processing
Only subdomains, no URL in cert
Sub-domains processed are: -d nextcloud.lfcompanies.com
E-mail address entered: ***********
http validation is selected
Certificate exists; parameters unchanged; starting nginx
Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please retrieve a free license key from MaxMind,
and add a new env variable "MAXMINDDB_LICENSE_KEY", set to your license key.
[cont-init.d] 50-config: exited 0.
[cont-init.d] 60-renew: executing...
The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
[cont-init.d] 60-renew: exited 0.
[cont-init.d] 70-templates: executing...
[cont-init.d] 70-templates: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Server ready

 

I made the changes to the config file for nextcloud 

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'ocua0ryazzvz',
  'passwordsalt' => '***********',
  'secret' => '***********',
  'trusted_domains' =>
  array (
    0 => '192.168.50.100:444',
    1 => 'nextcloud.lfcompanies.com',
  ),
  'dbtype' => 'pgsql',
  'version' => '22.1.0.1',
  'overwrite.cli.url' => 'https://nextcloud.lfcompanies.com/',
  'trusted_proxies' => ['swag'],
  'overwritehost' => 'nextcloud.lfcompanies.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.50.100:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => '**********',
  'installed' => true,
  'default_phone_region' => 'US',

 

I cant seem to access the site using https://nextcloud.lfcompanies.com, however I can access the site https://nextcloud.lfcompanies:444, the cert doesn't show its working. Any ideas?

 

Edited by LFCO
Link to comment

Will report back. Yes did do .9 I fat fingered what I typed. .9 should show in pic I think.

None the less yes maybe the 1 slash thing is it.

Thanks so much; will report back soon

Skois, still no dice. Ugh. No idea what’s wrong. Maybe I need to wipe container and start over. Ugh I dunno
Link to comment
10 minutes ago, blaine07 said:


Skois, still no dice. Ugh. No idea what’s wrong. Maybe I need to wipe container and start over. Ugh I dunno emoji30.png

Try adding those in the photoimage.thumb.png.bf6f4b5ab363c1ff34084310963fe08a.png

`extra_params`   variable have the following `--o:welcome.enable=false --o:user_interface.mode=notebookbar --o:ssl.enable=false --o:ssl.termination=true`

I also have a variable `server_name` which have `collabora\.mydomain\.com`

  • Thanks 1
Link to comment
1 hour ago, LFCO said:

Alright, I got everything setup. I'm having an issue with the SSL.

 

I did get the SSL Created for nextcloud.lfcompanies.com. 

Here is the log:


Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
SUBDOMAINS entered, processing
Only subdomains, no URL in cert
Sub-domains processed are: -d nextcloud.lfcompanies.com
E-mail address entered: ***********
http validation is selected
Certificate exists; parameters unchanged; starting nginx
Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please retrieve a free license key from MaxMind,
and add a new env variable "MAXMINDDB_LICENSE_KEY", set to your license key.
[cont-init.d] 50-config: exited 0.
[cont-init.d] 60-renew: executing...
The cert does not expire within the next day. Letting the cron script handle the renewal attempts overnight (2:08am).
[cont-init.d] 60-renew: exited 0.
[cont-init.d] 70-templates: executing...
[cont-init.d] 70-templates: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Server ready

 

I made the changes to the config file for nextcloud 

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => 'ocua0ryazzvz',
  'passwordsalt' => '***********',
  'secret' => '***********',
  'trusted_domains' =>
  array (
    0 => '192.168.50.100:444',
    1 => 'nextcloud.lfcompanies.com',
  ),
  'dbtype' => 'pgsql',
  'version' => '22.1.0.1',
  'overwrite.cli.url' => 'https://nextcloud.lfcompanies.com/',
  'trusted_proxies' => ['swag'],
  'overwritehost' => 'nextcloud.lfcompanies.com',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.50.100:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin',
  'dbpassword' => '**********',
  'installed' => true,
  'default_phone_region' => 'US',

 

I cant seem to access the site using https://nextcloud.lfcompanies.com, however I can access the site https://nextcloud.lfcompanies:444, the cert doesn't show its working. Any ideas?

 

Check your port forward and make sure that it points to your swag container not to your nextcloud container.
 

Link to comment

I guess I don't understand. I'm sorry. 

 

I currently have setup port forwarding on my router for swag

 

For Port 80 is going to port 180

For Port 443 is going to port 1443

 

So where exactly do I need to point this ip address too? Are you saying I need to change the information in the config log that shows :444 to 1443? I'm confused. 

 

 

Link to comment
I guess I don't understand. I'm sorry. 
 
I currently have setup port forwarding on my router for swag
 
For Port 80 is going to port 180
For Port 443 is going to port 1443
 
So where exactly do I need to point this ip address too? Are you saying I need to change the information in the config log that shows :444 to 1443? I'm confused. 
 
 
443 -> unraidip:swaggerport


Sent from my Mi 10 Pro using Tapatalk

Link to comment

So I deleted this file, restarted the docker but I am still getting the "Your web server is not properly set up to resolve "/.well-known/webfinger". Error. Any ideas?

 

25.02.21: - Nginx default site config updated for v21 (existing users should delete /config/nginx/site-confs/default and restart the container).

 

I've also tried adding this

location = /.well-known/webfinger   { return 301 /index.php$uri; }

and still no luck

Edited by ffhelllskjdje
Link to comment
3 hours ago, skois said:

It's the "correct" way, but should work without also

Sent from my Mi 10 Pro using Tapatalk
 

SSL stuff doesn't seem to work/be applicable to my setup. Everytime I had any of the SSL stuff it gave a error about SSL going to http port or something silly. None the less, tried every combination of with and without things you provided and STILL ended up back on 6.4.9.3. I guess maybe this should've been asked long ago but what version of NC are you on--21.0.3 here? Do you think the NC helper "app" installed in NC could be part issue?

 

Should "cert_domain" and "server_domain" be same? I think the answer is NO>?

Edited by blaine07
Link to comment

OK, I'm not sure where I went wrong, but it may have been when I stayed up way too late working on this.

 

I have MariaDB running for my NextCloud Container, that is front ended by SWAG (all from Linuxservers.io) which sit behind my USG-PRO. I have swag setup with a bridge and am forwarding 192.168.1.41:443 out to the world (obviously I'm not using that IP, don't spaz out.) From there I'm using DNS-o-Matic to update Namecheap with a records for WWW.AWESOMEDOMAIN.NET and NEXTCLOUD.AWESOMEDOMAIN.NET. 

 

Both return a good response when running an internal (my computer) and external (someone's web page) nslookup. 

 

I'm still getting this: image.png.37ed98ae8874db2e0b59cb0a9774eb70.png

 

I've attached redacted versions of my nextcloud and swag config files.

 

Edited by eagle470
Link to comment
17 hours ago, blaine07 said:

SSL stuff doesn't seem to work/be applicable to my setup. Everytime I had any of the SSL stuff it gave a error about SSL going to http port or something silly. None the less, tried every combination of with and without things you provided and STILL ended up back on 6.4.9.3. I guess maybe this should've been asked long ago but what version of NC are you on--21.0.3 here? Do you think the NC helper "app" installed in NC could be part issue?

 

Should "cert_domain" and "server_domain" be same? I think the answer is NO>?

image.thumb.png.ecc28f42efa867f3916b64455ecb730e.pngThis is my setup. 
 

Link to comment

Hello,

 

This container is somehow utilizing huge pages on my Unraid server.  I have enabled hugepages through the normal means of: 

append hugepagesz=2M hugepages=8194

This allocates 16GB of RAM to huge pages. Then have various VMs that leverage these hugepages via the following XML.

  <memoryBacking>
    <hugepages/>
    <nosharepages/>
  </memoryBacking>

 

I noticed a few months back that at certain times I was unable to start 16GB worth of VMs.  I began shutting down containers, which would then allow me to fully populate all 16GB of hugepage RAM, so I then began the process of narrowing down which container was causing the issue.  It appears to be this Nextcloud container. I used this command to see what was grabbing hugepages:

grep huge /proc/*/numa_maps

When Nextcloudis running, this command outputs:

grep huge /proc/*/numa_maps
/proc/24581/numa_maps:145fd0a00000 default file=/anon_hugepage\040(deleted) huge dirty=3 mapmax=3 N0=3 kernelpagesize_kB=2048
/proc/24606/numa_maps:145fd0a00000 default file=/anon_hugepage\040(deleted) huge dirty=11 mapmax=3 N0=11 kernelpagesize_kB=2048
/proc/24607/numa_maps:145fd0a00000 default file=/anon_hugepage\040(deleted) huge dirty=11 mapmax=3 N0=11 kernelpagesize_kB=2048

Upon shutting down this container, there is no output to the command (if all my VMs are also off). I have started every single one of my containers one by one, and this is the only one that results in this behavior.  Is this intentional? If so, I feel that it should be documented as many people use hugepages for VFIO passthrough performance.  If not intended, is the proper place to for support for this issue?

 

Thanks in advance. 

Link to comment

First time install - never used nextcloud - 4 years of using Unraid.

 

Unraid 6.9.2

 

following SpaceInvaderOne Youtube video

create share, install mariadb, setup maria DB

 

Install nextcloud..... and ERROR...

upon opening nextcloud GUI for first time i get error
 

Composer autoloader not found, unable to continue. Check the folder "3rdparty". Running "git submodule update --init" will initialize the git submodule that handles the subfolder "3rdparty".

in the logs i find 

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing...
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing...
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing...
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing...
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing...
cp: cannot create regular file '/config/www/nextcloud/config/config.php': No such file or directory
chown: cannot access '/config/www/nextcloud/config/config.php': No such file or directory
[cont-init.d] 60-memcache: exited 1.
[cont-init.d] 70-aliases: executing...
[cont-init.d] 70-aliases: exited 0.
[cont-init.d] 90-custom-folders: executing...
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

 

 

what did i do wrong....?

 

feels like a permission thing...  according to the instructions from SpaceinvaderOne's video, i've followed all the steps.
what did i do wrong?

Edited by TRusselo
Link to comment

**Can’t connect to Nextcloud if the dns record is proxied**
 

Hello dear unraid enthusiasts,

I am loving unraid so far but I got hard time with Nextcloud. Everything is setup I got swag, maria db, cloudflare ddns and Nextcloud docker. Port forwarding is set up to accept everything going from my domain to right ports 80-180 and 443-1443( got routerOS 😀 so many options). But still got error 502 that cloudflare can’t connect to server. If I disable proxied then it is working no problem. Also DDNS docker shows in log only my true ip and I don’t know if it should. Thanks for help.

Link to comment
**Can’t connect to Nextcloud if the dns record is proxied**
 
Hello dear unraid enthusiasts,
I am loving unraid so far but I got hard time with Nextcloud. Everything is setup I got swag, maria db, cloudflare ddns and Nextcloud docker. Port forwarding is set up to accept everything going from my domain to right ports 80-180 and 443-1443( got routerOS so many options). But still got error 502 that cloudflare can’t connect to server. If I disable proxied then it is working no problem. Also DDNS docker shows in log only my true ip and I don’t know if it should. Thanks for help.
I never figured it out, (not really bothered to)..
But it's something with the headers on the reverse proxy, to either trust the cloudflare ip's, or to pass the real client ip to the server.
Those should help to start looking around!

Btw remember to disable anything like brottli, minify, rocket stuff from cloudflare, or you gonna have ui problems, like missing login form etc

Sent from my Mi 10 Pro using Tapatalk

  • Like 1
Link to comment
53 minutes ago, skois said:

I never figured it out, (not really bothered to)..
But it's something with the headers on the reverse proxy, to either trust the cloudflare ip's, or to pass the real client ip to the server.
Those should help to start looking around!

Btw remember to disable anything like brottli, minify, rocket stuff from cloudflare, or you gonna have ui problems, like missing login form etc

Sent from my Mi 10 Pro using Tapatalk
 

Thanks this will certainly help. I was nuts from port forwarding and also I feared that I will set something bad. I have set up it by  spaceinvaders video and there it worked up with no additional setup. That’s the point where I thought i have a problem with forwarding. Someone got it working? Please help if you can.

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.