pyOwnCloud icon indicating copy to clipboard operation
pyOwnCloud copied to clipboard

Sync "Shared" files

Open ways opened this issue 11 years ago • 7 comments
trafficstars

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

ways avatar Mar 04 '14 19:03 ways

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)?

diederikdehaas avatar Mar 04 '14 20:03 diederikdehaas

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 avatar Mar 11 '14 13:03 ways

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 avatar Mar 11 '14 13:03 ways

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

ways avatar Mar 11 '14 13:03 ways

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

diederikdehaas avatar Mar 11 '14 14:03 diederikdehaas

Tested, gives exactly same result.

ways avatar Mar 11 '14 14:03 ways

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

ways avatar Mar 11 '14 14:03 ways