core icon indicating copy to clipboard operation
core copied to clipboard

Upload file generates entry in logfile

Open cyberdaemon opened this issue 13 years ago • 15 comments

Expected behaviour

No error at all.

Actual behaviour

When uploading a file a error is triggered in the logfile. Nevertheless the file is uploaded fine.

Steps to reproduce

  1. tail -f <path_to_your>/owncloud.log>
  2. upload a file: see error

Server configuration

Operating system:Centos 5.9

Web server: Apache 2.2.3

Database:MySQL 5

PHP version:5.4

ownCloud version:5.0

Client configuration

Browser:

Operating system:

Logs

Web server error log

no error

ownCloud log (data/owncloud.log)

{"app":"PHP","message":"filemtime(): stat failed for \/\/owncloud\/data\/user\/files\/clientsync\/Dropbox 1.6.17.exe.part at \/htdocs\/www.example.de\/lib\/files\/storage\/local.php#92","level":2,"time":1363354464}

cyberdaemon avatar Mar 15 '13 13:03 cyberdaemon

@icewind1991

BernhardPosselt avatar Mar 15 '13 15:03 BernhardPosselt

I suspect that this warning causes conflicts when synchronizing with the client. I got the same warning in logs for all files uploaded. When I upload a file via (linux) client, it is well uploaded, but it re-download the file with the suffix "_conflict-%date-%hour". This is annoying, because almost all files are duplicated... I may have misconfigured something? Server : apache2, php5.4, mysql Client v1.2.1 on Kubuntu Thanks !

polosson avatar Mar 15 '13 19:03 polosson

I have the same problem. Server is CentOS 6.4 with ownCloud 5, clients both Windows and Linux 1.2.1

Helios07 avatar Mar 19 '13 16:03 Helios07

Upgraded from 4.5.8 to v 5.0.0 Server is Ubuntu 12.04, php5.4, mysql Data is located on an fstab mounted cifs share Clients generally iPad. Very slow to open any large folders - suspect the difficulties with the "filemtime(): stat failed for ..." is causing the slowness. Error has appeared for nearly every file that I can see

TheOx avatar Mar 22 '13 02:03 TheOx

Same issue on Debian 6 with Mac OS as client.

lcx avatar Mar 23 '13 12:03 lcx

Same issue on Owncloud 5.0.0 Debian 6 apache2 php5.4 sqlite Mac OS client

giobautista avatar Mar 23 '13 22:03 giobautista

We have this as well.

OC 5.0.0, Ubuntu 12.04 LTS, Apache 2.2, PHP 5.3, mySQL 5.5, OSX clients

phil-aznz avatar Mar 27 '13 01:03 phil-aznz

Same experience... File permissions seem okay

OC 5.0.0, Ubuntu 12.04, nginx 1.1.9, PHP-FM 5, MySQL

koalajoe23 avatar Mar 29 '13 18:03 koalajoe23

Could it be that this solves it: #2594 ?

tanghus avatar Mar 29 '13 19:03 tanghus

The error seems to have vanished in OC 5.0.3, so I think, #2594 solves it.

Helios07 avatar Apr 03 '13 14:04 Helios07

Helios07, yes you're right. After updating to OC 5.0.3 and the error is gone same goes to OC 6.0.0 pre alpha.

giobautista avatar Apr 10 '13 03:04 giobautista

We still see the same behaviour with 5.0.6

{"app":"PHP","message":"filemtime(): stat failed for \/var\/www\/owncloud\/data\/[email protected]\/files\/xxx\/Software at \/var\/www\/owncloud\/lib\/files\/storage\/local.php#92","level":2,"time":1369378517}

These messages are repeated over and over again in the log file, most of the entries (36700) from one user, with another meager 630 lines attributed to another 10 or so of our users.

We run a test installation with 250 users that so far have uploaded 150GB of files

jcfischer avatar May 24 '13 07:05 jcfischer

same here. Log looks like that in different variations:

  • error while running hook (\OC\Files\Cache\Updater::writeHook): SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'mtime' at row 1
  • filesize(): stat failed for FILEPATH at ..\owncloud\lib\files\storage\mappedlocal.php#95
  • filemtime(): stat failed for FILEPATH at ..\owncloud\lib\files\storage\mappedlocal.php#113
  • fopen(FILEPATH): failed to open stream: No such file or directory at ..\owncloud\lib\files\storage\mappedlocal.php#173

Client sync protocol shows all files in error category. But some data got uploaded though.

Owncloud 5.0.7 IIS7 MySQL Client 1.3 for Win7 x64

godfuture avatar Jul 13 '13 14:07 godfuture

@jcfischer @godfuture please open new issues thanks

DeepDiver1975 avatar Jul 14 '13 08:07 DeepDiver1975

@DeepDiver1975 - Done, see: https://github.com/owncloud/core/issues/4065

godfuture avatar Jul 15 '13 07:07 godfuture