After the migration from version 10 to version 11, then to version 12, I realized that I cannot download individual files anymore neither from the Android client nor the WebUI. This was working properly in version 10.
Here is the seafhttp.access.log file. Notice that individual files do not work however I can still download a folder from the WebUI (which is first zipped). I find this strange but I don’t know if it is relevant. Currently, I use this as a workaround to download my files.
I am currently using the docker setup with image seafileltd/seafile-mc:12.0.11.
I use Traefik as a reverse proxy. I didn’t change any configuration on Traefik or Seafile expect the changes required at the OAuth2 level, as stated per the migration documentation.
Since version 12.0, the seaf-server component need to send internal requests to seahub component to check permissions.
The issue can be caused by a few different reasons:
ALLOWED_HOSTS configuration in seahub_settings.py does not include 127.0.0.1. You can either remove ALLOWED_HOSTS configuration or add 127.0.0.1 to ALLOWED_HOSTS.
This was indeed coming from ALLOWED_HOSTS.
Previously it was set to only my domain like so.
ALLOWED_HOSTS = ['.example.fr']
Hence, adding the loopback address fixes the download issue.
ALLOWED_HOSTS = ['.example.fr', '127.0.0.1']
I must say, having such flat 400 error is kind of disturbing according to the fix.
I would been expecting some 403 or 500 instead.
Also, I’ve re-read the upgrade notes for v12 and I did not see anything related to the need to have now 127.0.0.1 in the configuration changes section.
Anyway, thanks for your help and the quick response.
I have added 127.0.0.1 to the ALLOWED_HOSTS in the seahub_settings.py.
I have added JWT_PRIVATE_KEY to the .env file before upgrading from seafile 11 to seafile 12. However later I have changed that JWT_PRIVATE_KEY because of an error on my part.
And I am still getting this error.
Might this be a problem that I have changed the JWT_PRIVATE_KEY?
Further more I can’t figure it out I can’t find something helpfull in the logs.