You are not logged in.

#76 2015-10-05 08:15:39

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,845

Re: Reflector reborn

karol wrote:

Which version are you using? 2014.11-2 ?
https://projects.archlinux.org/svntogit … a04c649232

64 bit here too and yes was still at 2014.11.2 and using Xyne's x86_64 repo.
That's still at 2014.11-2 and reports an invalid signature.

However I've just discovered that I had that repo above community in the pacman.conf file. Switching them round, I now get the Community version of Reflector, which has been updated and works.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#77 2015-10-06 19:26:25

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,410
Website

Re: Reflector reborn

Sorry, I haven't had time to update my binary repo in a while. I plan to rebuild everything within an hour or two.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#78 2015-10-06 20:28:14

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,845

Re: Reflector reborn

Speaking for myself at least, no problem, but thanks for the updates.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#79 2015-11-21 18:45:22

Mikaela
Member
Registered: 2015-11-21
Posts: 1

Re: Reflector reborn

I am getting this error,

error: failed to retrieve mirror data: (<urlopen error [Errno -2] Name or service not known>)

. I am not sure when it started, but I noticed it today.


Reflector 2014.11-2, DNS works with everything else (DNSSEC validating Unbound).

nameserver ::1
nameserver 127.0.0.1
#nameserver 2001:4860:4860::8888
#nameserver 8.8.4.4
options edns0
search mikaela.info

EDIT: Fixed formatting.

EDIT2: The command is

/usr/bin/reflector --protocol https --latest 30 --number 20 --sort rate --save /etc/pacman.d/mirrorlist

EDIT3: After testing without Unbound (those Google DNS addresses) it worked and now it also works with Unbound.

Last edited by Mikaela (2015-11-21 19:00:16)

Offline

#80 2016-12-01 10:04:06

Red54
Member
Registered: 2016-12-01
Posts: 1

Re: Reflector reborn

Please remove 'completion_pct' check!

/usr/lib/python3.5/site-packages/Reflector.py:
189: # Filter incomplete mirrors and mirrors that haven't synced.
190: mirrors = list(m for m in mirrors if m['last_sync'] and m['completion_pct'] == 1.0)

According to https://www.archlinux.org/mirrors/status/

The 'completion_pct' is :
The number of mirror checks that have successfully connected and disconnected from the given URL. If this is below 100%, the mirror may be unreliable.

If 'completion_pct' != 1.0, it just shows the mirror is not 100% that the archlinux mirror check server can connect to it, and has nothing business to show whether it is incomplete or has synced, and also has nothing business to show whether the mirror is 100% that the users in the country of the mirror can connected to it because the archlinux mirror check server it not in that country!

Offline

#81 2016-12-03 19:26:37

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,410
Website

Re: Reflector reborn

I have added a new filter option: --completion-percent
Any mirrors with a completion percent below the given value will be filtered. The default value is 100.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#82 2019-03-02 12:09:36

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,410
Website

Re: Reflector reborn

I've refactored most of the code while maintaining backwards compatibility (for now) following an unexpected reaction to the code in another thread. I'll push the update to [community] after some more testing. It should be available in my repo in a few minutes.

There are three new filter options as well: --isos, --ipv4 and --ipv6


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#83 2019-03-07 18:22:44

Kudlaty
Member
Registered: 2013-04-05
Posts: 6

Re: Reflector reborn

after update:

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.7/site-packages/Reflector.py", line 915, in <module>
    run_main(configure_logging=True)
  File "/usr/lib/python3.7/site-packages/Reflector.py", line 909, in run_main
    main(args, **kwargs)
  File "/usr/lib/python3.7/site-packages/Reflector.py", line 881, in main
    mirrors = list(mirrors)
  File "/usr/lib/python3.7/site-packages/Reflector.py", line 573, in sort
    yield from sort(mirrors, n_threads=self.threads, **kwargs)
  File "/usr/lib/python3.7/site-packages/Reflector.py", line 176, in sort
    rates = rate(mirrors, n_threads=n_threads)
  File "/usr/lib/python3.7/site-packages/Reflector.py", line 308, in rate
    logger.info(fmt.format(url, kibps, dt))
TypeError: unsupported format string passed to NoneType.__format__

Offline

#84 2019-03-07 22:23:46

Kudlaty
Member
Registered: 2013-04-05
Posts: 6

Re: Reflector reborn

i think the problem is in rate_http function in except, where you return dt as None

Offline

#85 2019-03-08 02:09:41

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 6,410
Website

Re: Reflector reborn

Kudlaty wrote:

i think the problem is in rate_http function in except, where you return dt as None

Yep. Thanks for reporting the issue. A fix has been pushed to the repos.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB