core icon indicating copy to clipboard operation
core copied to clipboard

Warning PHP filesize(): stat failed

Open enoch85 opened this issue 13 years ago • 22 comments

Hi!

Lately i´ve been getting ALOT of these error messages:

Warning PHP filesize(): stat failed for /var/www/owncloud/data/enoch/files/DirektUppladdning/20130602_210025_2.jpg at /var/www/owncloud/lib/files/storage/local.php#74 2013-08-15T14:56:01+00:00 Warning PHP filesize(): stat failed for /var/www/owncloud/data/enoch/files/DirektUppladdning/20130602_210025_1.jpg at /var/www/owncloud/lib/files/storage/local.php#74 2013-08-15T14:55:39+00:00 Warning PHP filesize(): stat failed for /var/www/owncloud/data/enoch/files/DirektUppladdning/20130602_205736_Richtone(HDR).jpg at /var/www/owncloud/lib/files/storage/local.php#74 2013-08-15T14:55:16+00:00

I don´t know if it´s a bug, or if it has something to do with my coniguration?

I use OC 5.0.10 and Ubuntu Server 12.04 LTS. Also for mounting webdav I use a program called "Netdrive" for Windows.

If you want any logs or something else I´m happy to provide them.

enoch85 avatar Aug 15 '13 15:08 enoch85

@enoch85 can you provide us with the stack trace? @schiesbn I have seen something similar in case versions is installed - THX

DeepDiver1975 avatar Aug 15 '13 23:08 DeepDiver1975

Sorry, but I don´t know how to provide you with "stack trace". If you explain, I can fix it for you. :)

2013/8/16 Thomas Müller [email protected]

@enoch85 https://github.com/enoch85 can you provide us with the stack trace? @schiesbn https://github.com/schiesbn I have seen something similar in case versions is installed - THX

— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/core/issues/4452#issuecomment-22737687 .

enoch85 avatar Aug 16 '13 06:08 enoch85

I also got this:

Warning PHP imagecreatefromstring(): Data is not in a recognized format at /var/www/owncloud/lib/image.php#477

Warning PHP filemtime(): stat failed for /var/www/owncloud/data/enoch/gallery/enoch//DirektUppladdning/20130713_140021.jpg at /var/www/owncloud/apps/gallery/lib/thumbnail.php#95

enoch85 avatar Aug 20 '13 06:08 enoch85

The problem regarding the versioning app was solved here: https://github.com/owncloud/core/pull/4481 It doesn't have any negative impact on the functionality, it just creates the warning. The warning will be gone in OC5.0.11

Can't say anything about the other warnings/errors at the moment.

schiessle avatar Aug 20 '13 09:08 schiessle

I have an open support ticket concerning this error message: It seems to me the error is thrown in file owncloud/lib/files/storage/local.php line 44 due to wrong substring parameters: go left(-1) from the 0th character is not possible and will return FALSE therefore.

dietmaroc avatar Sep 18 '13 09:09 dietmaroc

@dietmaroc it's very hard to judge if your issue belongs to this issue - I suggest to create a new issue and add as many information as you have (full log messages, version ......) THX

DeepDiver1975 avatar Sep 18 '13 09:09 DeepDiver1975

@enoch85 are you still facing this problems with the latest version of oc? Regardng 'stack trace': just install xdebug and you will get more information written into the web server log. Sorry for my late reply - I didn't recognize your comment.

DeepDiver1975 avatar Sep 18 '13 09:09 DeepDiver1975

No, I haven't seen them for a while. I think they're gone.

Thanks! Den 18 sep 2013 11:43 skrev "Thomas Müller" [email protected]:

@enoch85 https://github.com/enoch85 are you still facing this problems with the latest version of oc? Regardng 'stack trace': just install xdebug and you will get more information written into the web server log. Sorry for my late reply - I didn't recognize your comment.

— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/core/issues/4452#issuecomment-24652407 .

enoch85 avatar Sep 19 '13 13:09 enoch85

I stil get these messages.

It happens when I try to use the gallery app, or open/prewiew a picture via the web interferance,

Right now I use owncloud 5.0.13-1

enoch85 avatar Nov 10 '13 18:11 enoch85

I have now installed xdebug, but I don´t see any more logging in owncloud.log. :S

enoch85 avatar Nov 11 '13 16:11 enoch85

Warning PHP filesize(): stat failed for /var/www/owncloud/data/enoch/gallery/enoch//clientsync/Camera Uploads/2011-11-07 18.59.35.jpg at /var/www/owncloud/apps/gallery/lib/thumbnail.php#96 2013-11-25T20:56:01+00:00

enoch85 avatar Nov 26 '13 14:11 enoch85

In Owncloud 6 RC2:

Warning PHP filemtime(): stat failed for /var/www/owncloud/data/enoch/thumbnails/12 at /var/www/owncloud/lib/private/files/storage/local.php#127 2013-12-02T16:26:50+00:00

enoch85 avatar Dec 11 '13 08:12 enoch85

Ping!

Warning PHP filemtime(): stat failed for /var/www/owncloud/data/enoch/files_trashbin/files at /var/www/owncloud/lib/private/files/storage/local.php#127 2014-01-13T09:20:18+00:00 Warning PHP filemtime(): stat failed for /var/www/owncloud/data/enoch/files_trashbin/files at /var/www/owncloud/lib/private/files/storage/local.php#127 2014-01-13T09:19:21+00:00 Warning PHP filemtime(): stat failed for /var/www/owncloud/data/enoch/files_trashbin/files at /var/www/owncloud/lib/private/files/storage/local.php#127 2014-01-13T09:18:57+00:00

oC 6.0a

Any progress here?

enoch85 avatar Jan 13 '14 22:01 enoch85

I'm getting the same filemtime() stat failed error, as well. And it is preventing me from uploading some files.

jerrac avatar Jan 16 '14 01:01 jerrac

I'm getting the same filemtime(): stat failed error messages. It's apparently enough to log in to OC6.0.2 to evoke them.

Pantek59 avatar Mar 04 '14 09:03 Pantek59

Good day! After clearing trashcan OC deleting directory files_trashbin. And with empty trashbin I have ALOT

filemtime(): stat failed for /var/www/DATA/natan/files_trashbin/files at /var/www/owncloud/lib/private/files/storage/local.php#127

OC 6.0.2(fresh install) Debian 7.4 nginx/1.4.6 php-fpm: PHP 5.4.26-1~dotdeb.1 (cli) (built: Mar 7 2014 09:58:59)

If I move something to trashbin - folder "files_trashbin" creates.

KKKozlowski avatar Mar 14 '14 13:03 KKKozlowski

Do you sometimes manually delete the "files_trashbin" folder from the disk without going through the UI ? One reason I see for this warning would be that the file is still referenced in the database but doesn't exist any more on disk. If yes, @schiesbn put a fix on master that will check the disk instead of the DB to cover such cases, and that could hopefully eliminate these warnings.

PVince81 avatar Mar 20 '14 19:03 PVince81

Sorry for my late answer, but the answer is yes - and I would appreciate a fix. :)

enoch85 avatar May 04 '14 17:05 enoch85

You should never manipulate files directly on the server. For ownCloud7 we reduced the dependencies in the database so that it will no longer be a problem. But this will not be backported to Stable6.

The only way to fix this now is to manually edit your database. Remove all files from oc_files_trash which no longer exists in the files_trashbin folder and remove all rows in oc_files_trashsize so that the correct size of your trashbin gets recalculated.

schiessle avatar May 05 '14 10:05 schiessle

Ok, I close this for now, and whait for oc 7 to be released.

enoch85 avatar May 05 '14 10:05 enoch85