Warning PHP filesize(): stat failed
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 can you provide us with the stack trace? @schiesbn I have seen something similar in case versions is installed - THX
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 .
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
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.
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 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
@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.
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 .
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
I have now installed xdebug, but I don´t see any more logging in owncloud.log. :S
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
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
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?
I'm getting the same filemtime() stat failed error, as well. And it is preventing me from uploading some files.
I'm getting the same filemtime(): stat failed error messages. It's apparently enough to log in to OC6.0.2 to evoke them.
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.
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.
Sorry for my late answer, but the answer is yes - and I would appreciate a fix. :)
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.
Ok, I close this for now, and whait for oc 7 to be released.