Re: [seafile] Seafile via Apache with https Error 500 / Timeout

1,507 views
Skip to first unread message

Shuai Lin

unread,
Oct 29, 2014, 11:49:13 AM10/29/14
to sea...@googlegroups.com
You should start seahub with "./seahub.sh start-fastcgi", did you do that?

BTW, you should upgrade to the latests version of seafile server (i.e. 3.1.x)

On Wed, Oct 29, 2014 at 11:47 PM, Simon Chatain <chata...@gmail.com> wrote:
Hello,

I've issue with seafile and apache.
In apache log errors, I found this :
[Wed Oct 29 16:39:41 2014] [error] [client 193.57.249.1] FastCGI: comm with server "/var/www/seahub.fcgi" aborted: idle timeout (30 sec), referer: https://xxxx.fr/repo/ff71f21e-4a1f-4354-9da3-4e13e1e665fe/?p=%2FPhotos%2F
[Wed Oct 29 16:39:41 2014] [error] [client 193.57.249.1] FastCGI: incomplete headers (0 bytes) received from server "/var/www/seahub.fcgi", referer: https://xxxx.fr/repo/ff71f21e-4a1f-4354-9da3-4e13e1e665fe/?p=%2FPhotos%2F
[Wed Oct 29 16:39:59 2014] [error] [client 193.57.249.1] FastCGI: comm with server "/var/www/seahub.fcgi" aborted: idle timeout (30 sec)
[Wed Oct 29 16:39:59 2014] [error] [client 193.57.249.1] FastCGI: incomplete headers (0 bytes) received from server "/var/www/seahub.fcgi"

And I've got an error 500 in chrome.

I don't know why, I'm using seafile v2.1.7 with Apache/2.2.14 

Here is my apache conf :
<VirtualHost *:80>
        ServerAdmin ad...@xxx.fr
        DocumentRoot /var/www
        ServerName xxx.fr
        Redirect permanent / https://xxx.fr/

        CustomLog /var/log/apache2/seafile-access.log combined
        ErrorLog /var/log/apache2/seafile-error.log
</VirtualHost>

And :
<VirtualHost *:443>
        ServerAdmin ad...@xxx.fr
        DocumentRoot /var/www
        ServerName xxx.fr
        Alias /media /home/xxx/web/xxx/seafile/seahub/media
        RewriteEngine On

        GnuTLSEnable on
        GnuTLSExportCertificates on
        GnuTLSCacheTimeout 500
        GnuTLSCertificateFile /root/ssl/media/ssl.crt
        GnuTLSKeyFile /root/ssl/media/ssl.key.nopass
        GnuTLSPriorities NORMAL

        <Location /seafhttp>
                Order allow,deny
                Allow from all
        </Location>

        <Location /media>
                Order allow,deny
                Allow from all
                # Require all Granted
        </Location>
        ProxyPass /seafhttp http://127.0.0.1:8082
        ProxyPassReverse /seafhttp http://127.0.0.1:8082
        RewriteRule ^/seafhttp - [QSA,L]

        # seafile webdav

        RewriteCond %{HTTP:Authorization} (.+)
        RewriteRule ^(/seafdav.*)$ /seafdav.fcgi$1 [QSA,L,e=HTTP_AUTHORIZATION:%1]
        RewriteRule ^(/seafdav.*)$ /seafdav.fcgi$1 [QSA,L]

        RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ /seahub.fcgi$1 [QSA,L,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

        FastCGIExternalServer /var/www/seahub.fcgi -host 127.0.0.1:8000
        FastCGIExternalServer /var/www/seafdav.fcgi -host 127.0.0.1:8080

        CustomLog /var/log/apache2/seafile-access.log combined
        ErrorLog /var/log/apache2/seafile-error.log
</VirtualHost>

--
You received this message because you are subscribed to the Google Groups "seafile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
To post to this group, send email to sea...@googlegroups.com.
Visit this group at http://groups.google.com/group/seafile.
For more options, visit https://groups.google.com/d/optout.

Simon Chatain

unread,
Oct 29, 2014, 12:05:19 PM10/29/14
to sea...@googlegroups.com
Yes, I start with start-fastcgi option.
My mistake, I use v3.1.7. With previous versions I also get this error.

Thanks !

Simon Chatain

unread,
Oct 30, 2014, 10:54:37 AM10/30/14
to sea...@googlegroups.com
I have this issue both with Android client and web interface.
Anyone have a lead on this ?

thank you.

TheExoduser

unread,
Nov 1, 2014, 1:42:04 PM11/1/14
to sea...@googlegroups.com
I had a similar problem. My problem has been solved after I've modified my virtual host to the following:
#
# seafile fileserver
#
ProxyPass /seafhttp http://127.0.0.1:8082 retry=0 timeout=5

ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]


I added "retry=0 timeout=5" after the ProxyPass argument. 

Simon Chatain

unread,
Nov 12, 2014, 9:36:57 AM11/12/14
to sea...@googlegroups.com
Thanks, I'll try this !

Simon Chatain

unread,
Nov 12, 2014, 10:04:33 AM11/12/14
to sea...@googlegroups.com
I still have this error when opening a file for example.

Simon Chatain

unread,
Nov 19, 2014, 8:37:24 AM11/19/14
to sea...@googlegroups.com
Nobody ? I can really use the web interface and Android apps.

Too bad !!

Simon Chatain

unread,
Nov 19, 2014, 8:43:42 AM11/19/14
to sea...@googlegroups.com
Apache logs still gave me :

[Wed Nov 19 14:42:17 2014] [error] [client 193.57.249.1] FastCGI: comm with server "/var/www/seahub.fcgi" aborted: idle timeout (30 sec), referer: https://xxx.fr/repo/ff71f21e-4a1f-4354-9da3-4e13e1e665fe/?p=%2FApp%2Fchrome%2Fsendto%2F
[Wed Nov 19 14:42:17 2014] [error] [client 193.57.249.1] FastCGI: incomplete headers (0 bytes) received from server "/var/www/seahub.fcgi", referer: https://xxx.fr/repo/ff71f21e-4a1f-4354-9da3-4e13e1e665fe/?p=%2FApp%2Fchrome%2Fsendto%2F

Shuai Lin

unread,
Nov 19, 2014, 8:41:11 PM11/19/14
to sea...@googlegroups.com
Another user reported similar problem and have resolved it. https://github.com/haiwen/seahub/issues/305

You can take a look at the above link. The apache error messages you two posted are very alike.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages