Ups, i see.
I can not really help you, because I am not using the nginx plugin.
Seafile Installation
-
- OMV 2.x
- openalf
-
-
I hope somebody can help me with some hints how I can get it fixed, there must be some users out there using that plugin.
Actually I read all threads around OMV and nginx but I can't find the solution for my problem yet. -
It was obviously a permission problem.. not sure where it was though... I now have seafile up and running as a user w/o issue....
Pretty sure I did this properly, and I'm able to upload/download w/o issue and it seems to be running properly...
How I done it:
1. Created the user and group "seafile", and put the seafile user in the seafile group. You can do this in the webUI or command line if you're comfortable with this
2. mkdir /home/seafile
3. chown -R seafile:seafile /home/seafile
4. After this, change to your user 'seafile' (ie, su seafile)
5. Partially followed Part 1 in the tutorial by creating the shares in the omv webUI, and instaling the mySQL plugin. Here, I stopped at "creating the databases" and instead chose to let the script do that.
6. cd to the home directory you created above (ie.. cd /home/seafile)
7. Follow Part 2 in its entirety, only difference is, Instead of choosing "Option 2" choose "Option 1". and simply take the default for all the database names, etc.After the installer finishes, you should be able to start the scripts w/o being root as they are owned by seafile:users
./seafile.sh start
./seahub.sh start
Once you start seahub you'll be asked some questions (admin email and password) and then you should be able to log in to Seafile at http://yourserverip:8000Then follow part 3 to create script. Only changes to the script you need to make are:
user=username you created in step 1 (ie, seafile)
path to the installation. This will be the home path you created in step 2 above, plus the top seafile directory.. in my case, /home/seafile/seafileAfter you make it executable, etc., reboot and all should be good.
Now to see if I can figure out SSL
-
I got a bad gateway 502 error.
/etc/init.d/seafile-serverroot@server:/etc/init.d/seafile-server
#!/bin/sh### BEGIN INIT INFO
# Provides: seafile-server
# Required-Start: $local_fs $remote_fs $network
# 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=7443#
# 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
;;
esacseafile.sh, seahub.sh
root@server:~/seafile/seafile-server-latest# ./seafile.sh start
[05/29/16 22:12:55] ../common/session.c(132): using config file /root/seafile/conf/ccnet.conf
Starting seafile server, please wait ...
Seafile server startedDone.
root@server:~/seafile/seafile-server-latest# ./seahub.sh startLC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 ...Seahub is started
Done.
installation permissions:
root@server:~/seafile# ls -la
total 32
drwxr-xr-x 8 root root 4096 May 29 20:18 .
drwx------ 6 root root 4096 May 29 19:43 ..
drwx------ 3 root root 4096 May 29 22:12 ccnet
drwxr-xr-x 2 root root 4096 May 29 20:18 conf
drwxr-xr-x 2 root root 4096 May 29 19:44 installed
drwxr-xr-x 2 root root 4096 May 29 19:50 logs
drwxr-xr-x 2 root root 4096 May 29 22:12 pids
drwxrwxr-x 6 500 500 4096 May 11 00:12 seafile-server-latest -
try putting "mysql" at the end of required-start also (under begin init info)
-
I just found out that I enabled SSL and forced it to a non-standard port, but somehow it's running on port 8000.
I can't log in my 7443 port. -
I've got it running on 8444 and I can download files, but I cannot upload.. go figure.
-
You need to fix the https paths in Seafile admin or the uploads error I think. In a couple of hours ill come back finish part 4 of the guide test run I was doing. I stopped doing the test at the end of part 3 cause I was waiting for others to sort their problems out...lol.
-
You need to fix the https paths in Seafile admin or the uploads error I think. In a couple of hours ill come back finish part 4 of the guide test run I was doing. I stopped doing the test at the end of part 3 cause I was waiting for others to sort their problems out...lol.
I'll be eagerly awaiting that, as that would be the one thing keeping me from implementing it on my home NAS.... other than the minor hiccups I had... I'm actually surprised how easy this was to setup (w/o ssl)... I just don't like services running as root if it can be avoided.
Sent from my Nexus 6 using Tapatalk
-
I can't log into Seafile at all.
-
Ok, Keeping in mind that I have followed the Guide and installed Seafile as the root user. I have confirmed that yes you do have to change the settings in Seafile's admin page for uploads to be successful. If you don't you will get access denied errors upon unloading files. Its the very last step in the guide Part 4 Steep 9.
tinh_x7, if you proceed to Part 4 and install Nginx then once you complete Part 4 step 6 (fastcgi=true) and reboot you will not be able to load Seafile in your browser using port 8000. If you wish to use a non secure address such as HTTP and not HTTPS then you will need to revert fastcgi back to the false value. You cannot use port 8000 in nginx for Seafile it must be a different port.
However, I did actually complete the installation following the guide with no errors at all. Next ill run up another virtual machine and try installing Seafile as another user and auto create the databases. If successful I'll update the guide
-
I know but I still get 502 Bad gateway on https.
When I ran seahub.sh, it starts automatically at port 8000.Code
Alles anzeigenroot@server:~# /root/seafile/seafile-server-latest/./seafile.sh start [05/30/16 09:04:38] ../common/session.c(132): using config file /root/seafile/conf/ccnet.conf Starting seafile server, please wait ... Seafile server started Done. root@server:~# /root/seafile/seafile-server-latest/./seahub.sh start LC_ALL is not set in ENV, set to en_US.UTF-8 Starting seahub at port 8000 ... Seahub is started Done.
Code
Alles anzeigen# 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=7443 # # 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
-
Your scrip file needs to have fastcgi=false and fastcgi_port=8000. You only need to change fastcgi to the true value if you're using Nginx (part 4). The port number is not changed here.
-
I'm using Nginx.
My https is 7443, do I need to change fastcgi_port to 7443? -
then change your script settings to port 8000 and set fastcgi to true. Then use 7443 as your ssl port in nginx
-
I got confused b/c I'm thinking if I use a non-standard port SSL, I need to change the fastcgi port in the script too.
Thanks, baldman.by the way: how do add smb/cifs/external storage share drive from OMV to seafile?
-
No, Think of it like this. The Seafile application installs and runs in its normal state on pot 8000. Nginx then runs in front of the Seafile application as a proxy listening on SSL port 7443, it then tunnels all Seafile request securely to Seafile. So you are not actually exposing Seafile to the external web, you only expose Nginx on its SSL port.
I'm not really sure about adding external storage to Seafile cause to be honest I haven't really used it. I like owncloud ... Maybe when I update to the latest Seafile there might be some new features.
-
Gotcha.
I thought Seafile has a plugin or an external storage feature like OwnCloud that we can use. -
Yeah maybe, I'll have a look next time I'm back in the GUI.
-
Ok, I've run into a snag with auto database creation. This is also why I gave up last time and went with manual database creation. No mater what I do a cannot get the MySQL root user password correct. I've tried the normal omv root user password, I've tried creating the root password in the MySQL Plugin settings, I've even tried using no password as you do when visiting plugins management site. I'm not sure what I'm missing here?
I think ill just change it in the management site if that's what I meant to do, but Isn't it meant to be done in the plugin settings page?
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!