-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OC_Filecache is blowing Up!!!! #16834
Comments
Is there anything in your nextcloud.log? Looks like the cron is running 3 times. Would you mind to add the other information from the issue template like configuration (without credentials) and apps? |
I am wondering why
So yeah, the database seems to be stuck/looping, adding entries multiple times. Besides filling the infos from the default issue template (check postgres logs as well), shutting down webserver and waiting for or killing the running postgres processes, then checking some lines of the
And try to replicate with a fresh instance with Redis-based file locking properly enabled first (which we could derive from your |
@MichaIng wrote:
It is done by the book. Never tested with 1 million files though. This is the config in the VM:
And this is the install script: https://github.com/nextcloud/vm/blob/master/static/redis-server-ubuntu.sh |
@enoch85 If I remember right, However logs (issue template info) required to investigate. Additionally, since Redis seems to be involved:
|
I am on it to bring you the logs, i need some assistance from our customer to bring you that Informations, thank you in advance for your help.. I will update this asap. |
@kaoschris
This should be the whole access order, thus all parts that can play a role. |
@kaoschris I just added APCu to the VM. If you want to use it, please create a file called wtaherver.sh and add this content:
Run the file with Then change |
I guess you mean:
😉 |
Yes ofc :D |
Hello i got some logs and uploaded them into https://fileshare.kelobit.de/s/WLfJWbq2B246aNa |
@kaoschris please remove sensitive information from the logs (e.g. account names, paths) ... |
@kesselb However I just had a quick view:
Some days earlier (old
And in database, current entries:
Okay so there is clearly much messed up already:
If the above is done, local tests work as expected, I would run some |
@kaoschris In the VM that's |
@enoch85 |
Yes didnt fly over the infos, true that email adresses where in the logs didnt thought it would. thanks for the pointing to it... The Customer user Windows Server 2016 with File Service SMB and nextcloud connects with external storage app to that shares, the users connect with thier LDAP / Active Directory Credentials to Nextcloud and thier Rights are in use like they should. Means CEOs did have access to alle folders and employees dont. Maybe there is an Conflickt handling massive Data und SMB/CFIS Shares and filecache? The Customer hast about 1.2 Million Files and 70k Folders, its an Media Company wich builds media (web,print, etc.) |
I can't find the issue now, but I've seen this before - customers having issues with the combination of LDAP, SMB and PostgreSQL in Nextcloud. Especially when connecting LDAP when using SMB mounted externally. I had one guy like 1 year ago where PostgreSQL created tons of files in the data directory for PostgreSQL. I will try to find the issue and link it here. |
Maybe not related after all, but here it is anyway: #11743 |
I suspect that files / folders are shared by the fileserver and configured as user mount are added to oc_filecache for every user. Example: Fileshare with 100.000 files. User A and User B can access the share with their personal credentials. Technically these are two different storages so 200.000 are added to oc_filecache. server/apps/files_external/lib/Lib/Storage/SMB.php Lines 135 to 140 in adc2ab4
I'm not 100% sure about that but the code above creates the storage id and contains the username so the same fileshare with another credentials leads to two storages in nextcloud. This could explain why your oc_filecache table contains a huge amount of data given that number of users and the size of the fileshare. Nevertheless for such a big instance redis locking will decrease your database load.
This is fixed by some app or nextcloud update.
#16432 is part of 16.0.4 and helps to reduce the sql load. |
16.0.4 was just released, VM wise. But you could use the built in script to update it. |
That totally makes sense. How should Nextcloud know that it is the same share if added by multiple users separately. This actually means:
|
@MichaIng wrote
That's how I usually recommend doing things. Makes sense to me at least. |
Okay ill then update to 16.0.4 and will do some maintenance on the table itself to set some Storage Free and then we rearange the acces rights to Nextcloud level instead of Windows Level.. I'll inform you guys if this helped out... thanks for helping out ill catch up on that |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
Steps to reproduce
Expected behaviour
It works like it should but see below
Actual behaviour
there are select request hold open for a long time in nextcloud_db
Server configuration
Nextcloud server version: (see your admin page)
16.02
Server OS (Ubuntu server is default)
Ubuntu 18.04
How did you install the VM? (Scripted install from master OR Released version)
From Master
Network
Do you use DHCP?
Yes
Is port 80 and/or 443 open?
Yes
Logs / Screenshots
https://fileshare.kelobit.de/s/WLfJWbq2B246aNa
The text was updated successfully, but these errors were encountered: