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

Sync "Shared" files #73

Open
ways opened this issue Mar 4, 2014 · 7 comments
Open

Sync "Shared" files #73

ways opened this issue Mar 4, 2014 · 7 comments

Comments

@ways
Copy link

ways commented Mar 4, 2014

Hi

Files shared with the user is not synced. Is this intentional? I've tried setting dst=/Shared, but that caused the client to crash with:

libocsync version: 0.70.4
buildURL: ownclouds://servername/remote.php/webdav//Shared
Syncing /home/pi/ownCloud/ to ownclouds://servername/remote.php/webdav//Shared logging in as user: photospi01
authCallback setup
Initialization done.
authCallback: Enter your username: 3199013516 255 1 0 None
returning: photospi01
authCallback: Enter your password: 3199013516 255 0 0 None
returning: ********
ERROR: csync_update exited with -1, csync(0.70.4) error 26: None

@diederikdehaas
Copy link
Contributor

does it also crash when you have 'dst=Shared' (without the /) ?
Can you run it again with the '--debug' option and post the result?
Can you also provide some info on the ownCloud server (version/os/etc)?

@ways
Copy link
Author

ways commented Mar 11, 2014

pi@photospi ~ $ oclient --debug
Found libocsync @ libocsync.so.0
Turning debug on
From args:
{'config': None,
'debug': True,
'dry_run': False,
'dst': 'clientsync',
'pass': None,
'src': '/home/pi/ownCloud',
'sslfingerprint': None,
'url': None,
'user': None}
getConfigPath: /home/pi/.local/share/data/ownCloud
conifguration info received from /home/pi/.local/share/data/ownCloud/owncloud.cfg:
{'dst': 'Shared',
'pass': '',
'src': '/home/pi/ownCloud/',
'sslfingerprint': '',
'url': 'https://servername',
'user': 'photospi01'}
Finished config file:
{'config': None,
'davPath': 'remote.php/webdav/',
'debug': True,
'dry_run': False,
'dst': 'Shared',
'pass': '**
',
'src': '/home/pi/ownCloud/',
'sslfingerprint': '',
'url': 'https://servername',
'use_keyring': False,
'user': 'photospi01'}
libocsync version: 0.70.4
buildURL: ownclouds://servername/remote.php/webdav/Shared
Syncing /home/pi/ownCloud/ to ownclouds://servername/remote.php/webdav/Shared logging in as user: photospi01
authCallback setup
Initialization done.
authCallback: Enter your username: 3199094108 255 1 0 None
returning: photospi01
authCallback: Enter your password: 3199094108 255 0 0 None
returning: ***
*
Update done.
Reconcile done.

The server is running latest owncloud on debian, no special storage.

Server log says:
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:51 +0100] "PROPFIND /remote.php/webdav/Shared/2013 HTTP/1.1" 404 797 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:51 +0100] "MKCOL /remote.php/webdav/Shared/2013/ HTTP/1.1" 403 740 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:51 +0100] "PROPFIND /remote.php/webdav/Shared/2013/2013%20prosjekter HTTP/1.1" 404 813 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:51 +0100] "PROPFIND /remote.php/webdav/Shared/2013/2013%2007%20bliksv%c3%a6r HTTP/1.1" 404 815 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:52 +0100] "PROPFIND /remote.php/webdav/Shared/2013 HTTP/1.1" 404 797 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:52 +0100] "MKCOL /remote.php/webdav/Shared/2013/ HTTP/1.1" 403 740 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:52 +0100] "PROPFIND /remote.php/webdav/Shared/2013/2013%2007%20bliksv%c3%a6r HTTP/1.1" 404 815 "-" "csyncoC/0.70.4 neon/0.29.6"
77.40.182.98 - proxpi01 [11/Mar/2014:14:38:53 +0100] "GET /status.php HTTP/1.1" 200 3340 "-" "Mozilla/5.0 (Windows) mirall/1.4.2"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:53 +0100] "PROPFIND /remote.php/webdav/Shared/2013/2013%2008%20b%c3%b8mlo HTTP/1.1" 404 812 "-" "csyncoC/0.70.4 neon/0.29.6"
77.40.182.98 - proxpi01 [11/Mar/2014:14:38:53 +0100] "GET /remote.php/webdav// HTTP/1.1" 401 902 "-" "Mozilla/5.0 (Windows) mirall/1.4.2"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:53 +0100] "PROPFIND /remote.php/webdav/Shared/2013 HTTP/1.1" 404 797 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:53 +0100] "MKCOL /remote.php/webdav/Shared/2013/ HTTP/1.1" 403 740 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:38:53 +0100] "PROPFIND /remote.php/webdav/Shared/2013/2013%2008%20b%c3%b8mlo HTTP/1.1" 404 812 "-" "csyncoC/0.70.4 neon/0.29.6"

I see there's lots of 404 errors, so I guess it's a server side problem.

@ways
Copy link
Author

ways commented Mar 11, 2014

No, that problem was ofcourse that it was trying to upload local files to the shares. After removing local files, I get this:

IP.IP.IP.IP - photospi01 [11/Mar/2014:14:45:34 +0100] "PROPFIND /remote.php/webdav/Shared/wallpapers/mountain%20lion HTTP/1.1" 207 6731 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:45:34 +0100] "PROPFIND /remote.php/webdav/Shared/wallpapers/linux HTTP/1.1" 207 7723 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:45:35 +0100] "PROPFIND /remote.php/webdav/Shared/wallpapers/juliekulie HTTP/1.1" 207 4728 "-" "csyncoC/0.70.4 neon/0.29.6"
IP.IP.IP.IP - photospi01 [11/Mar/2014:14:45:35 +0100] "PROPFIND /remote.php/webdav/Shared/wallpapers/ChromeOS HTTP/1.1" 207 20030 "-" "csyncoC/0.70.4 neon/0.29.6"
77.40.182.98 - - [11/Mar/2014:14:45:47 +0100] "-" 408 2679 "-" "-"
77.40.182.98 - proxpi01 [11/Mar/2014:14:45:56 +0100] "GET /status.php HTTP/1.1" 200 3340 "-" "Mozilla/5.0 (Windows) mirall/1.4.2"
77.40.182.98 - proxpi01 [11/Mar/2014:14:45:56 +0100] "GET /remote.php/webdav// HTTP/1.1" 401 902 "-" "Mozilla/5.0 (Windows) mirall/1.4.2"
IP.IP.IP.IP - 4gmkwku6kxlaludcv3sgcf5obxjzloxy [11/Mar/2014:14:46:07 +0100] "GET /remote.php/mozilla_sync/1.1/4gmkwku6kxlaludcv3sgcf5obxjzloxy/info/collections HTTP/1.1" 200 3469 "-" "Firefox/27.0.1 FxSync/1.29.0.20140218140359.desktop"
IP.IP.IP.IP - 4gmkwku6kxlaludcv3sgcf5obxjzloxy [11/Mar/2014:14:46:07 +0100] "POST /remote.php/mozilla_sync/1.1/4gmkwku6kxlaludcv3sgcf5obxjzloxy/storage/history HTTP/1.1" 200 725 "-" "Firefox/27.0.1 FxSync/1.29.0.20140218140359.desktop"
IP.IP.IP.IP - 4gmkwku6kxlaludcv3sgcf5obxjzloxy [11/Mar/2014:14:46:08 +0100] "POST /remote.php/mozilla_sync/1.1/4gmkwku6kxlaludcv3sgcf5obxjzloxy/storage/tabs HTTP/1.1" 200 634 "-" "Firefox/27.0.1 FxSync/1.29.0.20140218140359.desktop"

@ways
Copy link
Author

ways commented Mar 11, 2014

No related info in owncloud.log. No files being downloaded.

@diederikdehaas
Copy link
Contributor

I noticed you're using https but sslfingerprint is empty. Do things change when you provide the ssl fingerprint?

@ways
Copy link
Author

ways commented Mar 11, 2014

Tested, gives exactly same result.

@ways
Copy link
Author

ways commented Mar 11, 2014

pi@photospi ~/Downloads/pyOwnCloud-master $ oclient --version
Found libocsync @ libocsync.so.0
oclient 0.3 - repo: 0659020

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

No branches or pull requests

2 participants