client icon indicating copy to clipboard operation
client copied to clipboard

Infinity synchronization and nothing is updated

Open lazev3do opened this issue 13 years ago • 16 comments

Setup used: Ubuntu server 12.10 owncloud 4.5.5 client: 1.1.3 and 1.1.1 and 1.1.4 and 1.2b OS: windows 7

Owncloud client indicates that is synchronizing but never finishes neither does the owncloud folder get any bigger, so nothing is downloaded.

The two hidden csync files inside the owncloud folder (.csync_journal.db,.csync_journal.db.ctmp) are always empty (0 bytes).

The only error I found on the logwindow was:

sqlite3_compile error: no such table: metadata - on query SELECT md5 FROM metadata WHERE phash='-3968720283226440286' AND modtime=0

This seems to be a well known error:

http://forum.owncloud.org/viewtopic.php?f=14&t=7093

This error happens multiple times regarding multiple files.

Presently I and others user can't synchronize with owncloud. I've also tried a fresh server install and had the same problem. Also tried using different client version as referred above.

lazev3do avatar Dec 21 '12 14:12 lazev3do

Hi,

I've also been hit by this "bug", but a workaround(?) is to do more or less the following:

[xxx@yyy ownCloud] sqlite3 .csync_journal.db
SQLite version 3.7.7 2011-06-25 16:35:41
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> CREATE TABLE IF NOT EXISTS metadata(phash INTEGER(8),pathlen INTEGER,path VARCHAR(4096),inode INTEGER,uid INTEGER,gid INTEGER,mode INTEGER,modtime INTEGER(8),type INTEGER,md5 VARCHAR(32),PRIMARY KEY(phash));
sqlite> CREATE INDEX metadata_phash ON metadata(phash);
sqlite> CREATE INDEX metadata_inode ON metadata(inode);
sqlite> CREATE INDEX metadata_md5 ON metadata(md5);
sqlite> CREATE TABLE IF NOT EXISTS version(major INTEGER(8),minor INTEGER(8),patch INTEGER(8),custom VARCHAR(256));
sqlite> 

At least the error goes away. (If the sync works afterswards only time will show. Update: No, doesn't work. )

(See also https://github.com/owncloud/mirall/issues/162, but for me it seems that this doesn't go away w/o the above hack. Update: No, hack doesn't really help it seems. :( )

SleeplessAnnoyedNerd avatar Dec 24 '12 09:12 SleeplessAnnoyedNerd

but you write that on the server or on the client side?

I mean should I create the .csync_journal.db with that content on my owncloud pc folder? if not where in the server? And many thanks for the input

lazev3do avatar Dec 24 '12 09:12 lazev3do

Client side. In the sync folder.

I mean should I create the .csync_journal.db with that content on my owncloud pc folder?

Yes. Sorry, I should have stated this more clearly.

SleeplessAnnoyedNerd avatar Dec 24 '12 09:12 SleeplessAnnoyedNerd

No problem thanks. But it seems that when owncloud start it overwrites the file setting it with 0 bytes again. Should I use this content in a specific time?

lazev3do avatar Dec 24 '12 09:12 lazev3do

Hmm. In my case it doesn't get overwritten, so if I run sync client I have two files: .csync_journal.db and .csync_journal.db.ctmp (currently both 28672 bytes).

Anyways, it doesn't seem to help. (Besides not showing the error anymore.) :(

Just for the record:

  • 4.5.5 on server
  • 1.1.4 on client (in this case Mac OS X)

SleeplessAnnoyedNerd avatar Dec 24 '12 09:12 SleeplessAnnoyedNerd

BTW: Does your sync maybe fail? (Sync client icon turns red?) B/c in my case it seems that the sync fails (see also https://github.com/owncloud/mirall/issues/204).

SleeplessAnnoyedNerd avatar Dec 24 '12 10:12 SleeplessAnnoyedNerd

No...I've never caught it red. The status is always synchronizing but nothing is actually downloaded, although I can see from the log window that there is activity (the files are checked).

lazev3do avatar Dec 24 '12 10:12 lazev3do

Too bad, then I'm out of ideas. :( However: Did you try a new (fresh, empty) sync folder?

SleeplessAnnoyedNerd avatar Dec 24 '12 10:12 SleeplessAnnoyedNerd

What do you mean? Re download the files again? Or re-install owncloud server?

lazev3do avatar Dec 24 '12 11:12 lazev3do

You can add additional sync folders on the client via the sync client. ("Add folders" I assume it's called in English, unfortunately my version is German...)

Re download the files again?

Well, that would be possible to, just clean your local folder. (Well, maybe copy the files somewhere safe, just to be sure.)

SleeplessAnnoyedNerd avatar Dec 24 '12 11:12 SleeplessAnnoyedNerd

I have same issue as lazev3do. Local folder of 10GB to be uploaded (first sync) only gets to ~1GB by using browser to login online. Client shows that sync is running. Looking online after some time...no changes..still around 1GB showing. Also get same sqlite3 error. Curiosity, why sqlite3? I chose mySQL @ install time.

anti-pencil avatar Jan 24 '13 22:01 anti-pencil

Sqlite is used on the client side to manage synchronization....it has nothing to do with with server side data base type

lazev3do avatar Jan 24 '13 23:01 lazev3do

@anti-pencil: Have you checked if you might exceed your quota? Can you check with the sync result dialog in 1.2.0 (by clicking on the tray icon, and in the status dialog "show info") if there are errors with files listed?

dragotin avatar Jan 25 '13 09:01 dragotin

@dragotin Pardon my tardiness, I will try in 1.2.0 and report back. Thanks. Quotas are set to unlimited. ~2GB limits set in php. switching from 512mb did nothing I could detect.

anti-pencil avatar Jan 29 '13 17:01 anti-pencil

Short story: Client version 1.1.2,1.1.4 & oc4.5.5 NOT working. 1.2 & oc4.5.5 NOT working. 1.2 & oc4.5.6 WORKING. The syncing just starting working as advertised and continues to do so. The .db files are now approximately 7kb in size as opposed to zero. Thanks, bug-chops!

anti-pencil avatar Jan 31 '13 04:01 anti-pencil

Closing for inactivity. Should be fixed.

danimo avatar Apr 19 '13 09:04 danimo