Clear OS always showing "Operation too slow. Less than 1 bytes/sec"

Have been trying to install clear os addon but nothing is working as i am facing this error on every mirror in the .repo file.

# yum install squid
http://mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on http://mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, **'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds'**)
Trying other mirror.
mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds'**)
Trying other mirror.
mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**')
Trying other mirror.
mirror2-houston.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-houston.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**')
Trying other mirror.
mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dallas.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'O**peration too slow. Less than 1 bytes/sec transfered the last 30 seconds'**)
Trying other mirror.
mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror2-dc.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror1.timburgess.net/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**')
Trying other mirror.
mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: [Errno 12] Timeout on mirror3-toronto.clearsdn.com/clearos/core/6/x86_64/repodata/primary.sqlite.bz2: (28, '**Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds**')
Trying other mirror.
**Error: failure: repodata/primary.sqlite.bz2 from clearos-core: [Errno 256] No more mirrors to try.**

How can i fix this.i am able to access repo through web,and it seems nothing wrong with the repo.Where can be the problem.

Tried yum clean all but it also didnt help.

Is there a way to fix it as i am not able to install any package in it.


There are yum parameters you can tweak to prevent the timeout error.

timeout=300 # default is 30
minrate=100 # default is 1000

However, if the rate you are achieving is really lower than 1000 and doesn't pick up later in the transfer (for example, a virus scanning proxy) then the transfer time for 1 megabyte would be on the order of a half hour or an hour. But, if you make the timeout long enough, at least it will finish ... eventually. If your transfer speed is less than 1B/s (as seems to be the default minrate with clearos) then your transfer will pretty much never finish anyway, unless hopefully it's a virus scanning proxy trickling data to you.

I'm on Fedora 19 and strangely the minrate setting never took, but by setting the timeout to 5 minutes, I was able to download 12 MB package file. The file transferred in 1:36, but was going under 200 B/s for most of that time and suddenly finished very fast (once the proxy virus scanner finished with it).

The idea is that the proxy will trickle your file at a very low rate to prevent connection timeouts while it does the virus scan, then transfer it at full rate once the file checks out. However, if the trickle rate is lower than yum's minrate, then you end up timing out anyway.


From man yum.conf:

minrate This sets the low speed threshold in bytes per second. If the server is sending data slower than this for at least timeout' seconds, Yum aborts the connection. The default is1000'.

timeout Number of seconds to wait for a connection before timing out. Defaults to 30 seconds. This may be too short of a time for extremely overloaded sites.


You can reduce minrate and/or increase timeoute. Just add/edit these parameters in /etc/yum.conf [main] section. For example:

[main]
...
minrate=1
timeout=300