Cannot change files via web interface after upgrading to Seafile 8.0.3

Hi there, long time user here!

After upgrading from Seafile 7.1.5 to Seafile 8.0.3, any changes from the user interface (deleting files, creating new files, etc.) are getting a HTTP 403 and the message “Permission Denied”.

The seahub.log file contains the same information:
[WARNING] django.request:222 log_response Forbidden: /api/v2.1/repos/11111111-1111-1111-1111-1111111111111/file/ (repo-id replaced)

Changing files in the same folder by a connected seafile client works. The /opt/seafile/seafile-data/repo/… directories are writable by the seafile server user as expected.

What to do?

Check this post. Is it the same error?

I had to add this to my Nginx configuration to get things going again:

proxy_set_header        Cookie $http_cookie;
1 Like

Unfortunately not, although it seems to be the same issue. My nginx location configuration looks the same as in the other posts. I’ve added the proxy_set_header Cookie $http_cookie; to the location and omitted the proxy_cookie_path ~^/. “~^/. HTTPOnly; Secure”;, because it also resulted in a redirect loop. I’ve logged in and out again and deleted all cookies and storage in between - no change to the buggy behavior.

My setup is pretty standard - seafile and nginx - with the default nginx configuration as shown in the docs. Any further hints on how to proceed debugging this problem?

Are you referring to browser cache here?

yes - just to be sure that no lingering Cookies with the wrong security settings are present.

Just for reference what OS are you running? Is this Seafile CE or Pro; or Docker?

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:        20.04
Codename:       focal

Seafile CE, direct host-installation (no Docker).

And I noticed that WebDAV does not work anymore as well.