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

Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache #22370

Closed
LukasReschke opened this Issue Feb 13, 2016 · 140 comments

Comments

Projects
None yet
@LukasReschke
Member

LukasReschke commented Feb 13, 2016

Seems to be caused by

$unlockLater = false;
if ($this->lockingEnabled && $operation === 'fopen' && is_resource($result)) {
$unlockLater = true;
$result = CallbackWrapper::wrap($result, null, null, function () use ($hooks, $path) {
if (in_array('write', $hooks)) {
$this->unlockFile($path, ILockingProvider::LOCK_EXCLUSIVE);
} else if (in_array('read', $hooks)) {
$this->unlockFile($path, ILockingProvider::LOCK_SHARED);
}
});
}

{"reqId":"YZdjFpzB5CoaRlMO0bak","remoteAddr":"xxxx","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in lib/private/files/filesystem.php:799
Stack trace:
#0 lib/private/files/view.php(1919): OC\Files\Filesystem::normalizePath('/USER/files/shared...')
#1 lib/private/files/view.php(1055): OC\Files\View->unlockFile('/Shared/ownclou...', 1)
#2 [internal function]: OC\Files\View->OC\Files\{closure}()
#3 apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php(106): call_user_func(Object(Closure))
#4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close()
#5 {main}
  thrown at lib/private/files/filesystem.php#799","level":3,"time":"2016-02-12T14:02:57+00:00","method":"PROPFIND","url":"/owncloud/remote.php/webdav/"}

cc @icewind1991

@LukasReschke LukasReschke added this to the 9.0-current milestone Feb 13, 2016

@PVince81 PVince81 added the sev2-high label Feb 15, 2016

@icewind1991

This comment has been minimized.

Show comment
Hide comment
@icewind1991

icewind1991 Feb 17, 2016

Member

Any steps to reproduce?

Looks like the close callback is called during process teardown

Member

icewind1991 commented Feb 17, 2016

Any steps to reproduce?

Looks like the close callback is called during process teardown

@PVince81 PVince81 added the needs info label Feb 23, 2016

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Feb 23, 2016

Member

@LukasReschke any info ?

Member

PVince81 commented Feb 23, 2016

@LukasReschke any info ?

@LukasReschke

This comment has been minimized.

Show comment
Hide comment
@LukasReschke

LukasReschke Feb 23, 2016

Member

No idea. It just regularly appears on the S3 error logs 🙈

Member

LukasReschke commented Feb 23, 2016

No idea. It just regularly appears on the S3 error logs 🙈

@LukasReschke LukasReschke removed this from the 9.0-current milestone Feb 23, 2016

@LukasReschke LukasReschke removed their assignment Feb 23, 2016

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Mar 1, 2016

Member

@dragotin thought it could be related to timeout issues.

@icewind1991 if there is a timeout, would the PHP tear down still called ? (that was on S3)

Member

PVince81 commented Mar 1, 2016

@dragotin thought it could be related to timeout issues.

@icewind1991 if there is a timeout, would the PHP tear down still called ? (that was on S3)

@LukasReschke LukasReschke added this to the backlog milestone Mar 1, 2016

@PVince81 PVince81 modified the milestones: 9.0.1-next-maintenance, backlog Mar 1, 2016

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Mar 1, 2016

Member

Let's have a look at this as part of 9.0.1.

Would be good to have some logs. Sometimes cross-referencing the request id might help find out what else happened there. Maybe the audit log could help too.

Member

PVince81 commented Mar 1, 2016

Let's have a look at this as part of 9.0.1.

Would be good to have some logs. Sometimes cross-referencing the request id might help find out what else happened there. Maybe the audit log could help too.

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Mar 1, 2016

Member

I also remember that sometimes in the tear down routine, PHP starts unloading static variables so it is not guaranteed that they are still available within the tear down / destructors...

Member

PVince81 commented Mar 1, 2016

I also remember that sometimes in the tear down routine, PHP starts unloading static variables so it is not guaranteed that they are still available within the tear down / destructors...

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Mar 9, 2016

Member

@LukasReschke is this still happening in the S3 logs ?

Member

PVince81 commented Mar 9, 2016

@LukasReschke is this still happening in the S3 logs ?

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Mar 9, 2016

Member

(well, after the update to 9.0.0...)

Member

PVince81 commented Mar 9, 2016

(well, after the update to 9.0.0...)

@LukasReschke

This comment has been minimized.

Show comment
Hide comment
@LukasReschke

LukasReschke Mar 9, 2016

Member

Can't quite tell. It's still on 8.2.2, apparently 9.0 is aimed for this weekend

Member

LukasReschke commented Mar 9, 2016

Can't quite tell. It's still on 8.2.2, apparently 9.0 is aimed for this weekend

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Mar 23, 2016

Member

Looked at the code in the View: https://github.com/owncloud/core/blob/v8.2.3/lib/private/files/view.php#L1053 which calls unlock which itself uses the normalization function: https://github.com/owncloud/core/blob/v8.2.3/lib/private/files/view.php#L1920

The CallbackWrapper, IIRC, is called when the file gets closed.
There might be code paths and PHP versions in which the fclose is happening very late, at GC time.

If it's at GC time, it is likely that the GC has already destroyed that normalizedPathCache property from the static class. I saw this happen before.

The difficult part here is to find out which fclose call is missing, could be from an app.

Member

PVince81 commented Mar 23, 2016

Looked at the code in the View: https://github.com/owncloud/core/blob/v8.2.3/lib/private/files/view.php#L1053 which calls unlock which itself uses the normalization function: https://github.com/owncloud/core/blob/v8.2.3/lib/private/files/view.php#L1920

The CallbackWrapper, IIRC, is called when the file gets closed.
There might be code paths and PHP versions in which the fclose is happening very late, at GC time.

If it's at GC time, it is likely that the GC has already destroyed that normalizedPathCache property from the static class. I saw this happen before.

The difficult part here is to find out which fclose call is missing, could be from an app.

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Mar 23, 2016

Member

Also, this is PHP 7, right ?

Member

PVince81 commented Mar 23, 2016

Also, this is PHP 7, right ?

@Aidenir

This comment has been minimized.

Show comment
Hide comment
@Aidenir

Aidenir Apr 4, 2016

I've seen the same issue (I'm pretty sure its the same) on my Arch server, which was recently updated to php 7.
Client: 2.1.1
Server: 8.2.1

