[Support] Linuxserver.io - Nextcloud


Recommended Posts

Something weird has happened today. I've installed nextcloud on 2 different unraid servers in the past, and while neither has been particularly fast, my latest install on a 3rd server is slower than ever. It was actually the fastest, at first. Let me explain..

 

The server in question has 2 cache pools, one consisting of 2 x 256 SSDs (named 'cache') and the other is 2x16GB optane nvmes (named syspool). Initially, I had appdata located on the syspool and docker.img was located on cache. This configuration was the fastest I've seen nextcloud perform. A side-by-side comparison to my other install showed that this one was faster (only by a second or two) but still, the most responsive I've ever seen the GUI.

 

I wanted to put the docker.img on the optane pool as well, thinking this might further improve performance. Rather than worry about trying to move things around (fresh server so no important data on it) I deleted the dockers/docker.img/appdata. Stopped docker service, and created a new docker.img on the optane pool. I then installed mariadb and nextcloud again, but this time performance was MUCH worse. Slower than my other servers by several seconds. Takes 2-3 seconds longer to switch from one page to another, and then a few more to actually load the content of the page (files/photos/dashboard/etc) 

 

I did more testing, deleting everything and starting fresh each time to ensure a clean slate. I tried using a directory instead of btrfs for the docker img, no change in speed. I put everything back to how it was initially (when it was running great) still no change. I don't understand how it could run so great at first, and now run like total crap. Ive seen people suggest redis/memcaching, but im not even concerned with file transfer performance right now, I just want the GUI to perform at least as good as my other servers do.

specs for this server are 2 x X5670 cpus and 24GB ram. 

Link to comment
On 7/5/2021 at 4:16 AM, Richamc01 said:

I'm having major issues getting Nextcloud to update. I tried to update through the GUI and eventually had to restore my appdata from a backup as Nextcloud became inoperable. Now I'm trying through the CLI. Option 2 from the first page of this forum results in:


Step 6 is currently in process. Please call this command later.

 So, I tried Option 3 (manual upgrade using occ) when I run the perform upgrade step, I am presented with:


Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Exception: Updates between multiple major versions and downgrades are unsupported.
Update failed
Maintenance mode is kept active
Resetting log level

Then I found your post and I tried the first command you mention and I get:


sudo: unknown user: abc
sudo: unable to initialize policy plugin

It seems way too complicated to update Nextcloud. Any idea what my options are now? 

Are you using unraid and the linuxserver.io docker? abc user is relevant to that. other setups use a different username which slips me atm.  It might be worth getting it out of maintenance mode. if abc doesn't work go to the config.php file and there will be a line for maintenance mode in there. set it to false or "0" then restart. It might give you the opportunity to have another go.

What version are you on? and what are you trying to update to?  One of the traps is to update the docker before you update nextcloud itself. Docker at some point updates to a later version of php which nextcloud can't handle if too old. I think this happened back around v15 to 17.  As a general rule, always update nextcloud first before updating the docker.

 

Link to comment
On 7/15/2021 at 6:47 PM, 2Piececombo said:

Something weird has happened today. I've installed nextcloud on 2 different unraid servers in the past, and while neither has been particularly fast, my latest install on a 3rd server is slower than ever. It was actually the fastest, at first. Let me explain..

 

The server in question has 2 cache pools, one consisting of 2 x 256 SSDs (named 'cache') and the other is 2x16GB optane nvmes (named syspool). Initially, I had appdata located on the syspool and docker.img was located on cache. This configuration was the fastest I've seen nextcloud perform. A side-by-side comparison to my other install showed that this one was faster (only by a second or two) but still, the most responsive I've ever seen the GUI.

 

I wanted to put the docker.img on the optane pool as well, thinking this might further improve performance. Rather than worry about trying to move things around (fresh server so no important data on it) I deleted the dockers/docker.img/appdata. Stopped docker service, and created a new docker.img on the optane pool. I then installed mariadb and nextcloud again, but this time performance was MUCH worse. Slower than my other servers by several seconds. Takes 2-3 seconds longer to switch from one page to another, and then a few more to actually load the content of the page (files/photos/dashboard/etc) 

 

