[solved] Internal Server Error after update 6.2.5. - 6.3.4 but no logging output

Dear Community,

I just tried to update fom 6.2.5 to 6.3.4. on my raspberry pie 3 B
I did:

cd /home/seafile/seafile-server-latest
sudo -u seafile ./seafile.sh stop && sudo -u seafile ./seahub.sh stop
cd ..
wget https://github.com/haiwen/seafile-rpi/releases/download/v6.3.4/seafile-server_6.3.4_stable_pi.tar.gz
tar -xvzf seafile-server_6.3.4_stable_pi.tar.gz
seafile-server-6.3.4/upgrade/upgrade_6.2_6.3.sh 
chown -R seafile:seafile /home/seafile/seafile-server-6.3.4/
sudo -u seafile ./seafile.sh start && sudo -u seafile ./seahub.sh start

Everything worked without errors.
When I try to go to /seafile I get an error 500.

here is my nginx config

server {
  listen 443;
  listen [::]:443;
  ssl on;
  ssl_certificate /home/pi/ssl/cacert.pem;        # path to your cacert.pem
  ssl_certificate_key /home/pi/ssl/privkey.pem;    # path to your privkey.pem
  server_name <server_name>
  proxy_set_header X-Forwarded-For $remote_addr;

  add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
  server_tokens off;


  ############## SEAFILE #################
  location /seafile {
    # 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   HTTPS               on;
    # fastcgi_param   HTTP_SCHEME         https;

    # fastcgi_read_timeout 36000;

    # use WSCI mode instead of fastcgi (https://github.com/haiwen/seafile-rpi/releases)
    proxy_pass         http://127.0.0.1:8000;
    proxy_set_header   Host $http_host; # $http_host instead of $host (also includes the port number)
    proxy_set_header   X-Real-IP $remote_addr;
    proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Host $server_name;
    proxy_set_header   X-Forwarded-Proto https;
    proxy_read_timeout  1200s;


    #this stays for either mode
    access_log      /var/log/nginx/seahub.access.log;
    error_log       /var/log/nginx/seahub.error.log;

    # used for view/edit office file via Office Online Server
    client_max_body_size 0;

  }

  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 /seafmedia {
    rewrite ^/seafmedia(.*)$ /media$1 break;
    root /home/seafile/seafile-server-latest/seahub;
  }

location /seafdav {
    fastcgi_pass    127.0.0.1:8080;
    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   HTTPS               on;
    fastcgi_param   HTTP_SCHEME         https;

    client_max_body_size 0;
    proxy_connect_timeout  36000s;
    proxy_read_timeout  36000s;
    proxy_send_timeout  36000s;
    send_timeout  36000s;

    # This option is only available for Nginx >= 1.8.0. See more details below.
    # proxy_request_buffering off;

    access_log      /var/log/nginx/seafdav.access.log;
    error_log       /var/log/nginx/seafdav.error.log;
  }

  ######### root Config ###########
  location / {
    root /var/www/html;
    index index.html;
    charset utf-8;
  }
}

Other services like baikal still work fine on my server.

seahub.access.log just says
[26/Sep/2019:11:47:57 +0200] “GET /seafile HTTP/1.1” 500 141 “-” “curl/7.61.1”

seahub.error.log says NOTHING.
seafile-server-latest/runtime just contains a file seahub.conf no further logs :frowning:

When I change nginx error_log to debug I get the following:

