ZIP download trouble

8.0.5 server is installed on debian (this problem also have been on a previous version of SF). Server on a virtual machine, from host to the VM with setup of proxy. The problem with downloading ZIP - directories and files of small size are downloaded well, directories larger than 5Mb - the message “Packing… 0%” hangs. Temporary zip files are created in the httptemp directory well.
If in browser (Firefox) call development panel by pressing F12 - packing goes step by step and all works correctly. If in browser switch off development panel, this problem appears again.
What settings should I try to modify? Any ideas?

Any ideas? I have updated server to 8.0.6, but nothing changes

I cannot reproduce your problem. I successfully downloaded ZIP files of various sizes in excess of 5MB. The largest ZIP I created was 80MB. I got an internal server error when trying to ZIP-download a 1GB folder.

I recorded a video from the screen, at 11 seconds of the video I click F12 in the browser and the process ends successfully. If you do not press anything, then it will hang.
Youtube Link

Thanks for the video. I believed you without it.

Yet, I still cannot reproduce the problem.

Have you checked your server settings? Nginx and seaf-server?

I have Seafile installed on the Debian 10 virtual machine with Apache, on the host Debian 10 with Apache (10.57.219.192) too. From the host goes proxy to the virtual machine. Seafile server installed on new virtual machine according to official documentation, IP 192.168.56.105.

Host configuration Apache:

<VirtualHost 10.57.219.192:80>
ServerAdmin info@groupvm.ru
ServerName cl3.groupvm.ru
RewriteEngine On
RewriteCond %{SERVER_PORT} ^80$ [OR]
RewriteCond %{HTTP} =on
RewriteRule ^(.*)$ https://cl3.groupvm.ru$1 [R=301,L]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost 10.57.219.192:443>
ServerAdmin info@groupvm.ru
ServerName  cl3.groupvm.ru
AllowEncodedSlashes On
SSLEngine on
Include /etc/letsencrypt/options-ssl-apache.conf
SSLProxyEngine On
SSLProxyVerify  none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLCertificateFile /etc/letsencrypt/live/cl3.groupvm.ru/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/cl3.groupvm.ru/privkey.pem
ProxyRequests On
ProxyPreserveHost On
ProxyVia full
ProxyPass        /  http://192.168.56.105/
ProxyPassReverse /  http://192.168.56.105/
</VirtualHost>
</IfModule>

Seafile Apache config:

<VirtualHost *:80>
ServerAdmin info@groupvm.ru
ServerName cl3.groupvm.ru
DocumentRoot /var/www/
Alias /media /home/sf/seafile-server-latest/seahub/media
AllowEncodedSlashes On
RewriteEngine On
<Location /media>
Require all granted
</Location>
ProxyPass /seafhttp http://127.0.0.1:8083
ProxyPassReverse /seafhttp http://127.0.0.1:8083
RewriteRule ^/seafhttp - [QSA,L]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
</VirtualHost>

seafile.conf:

[fileserver]
port = 8083
web_token_expire_time = 3600
worker_threads = 15
max_upload_size = 16000
max_download_dir_size = 16000
max_indexing_threads = 4
fixed_block_size = 2

Any suggestions, thanks

I took a look at your configuration and that looks good.

Have you tried with another browser? Just to rule out client side problems?

I have tried on last versions:
Firefox (works good only with development panel activated),
Opera (doesn’t work, stay on "Packing… 67%),
Chrome (works good only with development panel activated),
Edge (doesn’t work, stay on "Packing… 0%),
IE11 (web interface doesn’t work after login, blank screen)

Also i have tried on another PC, the problem still have.

Can you try Seafile Server 8.0.7. The new release contains a fix for ZIP downloads.

Thanks for the information, I will try as soon as the free version appears, because I use the community version and do not have a download link for the pro version.

1 Like

I have tried Seafile Server 8.0.7 Community edition, the problem was not solved. Also i have tried disable apache on Virtual Machine and test config with Apache only on host machine, but nothing changes.

I noticed that when creating an archive, there are GET requests for each step of archiving, the result of each request adds percentages to the progress window. Maybe there is some way to change the number of requests - for example, increase the duration of each request?

It turns out that downloading ZIP works well on a small amount of files, because the next request does not have time to create.


I apologize for my English, this is not my native language.

I have tried to disable Apache on the host machine and use Seahub directly on port 8000.
The problem was solved! :grinning:
But I lost https and the pretty URL.
From this it follows that the problem is at the Apache level,

any ideas? :thinking:

Use Nginx?!?!

https://manual.seafile.com/deploy/https_with_nginx/

Everything works well with nginx. This is a good intermediate solution, thanks!

I hope the developers will see this problem and in the future they will correct the manual for Apache, or at least give some recommendations.