I did more testing, deleting everything and starting fresh each time to ensure a clean slate. I tried using a directory instead of btrfs for the docker img, no change in speed. I put everything back to how it was initially (when it was running great) still no change. I don't understand how it could run so great at first, and now run like total crap. Ive seen people suggest redis/memcaching, but im not even concerned with file transfer performance right now, I just want the GUI to perform at least as good as my other servers do.

specs for this server are 2 x X5670 cpus and 24GB ram. 

Try installing Bruteforce then go to settings and whitelist the gateway.  Else install a pfsense vm and move your router onto that. (Last option not a 5 minute job)

 

Edited by Jessie
Link to comment
On 6/23/2021 at 12:56 AM, GitBoxer said:

I have, for months, been trying to upgrade from NC20 to NC21.  Whenever I give it another go, I always get stumped here:

 

image.png.df249bdf6639cd62844d6921039e6f57.png

 

This is what I see in the WebUI after I restart NC:

 

image.png.b4133d51f653420660eecd41e1530025.png

 

Something about OC_App.php.  I've looked everywhere for a solution to no avail.  Anybody have a solution?  Thanks in advanced!!

I put a post up on page 195.  Try that.

 

Link to comment
On 7/12/2021 at 8:14 AM, skois said:

Tried to bypass NginxProxyManager, and tried to connect to collabora directly, with self signed cert, and disabled cert verification from NC side.

On 6.4.10.3 it does NOT work even like this.
but on 6.4.9.3 it DOES work.

Something is going very wrong with these images. Collabora did some RE-UPLOADS of 6.4.10.3 (and i think on 6.4.10.2 also) and REMOVED 6.4.10.4.
TBH, removing and overwriting images on a repository is a very very very bad tactic and can mess up with a lot of automated systems. 
If something goes wrong just issue a patch and create a new image. Imagine someone have updated to the broken 6.4.10.3 image and they re-upload a working 6.4.10.3 image, the poor guy will never see the update because the update check will tell him that he is up to date. And he will be struggling for no reason.

I hope OnlyOffice starts supporting Cell Locking/protection soon (it's been on their todo list since 2017..) so I can move there.

rant over..

For anyone wondering.. Collabora stil haven't fixed this, there was some commits that MIGHT be related to this bug, but there is NOT any new images build yet so I can test.
Stick for 6.4.9.3 for now :)

  • Like 1
Link to comment
For anyone wondering.. Collabora stil haven't fixed this, there was some commits that MIGHT be related to this bug, but there is NOT any new images build yet so I can test.
Stick for 6.4.9.3 for now

Thank you so so so much!
  • Like 1
Link to comment

Alright I have seemlying broken Nextcloud. My configuration was working a few weeks ago and this current update broke something. I'm just getting a "This page isn’t working" when trying to access the webpage, nor does the android app sync.

 

My setup is this:

Letsencript converted to SWAG docker.

mariadb docker.

nextcloud docker.

 

Is there a way to revert the docker to a previous version on unraid? I followed SpaceinvaderOne's tutorials for everything

Link to comment

My Nextcloud environment expierenced the same thing after updating to the last version. (latest tag).

Latest tag is version 22.0

 

I've added the tag in the docker config, rebooted the server (docker was stuck in starting).

Repository: linuxserver/nextcloud:version-21.0.3

 

[edit]

Removed the tag and updated again. It's working now

Edited by JdeJong
Link to comment
9 hours ago, JdeJong said:

My Nextcloud environment expierenced the same thing after updating to the last version. (latest tag).

Latest tag is version 22.0

 

I've added the tag in the docker config, rebooted the server (docker was stuck in starting).

Repository: linuxserver/nextcloud:version-21.0.3

 

[edit]

Removed the tag and updated again. It's working now

 

