Hi,
Thanks for the client. I tried this way by my own last year one day. So I messed it up
I could need a little bit help from you.
I only need the client and not the gui. So I tried to install just the client of your github instructions.
My problems are these:
> sudo dpkg -i seafile-client_6.0.0_rpi/ccnet-6.0.0_rpi.deb
> (Reading database ... 60885 files and directories currently installed.)
> Preparing to unpack .../ccnet-6.0.0_rpi.deb ...
> Unpacking ccnet-6.0.0 (6.0.0-1) ...
> dpkg: error processing archive seafile-client_6.0.0_rpi/ccnet-6.0.0_rpi.deb (--install):
> trying to overwrite '/usr/include/ccnet.h', which is also in package ccnet 5.0.1-1
> dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
> Errors were encountered while processing:
> seafile-client_6.0.0_rpi/ccnet-6.0.0_rpi.deb
> Pi~$ sudo dpkg -i seafile-client_6.0.0_rpi/seadfile-daemon-6.0.0_rpi.deb
> Selecting previously unselected package seafile-daemon-6.0.0.
> (Reading database ... 60885 files and directories currently installed.)
> Preparing to unpack .../seafile-daemon-6.0.0_rpi.deb ...
> Unpacking seafile-daemon-6.0.0 (6.0.0-1) ...
> dpkg: error processing archive seafile-client_6.0.0_rpi/seafile-daemon-6.0.0_rpi.deb (--install):
> trying to overwrite '/usr/include/seafile/seafile-rpc.h', which is also in package seafile 5.0.1-1
> dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
> Errors were encountered while processing:
> seafile-client_6.0.0_rpi/seafile-daemon-6.0.0_rpi.deb
How can I get this done?
Thanks
So, i figured out by “my self”. Amazing
First step was the broken pipe fixed which you can get here:
Broken_Pipe
After i got these done i had some trouble with my self certificate (ssl).
Traceback (most recent call last):
File “/usr/bin/seaf-cli”, line 832, in
main()
File “/usr/bin/seaf-cli”, line 828, in main
args.func(args)
File “/usr/bin/seaf-cli”, line 532, in seaf_sync
token = get_token(url, username, password, conf_dir)
File “/usr/bin/seaf-cli”, line 225, in get_token
token_json = urlopen("%s/api2/auth-token/" % url, data=data)
File “/usr/bin/seaf-cli”, line 198, in urlopen
resp = urllib2.urlopen(req)
File “/usr/lib/python2.7/urllib2.py”, line 154, in urlopen
return opener.open(url, data, timeout)
File “/usr/lib/python2.7/urllib2.py”, line 431, in open
response = self._open(req, data)
File “/usr/lib/python2.7/urllib2.py”, line 449, in _open
‘_open’, req)
File “/usr/lib/python2.7/urllib2.py”, line 409, in _call_chain
result = func(*args)
File “/usr/lib/python2.7/urllib2.py”, line 1240, in https_open
context=self._context)
File “/usr/lib/python2.7/urllib2.py”, line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
You have to copy your certificate to:
sudo cp mycertificat.crt /usr/share/ca-certificates/
my certificate is under /etc/ssl/nginx
then
sudo dpkg-reconfigure ca-certificates
i choosed ask and search for your certificate and hit space.
Then start your client
seaf-cli sync -l [ID Bibliothek] -s [URL and Port Seafile-Servers] -d [Locale folder for Synchronization] -u [username] -p [Password]
which is like
seaf-cli sync -l 478d3748-2343-1234-432487abe762 -s https://my-seafile-server -d /home/pi/seafile-sync -u pi@seafile.local -p secret
If you need a autostart for your client then go to:
cd /usr/local/bin/
and
sudo nano seafile-client-starter.sh
and fill it with
#!/bin/sh
set -e
/usr/bin/seaf-cli start
save it.
Tape
sudo chmod 755 seafile-client-starter.sh
and
crontab -e
and hit
1.
and put this on the bottom of the list
@reboot /usr/local/bin/seafile-client-starter.sh
and save it.
Reboot and enjoy!
That’s it and thanks to saljut7
Hi,
i get some errors when i compile the client on my pi.
It’s just the client. I haven’t any problems with ccnet-6.0.6, libsearpc-3.1-latest and seafile-6.0.6.
Just with seafile-client-6.0.6.
Building CXX object CMakeFiles/seafile-applet.dir/src/rpc/rpc-client.cpp.o
/home/pi/SeaClient/seafile-client-6.0.6/src/rpc/rpc-client.cpp: In member function ‘bool SeafileRpcClient::getSyncErrors(std::vector<SyncError>*, int, int)’:
/home/pi/SeaClient/seafile-client-6.0.6/src/rpc/rpc-client.cpp:1046:9: error: ‘SEAFILE_TYPE_FILE_SYNC_ERROR’ was not declared in this scope
SEAFILE_TYPE_FILE_SYNC_ERROR,
^
CMakeFiles/seafile-applet.dir/build.make:1578: recipe for target 'CMakeFiles/seafile-applet.dir/src/rpc/rpc-client.cpp.o' failed
make[2]: *** [CMakeFiles/seafile-applet.dir/src/rpc/rpc-client.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/seafile-applet.dir/all' failed
make[1]: *** [CMakeFiles/seafile-applet.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
Any idea what that means?
Cheers