[Pkg-owncloud-maintainers] Bug#900287: owncloud-client-cmd requires /etc/owncloud-client/sync-exclude.lst and ~/.local/share/data/ownCloud/
Charles Curley
charlescurley at charlescurley.com
Mon May 28 16:26:39 BST 2018
Package: owncloud-client-cmd
Version: 2.2.4+dfsg-2
On a fresh bare metal installation of Debian 9.4 stretch, with no GUI,
I installed owncloud-client-cmd.
root at dzur:/etc# pre owncloud
libowncloudsync0 2.2.4+dfsg-2 amd64
owncloud-client-cmd 2.2.4+dfsg-2 amd64
owncloud-client-l10n 2.2.4+dfsg-2 all
root at dzur:/etc#
I then executed the following:
charles at dzur:~$ /usr/bin/owncloudcmd --user charles --password <obfucated> /home/charles/nextcloud https://nextcloud/nextcloud
QIODevice::read (QFile, "/home/charles/.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
charles at dzur:~$
I solved that by going to a backup from a prior installation
(/crc/dzur), and copying in the relevant files:
charles at dzur:~$ mkdir -p /home/charles/.local/share/data//ownCloud/
charles at dzur:~$ /usr/bin/owncloudcmd --user charles --password <obfuscated> /home/charles/nextcloud https://nextcloud/nextcloud
QIODevice::read (QFile, "/home/charles/.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
charles at dzur:~$ ls /crc/dzur/home/charles/.l
.lesshst .local/
charles at dzur:~$ ls /crc/dzur/home/charles/.local/share/
applications/ keyrings/ shotwell/ xfce4/
data/ orage/ shotwell.old/ xorg/
gnome-sudoku/ recently-used.xbel Trash/
gvfs-metadata/ ristretto/ vlc/
charles at dzur:~$ ls /crc/dzur/home/charles/.local/share/data/ownCloud/
cookies1.db cookies.db folders owncloud.cfg
charles at dzur:~$ ls /crc/dzur/home/charles/.local/share/data/ownCloud/* ~/.local/share/data/ownCloud//crc/dzur/home/charles/.local/share/data/ownCloud/cookies1.db
/crc/dzur/home/charles/.local/share/data/ownCloud/cookies.db
/crc/dzur/home/charles/.local/share/data/ownCloud/owncloud.cfg
/crc/dzur/home/charles/.local/share/data/ownCloud/folders:
ownCloud
/home/charles/.local/share/data/ownCloud/:
charles at dzur:~$ cp -rp /crc/dzur/home/charles/.local/share/data/ownCloud/* ~/.local/share/data/ownCloud/
charles at dzur:~$
Once more, with feeling:
charles at dzur:~$ /usr/bin/owncloudcmd --user charles --password <obfuscated> /home/charles/nextcloud https://nextcloud/nextcloud
Set proxy configuration to use NO proxy
Cannot load system exclude list or list supplied via --exclude
Aborted
charles at dzur:~$
Some googling produced https://github.com/owncloud/client/issues/4955
That lead me to solve that problem by again copying in from a backup:
root at dzur:/etc# cp -rp /crc/dzur/etc/owncloud-client/ .
root at dzur:/etc# ll owncloud-client/
total 20
drwxr-xr-x 2 root root 4096 Apr 6 12:53 ./
drwxr-xr-x 105 root root 12288 May 28 08:34 ../
-rw-r--r-- 1 root root 362 Sep 27 2016 sync-exclude.lst
root at dzur:/etc#
The next test produced a sucessful run.
On a headerless system, a GUI is superfluous. A command line only
program should not depend on GUI versions of the program. So the
owncloud-client-cmd package should (if necessary) install a minimal
etc/owncloud-client/.
The lack of the user's ~/.local is probably something that should be
solved on the first run of the program, so I suggest that is an
upstream bug.
--
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
https://charlescurley.com
More information about the Pkg-owncloud-maintainers
mailing list