You are not logged in.

#1 2020-01-22 04:20:33

duyinthee
Member
Registered: 2015-06-14
Posts: 123

[SOLVED] reflector list only one line of arch repo

Hi, all.

I always use reflector to update my /etc/pacman.d/mirrorlist file using

sudo reflector --verbose -l 20 -f 15 --sort rate --save /etc/pacman.d/mirrorlist

for instance.
According to the command, there always be 15 lines of repo in the mirrorlist file.

It is always as expected. But this morning, when I did this, I get only one line in the pacman's mirrorlist file.

$ cat /etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --verbose -l 20 -f 15 --sort rate --save /etc/pacman.d/mirrorlist
# When:       2020-01-22 04:06:03 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2020-01-22 04:06:01 UTC
# Last Check: 2020-01-22 03:09:23 UTC

Server = https://mirrors.niyawe.de/archlinux/$repo/os/$arch

Reflector also verbose only one line like this

sudo reflector --verbose -l 20 -f 15 --sort rate --save /etc/pacman.d/mirrorlist
[sudo] password for msh: 
[2020-01-22 10:36:01] INFO: rating https://mirrors.niyawe.de/archlinux/
[2020-01-22 10:36:03] INFO: Server                                          Rate       Time
[2020-01-22 10:36:03] INFO: https://mirrors.niyawe.de/archlinux/    177.36 KiB/s     0.76 s

Totally no problem with other operation. Pacman's syncing repos and downloading packages operations are even smoother than before, I think.

Is there any change in Arch Repo system or reflector's performing methods?

Last edited by duyinthee (2020-01-23 06:51:43)

Offline

#2 2020-01-22 15:34:19

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 438

Re: [SOLVED] reflector list only one line of arch repo

Yeah, there's something going on..

I have reflector configured as a service that I start as a one-shot.

in the second example I ran the same command manually that is executed when started as a service (with the exception of --verbose).

journal -xe

-- The unit reflector.service has entered the 'failed' state with result 'exit-code'.
Jan 22 10:23:56 carlos systemd[1]: Failed to start Pacman mirrorlist update.
-- Subject: A start job for unit reflector.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit reflector.service has finished with a failure.
--
-- The job identifier is 622 and the job result is failed.
Jan 22 10:23:56 carlos audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=reflector comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jan 22 10:23:56 carlos sudo[815]: pam_unix(sudo:session): session closed for user root
Jan 22 10:23:56 carlos kernel: audit: type=1130 audit(1579706636.724:83): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=reflector comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Jan 22 10:23:56 carlos kernel: audit: type=1106 audit(1579706636.724:84): pid=815 uid=0 auid=1000 ses=1 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:23:56 carlos kernel: audit: type=1104 audit(1579706636.728:85): pid=815 uid=0 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:23:56 carlos audit[815]: USER_END pid=815 uid=0 auid=1000 ses=1 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:23:56 carlos audit[815]: CRED_DISP pid=815 uid=0 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:24:13 carlos audit[820]: USER_ACCT pid=820 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="jbarks" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:24:13 carlos kernel: audit: type=1101 audit(1579706653.641:86): pid=820 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="jbarks" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:24:23 carlos audit[821]: USER_ACCT pid=821 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="jbarks" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:24:23 carlos sudo[821]:   jbarks : TTY=pts/0 ; PWD=/home/jbarks ; USER=root ; COMMAND=/usr/bin/journalctl -xe
Jan 22 10:24:23 carlos audit[821]: CRED_REFR pid=821 uid=0 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:24:23 carlos audit[821]: USER_START pid=821 uid=0 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:24:23 carlos sudo[821]: pam_unix(sudo:session): session opened for user root by jbarks(uid=0)
Jan 22 10:24:23 carlos kernel: audit: type=1101 audit(1579706663.441:87): pid=821 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="jbarks" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:24:23 carlos kernel: audit: type=1110 audit(1579706663.444:88): pid=821 uid=0 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_unix,pam_permit,pam_env acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Jan 22 10:24:23 carlos kernel: audit: type=1105 audit(1579706663.444:89): pid=821 uid=0 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'

Manually running reflector..

[jbarks@carlos ~]$ sudo reflector --verbose --country 'United States' --protocol https --latest 30 --number 20 --sort rate --save /etc/pacman.d/mirrorlist
error: no mirrors found
[jbarks@carlos ~]$ ping archlinux.org
PING archlinux.org (138.201.81.199) 56(84) bytes of data.
64 bytes from apollo.archlinux.org (138.201.81.199): icmp_seq=1 ttl=49 time=154 ms
64 bytes from apollo.archlinux.org (138.201.81.199): icmp_seq=2 ttl=49 time=152 ms
64 bytes from apollo.archlinux.org (138.201.81.199): icmp_seq=3 ttl=49 time=152 ms
^C
--- archlinux.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2009ms
rtt min/avg/max/mdev = 151.682/152.823/154.351/1.123 ms
[jbarks@carlos ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra                     1643.1 KiB  3.32 MiB/s 00:00 [##############################] 100%
 community                    4.8 MiB  2.86 MiB/s 00:02 [##############################] 100%
:: Starting full system upgrade...
warning: efl: local (1.23.3-1) is newer than extra (1.23.2-1)
resolving dependencies...
looking for conflicting packages...

Package (2)           Old Version  New Version  Net Change  Download Size

extra/perl-timedate   2.30-6       2.31-1         0.00 MiB       0.04 MiB
extra/python-urllib3  1.25.7-1     1.25.8-1       0.00 MiB       0.16 MiB

Total Download Size:   0.20 MiB
Total Installed Size:  0.72 MiB

I think it did actually update mirrorlist when It was started as a service..

This is from /etc/pacman.d/mirrorlist

# With:       reflector --country 'United States' --protocol https --latest 30 --number 20 --sort rate --save /etc/pacman.d/mirrorlist
# When:       2020-01-22 01:29:34 UTC
# From:       [url]https://www.archlinux.org/mirrors/status/json/[/url]
# Retrieved:  2020-01-22 01:29:31 UTC
# Last Check: 2020-01-22 01:23:31 UTC

Last edited by Zod (2020-01-22 15:45:19)

Offline

#3 2020-01-22 15:56:45

progandy
Member
Registered: 2012-05-17
Posts: 3,937

Re: [SOLVED] reflector list only one line of arch repo

For some reason all arch mirrors have a completion status of less than 100% today. reflector ignores those by default, but you could change that with --completion-percent.

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

 % reflector -h
...
  --completion-percent [0-100]
                        Set the minimum completion percent for the returned mirrors. Check the mirrorstatus webpage for the meaning of
                        this parameter. Default value: 100.0.
...

Last edited by progandy (2020-01-22 15:57:55)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2020-01-22 16:05:49

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 438

Re: [SOLVED] reflector list only one line of arch repo

Yeah, I set completion-percent to 90 and it finished.

################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --completion-percent 90 --country 'United States' --protocol https ->
# When:       2020-01-22 16:04:16 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2020-01-22 16:01:38 UTC
# Last Check: 2020-01-22 15:45:38 UTC

Server = https://mirror.kaminski.io/archlinux/$repo/os/$arch
Server = https://mirror.pit.teraswitch.com/archlinux/$repo/os/$arch
Server = https://ord.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = https://iad.mirrors.misaka.one/archlinux/$repo/os/$arch
Server = https://arch.mirror.square-r00t.net/$repo/os/$arch
Server = https://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirror.dal10.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://reflector.luehm.com/arch/$repo/os/$arch
Server = https://mirror.mia11.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
Server = https://mirrors.rit.edu/archlinux/$repo/os/$arch
Server = https://mirror.lty.me/archlinux/$repo/os/$arch
Server = https://iad.mirror.rackspace.com/archlinux/$repo/os/$arch
Server = https://mirror.sfo12.us.leaseweb.net/archlinux/$repo/os/$arch

Last edited by Zod (2020-01-22 16:08:11)

Offline

#5 2020-01-22 21:39:12

souravdas142
Member
Registered: 2020-01-22
Posts: 2

Re: [SOLVED] reflector list only one line of arch repo

does --completion-percent [0-100] means completion percent greater equal of some value? or exactly same as the value?

Offline

#6 2020-01-22 21:52:09

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 438

Re: [SOLVED] reflector list only one line of arch repo

In my experience it is equal to or greater than.

Offline

#7 2020-01-22 22:18:16

progandy
Member
Registered: 2012-05-17
Posts: 3,937

Re: [SOLVED] reflector list only one line of arch repo

souravdas142, please read everything I quoted.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 2020-01-22 22:48:34

Neurognostic
Member
Registered: 2019-12-27
Posts: 3

Re: [SOLVED] reflector list only one line of arch repo

progandy wrote:

For some reason all arch mirrors have a completion status of less than 100% today. reflector ignores those by default, but you could change that with --completion-percent.

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

 % reflector -h
...
  --completion-percent [0-100]
                        Set the minimum completion percent for the returned mirrors. Check the mirrorstatus webpage for the meaning of
                        this parameter. Default value: 100.0.
...

Thanks for noticing the completion percent, here I was trying to debug the module. Using 98% worked for me.

reflector --completion-percent=98

Last edited by Neurognostic (2020-01-22 22:50:37)

Offline

#9 2020-01-23 06:51:20

duyinthee
Member
Registered: 2015-06-14
Posts: 123

Re: [SOLVED] reflector list only one line of arch repo

Thanks all for sharing knowledge. I have never known about --completion-percent of reflector. I have learnt one thing from this thread.

Even if I read that description of --completion-percent on my own, I will not understand that.
Now, I understood well.
Thanks. You guys are very helpful.

Offline

#10 2020-01-23 11:40:10

souravdas142
Member
Registered: 2020-01-22
Posts: 2

Re: [SOLVED] reflector list only one line of arch repo

progandy wrote:

souravdas142, please read everything I quoted.

Yes, thanks a lot, I understand. The issue gone.

Offline

Board footer

Powered by FluxBB