Neither version 21.0.3 or 22.0 fixed the issue, getting a ERR_CONNECTION_CLOSED webpage error.

 

Link to comment
11 hours ago, ZombieHedgehog said:

 

Neither version 21.0.3 or 22.0 fixed the issue, getting a ERR_CONNECTION_CLOSED webpage error.

 

Do the logfiles say anything? And are you able to open console of nextcloud docker? In my case the console wouldn't even open.

Link to comment
4 hours ago, JdeJong said:

Do the logfiles say anything? And are you able to open console of nextcloud docker? In my case the console wouldn't even open.

 

Logs appear to be normal, it seems like nextcloud is running but is disconnected from the network

 

User uid: 99
User gid: 100
-------------------------------------

[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...
[cont-init.d] 60-memcache: exited 0.
[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.
[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.

Link to comment
On 7/19/2021 at 2:37 PM, skois said:

For anyone wondering.. Collabora stil haven't fixed this, there was some commits that MIGHT be related to this bug, but there is NOT any new images build yet so I can test.
Stick for 6.4.9.3 for now :)

I am not sure if I am reading it correctly, but I think this means they fixed it and it should be incorporated with the next update (6.4.10.6?)

https://github.com/CollaboraOnline/online/pull/2931

  • Like 1
Link to comment

Dear all,

I am having issue of maintenance in log of nextcloud docker. this happen when I restarted the server. 

this is blocking the GUI and I cannot access next cloud login page. the screen shot is attached. 

any help is much appreciated!

Kind regards,

 

Screen Shot 2021-07-24 at 10.59.06.png

Link to comment

there is prolly a reason why its in maintenance mode, you can try edit the config.php

 

located at \\yourserver\appdata\nextcloud\www\nextcloud\config

 

  'maintenance' => false,
 

but may rethink what you done so it is currently in maintenance ...

Link to comment

I have issues getting my upload speed to my NC server maxxed when accessing both through webbrowser as through the desktop app. When I test on LAN everything is 80-90 MB/s no issues.

 

However when I then turn on SWAG and use the WAN access the desktop app runs at round 70-90 MB/s. I do see it pause a lot, probably because of the chunking. When I use the webbrowser I get 80-90 MB/s download, but upload is only 20 MB/s. So it seems something is wrong with my nginx configs, but I have no idea what it could be. Already looked at some optimizations, but none seem to fix it. Doesn't help that I don't understand the relationship between SWAG and NC's own NGINX files (nginx.conf and default).

 

Anyone has any clue what it could be?

Link to comment
On 7/20/2021 at 8:37 AM, VozDeOuro said:

can't change my domain name to my new one
if i put the new domain name on the config i got this error
any one knows something ?
image.thumb.png.6bbb5d36b1f3497b822bcb92ac77a1c0.png

 

I fixed my error. It was actually due to the domain name from SWAG (previously letsencript). Logs were throwing the error: "nginx: [emerg] "proxy_redirect" directive is duplicate in /config/nginx/proxy-confs/youtube-dl.subfolder.conf:22", which was solved by deleting that file. I guess SWAG was not even starting because of that error so custom domain names do not work. 

 

Hopefully this helps someone.

  • Thanks 1
Link to comment

Hello,

 

i am Struggling to get a new version of Nextcloud installed with MariaDB on Unraid. i have done this in the past without issue. i am setting up a new unraid server and am getting an issue while trying to get through the initial Nextcloud setup with setting admin user/MariaDB settings it keeps timing out. if i try to restart the nextcloud container it will startup in the initial setup page again but errors when i try to proceed saying the user account already exists. 

 

Unraid Version 6.9.2

Nextcloud Docker Tag being used - linuxserver/nextcloud

MariaDB  Docker Tag being used - linuxserver/mariadb

 

Thanks,

Link to comment

if its a complete fresh setup, may try removing the existing nextcloud database from mariadb or create a new database or create a new user in the existing one (you can delete the old one and rename the new existing one then).

 

i would recommend step 1 or 2, who knows what you have in your existing one ...

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.