Aidenir commented Apr 4, 2016

I've seen the same issue (I'm pretty sure its the same) on my Arch server, which was recently updated to php 7.
Client: 2.1.1
Server: 8.2.1

@cmonteroluque cmonteroluque modified the milestones: 9.1-current, 9.0.1 Apr 11, 2016

@ToeiRei

This comment has been minimized.

Show comment
Hide comment
@ToeiRei

ToeiRei Apr 18, 2016

Same here with
PHP: 7 (also troubles with the same files with 5.6)
Client 2.1.1
Server 9.0.1

I even kicked out ACPu for testing - same result but still doing some tests to nail it down.

ToeiRei commented Apr 18, 2016

Same here with
PHP: 7 (also troubles with the same files with 5.6)
Client 2.1.1
Server 9.0.1

I even kicked out ACPu for testing - same result but still doing some tests to nail it down.

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Apr 18, 2016

Member

Hmm, and maybe PHP 7's GC logic is different so it could confirm that this is PHP 7 specific.

Member

PVince81 commented Apr 18, 2016

Hmm, and maybe PHP 7's GC logic is different so it could confirm that this is PHP 7 specific.

@ToeiRei

This comment has been minimized.

Show comment
Hide comment
@ToeiRei

ToeiRei Apr 18, 2016

@PVince81 So far I get a different error message on sync using PHP 5.6 - It's the same files that I cannot sync.

ToeiRei commented Apr 18, 2016

@PVince81 So far I get a different error message on sync using PHP 5.6 - It's the same files that I cannot sync.

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Apr 18, 2016

Member

cannot sync

The original issue was not about sync issues, just a mysterious warning.
Can you provide more information ? It isn't clear yet whether that message is directly related to sync issues.

Member

PVince81 commented Apr 18, 2016

cannot sync

The original issue was not about sync issues, just a mysterious warning.
Can you provide more information ? It isn't clear yet whether that message is directly related to sync issues.

@ToeiRei

This comment has been minimized.

Show comment
Hide comment
@ToeiRei

ToeiRei Apr 18, 2016

That's what the error_log of apache2 says:

