Seahub not Starting after Crash

seahub

#1

Hi. I have a Community Edition of Seafile (version 6.3.4) running on Raspbian Stretch for a couple of months with no issues. A view days ago, while uploading a large file via the browser ui, the seahub service crashed.

Since then, erverytime i try to start seahub, it fails with:

LC_ALL is not set in ENV, set to en_US.UTF-8                                                                            
seafile-server-latest/seahub.sh: line 208: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF- 
No such file or directory                                                                                                            
Starting seahub at port 8000 ...                                                                                        
Error:Seahub failed to start.                                                                                           
Please try to run "./seahub.sh start" again

I’ve looked in all the logs and they are all empty (nginx and seafile). I also set DEBUG=true in seahub_settings.py, with no result. I’ve searched this forum and found similar sounding issues but no definitive approach to diagnosing the problem.

Any ideas where I go from here? Thanks in advance


#2

Hi IgnatzMcJockel,

please try the following trick: try to start seahub with fastcgi.
seahub.sh start-fastcgi

Even if fastcgi is not supported anymore there are more error messages visible than without it. If you know what the problem is, solve it and then start seahub again without fastcgi.

Best regards
Christoph


#3

Thank you for the fast advice :slight_smile:

i tried and got:

LC_ALL is not set in ENV, set to en_US.UTF-8                                                                                                                                                          
./seahub.sh: line 208: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or 
directory                                                                                      
Starting seahub (fastcgi) at 127.0.0.1:8000 ...                                                                                                                                                       
Traceback (most recent call last):                                                                                                                                                                      
File "/home/pi/seafile/seafile-server-latest/seahub/manage.py", line 10, in <module>                                                                                                                    
execute_from_command_line(sys.argv)                                                                                                                                                                 
File "/home/pi/seafile/seafile-server-latest/seahub/thirdpart/Django-1.11.15- 
py2.7.egg/django/core/management/__init__.py", line 364, in execute_from_command_line                                      
utility.execute()                                                                                                                                                                                   
File "/home/pi/seafile/seafile-server-latest/seahub/thirdpart/Django-1.11.15- 
py2.7.egg/django/core/management/__init__.py", line 308, in execute                                                        
settings.INSTALLED_APPS                                                                                                                                                                             
File "/home/pi/seafile/seafile-server-latest/seahub/thirdpart/Django-1.11.15- 
py2.7.egg/django/conf/__init__.py", line 56, in __getattr__                                                                
self._setup(name)                                                                                                                                                                                   
File "/home/pi/seafile/seafile-server-latest/seahub/thirdpart/Django-1.11.15- 
py2.7.egg/django/conf/__init__.py", line 41, in _setup                                                                     
self._wrapped = Settings(settings_module)                                                                                                                                                           
File "/home/pi/seafile/seafile-server-latest/seahub/thirdpart/Django-1.11.15- 
py2.7.egg/django/conf/__init__.py", line 110, in __init__                                                                  mod = 
importlib.import_module(self.SETTINGS_MODULE)                                                                                                                                                 
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module                                                                                                                              
__import__(name)                                                                                                                                                                                    
File "/home/pi/seafile/seafile-server-latest/seahub/seahub/__init__.py", line 3, in <module>                                                                                                            
from handlers import repo_created_cb, repo_deleted_cb, clean_up_repo_trash_cb                                                                                                                       
File "/home/pi/seafile/seafile-server-latest/seahub/seahub/handlers.py", line 4, in <module>                                                                                                            
import settings                                                                                                                                                                                     
File "/home/pi/seafile/seafile-server-latest/seahub/seahub/settings.py", line 763, in <module>                                                                                                          
import seahub_settings                                                                                                                                                                              
File "/home/pi/seafile/conf/seahub_settings.py", line 10, in <module>                                                                                                                                   
DEBUG=true                                                                                                                                                                                        
NameError: name 'true' is not defined

after removing the DEBUG=true from seahub_settings.py and running with fastcgi again i got:

LC_ALL is not set in ENV, set to en_US.UTF-8                                                                                                                                                          
./seahub.sh: line 208: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or 
directory                                                                                      
Starting seahub (fastcgi) at 127.0.0.1:8000 ...                                                                                                                                                       
Unknown command: 'runfcgi'                                                                                                                                                                            
Type 'manage.py help' for usage.                                                                                                                                                                      
Error:Seahub failed to start. 

do i have to setup something to use fastcgi ?


#4

Hi Ignatz,
please try again to start without fastcgi:
seahub.sh start

Now it should work because you solved the problem with the wrong debug parameter.
Best regards
Christoph


#5

Hi Christoph,
unfortunately not…

seahub.sh start

still results in:

LC_ALL is not set in ENV, set to en_US.UTF-8                                                                                                                                                          
./seahub.sh: line 208: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or 
directory                                                                                      
Starting seahub at port 8000 ...                                                                                                                                                                      
Error:Seahub failed to start.                                                                                                                                                                         
Please try to run "./seahub.sh start" again