-
-
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
Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache #1166
Comments
in OC is the same issue - owncloud/core#22370 i hope this can help NC too to resolve this issue |
cc @icewind1991 |
Encountering the same issue without any additional apps, only the files app and the Windows client. The file is shared by
It seems a bit strange that there seem to be so many PIDs reporting the problem with the first message being repeated. |
More details on this issue: it looks like the server is trying to access a file that is supposed to be in the data folder of the share owner but somehow (in the filesystem) wound up in the data folders of one of the users the folder is shared with. Then, when trying to read the file from the filesystem it crashes with the above error. The database looks correct but the files in the data folder are all in different directories from where they are supposed to be. Is there any way to easily find out which files are affected and move them back to the share owners data directory? Any information I could provide to help debugging this? |
Here is what I think happened (as relevant for the server): due to user problem or a client bug, some shared folders were deleted. Afterwards we restored the folders using the trashbin view. Apparently the files were not restored into the data directory of the share owner but into the data directory of the share recipient. Not sure if that makes sense to you, but, as I mentioned, feel free to ask me for further information if it can help you to debug it. |
I also found this in our logs:
This was a PROPFIND against remote.php/webdav by @rullzer |
It also only happened once in the past 30 days. Looks like a race condition 😢 |
Afaik this is a race condition in php's garbage collection on scrim exit, if we have a The solution to this is making sure we close streams before exiting the script, this used to be fairly consistent with webdav but was fixed by closing the output stream in sabre/dav |
@icewind1991 Please check out the issue at owncloud. There are some reproduction steps. |
Ping @icewind1991 |
I encountered the same problem while copying files to nextcloud via the builtin webdav-client in Mac OS Sierra. It was a batch of 300 pictures and it slowed down the process tremendously. Seems like it happened on almost every file. Maybe you can find anything useful in there. This is from nextcloud.log And from Apache: |
I have the same problem here. Files cannot be downloaded via IE 9. Firefox and Chrome are working as expected (on desktop) Nextcloud version: 10.0.1
PHP version: PHP 7 (7.0.12-1) Apache error log: nextcloud.log Both given logs are from the instance installed via git Would be very happy if somebody can fix this. I have several users which are restricted to use IE9 |
Hi, i noticed that i have the same messages in Logfile with Nextcloud 11:
Operating system: CentOS 7 The File in the error message is shared by me with other users and the error message came up in NC 11 log file when these users access NC11 with the Nextcloud-Sync Clients. |
I saw this same problem when copying a large number of files via gvfs with webdavs. About 1k of the files transferred correctly, but once it his this error about 5 times the connection locked until i killed the gvfs process. |
Just to confirm this as well:
There have been some debugging here: owncloud/core#22370 And @PVince81 created some PRs to fix this: Nextcloud 11 |
And another one
Ping @icewind1991 |
@icewind1991 Didn't you mention that you have an idea what this could cause? |
I have the same issue. I'm wondering if it somehow is connected to using php7? |
ownCloud solved it it seems: owncloud/core#22370 (comment) |
That sounds great! :) |
That means updating icewind/streams to 0.5.2 and then apply owncloud/core#26775 @icewind1991 Can you check this out please? |
Will this fix work for version 11.0.1? |
@ryannix123 tried 11.0.1, still have the error in my logs. |
It will land in 11.0.2 earliest |
Merged -> will be in 12.0. Let's see if we want to backport this. cc @karlitschek |
Please backport! :) |
yes. please backport |
Error still present in 11.0.2. |
Not backported yet. :( |
It's backported: #3293 |
Sorry if this is a dumb question but I can't figure out how to download a backported version of 11.0.2 |
@Steve8291 This will be released in 11.0.3, and if you want the changes right now you have to change the files as it's changed here: https://github.com/nextcloud/server/pull/3293/files or apply a patch with git. |
@Steve8291 You can also use Nextcloud daily packages (the script targets the stable branch). I've tried and now Nextant works. :) |
Used that and I get still the same error.
|
Still in 11.0.3 @icewind1991 :(
|
@enoch85
I found that in 11.0.3, icewind/streams lib has been updated but doesn't do the second step. |
cc @icewind1991 |
@yp05327 Thanks! Will patch it. To bad that was missed in the merge for Nextcloud. :/ |
Just to confirm, adding owncloud/core#26939 solved it, finally no more spamming! |
Backport to stable11 was merged - will be released as 11.0.4 |
Manually applied the patch yesterday and can't find any error yet. |
Operating system: Debian 8
Web server: Apache 2.4
Database: mysql 5.5.49-0+deb8u1
PHP version: 7.02
Nextcloud version: 10 / 9.1.0.16 - was also in 9.0.53
Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/htdocs/lib/private/Files/Filesystem.php:773 Stack trace: #0 /var/www/htdocs/lib/private/Files/View.php(2034): OC\Files\Filesystem::normalizePath('/MaT/files/Musi...') #1 /var/www/htdocs/lib/private/Files/View.php(1152): OC\Files\View->unlockFile('/Music - World/...', 1) #2 [internal function]: OC\Files\View->OC\Files\{closure}() #3 /var/www/htdocs/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure)) #4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close() #5 {main} thrown at /var/www/htdocs/lib/private/Files/Filesystem.php#773
This happens with the audioplayer app from Rello -> https://github.com/Rello/audioplayer
He told me it is an core related issue and not with the app - he cannot resolve it
I found the issue now also when i click normal songs in folders switch from one to the other by short click
The text was updated successfully, but these errors were encountered: