Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Owncloud Client 1.7.1 Crashing #2697

Closed
pyutaros opened this issue Jan 14, 2015 · 18 comments
Closed

Owncloud Client 1.7.1 Crashing #2697

pyutaros opened this issue Jan 14, 2015 · 18 comments
Assignees
Labels

Comments

@pyutaros
Copy link

I apologize if this has already been reported. I searched and found no results.

Expected behaviour

Owncloud should start and sync.

Actual behaviour

Owncloud starts, icon turns gray, icon displays an exclamation point, then owncloud crashes and creates a crash report. Relaunching will produce the same results minus the crash report. Works fine on other Ubuntu 14.04 PC's connecting to the same server and running the same client version.

Steps to reproduce

1a) Login to computer, any user profile.
1b) Launch application

Server configuration

Operating system:
Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64)

Web server:
Apache 2.4.7

Database:
mysql Ver 15.1 Distrib 5.5.40-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

PHP version:
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

ownCloud version:
ownCloud 7.0.4 (stable)

Storage backend:
ext4

Client configuration

Client version:
1.7.1

Operating system:
Ubuntu 14.04 LTS (Runs okay from other client workstations running the same OS.)

OS language:
English

Installation path of client:
Default

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.

Template for output < 10 lines

  1. Output of owncloud --logwindow or owncloud --logfile log.txt
    (On Windows using cmd.exe, you might need to first cd into the ownCloud directory)
    (See also http://doc.owncloud.org/desktop/1.5/troubleshooting.html#client-logfile )

    <script src="https://gist.github.com/pyutaros/be9803b0df0fc08b6484.js"></script>
  2. Web server ACCESS log (no relevant entries in error log):
    107.10.35.53 - "" [13/Jan/2015:19:12:41 -0500] "GET /owncloud/status.php HTTP/1.1" 200 2782 "-" "Mozilla/5.0 (Linux) mirall/1.7.1"
    107.10.35.53 - pyutaros [13/Jan/2015:19:12:42 -0500] "PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1" 207 1362 "-" "Mozilla/5.0 (Linux) mirall/1.7.1"
    107.10.35.53 - pyutaros [13/Jan/2015:19:12:45 -0500] "PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1" 207 1322 "-" "Mozilla/5.0 (Linux) mirall/1.7.1"

  3. ownCloud log (data/owncloud.log):
    No entries during the relevant timeframe.

@danimo
Copy link
Contributor

danimo commented Jan 14, 2015

Please provide the client output from owncloud --logwindow - (paste on gist.github.com).

@pyutaros
Copy link
Author

Hmm. I don't know why this didn't get included originally. Sorry.

https://gist.github.com/be9803b0df0fc08b6484.git

(That link doesn't work for me. I hope it works for you. https://gist.github.com/pyutaros/be9803b0df0fc08b6484/)

@danimo
Copy link
Contributor

danimo commented Jan 14, 2015

Something seems to be odd with your sqlite version:

01-13 18:52:56:343 0x82f22c8 Sqlite prepare statement error: "" in "PRAGMA quick_check;"

Any idea @dragotin?

@pyutaros What is the output of dpkg -l libsqlite3-0? It returns 3.8.2-1ubuntu2 in the version column for me in 14.04.

@pyutaros
Copy link
Author

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=======================================-========================-========================-===================================================================================
ii libsqlite3-0:i386 3.8.2-1ubuntu2 i386 SQLite 3 shared library

(In Synaptic it shows as 3.8.2-1ubuntu2)

I also have libqt5sql5-sqlite, libqt4-sql-sqlite, and python-pysqlite2 installed.

@guruz
Copy link
Contributor

guruz commented Jan 14, 2015

@ckamm Since 40f44c2 is from you, do you have any insight on this?
Why would sqlite3_prepare_v2 return != SQLITE_OK ?

@ckamm
Copy link
Contributor

ckamm commented Jan 16, 2015

@guruz No insights.

But what's clear is that SqlQuery::prepare() fails to properly fill _error based on the return code. That function should either somehow use SQLITE_DO or manually fill _error. Fixing that will give us a more useful error message.

@ckamm
Copy link
Contributor

ckamm commented Jan 22, 2015

@pyutaros Could you try this again with a recent nightly to see what kind of error the SQL prepare statement actually returns?

@pyutaros
Copy link
Author

Sure. Can someone please provide a link to instructions for installing the
nightly build?
On Jan 22, 2015 3:02 AM, "ckamm" notifications@github.com wrote:

@pyutaros https://github.com/pyutaros Could you try this again with a
recent nightly to see what kind of error the SQL prepare statement actually
returns?


Reply to this email directly or view it on GitHub
#2697 (comment).

@ckamm
Copy link
Contributor

ckamm commented Jan 22, 2015

@luciamaestro
Copy link

@pyutaros Have you tested the nightly build?

@pyutaros
Copy link
Author

pyutaros commented Feb 4, 2015

Sorry, I have been very busy. i will test it tonight.

@pyutaros
Copy link
Author

pyutaros commented Feb 4, 2015

Here is the result of owncloud --logfile owncloud.txt.

https://gist.github.com/pyutaros/4cad04069722ce5e7147/download

Thanks for your efforts and help.

@guruz
Copy link
Contributor

guruz commented Feb 5, 2015

...
02-03 22:13:26:120 0x9c1a2c8 csync_exclude_load: Adding entry: ~*.tmp
02-03 22:13:26:120 0x9c1a2c8 ==== added user defined ignore list to csync: "/home/user/.local/share/data/ownCloud/sync-exclude.lst" 
02-03 22:13:26:126 0x9c1a2c8 Sqlite prepare statement error: "unable to open database file" in "PRAGMA quick_check;" 
02-03 22:13:26:126 0x9c1a2c8 quick_check returned failure: "" 
02-03 22:13:26:126 0x9c1a2c8 Consistency check failed, removing broken db "/home/folder2/folder1/.csync_journal.db" 
02-03 22:13:26:126 0x9c1a2c8 sqlite3 version "3.8.2" 
02-03 22:13:26:127 0x9c1a2c8 sqlite3 journal_mode= "wal" 
02-03 22:13:26:251 0x9c1a2c8 Sqlite exec statement error: 14 "unable to open database file" in "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));" 
02-03 22:13:26:251 0x9c1a2c8 SQL Error "Create table metadata" "unable to open database file" 
02-03 22:13:26:251 0x9c1a2c8 ASSERT: "!"SQL ERROR"" in file /usr/src/packages/BUILD/src/libsync/syncjournaldb.cpp, line 104

@guruz guruz added this to the 1.8 - UI Enhancements milestone Feb 5, 2015
@guruz
Copy link
Contributor

guruz commented Feb 5, 2015

Is there anything fishy with /home/folder2/folder1/.csync_journal.db ? permissions? mount? etc..

@pyutaros
Copy link
Author

pyutaros commented Feb 5, 2015

I will check the permissions and report them back here.
On Feb 5, 2015 9:01 AM, "Markus Goetz" notifications@github.com wrote:

Is there anything fishy with /home/folder2/folder1/.csync_journal.db ?
permissions? mount? etc..


Reply to this email directly or view it on GitHub
#2697 (comment).

@pyutaros
Copy link
Author

pyutaros commented Feb 7, 2015

user1@Kryptonic:/home/folder2$ ls -l
total 80
drwxrwsr-x 8 user1 group1 4096 Feb 4 00:27 folder1
drwxrwsr-x 10 user1 group2 4096 Dec 15 07:40 folder2
drwxrwsr-x 1687 user1 group1 69632 Feb 6 13:23 music
drwxrwsr-x 2 user1 group1 4096 Jul 31 2014 Shared

user1@Kryptonic:/home/folder2/folder1$ ls -al
total 72
drwxrwsr-x 8 user1 group1 4096 Feb 4 00:27 .
drwxr-xr-x 6 user1 group1 4096 Nov 27 13:45 ..
drwxrwsr-x 2 user1 group1 4096 Nov 28 11:40 Cards
-rw-r--r-- 1 user1 group1 1024 Feb 4 00:27 .csync_journal.db
-rw-r--r-- 1 user2 group1 32768 Feb 6 15:20 .csync_journal.db-shm
-rw-r--r-- 1 user1 group1 0 Feb 4 00:27 .csync_journal.db-wal
drwxrwsr-x 2 user1 group1 4096 Nov 28 11:41 Desktop
drwxrwsr-x 2 user1 group1 4096 Nov 28 11:41 Minecraft
drwxrwsr-x 4 user1 group1 4096 May 4 2014 OHVA
-rw-rw-r-- 1 user1 group1 1271 Nov 29 01:50 .owncloudsync.log
drwxrwsr-x 2 user1 group1 4096 Nov 28 11:42 pixmaps
drwxrwsr-x 6 user1 group1 4096 Nov 28 11:42 Speed Dial 2

Folder1 is a shared directory owned by a group that I am a member of. I also happen to be in this case the folder owner. The file permissions are 0644, though the folder carries 2775 permissions. I changed permissions on all files in these directories to 2770 (which suits my permissions scheme) and the error is gone and files are syncing. No doubt this is due to me fiddling with the program in ways it is not intended to work. Thanks to all of you for your help.

@ckamm
Copy link
Contributor

ckamm commented Feb 12, 2015

@pyutaros Thanks for checking. It looks like the problem was that the db temporary .csync_journal.db-shm was only writable by user2 while the rest belonged to user1.

@ckamm ckamm closed this as completed Feb 12, 2015
@ckamm ckamm removed the Needs info label Feb 12, 2015
@pyutaros
Copy link
Author

Yep. Thanks again for your help.
On Feb 12, 2015 9:43 AM, "ckamm" notifications@github.com wrote:

@pyutaros https://github.com/pyutaros Thanks for checking. It looks
like the problem was that the db temporary .csync_journal.db-shm was only
writable by user2 while the rest belonged to user1.


Reply to this email directly or view it on GitHub
#2697 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants