[Support] Linuxserver.io - Nextcloud


Recommended Posts

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
On 8/9/2021 at 10:28 AM, eagle470 said:

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.

swag config.txt 1.57 kB · 0 downloads nextcloud config.txt 847 B · 0 downloads

I dont use SWAG so cant comment there (use NPM instead).

 

I see the following line in the nextcloud conf:

'overwritehost' => 'nextcloud.howardfarms.net',

 

it should match your domain: 'nextcloud.awesomedomain.net',

 

Ot, you simply didnt redact all of the information and in that case they should all match :)

 

 

Let me know how it goes.

Edited by mfwade
Link to comment

Hi i have problems with syncing my IOS movies when they are over a certain size. Nextcloud is connected through a reversed proxy. and i get 413 file are to large error in the app. what can i do to get it to work?

 

EDIT: I found out that it was my Cloudflare proxy that made the problem, what can i do so i can proxy behind cloudflare and still be able to upload huge filed from ios?

Edited by STEFAN1987
Update
Link to comment

I'm trying to start a clean instance and I'm getting the 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".

 

Do you have any advice?

Link to comment

BUMP  

 

same issue as guy above..

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

My UnRaid Setup:

Unraid OS Pro 6.9.2
ASUSTek ROG VIII Hero
AMD Ryzen 9 12-Core

 

I recently blew up my nextcloud docker and had to rebuild it.  So I did last night 8/14/21.  So it is the latest install of nextcloud.

 

I first created a temp folder so that I could mirror all the users accounts I had and once that was done I switch nextcloud data folder back to the original and ran in the console:  occ: files:scan --all.  [don't worry I have set up duplicati so re-builds are easier in the future because I am bond to blow something else up 🤪.]

 

Anyway - all is working as it should be.  All the data has been updated and are correctly located in the folders or sub-folders.  I can click and view anything.  I can upload/download anything.  What I can not do is Move or Copy data.

 

ISSUE:

1 - navigate to a folder or file

2 - click on file

3 - click on the 3 dots and select Move or Copy

I get an error box with "Could not move "filename", target exists

 

I hope this is a simple disable or enable, however, I am getting better at editing .php files too 🤓.

 

I can supply log files if you think it is needed.

 

Need help!

 

Mystic

Edited by Mystic
Link to comment

I'm having trouble increasing the maximum upload size. I'm trying to upload a 1.5gb file and get a 413 file too large error

 

Here are the things I tried that didn't work.

 

  1. I read the docs here https://docs.nextcloud.com/server/14/admin_manual/configuration_files/big_file_upload_configuration.html but could not find a user.ini anywhere
  2. So I modified /mnt/user/appdata/nextcloud/php/php-local.ini and added the lines mentioned in the docs like so
    1. ; Edit this file to override php.ini directives and restart the container

      date.timezone = America/New_York

      ; Upload file upgrades

      upload_max_filesize = 20G
      post_max_size = 20G

      ; Timeouts

      max_input_time = 3600
      max_execution_time = 3600

  3. after I restarted, that didn't work so I decided to create a /mnt/user/appdata/nextcloud/php/user.ini with the same content as the point before

If you could just point me in the right direction I'd be really grateful

 

Link to comment

Hi,

I've relocated my unraid server and as a result, the IP range has changed.

What and were to I change the IP's in the config to allow me access to NC again.

Currently the page won't load.

 

(DB is Maria in docker on the same server).

 

Thanks.

Link to comment

Seems like quite a few are having issues currently. Probably best if I don't update my NextCloud right now haha!

 

Anyway, I'm having an issue too.

Downloading files larger than around 1gb always seem to fail from my NextCloud.

 

I'm using a Ubiquiti USG as my router, I have NextCloud 21.0.1 up and running on UnRaid 6.9.2. PHP Version is currently 7.4.15

Everything else (from what I can tell) is working just fine, and has been for months.

 

To me, this seems like some sort of a setting / limitation somewhere, since the download always seems to stop at that 1gb mark.

Any help would be appreciated! :)

Link to comment
2 hours ago, JT24 said:

Hi,

I've relocated my unraid server and as a result, the IP range has changed.

What and were to I change the IP's in the config to allow me access to NC again.

Currently the page won't load.

 

(DB is Maria in docker on the same server).

 

Thanks.

I managed to solve the issues.
Fixed up the IP's in the config file.

Only thing is now, it's running so dam slow.

Link to comment

I've been following this guide which I figured out was seriously out of date: https://www.linuxserver.io/blog/2017-05-10-installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy

Then I also looked at the Linuxserver.io documentation for swag and this other blog https://linuxserver.tips/en/nextcloud-install-on-unraid/

 

I made this post earlier today: https://www.reddit.com/r/selfhosted/comments/p6a26g/linuxserver_documentation_for_swagnextcloud/

 

I'm unsure where I went wrong. I'm using cloudflare to get DDNS working, so I'm good there. I HAD a working instance of NextCloud locally, now I get

 

Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the webserver log.

 

if I run

 

docker logs swag -f

 

everything looks clean in the logs there now. When I run.

 

docker logs nextcloud -f

 

I get this notorious error:

PHP Fatal error: Uncaught Error: Call to a member function getLogger() on null in /config/www/nextcloud/cron.php:162 Stack trace: #0 {main} thrown in /config/www/nextcloud/cron.php on line 162

 

Looking at ./log/nginx/error.log I see this error:

 

2021/08/17 17:13:23 [error] 407#407: *2 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected ''overwritehost'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /config/www/nextcloud/config/config.php on line 25" while reading response header from upstream, client: 10.10.1.89, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "10.10.1.221"

 

If I comment it out I learn I get that same (roughly) error for these three config entries: 

'overwrite.cli.url' => 'https://nextcloud.server.com',

