client icon indicating copy to clipboard operation
client copied to clipboard

[1.5.0beta1] Client (Mac) reports 'Unable to initialize a sync journal'

Open kwillems opened this issue 13 years ago • 16 comments

Expected behaviour

The client should 'run' and not report an error 'Unable to initialize a sync journal'.

Actual behaviour

On Mac the desktop client (1.5.0beta1) gives an error when syncing has finished. See the attached file. schermafbeelding-2013-11-30-om-23 13 49

Steps to reproduce

  1. Install client 1.5.0beta1
  2. Start the client and let it download the files of an excisting ownCloud account
  3. Wait max 30 seconds

Server configuration

Operating system: Ubuntu 12.04 64bit 3.2.0-54-virtual Web server: Apache 2.2.22-1ubuntu Database: postgresql 9.1.9-0ubuntu1 PHP version: 5.3.10-1ubuntu3.8 ownCloud version: 5.0.13 Storage backend: NFS3 share

Client configuration

Client version: 1.5.0beta1 Operating system: OS X 10.9 OS language: Dutch Installation path of client: default

Logs

First here is a sample part of the log during downloading of the files:

11-30 22:45:26:185 void Mirall::CSyncThread::transferCompleted(const Mirall::SyncFileItem&) "20131216 folder/20.1. document.pdf" 4 "" 11-30 22:45:26:185 Database Drivers could not be loaded. 11-30 22:45:26:185 Database Drivers could not be loaded. 11-30 22:45:26:185 Transaction Start "download file start" 11-30 22:45:26:185 No database Transaction to commit 11-30 22:45:26:185 ERROR commiting to the database: "Driver not loaded Driver not loaded" 11-30 22:45:26:203 FolderWatcherPrivate::callback by OS X 11-30 22:45:26:209 FolderWatcherPrivate::callback by OS X 11-30 22:45:26:341 Content encoding ist with status 200 11-30 22:45:26:352 Database Drivers could not be loaded. 11-30 22:45:26:352 Failed to connect database. 11-30 22:45:26:352 Database Drivers could not be loaded. 11-30 22:45:26:352 Transaction Start "download file start2" 11-30 22:45:26:352 No database Transaction to commit 11-30 22:45:26:352 ERROR commiting to the database: "Driver not loaded Driver not loaded"

Later, when the downloading has finished the following is stated in the logfile:

