Unhandled HTTP Redirect in Linux Client

Hi All,

I was using Seafile client on Ubuntu for quite some time, all worked well. Now I’ve configured nginx to use SSL. Web interface works fine over https. Also android client app works fine.

However ubuntu app behave strange. I have several libraries and all of them show green cloud tick. As soon as I add anything into that library, I get “Unhandled https redirect from server. Please check server configuration”.

The seafile.log shows this error:

[11/29/19 11:26:39] http-tx-mgr.c(929): libcurl failed to PUT pi.holub.pro/seafhttp/repo/d0ef0dca-8b78-493a-ba6c-ad92f7c50af5/commit/b58432fd359e4bbf92431a9b083a105c9356e2c9: Send failed since rewinding of the data stream failed.

My nginx configuration looks fine, also client should be connecting to https. What’s strange is that if I tell nginx to listen only on 443 (so no 80), the client complains that it can’t connect. To me it shows that the client is still somehow trying to connect to http version.

I’ve changed [11/29/19 11:26:39] http-tx-mgr.c(929): libcurl failed to PUT pi.holub.pro/seafhttp/repo/d0ef0dca-8b78-493a-ba6c-ad92f7c50af5/commit/b58432fd359e4bbf92431a9b083a105c9356e2c9: Send failed since rewinding of the data stream failed.

Also seahub_settings.py has https and ccnet.conf on server has https.

You can edit you local account to directly use https address.

I’m not sure what else should I do. The Server Address field in client already has https. Besides that I don’t see any other settings in my client.

A bit more info. I had the client also installed on my Windows machine. It was still pointing to http and I got the same error as on the linux client. When I changed server address on windows client to https, it started syncing again.
So this tells me that even though I see https:// in the server address on the linux client, something still wants to connect to http. I tried removing and adding the account in the client and that didn’t work either.

Do you use Seafile PE (with memcached) or Seafile CE? If the former, purge the memcached cache.

Turns out that I just had to reboot computer. After that I had to select sync folders again for all my libraries and HTTPS started working, weird

Glad to hear that you solved your problem. Please mark this post as solved.