'overwritehost' => 'nextcloud.server.com',

'overwriteprotocol' => 'https',

 

If I comment those out I can get to everything locally but not through my public DNS. 

 

If I leave them in, I can't get to anything locally or externally.

 

I really want to get this working and I feel like I'm close. I'm just not sure what I'm doing wrong.

I'm using all the linuxserver.io containers (mariadb, nextcloud and swag) to make this work, though I've been testing with the NginxProxyManager just to check my work on the proxy server side. It does not appear thats an issue, so I'd like to switch back to the swag container, in which case I turn one off, the other on and change the port forward rule. 

 

Please help me figure this out, I need a fresh set of eyes on this.

 

2021-08-17 17_22_27-https___10.10.1.221 - Brave.png

2021-08-17 17_23_24-NVIDIA GeForce Overlay.png

error.log nextcloud.subdomain.conf nextcloud.subfolder.conf config.php nextcloud

  • Like 1
Link to comment
On 8/11/2021 at 4:23 PM, mfwade said:

I dont use SWAG so cant comment there (use NPM instead).

 

I see the following line in the nextcloud conf:

'overwritehost' => 'nextcloud.howardfarms.net',

 

it should match your domain: 'nextcloud.awesomedomain.net',

 

Ot, you simply didnt redact all of the information and in that case they should all match :)

 

 

Let me know how it goes.

Hello i had a hard week. I will check in setting but overwritehost' => 'nextcloud.howardfarms.net was setup and # was deleted. Going to read some more becouse i see eagle is on another level :). Also got some chat in reddit 

 

Link to comment
9 hours ago, eagle470 said:

I've been following this guide which I figured out was seriously out of date: https://www.linuxserver.io/blog/2017-05-10-installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy

Then I also looked at the Linuxserver.io documentation for swag and this other blog https://linuxserver.tips/en/nextcloud-install-on-unraid/

 

I made this post earlier today: https://www.reddit.com/r/selfhosted/comments/p6a26g/linuxserver_documentation_for_swagnextcloud/

 

I'm unsure where I went wrong. I'm using cloudflare to get DDNS working, so I'm good there. I HAD a working instance of NextCloud locally, now I get

 

Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the webserver log.

 

if I run

 

docker logs swag -f

 

everything looks clean in the logs there now. When I run.

 

docker logs nextcloud -f

 

I get this notorious error:

PHP Fatal error: Uncaught Error: Call to a member function getLogger() on null in /config/www/nextcloud/cron.php:162 Stack trace: #0 {main} thrown in /config/www/nextcloud/cron.php on line 162

 

Looking at ./log/nginx/error.log I see this error:

 

2021/08/17 17:13:23 [error] 407#407: *2 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected ''overwritehost'' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /config/www/nextcloud/config/config.php on line 25" while reading response header from upstream, client: 10.10.1.89, server: _, request: "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "10.10.1.221"

 

If I comment it out I learn I get that same (roughly) error for these three config entries: 

'overwrite.cli.url' => 'https://nextcloud.server.com',

'overwritehost' => 'nextcloud.server.com',

'overwriteprotocol' => 'https',

 

If I comment those out I can get to everything locally but not through my public DNS. 

 

If I leave them in, I can't get to anything locally or externally.

 

I really want to get this working and I feel like I'm close. I'm just not sure what I'm doing wrong.

I'm using all the linuxserver.io containers (mariadb, nextcloud and swag) to make this work, though I've been testing with the NginxProxyManager just to check my work on the proxy server side. It does not appear thats an issue, so I'd like to switch back to the swag container, in which case I turn one off, the other on and change the port forward rule. 

 

Please help me figure this out, I need a fresh set of eyes on this.

 

2021-08-17 17_22_27-https___10.10.1.221 - Brave.png

2021-08-17 17_23_24-NVIDIA GeForce Overlay.png

error.log 7.5 kB · 0 downloads nextcloud.subdomain.conf 1.15 kB · 0 downloads nextcloud.subfolder.conf 1.53 kB · 0 downloads config.php 823 B · 0 downloads nextcloud 1.53 kB · 0 downloads

Got this error also when i changed the 'overwrite.cli.url' => 'https://nextcloud.server.com'. It´s is shame that i dont have time to look in nextcloud deeply. Also if you look in my post on reddit after proxied i get 2 ip´s in my router and if not i get only one my real ip. I got a problem also with port forward and had to cross a hell road to make it working :D. One setup i had ok connnection only from inside. Second option only outside :D. I need to attatched setting thats if only from nextcloud.mydomain.net are comming to port 80 and 443 can forward to swag ports. That solved connection problems. And guys sorry for english only thru game learning :).

Link to comment
6 hours ago, techgeeksvk said:

Got this error also when i changed the 'overwrite.cli.url' => 'https://nextcloud.server.com'. It´s is shame that i dont have time to look in nextcloud deeply. Also if you look in my post on reddit after proxied i get 2 ip´s in my router and if not i get only one my real ip. I got a problem also with port forward and had to cross a hell road to make it working :D. One setup i had ok connnection only from inside. Second option only outside :D. I need to attatched setting thats if only from nextcloud.mydomain.net are comming to port 80 and 443 can forward to swag ports. That solved connection problems. And guys sorry for english only thru game learning :).

I've known American Nationals that couldn't use written english as well as you can. Mostly from my time in the Army, but still, your English is pretty good.

Edited by eagle470
  • Haha 1
Link to comment

My issue was several things, I needed to change the SSL type from Flexible to Full in cloudflare, I needed to add a trustedproxy flag, I also missed an apostrophe. 

 

I had to add a cname in my dns servers (pihole) for my proxy host (swag) as well. I chose to use a fixed IP, figuring it gave me more flexibility in the long run to lock things down.

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.