I’m using seafile since 4.0.6 with debian wheezy and updated it up to 4.4.6 without any problems. Yesterday I updated my wheezy installation to Jessie (Debian 8) and leave seafile as it is. But I thought it might be good to update seafile to the newest version 6.2.5 (all i386 aka 32 bit) and run into trouble.
I run all upgrade scripts:
upgrade/upgrade_4.4_5.0.sh
upgrade/upgrade_5.0_5.1.sh
upgrade/upgrade_5.1_6.0.sh
upgrade/upgrade_6.0_6.1.sh
upgrade/upgrade_6.1_6.2.sh
All reported success for upgrade
Afterwards I stopped seafile (and hub) and tried to start it but it moans because file user is seafile and I started it as root. Then I started it as user seafile but seahub moaned about permissions under tmp. I deleted the folder under /tmp and than I was able to start seahub too.
But when I open the webpage (which worked with 4.4.6) It throwes an 502 error:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server
In the logs apache complains:
Fri Feb 16 22:26:17.954157 2018] [proxy_http:error] [pid 24829] (70007)The timeout specified has expired: [client 127.0.0.1:33170] AH01102: error reading status line from remote server 127.0.0.1:8000,
[Fri Feb 16 22:26:17.954230 2018] [proxy:error] [pid 24829] [client 127.0.0.1:33170] AH00898: Error reading from remote server returned by /,
So it seams to have a problem to connect to port 8000 on localhost.
Error log under runtime from seafile has size zero and everything on taht site looks fine - without any errors in any other log (seafile, seahub and so on).
All was running with Apache 2.4 and fastcgi without any problem before updating it.
Does anyone have any hints? Any comments or help is welcome! even how to downgrade to get access to the data…
AFAIK the 6.2 doesn’t use fastgci by default anymore, so you need to start seahub with command: start-fastcgi
Or replace the fastgci config on apache with:
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
seafile@server:/root$ /var/lib/seafile/haiwen/seafile-server-latest/seahub.sh start
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
seafile@server:/root$ /var/lib/seafile/haiwen/seafile-server-latest/seahub.sh start-fastcgi
LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub (fastcgi) at 127.0.0.1:8000 …
Seahub is started
Done.
And before with 4.4.6 everything worked like a charme. Quiet confusing…
Which database are you using? Or is seafile running 100% correctly? I think in your DB-System the DBs seahub-db and ccnet-db are missing. Could that be possible?
And it would be confusing when it works since four different versions but stops after successful upgrades to major release 6.
I’m able to connect both via telnet on localhost. is there any cli command to test if those daemons are working properly?
The only thing which changed is that I start both with user seafile instead of root (which does not work anymore because fileowner for data is seafile and release 6 is picky about that). I changed with chown -R the “installation” aka the unpacked tar ball to seafile.seafile to assure it is accessible for that user.
Moreover I tried adding the seafile group to www-data which runs apache 2.4 to assure access rights that way too. But it does not work either
The starnge thing is that all services started properly and no error in seafile or seahub was thrown. Just Apache gets no data as shown in the logs:
The timeout specified has expired: [client 127.0.0.1:34049] AH01102: error reading status line from remote server 127.0.0.1:8000
I decided to restore my Backups and revert to 4.4.6 which was successful. But I changed to Reverse proxy instead of FastCGI which is already an improvement.
Next Weekend I will start another try with an older 5.x version which I have downloaded already for a while.
Main problem seems to be that I couldn’t start seahub without fastcgi. I will strace it next time to figure out why it fails to start because the logs stay empty. If I get any further hints or reasons I will post them.