haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

Sync error: "failed to open block ... for read" and "Error occured in upload." #890

Closed 4ley closed 8 years ago

4ley commented 9 years ago

I'm on a Windows 8.1 machine with Seafile Client 3.1.7. The Seafile Server 3.1.6 is running on a Debian Wheezy machine.

The client shows a grey cloud icon with the following hover text "waiting for synchronization".

I've tried to upload a 15 GB folder (Projects). It stopped at 11.2 GB.

Here are the client logs

seafile.log [10/15/14 12:06:39] seaf-daemon.c(487): starting seafile client 3.1.7 [10/15/14 12:06:39] seaf-daemon.c(489): seafile source code version 7f805c196b371e925e70205a8c32b346fe334666 [10/15/14 12:06:39] ../common/mq-mgr.c(60): [mq client] mq cilent is started [10/15/14 12:06:39] ../common/mq-mgr.c(106): [mq mgr] publish to hearbeat mq: seafile.heartbeat [10/15/14 12:06:42] sync-mgr.c(375): Repo 'Projects' sync state transition from 'synchronized' to 'uploading'. [10/15/14 12:06:42] sync-mgr.c(375): Repo 'seafile' sync state transition from 'synchronized' to 'committing'. [10/15/14 12:06:42] repo-mgr.c(935): All events are processed for repo 0a5dfa07-1b7c-4a82-953c-89f8997a0ff4. [10/15/14 12:06:42] sync-mgr.c(375): Repo 'seafile' sync state transition from 'committing' to 'initializing'. [10/15/14 12:06:43] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'init') --> ('normal', 'check') [10/15/14 12:06:43] sync-mgr.c(375): Repo 'Meine Bibliothek' sync state transition from 'synchronized' to 'committing'. [10/15/14 12:06:43] repo-mgr.c(935): All events are processed for repo b43520e5-d14f-4154-9534-9cad7c810422. [10/15/14 12:06:43] sync-mgr.c(375): Repo 'Meine Bibliothek' sync state transition from 'committing' to 'initializing'. [10/15/14 12:06:44] processors/check-tx-v3-proc.c(313): repo version is 1, protocol version is 7. [10/15/14 12:06:44] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'check') --> ('normal', 'commit') [10/15/14 12:06:44] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'commit') --> ('normal', 'fs') [10/15/14 12:06:45] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'fs') --> ('normal', 'check-blocks') [10/15/14 12:06:46] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'check-blocks') --> ('normal', 'get-chunk-server') [10/15/14 12:06:47] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'get-chunk-server') --> ('normal', 'data') [10/15/14 12:06:47] ../common/block-backend-fs.c(72): [block bend] failed to open block 061b828a6aa37bd599a2ec6eedcfee280dbdf11a for read: No such file or directory [10/15/14 12:06:47] block-tx-client.c(622): Failed to open block 061b828a6aa37bd599a2ec6eedcfee280dbdf11a. [10/15/14 12:06:47] block-tx-client.c(722): Failed to send block content for 061b828a6aa37bd599a2ec6eedcfee280dbdf11a. [10/15/14 12:06:47] transfer-mgr.c(346): Transfer repo 'eed424ec': ('normal', 'data') --> ('error', 'finished'): Failed to upload blocks. [10/15/14 12:06:47] sync-mgr.c(440): Repo 'Projects' sync state transition from uploading to 'error': 'Error occured in upload.'. [10/15/14 12:07:13] sync-mgr.c(375): Repo 'Projects' sync state transition from 'synchronized' to 'uploading'. [10/15/14 12:07:13] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'init') --> ('normal', 'check') [10/15/14 12:07:14] processors/check-tx-v3-proc.c(313): repo version is 1, protocol version is 7. [10/15/14 12:07:14] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'check') --> ('normal', 'commit') [10/15/14 12:07:14] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'commit') --> ('normal', 'fs') [10/15/14 12:07:15] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'fs') --> ('normal', 'check-blocks') [10/15/14 12:07:16] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'check-blocks') --> ('normal', 'get-chunk-server') [10/15/14 12:07:16] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'get-chunk-server') --> ('normal', 'data') [10/15/14 12:07:16] ../common/block-backend-fs.c(72): [block bend] failed to open block 061b828a6aa37bd599a2ec6eedcfee280dbdf11a for read: No such file or directory [10/15/14 12:07:16] block-tx-client.c(622): Failed to open block 061b828a6aa37bd599a2ec6eedcfee280dbdf11a. [10/15/14 12:07:16] block-tx-client.c(722): Failed to send block content for 061b828a6aa37bd599a2ec6eedcfee280dbdf11a. [10/15/14 12:07:16] transfer-mgr.c(346): Transfer repo 'eed424ec': ('normal', 'data') --> ('error', 'finished'): Failed to upload blocks. [10/15/14 12:07:16] sync-mgr.c(440): Repo 'Projects' sync state transition from uploading to 'error': 'Error occured in upload.'. [10/15/14 12:07:44] sync-mgr.c(375): Repo 'Projects' sync state transition from 'synchronized' to 'uploading'. [10/15/14 12:07:44] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'init') --> ('normal', 'check') [10/15/14 12:07:45] processors/check-tx-v3-proc.c(313): repo version is 1, protocol version is 7. [10/15/14 12:07:45] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'check') --> ('normal', 'commit') [10/15/14 12:07:45] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'commit') --> ('normal', 'fs') [10/15/14 12:07:46] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'fs') --> ('normal', 'check-blocks') [10/15/14 12:07:47] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'check-blocks') --> ('normal', 'get-chunk-server') [10/15/14 12:07:47] transfer-mgr.c(309): Transfer repo 'eed424ec': ('normal', 'get-chunk-server') --> ('normal', 'data') [10/15/14 12:07:47] ../common/block-backend-fs.c(72): [block bend] failed to open block 061b828a6aa37bd599a2ec6eedcfee280dbdf11a for read: No such file or directory [10/15/14 12:07:47] block-tx-client.c(622): Failed to open block 061b828a6aa37bd599a2ec6eedcfee280dbdf11a. [10/15/14 12:07:47] block-tx-client.c(722): Failed to send block content for 061b828a6aa37bd599a2ec6eedcfee280dbdf11a. [10/15/14 12:07:47] transfer-mgr.c(346): Transfer repo 'eed424ec': ('normal', 'data') --> ('error', 'finished'): Failed to upload blocks. [10/15/14 12:07:47] sync-mgr.c(440): Repo 'Projects' sync state transition from uploading to 'error': 'Error occured in upload.'.

