owncloudcmd 2.2.2 doesn't start.
I'm having a problem connecting to a server using owncloud-client-cmd. I'd appreciate if someone could help.
Ubuntu 16.10
owncloudcmd version 2.2.2
owncloudcmd ~/cloud/ https://server.address
Please enter user name: user
Password for user user: password
QIODevice::read (QFile, "/home/user/.local/share/data//ownCloud//cookies.db"): device not open
Set proxy configuration to use system configuration
Cannot load system exclude list or list supplied via --exclude
Aborted
Thanks in advance!
@jsl303 Cannot load system exclude list or list supplied via --exclude - the program needs access to a sync exclude file. Typically sync-exclude.lst is available in a system location (or placed next to the binary in dev setups). If it isn't available there, you can pass --exclude <path>. I'll update the manpage to say so.
Thanks for the reply.
"you can pass |--exclude
How do I do that, and which path do I point to?
On 4/4/2017 3:32 AM, ckamm wrote:
@jsl303 https://github.com/jsl303 |Cannot load system exclude list or list supplied via --exclude| - the program needs access to a sync exclude file. Typically |sync-exclude.lst| is placed next to the binary. If it isn't, you can pass |--exclude
|. I'll update the manpage to say so. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/owncloud/client/issues/5679#issuecomment-291418286, or mute the thread https://github.com/notifications/unsubscribe-auth/ALDSx0fkMS2FRRPScoesWcOSulHd2w3Gks5rsfHzgaJpZM4MyZf5.
This file: https://github.com/owncloud/client/blob/master/sync-exclude.lst . Add the argument and path to the owncloudcmd command line.
Note that in most cases it should have been installed, so you not having the file hints at a problem.
Thanks for helping with this.
I'm running on a headless server, so never installed GUI. I just ran:
apt-get install owncloud-client-cmd
Could it be why I don't have sync-exclude? sudo find / -iname sync-exclude It doesn't find anything. Any suggestion? Thanks!
sudo find / -iname 'sync-exclude*'
But download it and do --exclude my-sync-exclude-path.lst
owncloudcmd --trust --exclude ~/cloud/sync-exclude.lst ~/cloud/ https://cloud.server.com
I get the error.
Cannot load system exclude list or list supplied via --
exclude Aborted
Here's the full output.
QIODevice::read (QFile, "/home/user/.local/share/data//ownCloud//cookies.db"): device not open Set proxy configuration to use system configuration [04/16 04:00:04.637723, 9] csync_exclude_load: Adding entry: ~ [04/16 04:00:04.637791, 9] csync_exclude_load: Adding entry: ~$ [04/16 04:00:04.637846, 9] csync_exclude_load: Adding entry: .~lock.* [04/16 04:00:04.637906, 9] csync_exclude_load: Adding entry: ~.tmp [04/16 04:00:04.637989, 9] csync_exclude_load: Adding entry: ].~* 04/16 04:00:04.638054, 9] csync_exclude_load: Adding entry: ]Icon [04/16 04:00:04.638106, 9] csync_exclude_load: Adding entry: ].DS_Store [04/16 04:00:04.638182, 9] csync_exclude_load: Adding entry: ].ds_store [04/16 04:00:04.638236, 9] csync_exclude_load: Adding entry: ._ [04/16 04:00:04.638290, 9] csync_exclude_load: Adding entry: ]Thumbs.db [04/16 04:00:04.638347, 9] csync_exclude_load: Adding entry: desktop.ini [04/16 04:00:04.638400, 9] csync_exclude_load: Adding entry: System Volume Information [04/16 04:00:04.638475, 9] csync_exclude_load: Adding entry: ..sw? [04/16 04:00:04.638535, 9] csync_exclude_load: Adding entry: ..sw? [04/16 04:00:04.638588, 9] csync_exclude_load: Adding entry: ].TemporaryItems [04/16 04:00:04.638648, 9] csync_exclude_load: Adding entry: ].Trashes [04/16 04:00:04.638740, 9] csync_exclude_load: Adding entry: ].DocumentRevisions-V100 [04/16 04:00:04.638795, 9] csync_exclude_load: Adding entry: ].Trash- [04/16 04:00:04.638850, 9] csync_exclude_load: Adding entry: .fseventd [04/16 04:00:04.638917, 9] csync_exclude_load: Adding entry: .apdisk [04/16 04:00:04.638971, 9] csync_exclude_load: Adding entry: .htaccess [04/16 04:00:04.639030, 9] csync_exclude_load: Adding entry: .directory [04/16 04:00:04.639082, 9] csync_exclude_load: Adding entry: *.part [04/16 04:00:04.639140, 9] csync_exclude_load: Adding entry: *.filepart [04/16 04:00:04.639214, 9] csync_exclude_load: Adding entry: .crdownload [04/16 04:00:04.639268, 9] csync_exclude_load: Adding entry: .kate-swp [04/16 04:00:04.639325, 9] csync_exclude_load: Adding entry: .gnucash.tmp- [04/16 04:00:04.639379, 9] csync_exclude_load: Adding entry: .synkron. [04/16 04:00:04.639439, 9] csync_exclude_load: Adding entry: .sync.ffs_db [04/16 04:00:04.639498, 9] csync_exclude_load: Adding entry: .symform [04/16 04:00:04.639551, 9] csync_exclude_load: Adding entry: .symform-store [04/16 04:00:04.639609, 9] csync_exclude_load: Adding entry: .fuse_hidden [04/16 04:00:04.639663, 9] csync_exclude_load: Adding entry: .unison [04/16 04:00:04.639716, 9] csync_exclude_load: Adding entry: .nfs [04/16 04:00:04.639773, 9] csync_exclude_load: Adding entry: My Saved Places. Cannot load system exclude list or list supplied via --exclude Aborted
On 4/9/2017 4:19 AM, ckamm wrote:
|sudo find / -iname 'sync-exclude*' |
But download it and do |--exclude my-sync-exclude-path.lst|
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/owncloud/client/issues/5679#issuecomment-292771741, or mute the thread https://github.com/notifications/unsubscribe-auth/ALDSxy_PMWAmGuvaxRKhXQ0jaAN0Gda5ks5ruJR9gaJpZM4MyZf5.
Even with --exclude option, owncloudcmd fails to start. Any other suggestion? Here is the log. Thanks for your help!
owncloudcmd --exclude ~/cloud/sync-exclude.lst ~/cloud http://cloud.server.com Please enter user name: user Password for user user: password QIODevice::read (QFile, "/home/user/.local/share/data//ownCloud//cookies.db"): device not open Set proxy configuration to use system configuration [05/07 00:40:43.213503, 9] csync_exclude_load: Adding entry: ~ [05/07 00:40:43.213579, 9] csync_exclude_load: Adding entry: ~$ [05/07 00:40:43.213633, 9] csync_exclude_load: Adding entry: .~lock.* [05/07 00:40:43.213685, 9] csync_exclude_load: Adding entry: ~.tmp [05/07 00:40:43.213742, 9] csync_exclude_load: Adding entry: ].~* 05/07 00:40:43.213802, 9] csync_exclude_load: Adding entry: ]Icon [05/07 00:40:43.213855, 9] csync_exclude_load: Adding entry: ].DS_Store [05/07 00:40:43.213914, 9] csync_exclude_load: Adding entry: ].ds_store [05/07 00:40:43.213967, 9] csync_exclude_load: Adding entry: ._ [05/07 00:40:43.214019, 9] csync_exclude_load: Adding entry: ]Thumbs.db [05/07 00:40:43.214072, 9] csync_exclude_load: Adding entry: desktop.ini [05/07 00:40:43.214130, 9] csync_exclude_load: Adding entry: System Volume Information [05/07 00:40:43.214184, 9] csync_exclude_load: Adding entry: ..sw? [05/07 00:40:43.214237, 9] csync_exclude_load: Adding entry: ..sw? [05/07 00:40:43.214291, 9] csync_exclude_load: Adding entry: ].TemporaryItems [05/07 00:40:43.214344, 9] csync_exclude_load: Adding entry: ].Trashes [05/07 00:40:43.214410, 9] csync_exclude_load: Adding entry: ].DocumentRevisions-V100 [05/07 00:40:43.214464, 9] csync_exclude_load: Adding entry: ].Trash- [05/07 00:40:43.214518, 9] csync_exclude_load: Adding entry: .fseventd [05/07 00:40:43.214571, 9] csync_exclude_load: Adding entry: .apdisk [05/07 00:40:43.214624, 9] csync_exclude_load: Adding entry: .htaccess [05/07 00:40:43.214678, 9] csync_exclude_load: Adding entry: .directory [05/07 00:40:43.214766, 9] csync_exclude_load: Adding entry: *.part [05/07 00:40:43.214825, 9] csync_exclude_load: Adding entry: *.filepart [05/07 00:40:43.214879, 9] csync_exclude_load: Adding entry: .crdownload [05/07 00:40:43.214938, 9] csync_exclude_load: Adding entry: .kate-swp [05/07 00:40:43.214991, 9] csync_exclude_load: Adding entry: .gnucash.tmp- [05/07 00:40:43.215050, 9] csync_exclude_load: Adding entry: .synkron. [05/07 00:40:43.215103, 9] csync_exclude_load: Adding entry: .sync.ffs_db [05/07 00:40:43.215157, 9] csync_exclude_load: Adding entry: .symform [05/07 00:40:43.215211, 9] csync_exclude_load: Adding entry: .symform-store [05/07 00:40:43.215265, 9] csync_exclude_load: Adding entry: .fuse_hidden [05/07 00:40:43.215320, 9] csync_exclude_load: Adding entry: .unison [05/07 00:40:43.215373, 9] csync_exclude_load: Adding entry: .nfs [05/07 00:40:43.215432, 9] csync_exclude_load: Adding entry: My Saved Places. Cannot load system exclude list or list supplied via --exclude Aborted
I have also trouble with sync. I am using following commands (the server is a nextcloud server 11.0.3):
- owncloudcmd -v
- owncloudcmd version 2.2.4
- owncloudcmd --silent --user
--password --exclude ~/bin/sync-exclude.lst ~/nextcloud https:// /owncloud/remote.php/webdav
This command was not working, looks like it is important to keep the parameters in the right order. This was working:
- owncloudcmd --silent --exclude ~/bin/sync-exclude.lst --user
--password ~/nextcloud https:// /owncloud/remote.php/webdav
But maybe there was some other issue.
@SomeStrangeName The command line option order shouldn't matter. If you can reproduce, feel free to open another bug report (I assume you do --user myuser --password mypassword? Otherwise none of these should work).
@jsl303 Your log output shows that the exclude file you specified is loaded. The program also tries to load the system exclude file if it exists. Check for the sync-exclude.lst on your computer. Maybe there is one but it's permissions are set incorrectly? (mine is at /etc/ownCloud/sync-exclude.lst, but other install locations are likely, based on the distribution)
sudo find / -iname sync-exclude.lst turns up only the one I manually added. I'm using Ubuntu 16.10.
@jsl303 Unfortunately I don't know what's going on then.
Your log suggests an exclude file is read correctly (the csync_exclude_load: Adding entry lines). But then it errors on that step anyway. This has to be another file that can't be read.
Suggestion: Place your sync-exclude.lst next to your owncloudcmd binary and don't specify --exclude. Does that work?
I had the same problem, just do
apt-get install owncloud-client
On my side, everything was fine after this.
gruss ivo
I'v version 2.4.1 running on windows and have same problem
owncloudcmd --exclude ./exclude.txt --user bla --password blabla --logdebug "C:/Users/bla/Documents/owncloud/" http://my.cloud.local/remote.php/webdav
05-10 16:27:03:689 [ info sync.database ]: Detected filesystem "NTFS" for "C:/Users/bla/Documents/owncloud/._sync_8a5871c755e5.db" 05-10 16:27:03:690 [ fatal default ]: Cannot load system exclude list or list supplied via --exclude 05-10 16:27:06:918 [ warning default ]: QWaitCondition: Destroyed while threads are still waiting
@pacotudel It works for me on linux - I can only reproduce your error if the specified exclude file can't be read. Could you try putting in the full path to the exclude file to see if that makes a difference? Maybe also double check it's 2.4.1 with owncloudcmd --version
Thank's for reading!!! :)
owncloudcmd --version
ownCloud version 2.4.1 (build 9270) Git revision cd60c2b88ac858339637575f124c58d88b42e78c Using Qt 5.6.2, built against Qt 5.6.2 Using ''
And the result with entire path in --exclude
owncloudcmd --exclude "C:/prueba/exclude.txt" --user bla --password blabla --logdebug "C:/Users/bla/Documents/scripts/owncloud/sync by script/prueba/" http://cloud.owncloud.local/remote.php/webdav
... 05-11 18:19:52:483 [ info sync.database ]: Detected filesystem "NTFS" for "C:/Users/bla/Documents/scripts/owncloud/sync by script/prueba/._sync_8a5871c755e5.db" 05-11 18:19:52:484 [ fatal default ]: Cannot load system exclude list or list supplied via --exclude 05-11 18:19:54:106 [ warning default ]: QWaitCondition: Destroyed while threads are still waiting
@pacotudel Odd. And it works without --exclude ...? I'm wondering whether the system exclude list is fine. Are you comfortable using a debugger?
Alternatively, try a 2.5.0 nightly - the exclude reading code has changed significantly and the newer version might work better.
I'll try with 2.5.0 There is nothing to exclude, the reason to include the option is i think it search a file or something. The result without option is:
command: owncloudcmd --user bla --password bla --logdebug "C:/prueba/" http://cloud.local/remote.php/webdav
result: 05-15 16:58:07:127 [ fatal default ]: Cannot load system exclude list or list supplied via --exclude 05-15 16:58:10:116 [ warning default ]: QWaitCondition: Destroyed while threads are still waiting
@pacotudel Please check whether there is a sync-exclude.lst file next to your owncloudcmd binary. That's the default exclude list and should always be present. It seems the command can't access that file!
The file should look like this: https://raw.githubusercontent.com/owncloud/client/master/sync-exclude.lst
Now it works all ok, here is the command that I'v used:
@"C:\Program Files (x86)\ownCloud\owncloudcmd.exe" --user bla --password bla --logdebug "C:/prueba/" http://cloud.owncloud.local/remote.php/webdav
Thanks!
Why does it need that? Is listed an option, not a requirement.