2019/09/26 11:47:57 [debug] 22194#22194: *3 http script copy: ""
2019/09/26 11:47:57 [debug] 22194#22194: *3 http script copy: ""
2019/09/26 11:47:57 [debug] 22194#22194: *3 http script copy: ""
2019/09/26 11:47:57 [debug] 22194#22194: *3 http script copy: ""
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header: "User-Agent: curl/7.61.1"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header: "Accept: */*"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header: "Pragma: no-cache"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header: "Cache-Control: no-cache"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header:
"GET /seafile HTTP/1.0
Host: <host>
X-Real-IP: 2a03:567:1::17
X-Forwarded-For: 2a03:567:1::17
X-Forwarded-Host: <host>
X-Forwarded-Proto: https
Connection: close
User-Agent: curl/7.61.1
Accept: */*
Pragma: no-cache
Cache-Control: no-cache

"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http cleanup add: 01A50830
2019/09/26 11:47:57 [debug] 22194#22194: *3 get rr peer, try: 1
2019/09/26 11:47:57 [debug] 22194#22194: *3 stream socket 16
2019/09/26 11:47:57 [debug] 22194#22194: *3 epoll add connection: fd:16 ev:80002005
2019/09/26 11:47:57 [debug] 22194#22194: *3 connect to 127.0.0.1:8000, fd:16 #4
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream connect: -2
2019/09/26 11:47:57 [debug] 22194#22194: *3 posix_memalign: 01A85AA0:128 @16
2019/09/26 11:47:57 [debug] 22194#22194: *3 event timer add: 16: 60000:1828274177
2019/09/26 11:47:57 [debug] 22194#22194: *3 http finalize request: -4, "/seafile?" a:1, c:2
2019/09/26 11:47:57 [debug] 22194#22194: *3 http request count:2 blk:0
2019/09/26 11:47:57 [debug] 22194#22194: *3 http run request: "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream check client, write event:1, "/seafile"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream recv(): -1 (11: Resource temporarily unavailable)
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream request: "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream send request handler
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream send request
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream send request body
2019/09/26 11:47:57 [debug] 22194#22194: *3 chain writer buf fl:1 s:283
2019/09/26 11:47:57 [debug] 22194#22194: *3 chain writer in: 01A50850
2019/09/26 11:47:57 [debug] 22194#22194: *3 writev: 283 of 283
2019/09/26 11:47:57 [debug] 22194#22194: *3 chain writer out: 00000000
2019/09/26 11:47:57 [debug] 22194#22194: *3 event timer del: 16: 1828274177
2019/09/26 11:47:57 [debug] 22194#22194: *3 event timer add: 16: 1200000:1829414179
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream request: "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream process header
2019/09/26 11:47:57 [debug] 22194#22194: *3 malloc: 01A18FB0:4096
2019/09/26 11:47:57 [debug] 22194#22194: *3 recv: fd:16 244 of 4096
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy status 500 "500 Internal Server Error"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header: "Connection: close"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header: "Content-Type: text/html"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header: "Content-Length: 141"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy header done
2019/09/26 11:47:57 [debug] 22194#22194: *3 xslt filter header
2019/09/26 11:47:57 [debug] 22194#22194: *3 posix_memalign: 01A19FD0:4096 @16
2019/09/26 11:47:57 [debug] 22194#22194: *3 HTTP/1.1 500 Internal Server Error
Server: nginx
Date: Thu, 26 Sep 2019 09:47:57 GMT
Content-Type: text/html
Content-Length: 141
Connection: keep-alive

2019/09/26 11:47:57 [debug] 22194#22194: *3 write new buf t:1 f:0 01A1A020, pos 01A1A020, size: 160 file: 0, size: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 http write filter: l:0 f:0 s:160
2019/09/26 11:47:57 [debug] 22194#22194: *3 http cacheable: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 http proxy filter init s:500 h:0 c:0 l:141
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream process upstream
2019/09/26 11:47:57 [debug] 22194#22194: *3 pipe read upstream: 1
2019/09/26 11:47:57 [debug] 22194#22194: *3 pipe preread: 141
2019/09/26 11:47:57 [debug] 22194#22194: *3 readv: 1, last:3852
2019/09/26 11:47:57 [debug] 22194#22194: *3 pipe recv chain: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 pipe buf free s:0 t:1 f:0 01A18FB0, pos 01A19017, size: 141 file: 0, size: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 pipe length: 141
2019/09/26 11:47:57 [debug] 22194#22194: *3 input buf #0
2019/09/26 11:47:57 [debug] 22194#22194: *3 pipe write downstream: 1
2019/09/26 11:47:57 [debug] 22194#22194: *3 pipe write downstream flush in
2019/09/26 11:47:57 [debug] 22194#22194: *3 http output filter "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http copy filter: "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 image filter
2019/09/26 11:47:57 [debug] 22194#22194: *3 xslt filter body
2019/09/26 11:47:57 [debug] 22194#22194: *3 http postpone filter "/seafile?" 01A1A1A0
2019/09/26 11:47:57 [debug] 22194#22194: *3 write old buf t:1 f:0 01A1A020, pos 01A1A020, size: 160 file: 0, size: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 write new buf t:1 f:0 01A18FB0, pos 01A19017, size: 141 file: 0, size: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 http write filter: l:0 f:0 s:301
2019/09/26 11:47:57 [debug] 22194#22194: *3 http copy filter: 0 "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 pipe write downstream done
2019/09/26 11:47:57 [debug] 22194#22194: *3 event timer del: 16: 1829414179
2019/09/26 11:47:57 [debug] 22194#22194: *3 event timer add: 16: 1200000:1829414523
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream exit: 00000000
2019/09/26 11:47:57 [debug] 22194#22194: *3 finalize http upstream request: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 finalize http proxy request
2019/09/26 11:47:57 [debug] 22194#22194: *3 free rr peer 1 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 close http upstream connection: 16
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A85AA0, unused: 88
2019/09/26 11:47:57 [debug] 22194#22194: *3 event timer del: 16: 1829414523
2019/09/26 11:47:57 [debug] 22194#22194: *3 reusable connection: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 http upstream temp fd: -1
2019/09/26 11:47:57 [debug] 22194#22194: *3 http output filter "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http copy filter: "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 image filter
2019/09/26 11:47:57 [debug] 22194#22194: *3 xslt filter body
2019/09/26 11:47:57 [debug] 22194#22194: *3 http postpone filter "/seafile?" 7EC908DC
2019/09/26 11:47:57 [debug] 22194#22194: *3 write old buf t:1 f:0 01A1A020, pos 01A1A020, size: 160 file: 0, size: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 write old buf t:1 f:0 01A18FB0, pos 01A19017, size: 141 file: 0, size: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 write new buf t:0 f:0 00000000, pos 00000000, size: 0 file: 0, size: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 http write filter: l:1 f:0 s:301
2019/09/26 11:47:57 [debug] 22194#22194: *3 http write filter limit 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 malloc: 01A7FEF8:16384
2019/09/26 11:47:57 [debug] 22194#22194: *3 SSL buf copy: 160
2019/09/26 11:47:57 [debug] 22194#22194: *3 SSL buf copy: 141
2019/09/26 11:47:57 [debug] 22194#22194: *3 SSL to write: 301
2019/09/26 11:47:57 [debug] 22194#22194: *3 SSL_write: 301
2019/09/26 11:47:57 [debug] 22194#22194: *3 http write filter 00000000
2019/09/26 11:47:57 [debug] 22194#22194: *3 http copy filter: 0 "/seafile?"
2019/09/26 11:47:57 [debug] 22194#22194: *3 http finalize request: 0, "/seafile?" a:1, c:1
2019/09/26 11:47:57 [debug] 22194#22194: *3 set http keepalive handler
2019/09/26 11:47:57 [debug] 22194#22194: *3 http close request
2019/09/26 11:47:57 [debug] 22194#22194: *3 http log handler
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A18FB0
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A4F9C0, unused: 8
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A19FD0, unused: 3277
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A86460
2019/09/26 11:47:57 [debug] 22194#22194: *3 hc free: 00000000 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 hc busy: 00000000 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A7FEF8
2019/09/26 11:47:57 [debug] 22194#22194: *3 tcp_nodelay
2019/09/26 11:47:57 [debug] 22194#22194: *3 reusable connection: 1
2019/09/26 11:47:57 [debug] 22194#22194: *3 event timer add: 14: 65000:1828279523
2019/09/26 11:47:57 [debug] 22194#22194: *3 http keepalive handler
2019/09/26 11:47:57 [debug] 22194#22194: *3 malloc: 01A86460:1024
2019/09/26 11:47:57 [debug] 22194#22194: *3 SSL_read: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 SSL_get_error: 6
2019/09/26 11:47:57 [debug] 22194#22194: *3 peer shutdown SSL cleanly
2019/09/26 11:47:57 [info] 22194#22194: *3 client 2a03:567:1::17 closed keepalive connection
2019/09/26 11:47:57 [debug] 22194#22194: *3 close http connection: 14
2019/09/26 11:47:57 [debug] 22194#22194: *3 SSL_shutdown: 1
2019/09/26 11:47:57 [debug] 22194#22194: *3 event timer del: 14: 1828279523
2019/09/26 11:47:57 [debug] 22194#22194: *3 reusable connection: 0
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A86460
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 00000000
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A38280, unused: 1
2019/09/26 11:47:57 [debug] 22194#22194: *3 free: 01A389D0, unused: 40

I already read the faq from the manuals and and deleted the seahub cache directory as stated in there.

They also say:

It is mostly likely some required Python packages of Seahub is not installed correctly.
You can check the detailed error messages in /var/log/nginx/seahub.error.log if you use Nginx.

But I get no errors in that file

I have no further ideas :frowning:
Help is very much appreciated

Thanks in advance

So as I couldn’t solve the issue I went on updating to 7.0.5. Than I realized my raspi still running on raspbian jessi needs a special build so I went to the newest version for which there is a build for jessie available beeing 7.0.4.

After that I ran into python dependency problems but finally I could fix them by python -m pip urllib3<=1.22. (the installed version was somehow too high to be compatible with python-requests).

Now things work again after many many hours of researching and debugging…