ccnet.log [10/15/14 12:06:38] ccnet-daemon.c(193): starting ccnet client 3.1.7 [10/15/14 12:06:38] ccnet-daemon.c(195): ccnet source code version dd3f1fab491dfcec8b8ca30dbcc75b890cb3529a [10/15/14 12:06:38] ../common/session.c(395): Listen on 127.0.0.1 13419 [10/15/14 12:06:38] ../common/session.c(267): Update pubinfo file [10/15/14 12:06:39] ../common/session.c(375): Accepted a local client [10/15/14 12:06:39] ../common/session.c(375): Accepted a local client [10/15/14 12:06:39] ../common/session.c(375): Accepted a local client [10/15/14 12:06:39] ../common/session.c(375): Accepted a local client [10/15/14 12:06:39] ../common/session.c(375): Accepted a local client [10/15/14 12:06:39] ../common/session.c(375): Accepted a local client [10/15/14 12:06:39] ../common/processors/rcvcmd-proc.c(492): Add server aa52a723 cloud.server1.com:10001 [10/15/14 12:06:39] ../common/processors/rcvcmd-proc.c(492): Add server 9b6b9cb5 cloud.server2.de:10001 [10/15/14 12:06:39] ../common/connect-mgr.c(364): [Conn] Start outgoing connect to (null)(aa52a723e2) 81.209.165.246:10001 [10/15/14 12:06:40] ../common/connect-mgr.c(364): [Conn] Start outgoing connect to (null)(9b6b9cb564) 81.209.165.75:10001 [10/15/14 12:06:40] ../common/connect-mgr.c(289): [Conn] Peer (null) (aa52a723e2) connected [10/15/14 12:06:40] ../common/connect-mgr.c(289): [Conn] Peer (null) (9b6b9cb564) connected [10/15/14 12:06:47] ../common/peer.c(766): Delayed update from local-2(a1c721e5), id is 1013, 500 Shutdown [10/15/14 12:07:16] ../common/peer.c(766): Delayed update from local-2(a1c721e5), id is 1020, 500 Shutdown [10/15/14 12:07:47] ../common/peer.c(766): Delayed update from local-2(a1c721e5), id is 1027, 500 Shutdown

killing commented 9 years ago

A block is missing on the client. Do you have anti-virus software running? The block may be falsely detected as malware and gets deleted.

4ley commented 9 years ago

There was a McAfee on the test machine. No entries in the logs were found. McAfee is removed now, even though I don't know if it caused the problems. Is there a self-healing process or some other way to make it start working again?

shoeper commented 9 years ago

Desyncing library and resyncing it with existing folder should work fine

4ley commented 9 years ago

@shoeper I tried exactly this, but still the same error. At some point the log shows block missing. Any idea how to identify whats causing this problem?