11-30 22:45:28:382 * event notification enabled 11-30 22:45:56:383 * Polling "ownCloud" for changes. (time since last sync: 30 s) 11-30 22:45:56:389 Loading config: "/Users/Koen/Library/Application Support/ownCloud/owncloud.cfg" (URL is "https://website.nl" ) 11-30 22:45:56:390 !!! Mirall::RequestEtagJob created for QUrl( "https://website.nl" ) querying "" 11-30 22:45:56:758 * Compare etag with previous etag: true 11-30 22:45:56:772 Schedule folder "ownCloud" to sync! 11-30 22:45:56:773 XX slotScheduleFolderSync: folderQueue size: 1 11-30 22:45:56:773 Folder in overallStatus Message: Mirall::Folder(0x10489a1c0) with name "ownCloud" 11-30 22:45:56:774 Sync state changed for folder "ownCloud" : "SyncPrepare" 11-30 22:45:56:774 SocketApi: Sync state changed 11-30 22:45:56:775 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW" 11-30 22:45:56:775 * Start syncing 11-30 22:45:56:775 Loading config: "/Users/Koen/Library/Application Support/ownCloud/owncloud.cfg" (URL is "https://website.nl" ) 11-30 22:45:56:776 ==> returning exclude file path: "/Applications/owncloud.app/Contents/Resources/sync-exclude.lst" 11-30 22:45:56:776 ==== added system ignore list to csync: "/Applications/owncloud.app/Contents/Resources/sync-exclude.lst" 11-30 22:45:56:777 csync_exclude_load: Adding entry: .filepart 11-30 22:45:56:777 csync_exclude_load: Adding entry: *~ 11-30 22:45:56:778 csync_exclude_load: Adding entry: *.part 11-30 22:45:56:778 csync_exclude_load: Adding entry: *.crdownload 11-30 22:45:56:779 csync_exclude_load: Adding entry: *.unison 11-30 22:45:56:779 csync_exclude_load: Adding entry: csync_timedif.ctmp 11-30 22:45:56:779 csync_exclude_load: Adding entry: csync_journal.db 11-30 22:45:56:780 csync_exclude_load: Adding entry: csync_journal.db.ctmp 11-30 22:45:56:780 csync_exclude_load: Adding entry: ..sw? 11-30 22:45:56:781 csync_exclude_load: Adding entry: ..sw? 11-30 22:45:56:781 csync_exclude_load: Adding entry: ].csync-progressdatabase 11-30 22:45:56:781 csync_exclude_load: Adding entry: ].DS_Store 11-30 22:45:56:782 csync_exclude_load: Adding entry: ].ds_store 11-30 22:45:56:782 csync_exclude_load: Adding entry: ]Thumbs.db 11-30 22:45:56:783 csync_exclude_load: Adding entry: desktop.ini 11-30 22:45:56:783 csync_exclude_load: Adding entry: *.kate-swp 11-30 22:45:56:784 csync_exclude_load: Adding entry: *conflict- 11-30 22:45:56:784 csync_exclude_load: Adding entry: ].~_ 11-30 22:45:56:784 csync_exclude_load: Adding entry: ].TemporaryItems 11-30 22:45:56:785 csync_exclude_load: Adding entry: ].Trashes 11-30 22:45:56:785 csync_exclude_load: Adding entry: ].DocumentRevisions-V100 11-30 22:45:56:786 csync_exclude_load: Adding entry: .fseventd 11-30 22:45:56:786 csync_exclude_load: Adding entry: .apdisk 11-30 22:45:56:787 csync_exclude_load: Adding entry: .htaccess 11-30 22:45:56:787 csync_exclude_load: Adding entry: ]Icon\r 11-30 22:45:56:787 csync_exclude_load: Adding entry: ~$ 11-30 22:45:56:788 csync_exclude_load: Adding entry: .~lock.* 11-30 22:45:56:788 csync_exclude_load: Adding entry: ~.tmp 11-30 22:45:56:789 ==> returning exclude file path: "/Users/Koen/Library/Application Support/ownCloud/sync-exclude.lst" 11-30 22:45:56:789 ==== added user defined ignore list to csync: "/Users/Koen/Library/Application Support/ownCloud/sync-exclude.lst" 11-30 22:45:56:790 QUrl( "https://website.nl/remote.php/webdav/" )
11-30 22:45:56:790 * event notification disabled 11-30 22:45:56:790 >===================================== sync started for "ownCloud" 11-30 22:45:56:790 void Mirall::CSyncThread::startSync() Sync started 11-30 22:45:56:790 starting to sync QThread(0x104c00120) QThread(0x104c96f00) 11-30 22:45:56:790 Loading config: "/Users/Koen/Library/Application Support/ownCloud/owncloud.cfg" (URL is "https://website.nl" ) 11-30 22:45:56:790 Database Drivers could not be loaded. 11-30 22:45:56:790 No database Transaction to commit 11-30 22:45:56:790 No way to create a sync journal! 11-30 22:45:56:836 -> CSync Finished slot with error true warn count 0 11-30 22:45:56:836 Starting Event logging again in 2000 milliseconds 11-30 22:45:56:837 Loading config: "/Users/Koen/Library/Application Support/ownCloud/owncloud.cfg" (URL is "https://website.nl" ) 11-30 22:45:56:895 OO folder slotSyncFinished: result: 2 11-30 22:45:56:895 *
error Strings: ("Unable to initialize a sync journal.") 11-30 22:45:56:896 * owncloud csync thread finished with error 11-30 22:45:56:896 Folder in overallStatus Message: Mirall::Folder(0x10489a1c0) with name "ownCloud" 11-30 22:45:56:898 Sync state changed for folder "ownCloud" : "Error" 11-30 22:45:56:898 SocketApi: Sync state changed 11-30 22:45:56:898 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW" 11-30 22:45:56:899 <===================================== sync finished for "ownCloud"

kwillems avatar Nov 30 '13 22:11 kwillems

Hi!

Same fail here, but I got this error on 1.4.2 too. So I upgraded to 1.5.0 beta1.

Server-Operating-System: debian squeeze database: mysql Web server: Apache 2.2.16-6+squeeze11 PHP-Version: 5.3.3.-7+squeeze17 Owncloud-Version: 5.0.13.-1

Client version: 1.5.0beta1 Operating system: OS X 10.9 OS language: German Installation path of client: default

Client-Log: 12-02 07:17:52:555 >===================================== sync started for "ownCloud" 12-02 07:17:52:554 void Mirall::CSyncThread::startSync() Sync started 12-02 07:17:52:554 starting to sync QThread(0x105c02c90) QThread(0x105e176c0) 12-02 07:17:52:555 Loading config: "/Volumes/G5_HD/USER_SSD_2013/Library/Application Support/ownCloud/owncloud.cfg" (URL is "https://www.yyyyyyy.at/owncloud_lnk" ) 12-02 07:17:52:555 Database Drivers could not be loaded. 12-02 07:17:52:555 No database Transaction to commit 12-02 07:17:52:555 No way to create a sync journal! 12-02 07:17:52:557 -> CSync Finished slot with error true warn count 0 12-02 07:17:52:558 Starting Event logging again in 2000 milliseconds 12-02 07:17:52:558 OO folder slotSyncFinished: result: 2 12-02 07:17:52:558 ** error Strings: ("Synchronisationsbericht konnte nicht initialisiert werden.") 12-02 07:17:52:558 * owncloud csync thread finished with error 12-02 07:17:52:558 Folder in overallStatus Message: Mirall::Folder(0x1049b50a0) with name "ownCloud" 12-02 07:17:52:559 Sync state changed for folder "ownCloud" : "Error" 12-02 07:17:52:559 SocketApi: Sync state changed 12-02 07:17:52:559 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW" 12-02 07:17:52:560 <===================================== sync finished for "ownCloud"

owncloud-Client tries to restart the sync every minute but fail every time.

muelli75 avatar Dec 02 '13 06:12 muelli75

Relevant error from logfile:

11-30 22:45:56:790 Database Drivers could not be loaded.

It indicates that QSqlDatabase::drivers returned an empty list, which might be caused by the fact that Qt plugins cannot pbe properly be loaded.

Did you use the package provided, or did you compile the client yourself? What version of Qt do you use? Do you have the Qt sqlite plugin?

ogoffart avatar Dec 02 '13 11:12 ogoffart

I used the official version, provided here http://owncloud.org/sync-clients (compiling it myself gives the same error though).

kwillems avatar Dec 02 '13 12:12 kwillems

I used the official server-version, provided by OpenSUSE-Build-Service. On my client I use the official binarys (1.5.0 beta 1) provided by owncloud.org/sync-clients. It uses QT 4.8.4

On other clients, running on OSX 10.9.0 too, the sync works fine. On these machines runs the client 1.4.2 - but the syncing now all the files ... strange.

muelli75 avatar Dec 02 '13 18:12 muelli75

@danimo Is it possible that we do not bundle the Qt sql module with MacOS?

dragotin avatar Dec 03 '13 09:12 dragotin

Either that, or Qt does not pick it up where we install it.

danimo avatar Dec 03 '13 09:12 danimo

I experienced the same issues in Fedora 20 owncloud client. The version is 1.5.3 built from git version c8a8eb on April 18,2014 using OCsync 0.91.5 and Qt 4.8.5

rickyzhang82 avatar Apr 24 '14 13:04 rickyzhang82

In Fedora 20, both Qt3 ant Qt4 were installed. QTDIR env variable points to Qt3. The work around fix is to add Qt4 plugin path, which contains sqldriver explicitly, to env variable QT_PLUGIN_PATH.

rickyzhang82 avatar Apr 28 '14 15:04 rickyzhang82

im having this issue on ubuntu 14.04 I tried setting the QT_PLUGIN_PATH but still no joy (1.6.4)

stowelly avatar Oct 30 '14 16:10 stowelly

I had this issue with ownCloud 1.7 on Debian. The reason was that I had copied my owncloud data from another system and the everything but the file .csync_journal.db was created with my normal user, which is the one that executes owncloud client. .csync_journal.db has owner and group root. A simple: sudo chown put_here_Your_user .csync_journal.db was enough for the owncloud client to start syncing.

lkrosigk avatar Nov 29 '14 09:11 lkrosigk

Same here. After upgrading from 1.6.3 to 1.7.0 no further sync possible: "Synchronisationsbericht konnte nicht initialisiert werden." Can it be 1.6.3 uses an other db-format than 1.7.0 and we need to upgrade the database first?

tps800 avatar Dec 02 '14 11:12 tps800

@tps800 Do you still get this with 1.7.1 ? What version of libsqlite3 do you have installed?

guruz avatar Jan 14 '15 15:01 guruz

I was having the same error and just realised the drive containing the owncloud directory was not mounted. Silly me :/

ghost avatar Jan 14 '15 23:01 ghost

The work around fix is to add Qt4 plugin path, which contains sqldriver explicitly, to env variable QT_PLUGIN_PATH. make sure libqt-sqlite in your system

leenetworks avatar May 04 '15 03:05 leenetworks

@leenetworks btw, the later client versions don't use Qt4 or the sqlite3 bundled with Qt anymore.

guruz avatar May 05 '15 11:05 guruz

I'm still seeing this message in 1.8.4 if my harddrive is full. I guess that's OK, although a more informative message would be more desirable.

sbliven avatar Aug 20 '15 18:08 sbliven