Seafile Installation

  • Hi Guys,


    I managed to run all steps through the really good guide; How to install Seafile with MySQL and SSL but know I face the following problem when calling the IP https://OMVIP:8000/ I get 502 bad Gateway -- nginx/1.2.1.


    What went wrong I don't have any idea but the problem started after I created the server in nginx before I could call the server WEB GUI.


    Maybe some input from you what I can do to find the reason?


    regards
    openalf

  • I doesn't matter what port you use in the nginx server settings, it doesn't have to be 8444 it can be anything you like. When you open Seafile in your browser use the port you chose for nginx and not the default seafile port 8000.
    You can also not use SSL by disabling it in the nginx server settings and just use another port like 90 instead of the default http port 80. Remember you cant have both OMV and seafile running on the same ports.


    Your seafile should be accessible with an address similar to these https://yoorOMVIP:8444or http://yourOMVIP:90. If you are connecting remotely then you may need to open these ports in you firewall.


    If you are using the default ports HTTP 80 or HTTPS 443 then you don't have use them in your browser, just use the IP without the port

  • I did the below steps but when I try to SAVE I get an error.


    Do I have to change something in the below code or just copy/paste?


  • I don't have Seafile currently running on my server so I cant compare settings. I can however see that you have port 8000 set as your SSL port in your nginx server settings. You cant use port 8000 for SSL as its seafiles default port. You need to change that to another port number like 8444 or 8443. Then access Seafile using the new port eg https://OMVIP:8444

  • Rather than debug that server I would delete it and re create a new one. I don't mean delete everything and start again, I just mean delete that Nginx server/settings and re create it. Also restart the Nginx service or reboot OMV would be a good bet.


    You could also try disabling the "force SSL" setting and see if you access Seafile without SSL eg; http instead of https.

  • Upon closer look I see the error makes reference to owncloud, do you have owncloud using port 8443? and does that server you have setup include owncloud in it?.. Seafile & owncloud on the same port?

  • I use the latest ownCloud and think it works pretty well, however there still is some things I like about Seafile so I keep my eye on it..lol.


    You could either delete the current server and recreate it or try a completely different port like 8445 or create another server on another port so its not the same server as owncloud.

  • I did have some similar errors when I wrote the guide but I cant remember why or how I fixed them. Sorry. If it were me I would probably start again fresh or at least retrace my steps and make sure everything is correct. Possibly even reinstall Seafile. Do you have another test machine you could re try the setup on?


    There is a couple of Seafile config files you could check too but I cant remember where they located, you might need to change the IP address in one of them manually possibly.
    A quick google says these are the config files:
    ccnet.conf: contains the LDAP
    settingsseafile.conf: contains settings for seafile daemon and fileserver.
    seahub_settings.py: contains settings for Seahub

  • Did just start from


    Code
    Start the Seafile Server:cd /root/seafile/seafile-server-* (if not already in that location)./seafile.sh start ./seahub.sh start


    From that point I can call the Seafile WEB UI.

  • Well I come to the point where I'm in doubt, you mentioned in the guide the below script:


    Code
    # Change the value of "user" to your linux user nameuser=root# Change the value of "script_path" to your path of seafile installation# usually the home directory of $userseafile_dir=/root/seafilescript_path=${seafile_dir}/seafile-server-latestseafile_init_log=${seafile_dir}/logs/seafile.init.logseahub_init_log=${seafile_dir}/logs/seahub.init.log


    Do I need to change the values here? Or can I keep user=root? Do I have to rename some other values? Maybe that's here where I did a mistake because I only c/p anything without any change.

  • I checked twice all areas and I'm fine with it; I guess that I do have all values set as in the script.


    Code
    /root/seafile
    /root/seafile/seafile-server-5.0.4/seahub/thirdpart/wsgidav/addons/seafile
    /root/seafile/seafile-server-5.0.4/seafile
    /root/seafile/seafile-server-5.0.4/seafile/lib64/python2.6/site-packages/seafile


    Code
    root@NAS:~/seafile# ls -l
    total 28
    drwx------ 3 root root 4096 May 22 23:18 ccnet
    drwx------ 2 root root 4096 May 22 23:18 conf
    drwxr-xr-x 2 root root 4096 May 20 16:40 installed
    drwxr-xr-x 2 root root 4096 May 20 19:58 logs
    drwxr-xr-x 2 root root 4096 May 22 23:18 pids
    drwxrwxr-x 6  500  500 4096 Jan 13 11:00 seafile-server-5.0.4
    lrwxrwxrwx 1 root root   20 May 20 17:52 seafile-server-latest -> seafile-server-5.0.4
    drwxr-xr-x 3 root root 4096 May 20 17:52 seahub-data


    When I run:



    How can I fix that error?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!