source: owncloud.server | message: [:error] [pid 29660] [client 192.168.1.190:35684] PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /home/oc/owncloud/lib/private/files/filesystem.php:804 (...) { application_name: apache2 | gl2_source_node: bdffd45f-a36f-43a2-b4a2-1ce704fb47db | full_message: <187>1 2016-04-18T10:04:51.736384+02:00 stargazer apache2 29660 - - [:error] [pid 29660] [client 194.183.146.190:35684] PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /home/oc/owncloud/lib/private/files/filesystem.php:804\nStack trace:\n#0 /home/oc/owncloud/lib/private/files/view.php(1977): OC\\Files\\Filesystem::normalizePath('/cbauer/files/M...')\n#1 /home/oc/owncloud/lib/private/files/view.php(1095): OC\\Files\\View->unlockFile('/MailStore/Data...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 /home/oc/owncloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n thrown in /home/oc/owncloud/lib/private/files/filesystem.php on line 804 | gl2_remote_port: 44262 | gl2_remote_ip: 10.0.0.3 | timestamp: 2016-04-18T08:04:51.736Z | level: 3 | process_id: 29660 | facility: local7 | _id: 26e160a0-053c-11e6-9c52-000c29fb3aa1 | gl2_source_input: 5702a61c0cf2c929d96b791a | streams: [5702c17b0cf2c929d96b96f3] }

Those messages started to appear as soon as I had issues syncing a couple of files.

Setup: Apache2 using the PHP Module
Error message in the client says 'Server unavailable' - but the box is at a decent connection which shouldn't even drop packages.

Any chance to get the client to spill out debug logs?

ToeiRei commented Apr 18, 2016

That's what the error_log of apache2 says:

source: owncloud.server | message: [:error] [pid 29660] [client 192.168.1.190:35684] PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /home/oc/owncloud/lib/private/files/filesystem.php:804 (...) { application_name: apache2 | gl2_source_node: bdffd45f-a36f-43a2-b4a2-1ce704fb47db | full_message: <187>1 2016-04-18T10:04:51.736384+02:00 stargazer apache2 29660 - - [:error] [pid 29660] [client 194.183.146.190:35684] PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /home/oc/owncloud/lib/private/files/filesystem.php:804\nStack trace:\n#0 /home/oc/owncloud/lib/private/files/view.php(1977): OC\\Files\\Filesystem::normalizePath('/cbauer/files/M...')\n#1 /home/oc/owncloud/lib/private/files/view.php(1095): OC\\Files\\View->unlockFile('/MailStore/Data...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 /home/oc/owncloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n thrown in /home/oc/owncloud/lib/private/files/filesystem.php on line 804 | gl2_remote_port: 44262 | gl2_remote_ip: 10.0.0.3 | timestamp: 2016-04-18T08:04:51.736Z | level: 3 | process_id: 29660 | facility: local7 | _id: 26e160a0-053c-11e6-9c52-000c29fb3aa1 | gl2_source_input: 5702a61c0cf2c929d96b791a | streams: [5702c17b0cf2c929d96b96f3] }

Those messages started to appear as soon as I had issues syncing a couple of files.

Setup: Apache2 using the PHP Module
Error message in the client says 'Server unavailable' - but the box is at a decent connection which shouldn't even drop packages.

Any chance to get the client to spill out debug logs?

@ToeiRei

This comment has been minimized.

Show comment
Hide comment
@ToeiRei

ToeiRei Apr 18, 2016

I guess in my case it was the client acting up. Nuking that one did drastically reduce the number of those messages and resolved the sync issues. Pretty weird if you ask me.

ToeiRei commented Apr 18, 2016

I guess in my case it was the client acting up. Nuking that one did drastically reduce the number of those messages and resolved the sync issues. Pretty weird if you ask me.

@enoch85

This comment has been minimized.

Show comment
Hide comment
@enoch85

enoch85 Apr 26, 2016

Member

I can confirm this on Ubuntu 16.04 with PHP 7 and MySQL 5.7 - ownCloud 9.0.1.

{"reqId":"iTsNNfGl7adS3E2QbmcS","remoteAddr":"99.163.30.109","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/ownCloud ...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T04:16:16+02:00","method":"GET","url":"\/core\/js\/oc.js?v=26ed1e1c91e8e0412e1fe375a06eb902","user":"--"}
{"reqId":"WaV6P1ifbhBTRnUf\/CYU","remoteAddr":"99.163.30.109","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/ownCloud ...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T04:24:19+02:00","method":"GET","url":"\/core\/js\/oc.js?v=26ed1e1c91e8e0412e1fe375a06eb902","user":"--"}
{"reqId":"8ARO4jLYMrmLl7z8SAs6","remoteAddr":"192.168.1.201","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/ownCloud ...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T05:04:42+02:00","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","user":"daniel"}
{"reqId":"SkFCdie1WdYVQ2eZA19k","remoteAddr":"192.168.1.201","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/MineCraft...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T05:19:11+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"daniel"}
Member

enoch85 commented Apr 26, 2016

I can confirm this on Ubuntu 16.04 with PHP 7 and MySQL 5.7 - ownCloud 9.0.1.

{"reqId":"iTsNNfGl7adS3E2QbmcS","remoteAddr":"99.163.30.109","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/ownCloud ...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T04:16:16+02:00","method":"GET","url":"\/core\/js\/oc.js?v=26ed1e1c91e8e0412e1fe375a06eb902","user":"--"}
{"reqId":"WaV6P1ifbhBTRnUf\/CYU","remoteAddr":"99.163.30.109","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/ownCloud ...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T04:24:19+02:00","method":"GET","url":"\/core\/js\/oc.js?v=26ed1e1c91e8e0412e1fe375a06eb902","user":"--"}
{"reqId":"8ARO4jLYMrmLl7z8SAs6","remoteAddr":"192.168.1.201","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/ownCloud ...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T05:04:42+02:00","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v1\/notifications?format=json","user":"daniel"}
{"reqId":"SkFCdie1WdYVQ2eZA19k","remoteAddr":"192.168.1.201","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/MineCraft...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T05:19:11+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"daniel"}
@enoch85

This comment has been minimized.

Show comment
Hide comment
@enoch85
Member

enoch85 commented May 13, 2016

@enoch85

This comment has been minimized.

Show comment
Hide comment
@enoch85

enoch85 May 13, 2016

Member

Is there a fix for this? It spams my log every time someone downloads from a public link. If there is a fix, please backport to stable 9. Thanks you @icewind1991

Member

enoch85 commented May 13, 2016

Is there a fix for this? It spams my log every time someone downloads from a public link. If there is a fix, please backport to stable 9. Thanks you @icewind1991

@enoch85

This comment has been minimized.

Show comment
Hide comment
@enoch85

enoch85 May 13, 2016

Member

Still happens on 9.0.2 btw.

Member

enoch85 commented May 13, 2016

Still happens on 9.0.2 btw.

@enoch85

This comment has been minimized.

Show comment
Hide comment
@enoch85

enoch85 May 13, 2016

Member

Steps to reproduce

  1. Create a public link with a random file
  2. Download that public link
  3. Wait for ~10 seconds
  4. Errors appears

These steps produces the error for me, but I'm not sure they work for everyone. What's strange is that it seems like the sync client (on XPS 13) throws and error on one of the attempts (I did 2 attempts).

{"reqId":"GJulUGLEvl+i5JrcrFCD","remoteAddr":"192.168.1.201","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/ownCloud ...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T09:23:40+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"DELL-XPS13"}
{"reqId":"t5Hah4zinZhJTG1LPCZ6","remoteAddr":"192.168.1.201","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/MineCraft...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T09:28:12+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"daniel"}
Member

enoch85 commented May 13, 2016

Steps to reproduce

  1. Create a public link with a random file
  2. Download that public link
  3. Wait for ~10 seconds
  4. Errors appears

These steps produces the error for me, but I'm not sure they work for everyone. What's strange is that it seems like the sync client (on XPS 13) throws and error on one of the attempts (I did 2 attempts).

{"reqId":"GJulUGLEvl+i5JrcrFCD","remoteAddr":"192.168.1.201","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/ownCloud ...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T09:23:40+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"DELL-XPS13"}
{"reqId":"t5Hah4zinZhJTG1LPCZ6","remoteAddr":"192.168.1.201","app":"PHP","message":"Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php:807\nStack trace:\n#0 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1977): OC\\Files\\Filesystem::normalizePath('\/daniel...')\n#1 \/var\/www\/owncloud\/lib\/private\/files\/view.php(1095): OC\\Files\\View->unlockFile('\/_VMs\/MineCraft...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 \/var\/www\/owncloud\/3rdparty\/icewind\/streams\/src\/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n  thrown at \/var\/www\/owncloud\/lib\/private\/files\/filesystem.php#807","level":3,"time":"2016-05-13T09:28:12+02:00","method":"PROPFIND","url":"\/remote.php\/webdav\/","user":"daniel"}
@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 May 13, 2016

Member

@icewind1991 can you have a look ? Possibly PHP 7 garbage collection race condition / order difference

Member

PVince81 commented May 13, 2016

@icewind1991 can you have a look ? Possibly PHP 7 garbage collection race condition / order difference

@enoch85

This comment has been minimized.

Show comment
Hide comment
@enoch85

enoch85 May 22, 2016

Member

Could this be fixed for 9.0.3? It spams my log. Please.

Member

enoch85 commented May 22, 2016

Could this be fixed for 9.0.3? It spams my log. Please.

@Buzut

This comment has been minimized.

Show comment
Hide comment
@Buzut

Buzut May 23, 2016

Same error here. My config:

  • Ubuntu 16.04,
  • oC 9.0.2.2,
  • Apache 2.4.18,
  • PHP 7.0.4,
  • MariaDB 10.01

When the error occus, the client stops and I'm not able to sync anything.

Error log:
[Mon May 23 00:46:08.321776 2016] [:error] [pid 2633] [client 83.61.36.110:64660] PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /var/www/owncloud/lib/private/files/filesystem.php:807\nStack trace:\n#0 /var/www/owncloud/lib/private/files/view.php(1977): OC\\Files\\Filesystem::normalizePath('/Buzut/files/Bu...')\n#1 /var/www/owncloud/lib/private/files/view.php(1095): OC\\Files\\View->unlockFile('/Buzeo/Com-mark...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 /var/www/owncloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n thrown in /var/www/owncloud/lib/private/files/filesystem.php on line 807

Buzut commented May 23, 2016

Same error here. My config:

  • Ubuntu 16.04,
  • oC 9.0.2.2,
  • Apache 2.4.18,
  • PHP 7.0.4,
  • MariaDB 10.01

When the error occus, the client stops and I'm not able to sync anything.

Error log:
[Mon May 23 00:46:08.321776 2016] [:error] [pid 2633] [client 83.61.36.110:64660] PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /var/www/owncloud/lib/private/files/filesystem.php:807\nStack trace:\n#0 /var/www/owncloud/lib/private/files/view.php(1977): OC\\Files\\Filesystem::normalizePath('/Buzut/files/Bu...')\n#1 /var/www/owncloud/lib/private/files/view.php(1095): OC\\Files\\View->unlockFile('/Buzeo/Com-mark...', 1)\n#2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()\n#3 /var/www/owncloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()\n#5 {main}\n thrown in /var/www/owncloud/lib/private/files/filesystem.php on line 807

@PVince81 PVince81 removed the green-ticket label Dec 22, 2016

@jonixmobile

This comment has been minimized.

Show comment
Hide comment
@jonixmobile

jonixmobile Jan 10, 2017

i have a similar error:

PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/html/owncloud/lib/private/Files/Filesystem.php:793\nStack trace:\n#0 /var/www/html/owncloud/lib/private/Files/View.php(2039): OC\Files\Filesystem::normalizePath('/0973482A-87DC-...')\n#1 /var/www/html/owncloud/lib/private/Files/View.php(1151): OC\Files\View->unlockFile('/Documents/data...', 1)\n#2 [internal function]: OC\Files\View->OC\Files\{closure}()\n#3 /var/www/html/owncloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close()\n#5 {main}\n thrown in /var/www/html/owncloud/lib/private/Files/Filesystem.php on line 793

with LDAP users show this error. the users from owncloud work fine

version owncloud 9.1.3, test with php 7.0.14 and php 5.4.16,

jonixmobile commented Jan 10, 2017

i have a similar error:

PHP Fatal error: Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/html/owncloud/lib/private/Files/Filesystem.php:793\nStack trace:\n#0 /var/www/html/owncloud/lib/private/Files/View.php(2039): OC\Files\Filesystem::normalizePath('/0973482A-87DC-...')\n#1 /var/www/html/owncloud/lib/private/Files/View.php(1151): OC\Files\View->unlockFile('/Documents/data...', 1)\n#2 [internal function]: OC\Files\View->OC\Files\{closure}()\n#3 /var/www/html/owncloud/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))\n#4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close()\n#5 {main}\n thrown in /var/www/html/owncloud/lib/private/Files/Filesystem.php on line 793

with LDAP users show this error. the users from owncloud work fine

version owncloud 9.1.3, test with php 7.0.14 and php 5.4.16,

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Jan 18, 2017

Member

Fixes were merged and backported, closing.

For stable9.1 it was these two PRs:

Member

PVince81 commented Jan 18, 2017

Fixes were merged and backported, closing.

For stable9.1 it was these two PRs:

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Jan 18, 2017

Member

Oh wait, the 3rdparty backport wasn't merged yet.

Member

PVince81 commented Jan 18, 2017

Oh wait, the 3rdparty backport wasn't merged yet.

@PVince81 PVince81 reopened this Jan 18, 2017

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Jan 19, 2017

Member

Also backported to 9.0, will be in 9.0.8.

Closing now.

Member

PVince81 commented Jan 19, 2017

Also backported to 9.0, will be in 9.0.8.

Closing now.

@PVince81 PVince81 closed this Jan 19, 2017

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Jan 19, 2017

Member

Additional backport required, because it turns out that the icewind/streams library is also bundled by files_external and needs to have the same version to avoid strange side effects...

PR here: #26974

Member

PVince81 commented Jan 19, 2017

Additional backport required, because it turns out that the icewind/streams library is also bundled by files_external and needs to have the same version to avoid strange side effects...

PR here: #26974

@PVince81 PVince81 reopened this Jan 19, 2017

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Jan 25, 2017

Member

All backports done, closing

Member

PVince81 commented Jan 25, 2017

All backports done, closing

@PVince81 PVince81 closed this Jan 25, 2017

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering Feb 10, 2017

Should this error be fixed with OC 9.1.4?

Yesterday, I updated my instance to 9.1.4 but I already have the error:

[Fri Feb 10 08:24:39.863243 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: PHP message: PHP Fatal error:  Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /var/www/clients/client2/web46/web/lib/private/Files/Filesystem.php:793
[Fri Feb 10 08:24:39.863494 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: Stack trace:
[Fri Feb 10 08:24:39.863546 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #0 /var/www/clients/client2/web46/web/lib/private/Files/View.php(2041): OC\\Files\\Filesystem::normalizePath('/EFG-KL/files/L...')
[Fri Feb 10 08:24:39.863818 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #1 /var/www/clients/client2/web46/web/lib/private/Files/View.php(1153): OC\\Files\\View->unlockFile('/Lieder PPT/Son...', 1)
[Fri Feb 10 08:24:39.863867 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()
[Fri Feb 10 08:24:39.863986 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #3 /var/www/clients/client2/web46/web/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))
[Fri Feb 10 08:24:39.864076 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()
[Fri Feb 10 08:24:39.864167 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #5 {main}
[Fri Feb 10 08:24:39.864310 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr:   thrown in /var/www/clients/client2/web46/web/lib/private/Files/Filesystem.php on line 793

Apache2: 2.4.18
PHP: 7.0.13-0ubuntu0.16.04.1

I already tried to cleanup filecache and so on:
php occ files:cleanup
php occ maintenance:mimetype:update-db

hdering commented Feb 10, 2017

Should this error be fixed with OC 9.1.4?

Yesterday, I updated my instance to 9.1.4 but I already have the error:

[Fri Feb 10 08:24:39.863243 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: PHP message: PHP Fatal error:  Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /var/www/clients/client2/web46/web/lib/private/Files/Filesystem.php:793
[Fri Feb 10 08:24:39.863494 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: Stack trace:
[Fri Feb 10 08:24:39.863546 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #0 /var/www/clients/client2/web46/web/lib/private/Files/View.php(2041): OC\\Files\\Filesystem::normalizePath('/EFG-KL/files/L...')
[Fri Feb 10 08:24:39.863818 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #1 /var/www/clients/client2/web46/web/lib/private/Files/View.php(1153): OC\\Files\\View->unlockFile('/Lieder PPT/Son...', 1)
[Fri Feb 10 08:24:39.863867 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()
[Fri Feb 10 08:24:39.863986 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #3 /var/www/clients/client2/web46/web/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))
[Fri Feb 10 08:24:39.864076 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()
[Fri Feb 10 08:24:39.864167 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr: #5 {main}
[Fri Feb 10 08:24:39.864310 2017] [:error] [pid 24183] [client 109.75.208.254:20098] FastCGI: server "/var/www/clients/client2/web46/cgi-bin/php5-fcgi-*-443-my.domain" stderr:   thrown in /var/www/clients/client2/web46/web/lib/private/Files/Filesystem.php on line 793

Apache2: 2.4.18
PHP: 7.0.13-0ubuntu0.16.04.1

I already tried to cleanup filecache and so on:
php occ files:cleanup
php occ maintenance:mimetype:update-db

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Feb 10, 2017

Member

@hdering all known code paths that cause such log messages have been fixed in 9.1.4, yes.

Maybe you found yet another code path causing this 😞

Member

PVince81 commented Feb 10, 2017

@hdering all known code paths that cause such log messages have been fixed in 9.1.4, yes.

Maybe you found yet another code path causing this 😞

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Feb 10, 2017

Member

@hdering are you able to find out when this is happening ?

In the known cases it used to happen for aborted uploads or downloads. (download a file with the web browser but cancel it)

Member

PVince81 commented Feb 10, 2017

@hdering are you able to find out when this is happening ?

In the known cases it used to happen for aborted uploads or downloads. (download a file with the web browser but cancel it)

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering Feb 10, 2017

It happens when I try to open it through Browser, a simple click on the file.

And it happens through die Desktop Client. I get the message: "Operation abgebrochen".

hdering commented Feb 10, 2017

It happens when I try to open it through Browser, a simple click on the file.

And it happens through die Desktop Client. I get the message: "Operation abgebrochen".

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Feb 10, 2017

Member

and does the file open correctly or is it corrupt ?

It could also be a problem in your environment that prevents downloads to work correctly and only shows this message as a side effect.

Member

PVince81 commented Feb 10, 2017

and does the file open correctly or is it corrupt ?

It could also be a problem in your environment that prevents downloads to work correctly and only shows this message as a side effect.

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering Feb 10, 2017

No the file doesn't open correctly.

image

hdering commented Feb 10, 2017

No the file doesn't open correctly.

image

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Feb 10, 2017

Member

@hdering I suggest you investigate your environment. The error you see is just a side effect of something else preventing the download to start/finish.

Maybe try retrieving that URL with curl and see whether you get 0 bytes or more.
If 0 bytes, then something is likely wrong in your environment and something is blocking the download. (could be a php-fpm config issue of some sorts)

Member

PVince81 commented Feb 10, 2017

@hdering I suggest you investigate your environment. The error you see is just a side effect of something else preventing the download to start/finish.

Maybe try retrieving that URL with curl and see whether you get 0 bytes or more.
If 0 bytes, then something is likely wrong in your environment and something is blocking the download. (could be a php-fpm config issue of some sorts)

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering Feb 10, 2017

it does not affect all files, only a few files.

hdering commented Feb 10, 2017

it does not affect all files, only a few files.

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Feb 10, 2017

Member

if you have encryption enabled, check in oc_filecache whether that specific file has the "encrypted" flag set to 1. If not, set it manually and try downloading it twice.

Member

PVince81 commented Feb 10, 2017

if you have encryption enabled, check in oc_filecache whether that specific file has the "encrypted" flag set to 1. If not, set it manually and try downloading it twice.

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering Feb 10, 2017

For test i switched to fastcgi. the same:

[fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /var/www/clients/client2/web46/web/lib/private/Files/Filesystem.php:793
[Fri Feb 10 09:50:22.244693 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: Stack trace:
[Fri Feb 10 09:50:22.244702 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #0 /var/www/clients/client2/web46/web/lib/private/Files/View.php(2041): OC\\Files\\Filesystem::normalizePath('/EFG-KL/files/L...')
[Fri Feb 10 09:50:22.244707 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #1 /var/www/clients/client2/web46/web/lib/private/Files/View.php(1153): OC\\Files\\View->unlockFile('/Lieder PPT/Son...', 1)
[Fri Feb 10 09:50:22.244712 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()
[Fri Feb 10 09:50:22.244736 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #3 /var/www/clients/client2/web46/web/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))
[Fri Feb 10 09:50:22.244801 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()
[Fri Feb 10 09:50:22.244807 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #5 {main}
[Fri Feb 10 09:50:22.244811 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr:   thrown in /var/www/clients/client2/web46/web/lib/private/Files/Filesystem.php on line 793

hdering commented Feb 10, 2017

For test i switched to fastcgi. the same:

[fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Access to undeclared static property: OC\\Files\\Filesystem::$normalizedPathCache in /var/www/clients/client2/web46/web/lib/private/Files/Filesystem.php:793
[Fri Feb 10 09:50:22.244693 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: Stack trace:
[Fri Feb 10 09:50:22.244702 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #0 /var/www/clients/client2/web46/web/lib/private/Files/View.php(2041): OC\\Files\\Filesystem::normalizePath('/EFG-KL/files/L...')
[Fri Feb 10 09:50:22.244707 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #1 /var/www/clients/client2/web46/web/lib/private/Files/View.php(1153): OC\\Files\\View->unlockFile('/Lieder PPT/Son...', 1)
[Fri Feb 10 09:50:22.244712 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #2 [internal function]: OC\\Files\\View->OC\\Files\\{closure}()
[Fri Feb 10 09:50:22.244736 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #3 /var/www/clients/client2/web46/web/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure))
[Fri Feb 10 09:50:22.244801 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #4 [internal function]: Icewind\\Streams\\CallbackWrapper->stream_close()
[Fri Feb 10 09:50:22.244807 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr: #5 {main}
[Fri Feb 10 09:50:22.244811 2017] [fcgid:warn] [pid 29469] [client 109.75.208.254:24798] mod_fcgid: stderr:   thrown in /var/www/clients/client2/web46/web/lib/private/Files/Filesystem.php on line 793
@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering Feb 10, 2017

Do you mean oc_filecache in database?

hdering commented Feb 10, 2017

Do you mean oc_filecache in database?

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering Feb 10, 2017

@PVince81 Now I checked oc_filecache. For me it is just the other way. The original version has encrypted = 1. The other versions have 0. But it doesn't help to change from 1 to 0 or 0 to 1.

hdering commented Feb 10, 2017

@PVince81 Now I checked oc_filecache. For me it is just the other way. The original version has encrypted = 1. The other versions have 0. But it doesn't help to change from 1 to 0 or 0 to 1.

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering May 16, 2017

@PVince81 Unfortunately, this behavior occurs with another user. Other installation, but same server.

I checked the oc_filecache entry and the encrypted was 0. I changed it to 1 but it does not help.

owncloud Version is 9.1.4.

Do you have any idea?

hdering commented May 16, 2017

@PVince81 Unfortunately, this behavior occurs with another user. Other installation, but same server.

I checked the oc_filecache entry and the encrypted was 0. I changed it to 1 but it does not help.

owncloud Version is 9.1.4.

Do you have any idea?

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 May 16, 2017

Member

@hdering without detailed logs it will be impossible to guess and help

Member

PVince81 commented May 16, 2017

@hdering without detailed logs it will be impossible to guess and help

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering May 16, 2017

@PVince81 If I try to download a file from Browser I get the mesage ERR_INVALID_RESPONSE.

image

If I try to download through the Android App I get a 500 error.

owncloud.log:
{"reqId":"nKtJuZkzNoXtverTkR4T","remoteAddr":"x.x.x.x","app":"webdav","message":"Exception: {\"Message\":\"Bad Signature\",\"Exception\":\"OC\\\\HintException\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Crypt.php(463): OCA\\\\Encryption\\\\Crypto\\\\Crypt->checkSignature('McpPP0a1KClI\\\/WG...', 'y8z\\\\xB8\\\\xB7\\\\xD7\\\\xF1\\\\xE0Sx\\\\xC9L\\\\xEB\\\\x1A\\\\x9F...', '7507f57bb5d918b...')\\n#1 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Encryption.php(363): OCA\\\\Encryption\\\\Crypto\\\\Crypt->symmetricDecryptFileContent('McpPP0a1KClI\\\/WG...', 'y8z\\\\xB8\\\\xB7\\\\xD7\\\\xF1\\\\xE0Sx\\\\xC9L\\\\xEB\\\\x1A\\\\x9F...', 'AES-256-CTR', 1, 0)\\n#2 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/lib\\\/private\\\/Files\\\/Stream\\\/Encryption.php(459): OCA\\\\Encryption\\\\Crypto\\\\Encryption->decrypt('McpPP0a1KClI\\\/WG...', 0)\\n#3 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/lib\\\/private\\\/Files\\\/Stream\\\/Encryption.php(290): OC\\\\Files\\\\Stream\\\\Encryption->readCache()\\n#4 [internal function]: OC\\\\Files\\\\Stream\\\\Encryption->stream_read(8192)\\n#5 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/3rdparty\\\/sabre\\\/http\\\/lib\\\/Sapi.php(78): stream_copy_to_stream(Resource id #84, Resource id #86, '22248')\\n#6 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(470): Sabre\\\\HTTP\\\\Sapi::sendResponse(Object(Sabre\\\\HTTP\\\\Response))\\n#7 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#8 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(57): Sabre\\\\DAV\\\\Server->exec()\\n#9 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/remote.php(164): require_once('\\\/var\\\/www\\\/client...')\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Crypt.php\",\"Line\":483,\"User\":\"Ernst\"}","level":4,"time":"2017-05-16T11:29:08+00:00","method":"GET","url":"\/remote.php\/webdav\/Ernst\/HolzinTakt-Cajon\/Fahrtenbuch.xlsx","user":"Ernst"}

hdering commented May 16, 2017

@PVince81 If I try to download a file from Browser I get the mesage ERR_INVALID_RESPONSE.

image

If I try to download through the Android App I get a 500 error.

owncloud.log:
{"reqId":"nKtJuZkzNoXtverTkR4T","remoteAddr":"x.x.x.x","app":"webdav","message":"Exception: {\"Message\":\"Bad Signature\",\"Exception\":\"OC\\\\HintException\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Crypt.php(463): OCA\\\\Encryption\\\\Crypto\\\\Crypt->checkSignature('McpPP0a1KClI\\\/WG...', 'y8z\\\\xB8\\\\xB7\\\\xD7\\\\xF1\\\\xE0Sx\\\\xC9L\\\\xEB\\\\x1A\\\\x9F...', '7507f57bb5d918b...')\\n#1 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Encryption.php(363): OCA\\\\Encryption\\\\Crypto\\\\Crypt->symmetricDecryptFileContent('McpPP0a1KClI\\\/WG...', 'y8z\\\\xB8\\\\xB7\\\\xD7\\\\xF1\\\\xE0Sx\\\\xC9L\\\\xEB\\\\x1A\\\\x9F...', 'AES-256-CTR', 1, 0)\\n#2 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/lib\\\/private\\\/Files\\\/Stream\\\/Encryption.php(459): OCA\\\\Encryption\\\\Crypto\\\\Encryption->decrypt('McpPP0a1KClI\\\/WG...', 0)\\n#3 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/lib\\\/private\\\/Files\\\/Stream\\\/Encryption.php(290): OC\\\\Files\\\\Stream\\\\Encryption->readCache()\\n#4 [internal function]: OC\\\\Files\\\\Stream\\\\Encryption->stream_read(8192)\\n#5 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/3rdparty\\\/sabre\\\/http\\\/lib\\\/Sapi.php(78): stream_copy_to_stream(Resource id #84, Resource id #86, '22248')\\n#6 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(470): Sabre\\\\HTTP\\\\Sapi::sendResponse(Object(Sabre\\\\HTTP\\\\Response))\\n#7 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#8 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(57): Sabre\\\\DAV\\\\Server->exec()\\n#9 \\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/remote.php(164): require_once('\\\/var\\\/www\\\/client...')\\n#10 {main}\",\"File\":\"\\\/var\\\/www\\\/clients\\\/client2\\\/web46\\\/web\\\/apps\\\/encryption\\\/lib\\\/Crypto\\\/Crypt.php\",\"Line\":483,\"User\":\"Ernst\"}","level":4,"time":"2017-05-16T11:29:08+00:00","method":"GET","url":"\/remote.php\/webdav\/Ernst\/HolzinTakt-Cajon\/Fahrtenbuch.xlsx","user":"Ernst"}

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 May 16, 2017

Member

@hdering this looks unrelated to "normalizedPathCache" error. Looks more like #27824 (comment)

Member

PVince81 commented May 16, 2017

@hdering this looks unrelated to "normalizedPathCache" error. Looks more like #27824 (comment)

@hdering

This comment has been minimized.

Show comment
Hide comment
@hdering

hdering May 16, 2017

@PVince81 this are bad news...

hdering commented May 16, 2017

@PVince81 this are bad news...

@lenusch

This comment has been minimized.

Show comment
Hide comment
@lenusch

lenusch Aug 17, 2017

is there no fix? This cant be true

lenusch commented Aug 17, 2017

is there no fix? This cant be true

@PVince81

This comment has been minimized.

Show comment
Hide comment
@PVince81

PVince81 Aug 17, 2017

Member

@lenusch the fix was already released and works, please upgrade.

If you still see it, please make a new ticket and use the issue template https://raw.githubusercontent.com/owncloud/core/master/.github/issue_template.md

Member

PVince81 commented Aug 17, 2017

@lenusch the fix was already released and works, please upgrade.

If you still see it, please make a new ticket and use the issue template https://raw.githubusercontent.com/owncloud/core/master/.github/issue_template.md

@lenusch

This comment has been minimized.

Show comment
Hide comment
@lenusch

lenusch Aug 17, 2017

@PVince81 i have latest nextcloud. Still same Errors.

lenusch commented Aug 17, 2017

@PVince81 i have latest nextcloud. Still same Errors.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 18, 2017

@lenusch Just a note that ownCloud is not Nextcloud, and you're currently in the ownCloud bugtracker. If something like this is happening in Nextcloud it doesn't mean if applies for ownCloud as well.

ghost commented Aug 18, 2017

@lenusch Just a note that ownCloud is not Nextcloud, and you're currently in the ownCloud bugtracker. If something like this is happening in Nextcloud it doesn't mean if applies for ownCloud as well.

@lenusch

This comment has been minimized.

Show comment
Hide comment
@lenusch

lenusch Aug 18, 2017

@kdslkdsaldsal yes i have noticed too. Sorry.
Also posted into Nextcloud, can be deleted on owncloud if you want to.
Or can i delete by my self?

lenusch commented Aug 18, 2017

@kdslkdsaldsal yes i have noticed too. Sorry.
Also posted into Nextcloud, can be deleted on owncloud if you want to.
Or can i delete by my self?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment