seahub wont start

1,237 views
Skip to first unread message

Jonluc Proud

unread,
Feb 21, 2014, 7:28:04 AM2/21/14
to sea...@googlegroups.com
I cant get seahub starting here the error for it

./seahub.sh start

Starting seahub at port 8000 ...
Loading ccnet config from /var/Files/ccnet
Loading seafile config from /var/Files/seafile-data
Traceback (most recent call last):
  File "/var/Files/seafile-pro-server-2.1.4-1/seahub/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/var/Files/seafile-pro-server-2.1.4-1/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/var/Files/seafile-pro-server-2.1.4-1/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/Files/seafile-pro-server-2.1.4-1/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/management/__init__.py", line 263, in fetch_command
    app_name = get_commands()[subcommand]
  File "/var/Files/seafile-pro-server-2.1.4-1/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/management/__init__.py", line 109, in get_commands
    apps = settings.INSTALLED_APPS
  File "/var/Files/seafile-pro-server-2.1.4-1/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/conf/__init__.py", line 53, in __getattr__
    self._setup(name)
  File "/var/Files/seafile-pro-server-2.1.4-1/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/conf/__init__.py", line 48, in _setup
    self._wrapped = Settings(settings_module)
  File "/var/Files/seafile-pro-server-2.1.4-1/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/conf/__init__.py", line 134, in __init__
    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'seahub.settings' (Is it on sys.path?): No module named pkg_resources
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again


Hope you can help

Jonny

Shuai Lin

unread,
Feb 21, 2014, 9:10:20 AM2/21/14
to sea...@googlegroups.com
Hi,

Is this the first time you start your seafile server? Or you used to be able to start it, but  failed to start it this time? If so, what other operations did you do on your system ?


--
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/groups/opt_out.

Jonluc Proud

unread,
Feb 21, 2014, 9:27:34 AM2/21/14
to sea...@googlegroups.com
Was running 2.1.3 and I did the upgrade wiki for 2.1.4 and it stopped working. I cant even run the old server package.

Jonluc Proud

unread,
Feb 22, 2014, 4:56:08 PM2/22/14
to sea...@googlegroups.com
Any thing else you need?

Shuai Lin

unread,
Feb 22, 2014, 8:50:54 PM2/22/14
to sea...@googlegroups.com
 The error message says:

No module named pkg_resources

It seems the "setuptools" python package is not available on your server. It must have been there, otherwise you should not have been able to start seafile server 2.1.3. But somehow it seems to have been removed from your system.

What's your Linux distro? To install setuptools,

On Debian/Ubntu: 

sudo apt-get install python-setuptools

On CentOS/RHEL: 

sudo yum install python-distribute




On Sun, Feb 23, 2014 at 5:56 AM, Jonluc Proud <mrjonl...@gmail.com> wrote:
Any thing else you need?

Jonluc Proud

unread,
Feb 24, 2014, 6:51:28 AM2/24/14
to sea...@googlegroups.com
Running ubuntu 12.04. just tryed to install that package and its already installed

~# apt-get install python-setuptools
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-setuptools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Shuai Lin

unread,
Feb 24, 2014, 10:07:09 AM2/24/14
to sea...@googlegroups.com
Ok. Can you run this command and see what's the output?

python -c "import pkg_resources"

Jonluc Proud

unread,
Feb 24, 2014, 5:00:08 PM2/24/14
to sea...@googlegroups.com
got an errror so i reinstall package. then got no output and seahub still wont start

Shuai Lin

unread,
Feb 24, 2014, 9:20:46 PM2/24/14
to sea...@googlegroups.com
What's the error message of seahub this time?

Jonluc Proud

unread,
Feb 25, 2014, 8:28:26 AM2/25/14
to sea...@googlegroups.com
Heres teh error same one


Starting seahub at port 8000 ...
Traceback (most recent call last):
  File "/var/Files/seafile-pro-server-2.1.5/seahub/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/var/Files/seafile-pro-server-2.1.5/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/management/__init__.py", line 453, in execute_from_command_line
    utility.execute()
  File "/var/Files/seafile-pro-server-2.1.5/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/Files/seafile-pro-server-2.1.5/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/management/__init__.py", line 263, in fetch_command
    app_name = get_commands()[subcommand]
  File "/var/Files/seafile-pro-server-2.1.5/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/core/management/__init__.py", line 109, in get_commands
    apps = settings.INSTALLED_APPS
  File "/var/Files/seafile-pro-server-2.1.5/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/conf/__init__.py", line 53, in __getattr__
    self._setup(name)
  File "/var/Files/seafile-pro-server-2.1.5/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/conf/__init__.py", line 48, in _setup
    self._wrapped = Settings(settings_module)
  File "/var/Files/seafile-pro-server-2.1.5/seahub/thirdpart/Django-1.5.1-py2.6.egg/django/conf/__init__.py", line 134, in __init__
    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
ImportError: Could not import settings 'seahub.settings' (Is it on sys.path?): No module named seaserv
Error:Seahub failed to start.


Shuai Lin

unread,
Feb 25, 2014, 8:52:00 AM2/25/14
to sea...@googlegroups.com
Note the last few words in the error message:

 No module named seaserv

This message should not appear if you have a correct installation.

What else did you do recently that may appear seafile server?

Regards,
Lin

Jonluc Proud

unread,
Feb 25, 2014, 5:24:47 PM2/25/14
to sea...@googlegroups.com
I have not changed anything thats the problem :(

Shuai Lin

unread,
Feb 25, 2014, 9:24:11 PM2/25/14
to sea...@googlegroups.com
Can you figure out why the previously mentioned python-setuptools package was broken?

Jonluc Proud

unread,
Feb 28, 2014, 7:04:26 AM2/28/14
to sea...@googlegroups.com
not sure. its wierd. but i reinstalled it so its fixed now but seafile wont start

Shuai Lin

unread,
Feb 28, 2014, 7:34:43 AM2/28/14
to sea...@googlegroups.com
Does the folder "/var/Files/seafile-pro-server-2.1.5/seafile/lib64/python2.6/site-packages/seaserv/" exists?

(If your server is 32 bit, it's "/var/Files/seafile-pro-server-2.1.5/seafile/lib/python2.6/site-packages/seaserv/" )

Jonluc Proud

unread,
Feb 28, 2014, 7:38:45 AM2/28/14
to sea...@googlegroups.com
yes they do and they got files in thier

Jonluc Proud

unread,
Mar 11, 2014, 7:05:26 AM3/11/14
to sea...@googlegroups.com
BUMP!!

in...@robin-wenzel.de

unread,
Jan 9, 2015, 5:13:08 AM1/9/15
to sea...@googlegroups.com
export PYTHON=/usr/bin/python2.6
did the trick for me
Reply all
Reply to author
Forward
0 new messages