Seafile pro server not working after upgrade to 7.1.5

Seafile Server Pro is not working after Upgrade from 7.0.x to 7.1.x.

I have been trying three times in the last two months to upgrade to the latest version, 7.1.3 and 7.1.5 and it always fails.

The underlying system in use is Ubuntu 18.04.4 LTS.

# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic

# python --version
Python 2.7.17
# python3 --version
Python 3.6.9

After upgrading all packages with apt and all python packages with pip3 the current error is this:

2020-07-08 18:41:25,201 [ERROR] seahub.views:1132 react_fake_view [Errno 2] No such file or directory
2020-07-08 18:41:25,201 [ERROR] seahub.views:1140 react_fake_view [Errno 2] No such file or directory
2020-07-08 18:41:26,421 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /api/v2.1/repos/
Traceback (most recent call last):
  File "/opt/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/pysearpc/", line 88, in _get_transport
transport = self._pool.get(False)
  File "/usr/lib/python3.6/", line 161, in get
raise Empty

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/core/handlers/", line 41, in inner
response = get_response(request)
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/core/handlers/", line 249, in _legacy_get_response
response = self._get_response(request)
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/core/handlers/", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/core/handlers/", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/views/decorators/", line 58, in wrapped_view
return view_func(*args, **kwargs)
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/django/views/generic/", line 68, in view
return self.dispatch(request, *args, **kwargs)
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/rest_framework/", line 505, in dispatch
response = self.handle_exception(exc)
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/rest_framework/", line 465, in handle_exception
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/rest_framework/", line 476, in raise_uncaught_exception
raise exc
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/thirdpart/rest_framework/", line 502, in dispatch
response = handler(request, *args, **kwargs)
  File "/opt/seafile/seafile-pro-server-7.1.5/seahub/seahub/api2/endpoints/", line 90, in get
  File "/opt/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/seaserv/", line 151, in get_owned_repo_list
start, limit)
  File "/opt/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/pysearpc/", line 126, in newfunc
ret_str = self.call_remote_func_sync(fcall_str)
  File "/opt/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/pysearpc/", line 100, in call_remote_func_sync
transport = self._get_transport()
  File "/opt/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/pysearpc/", line 90, in _get_transport
transport = self._create_transport()
  File "/opt/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/pysearpc/", line 83, in _create_transport
  File "/opt/seafile/seafile-pro-server-7.1.5/seafile/lib/python3.6/site-packages/pysearpc/", line 47, in connect
FileNotFoundError: [Errno 2] No such file or directory

Did anybody in here did actually get version 7.1.x running without errors?

Any help to resolve this? Can it be so difficult to upgrade the seafile pro server, which is being paid for?

I am reverting back to the snapshot of v7.0.x, so we can use the system again…

Every time this error occurs it inevitably comes down to a file permission issue. It’s very easy when untarring and copying files that permissions and ownership are improperly set.

The error itself is saying it can’t find a file - either because it does not exist, or the account running Seafile does not have permission to find the file.

Run a chown -R [user]:[group] on the new directories.

1 Like

Issue resolved.

THX @erudewriter

I had not been using the seafile user where appropriate, specifically when untaring the archive…

Additionally I had been using an old version of the manual at:
https:// seafile.gitbook. io/seafile-server-manual/deploying-seafile-under-linux/upgrade-seafile-server
https:// seafile.gitbook. io/seafile-server-manual/deploying-seafile-under-linux/upgrade-seafile-server/upgrade-notes
while the new version is more precise and updated:
https:// download.seafile. com/published/seafile-manual/upgrade/
https:// download.seafile. com/published/seafile-manual/upgrade/