Hello,
I am spending hours to solve the following problem without any success.
Problem
When I want to access seafile server over the webbrowser under my ddns-domain (Port 80) it stucks while loading the website:
When I access the server under the local address in my home network, it works fine! The Problem started suddenly, maybe after an system update. Before the server was running without any problems. After the problem occurs I performed a fresh installation (erase sd card content) on my raspberry but the problem still exists.
System
- Raspberry Pi 2, Raspbian Jessy Image
- Webserver: Nginx (v. 1.6.2), Database: Mysql (mysqld 5.5.52-0+deb8u1)
- Seafile-Server 6.0.5. installed under a system-user “seafile” with setup-skript “setup-seafile-mysql.sh”
Seafile & Seahub starts sucessfully without any error. The error Logs in /var/logs/nginx and in /home/seafile/haiwen/logs are empty.
Hope you can help me guys, because I really like seafile!
Please see below some config files:
/etc/nginx/nginx.conf:
user www-data;
worker_processes 1;
pid /run/nginx.pid;
events {
worker_connections 128;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
#mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
#}
/etc/nginx/sites-enabled/seafile_server:
server {
listen 80;
server_name xyz.ddns.net;
proxy_set_header X-Forwarded-For $remote_addr;
location / {
fastcgi_pass 127.0.0.1:8000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param REMOTE_ADDR $remote_addr;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
fastcgi_read_timeout 36000;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
client_max_body_size 0;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_send_timeout 36000s;
send_timeout 36000s;
}
location /media {
root /home/seafile/haiwen/seafile-server-latest/seahub;
}
}
/home/seafile/haiwen/conf/ccnet.conf:
[General]
USER_NAME = ---
ID = ----
NAME = ---
SERVICE_URL = http://xyz.ddns.net
[Client]
PORT = 13419
[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = ---
DB = ccnet-db
CONNECTION_CHARSET = utf8
/home/seafile/haiwen/conf/seahub.py:
SECRET_KEY = "---"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'seahub-db',
'USER': 'seafile',
'PASSWORD': '---',
'HOST': '127.0.0.1',
'PORT': '3306'
}
}
FILE_SERVER_ROOT = 'http://xyz.ddns.net/seafhttp'


