Seafile Installation
-
- OMV 2.x
- openalf
-
-
-
Code
Alles anzeigenLast login: Wed May 25 20:44:00 2016 from anth-pc.lan root@ubuntu:~# service mysql restart Stopping MySQL database server: mysqld. Starting MySQL database server: mysqld . .. Checking for tables which need an upgrade, are corrupt or were not closed cleanly.. root@ubuntu:~# ls -l /etc/rc3.d/ total 4 lrwxrwxrwx 1 root root 13 May 20 14:37 K01ntp -> ../init.d/ntp lrwxrwxrwx 1 root root 15 May 20 14:37 K01rsync -> ../init.d/rsync lrwxrwxrwx 1 root root 27 May 20 14:37 K02nfs-kernel-server -> ../init.d/nfs-kernel-server lrwxrwxrwx 1 root root 15 May 20 14:37 K02snmpd -> ../init.d/snmpd lrwxrwxrwx 1 root root 19 May 20 14:37 K02tftpd-hpa -> ../init.d/tftpd-hpa -rw-r--r-- 1 root root 677 Jul 14 2013 README lrwxrwxrwx 1 root root 21 May 23 13:45 S01couchpotato -> ../init.d/couchpotato lrwxrwxrwx 1 root root 17 May 25 10:36 S01jackett -> ../init.d/jackett lrwxrwxrwx 1 root root 14 May 20 14:37 S01motd -> ../init.d/motd lrwxrwxrwx 1 root root 18 May 20 14:37 S01php5-fpm -> ../init.d/php5-fpm lrwxrwxrwx 1 root root 16 May 22 18:28 S01plexpy -> ../init.d/plexpy lrwxrwxrwx 1 root root 19 May 20 14:37 S01rrdcached -> ../init.d/rrdcached lrwxrwxrwx 1 root root 17 May 20 14:37 S01rsyslog -> ../init.d/rsyslog lrwxrwxrwx 1 root root 24 May 25 17:32 S01seafile-server -> ../init.d/seafile-server lrwxrwxrwx 1 root root 16 May 24 08:58 S01sonarr -> ../init.d/sonarr lrwxrwxrwx 1 root root 14 May 20 16:16 S01sudo -> ../init.d/sudo lrwxrwxrwx 1 root root 29 May 25 13:30 S01transmission-daemon -> ../init.d/transmission-daemon lrwxrwxrwx 1 root root 22 May 20 14:37 S01wd_keepalive -> ../init.d/wd_keepalive lrwxrwxrwx 1 root root 15 May 20 14:37 S02acpid -> ../init.d/acpid lrwxrwxrwx 1 root root 17 May 20 14:37 S02anacron -> ../init.d/anacron lrwxrwxrwx 1 root root 23 May 21 11:28 S02clamav-daemon -> ../init.d/clamav-daemon lrwxrwxrwx 1 root root 14 May 20 14:37 S02cron -> ../init.d/cron lrwxrwxrwx 1 root root 14 May 20 14:37 S02dbus -> ../init.d/dbus lrwxrwxrwx 1 root root 21 May 20 14:37 S02loadcpufreq -> ../init.d/loadcpufreq lrwxrwxrwx 1 root root 15 May 20 14:37 S02mdadm -> ../init.d/mdadm lrwxrwxrwx 1 root root 15 May 25 15:47 S02mysql -> ../init.d/mysql lrwxrwxrwx 1 root root 15 May 20 14:37 S02nginx -> ../init.d/nginx lrwxrwxrwx 1 root root 32 May 20 14:37 S02openmediavault-engined -> ../init.d/openmediavault-engined lrwxrwxrwx 1 root root 25 May 22 18:25 S02plexmediaserver -> ../init.d/plexmediaserver lrwxrwxrwx 1 root root 17 May 20 14:37 S02proftpd -> ../init.d/proftpd lrwxrwxrwx 1 root root 23 May 20 14:37 S02smartmontools -> ../init.d/smartmontools lrwxrwxrwx 1 root root 13 May 25 08:50 S02ssh -> ../init.d/ssh lrwxrwxrwx 1 root root 22 May 20 14:37 S03avahi-daemon -> ../init.d/avahi-daemon lrwxrwxrwx 1 root root 18 May 20 14:37 S03bootlogs -> ../init.d/bootlogs lrwxrwxrwx 1 root root 26 May 21 11:28 S03clamav-freshclam -> ../init.d/clamav-freshclam lrwxrwxrwx 1 root root 22 May 20 14:37 S03cpufrequtils -> ../init.d/cpufrequtils lrwxrwxrwx 1 root root 17 May 23 18:11 S03postfix -> ../init.d/postfix lrwxrwxrwx 1 root root 18 May 20 15:05 S04collectd -> ../init.d/collectd lrwxrwxrwx 1 root root 14 May 22 19:45 S04cups -> ../init.d/cups lrwxrwxrwx 1 root root 15 May 22 19:45 S05samba -> ../init.d/samba lrwxrwxrwx 1 root root 17 May 20 14:37 S15rpcbind -> ../init.d/rpcbind lrwxrwxrwx 1 root root 20 May 20 14:37 S16nfs-common -> ../init.d/nfs-common lrwxrwxrwx 1 root root 18 May 20 14:37 S16quotarpc -> ../init.d/quotarpc lrwxrwxrwx 1 root root 15 May 23 23:11 S17monit -> ../init.d/monit lrwxrwxrwx 1 root root 29 May 23 23:11 S17openmediavault-beep -> ../init.d/openmediavault-beep lrwxrwxrwx 1 root root 18 May 23 23:11 S17rc.local -> ../init.d/rc.local lrwxrwxrwx 1 root root 19 May 23 23:11 S17rmnologin -> ../init.d/rmnologin lrwxrwxrwx 1 root root 23 May 23 23:11 S17stop-bootlogd -> ../init.d/stop-bootlogd lrwxrwxrwx 1 root root 18 May 23 23:11 S17watchdog -> ../init.d/watchdog root@ubuntu:~# mysql -u <root> --password=<> --database=seafile-db -e "show tables;" -bash: root: No such file or directory root@ubuntu:~# mysql -u --password= --database=seafile-db -e "show tables;" +----------------------+ | Tables_in_seafile-db | +----------------------+ | Branch | | GarbageRepos | | InnerPubRepo | | OrgQuota | | OrgUserQuota | | Repo | | RepoFileCount | | RepoGroup | | RepoHead | | RepoHistoryLimit | | RepoOwner | | RepoSize | | RepoTokenPeerInfo | | RepoTrash | | RepoUserToken | | RepoValidSince | | SharedRepo | | SystemInfo | | UserQuota | | UserShareQuota | | VirtualRepo | | WebAP | +----------------------+ root@ubuntu:~#
-
Your seafile-server is started before the mysql deamon. The reason is the start script is missing the dependency on mysql.
Edit the file /etc/init.d/seafile-server and add mysql to the required services (line 5):
Should look like this:Bash
Alles anzeigen#!/bin/sh ### BEGIN INIT INFO # Provides: seafile-server # Required-Start: $local_fs $remote_fs $network mysql # Required-Stop: $local_fs mysql # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts Seafile Server # Description: starts Seafile Server ### END INIT INFO ...
and run
@baldmanCan you please update the seafile tutorial?
-
Sorry, but is that valid for both of us? Or...???
-
Sorry, but is that valid for both of us? Or...???
If you followed the tutorial precisely most probably yes. Just check the start skript and try.
-
Is this normal
Code
Alles anzeigenroot@ubuntu:~# update-rc.d seafile-server update-rc.d: using dependency based boot sequencing update-rc.d: error: not enough arguments usage: update-rc.d [-n] [-f] <basename> remove update-rc.d [-n] <basename> defaults [NN | SS KK] update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] . update-rc.d [-n] <basename> disable|enable [S|2|3|4|5] -n: not really -f: force The disable|enable API is not stable and might change in the future.
Myseafile-server
Bash
Alles anzeigen#!/bin/sh ### BEGIN INIT INFO # Provides: seafile-server # Required-Start: $local_fs $remote_fs $network mysql # Required-Stop: $local_fs mysql # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Starts Seafile Server # Description: starts Seafile Server ### END INIT INFO # Change the value of "user" to your linux user name user=root # Change the value of "script_path" to your path of seafile installation # usually the home directory of $user seafile_dir=/root/seafile script_path=${seafile_dir}/seafile-server-latest seafile_init_log=${seafile_dir}/logs/seafile.init.log seahub_init_log=${seafile_dir}/logs/seahub.init.log # Change the value of fastcgi to true if fastcgi is to be used fastcgi=true # Set the port of fastcgi, default is 8000. Change it if you need different. fastcgi_port=8000 # # Write a polite log message with date and time # echo -e "\n \n About to perform $1 for seafile at `date -Iseconds` \n " >> ${seafile_init_log} echo -e "\n \n About to perform $1 for seahub at `date -Iseconds` \n " >> ${seahub_init_log} case "$1" in start) sudo -u ${user} ${script_path}/seafile.sh ${1} >> ${seafile_init_log} if [ $fastcgi = true ]; then sudo -u ${user} ${script_path}/seahub.sh ${1}-fastcgi ${fastcgi_port} >> ${seahub_init_log} else sudo -u ${user} ${script_path}/seahub.sh ${1} >> ${seahub_init_log} fi ;; restart) sudo -u ${user} ${script_path}/seafile.sh ${1} >> ${seafile_init_log} if [ $fastcgi = true ]; then sudo -u ${user} ${script_path}/seahub.sh ${1}-fastcgi ${fastcgi_port} >> ${seahub_init_log} else sudo -u ${user} ${script_path}/seahub.sh ${1} >> ${seahub_init_log} fi ;; stop) sudo -u ${user} ${script_path}/seahub.sh ${1} >> ${seahub_init_log} sudo -u ${user} ${script_path}/seafile.sh ${1} >> ${seafile_init_log} ;; *) echo "Usage: /etc/init.d/seafile-server {start|stop|restart}" exit 1 ;; esac
It didn't start on reboot
-
Same here:
Code
Alles anzeigenroot@NAS:~# update-rc.d seafile-server update-rc.d: using dependency based boot sequencing update-rc.d: error: not enough arguments usage: update-rc.d [-n] [-f] <basename> remove update-rc.d [-n] <basename> defaults [NN | SS KK] update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] . update-rc.d [-n] <basename> disable|enable [S|2|3|4|5] -n: not really -f: force The disable|enable API is not stable and might change in the future. root@NAS:~#
-
Before I go changing the guide ill set up a VM and do another test. I vaguely remember removing that MySQL line for some reason/error.
-
This Seafile installation is longer than OwnCloud.
It would be nice if we have a plugin for it. -
Yes a plugin would be fantastic. If I had the know how id give it a go...lol. The guide is all I could come up with for now
-
Don't get me wrong, but my preference would be Owncloud, Pydio, then Seafile.
The interface/features of the fist two are better than Seafile.FYI: the founder/most devs of Seafile are Chinese.
-
Yes I like ownCloud too. It was the tutorial here and my curiosity that gave me the idea to write a guide for Seafile. ownCloud is a very mature application in comparison to Seafile but I think Seafile has some good things about it too. It's at least worth keeping an eye on Seafile as there has been a lot of interest in it
-
Is this normal
Code
Alles anzeigenroot@ubuntu:~# update-rc.d seafile-server update-rc.d: using dependency based boot sequencing update-rc.d: error: not enough arguments usage: update-rc.d [-n] [-f] <basename> remove update-rc.d [-n] <basename> defaults [NN | SS KK] update-rc.d [-n] <basename> start|stop NN runlvl [runlvl] [...] . update-rc.d [-n] <basename> disable|enable [S|2|3|4|5] -n: not really -f: force The disable|enable API is not stable and might change in the future.
It didn't start on reboot
The commamd should have been
-
Update... I have just set up a new OMV virtual machine in virtualbox. I have run the steps in parts 1, 2 & 3 with no problems. I'll finish part 4 later. I'll also try the MySQL line in step 3 that Zoki suggested and i'll let you know what happens.
This was done on a clean updated OMV install. From what I gather some of you are using older installations, it might worth a rebuild if your up to it, it certainly makes things run better
Perhaps ill even give the latest Seafile a test and update the guide for that
-
-
Yeah I can do that. I was originally going to do that but never came back to it.
-
I looked at making seafile a plugin a while back but it wasn't really a good fit. The installation script would take too much time to port to something plugin compatible.
-
I hope we have a plugin for Pydio or something better if OwnCloud cease to exist one day.
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!