client icon indicating copy to clipboard operation
client copied to clipboard

Disk I/O error - on query

Open blackdot opened this issue 13 years ago • 8 comments

Expected behaviour

Synchronization should work all the time.

Actual behaviour

after 2-3 hours of normal functionality (syncs were done successfully), errors appear in log file for every each file and over and over again. CPU on client is used by 100% and after 15 minutes log is 1GB big.

Steps to reproduce

  1. start owncloud client
  2. wait 2-3 hours
  3. ...restart of owncloud client is needed, then everythin is fine for another 2-3 hours.

Server configuration

Operating system: Debian squeeze

Web server: apache2 (2.2.16-6+squeeze11)

Database: php5 (5.3.3-7+squeeze15)

PHP version: mysql-server-5.1 (5.1.66-0+squeeze1)

ownCloud version: version 5.0.6 (versionstring 5.0.5)

Client configuration

Client version: 1.2.5-0

Operating system: Debian wheeze (fully updated)

OS language: English

Installation path of client: /usr/bin/owncloud

Logs

output of owncloud --logwindow or owncloud --logfile log.txt

04-25 13:11:39:445 csync_ftw: Uniq ID read from Database: KB/untitled.ncd -> 04-25 13:11:39:445 csync_ftw: walk: /home/dolakp/DocumentsCloud/KB/untitled.ncd 04-25 13:11:39:445 csync_walker: file: /home/dolakp/DocumentsCloud/KB/untitled.ncd 04-25 13:11:39:445 _csync_detect_update: file: KB/untitled.ncd - hash 6016453414220138851, mtime: 1366709897 04-25 13:11:39:445 csync_statedb_query: sqlite_step error: disk I/O error - on query: SELECT * FROM metadata WHERE phash='6016453414220138851' 04-25 13:11:39:445 csync_statedb_get_stat_by_hash: No result record found for phash = 6016453414220138851 04-25 13:11:39:445 csync_statedb_query: sqlite_step error: disk I/O error - on query: SELECT * FROM metadata WHERE inode='394114' 04-25 13:11:39:445 _csync_detect_update: file: KB/untitled.ncd, instruction: INSTRUCTION_NEW 04-25 13:11:39:445 csync_statedb_query: sqlite_step error: disk I/O error - on query: SELECT md5 FROM metadata WHERE phash='-4697180630391095279' AND modtime=1364206288

Web server error log

nothing relevant

ownCloud log (data/owncloud.log)

nothing relevant

blackdot avatar Apr 25 '13 11:04 blackdot

I have the exact same problem on Debian Wheezy. I removed .csync_journal.db to regenerate the DB but it didn't help. I also rebuild the packages to no avail. I can access the db with sqlite3 at the time the client is throwing the errors.

skylos0x40 avatar Apr 26 '13 19:04 skylos0x40

Hmm, the sqlite documentation says that this error also is reported in case of out of disk space. But I assume that you have checked that?

dragotin avatar Apr 26 '13 19:04 dragotin

Yes, I did.179G should be sufficient I guess ;-)

skylos0x40 avatar Apr 26 '13 22:04 skylos0x40

Same problem here.

04-26 23:11:29:814 csync_statedb_query: sqlite_step error: disk I/O error - on query: SELECT * FROM metadata WHERE phash='-7018343765040592643'

Server configuration: Operating system: Ubuntu 10.04 amd64 Web server: apache2 (2.2.14-5ubuntu8.11) Database: mysql-server-5.1 (5.1.69-0ubuntu0.10.04.1) PHP version: php5 (5.3.2-1ubuntu4.19) ownCloud version 5.0.5

Client configuration: Client version: 1.2.5-0 Operating system: Linux Mint 14 Cinnamon (Ubuntu 12.10) on amd64 OS language: English Installation path of client: /usr/bin/owncloud

Tolaris avatar Apr 28 '13 19:04 Tolaris

I've experienced similar behavior with my setup. When I can use the log window it reports the same disk I/O error. Only difference is that I've set following additional parameters to owncloud.cfg (reduces local file scans, hence inotify gives all necessary information about file system changes):

localPollInterval=3600000 remotePollInterval=120000

And I can use the client for several days without restarting it. This problem didn't exist with 1.2.4. It could be kept running for weeks without any real hiccup.

Server: Synology DS413 Web server: apache2 (2.2.23) PHP: php5 (5.3.21) Database: mysql (5.1.49) ownCloud: 5.0.5

Client: OS: Linux Mint Debian Edition (LMDE) on i386 OS language: English owncloud-client (1.2.5-0) libocsync0 (0.70.7-1)

Edit (2 May 2013): It occured last night but only for short period of time, the log from beginning to the end can be found from: http://pastebin.com/f8YeVrZR - none of the files in the log was changed at that time. But now the client does not take all of my CPU/RAM. Not sure if it restarted itself (yes, I run it from script that restarts the client when it crashes but quits when user desires to do so).

HateBreed avatar Apr 30 '13 17:04 HateBreed

Same problem for me. Problems started with sync-client 1.2.5. I am on ArchLinux and Server ist a vServer running on Debian Squeeze wit dotdeb packages. I have sufficient disk space locally and remote.

crapp avatar May 01 '13 22:05 crapp

Same here.

Server: Debian 7.0 x86_64 Web server: apache2 (2.2.22-13) PHP: php5 (5.4.4-14) Database: mysql (5.5.30) ownCloud: 5.0.5 libsqlite3-0 3.7.13-1+deb7u1

Client: OS: Debian 7.0 i686 OS language: Russian owncloud-client (1.2.5) libocsync0 (0.70.7-1)

e2002 avatar May 03 '13 18:05 e2002

This should be fixed in 1.3.0.

danimo avatar Jun 20 '13 15:06 danimo