On
sudo zypper dup
getting following error now:
Connection failed
Could not resolve host: ftp.byfly.by
Why it redirects updates to Belarusian mirror while it is inaccessible from Ukraine completely currently? What a stupid algorithm, why it can’t select some other mirror? How to change this? Is there some UI for this?
akontsevich:
On
sudo zypper dup
getting following error now:
Connection failed
Could not resolve host: ftp.byfly.by
Why it redirects updates to Belarusian mirror while it is inaccessible from Ukraine completely currently? What a stupid algorithm, why it can’t select some other mirror? How to change this? Is there some UI for this?
Hi
Try using mirrorcache instead, see MirrorCache - openSUSE Wiki
Or just pick a mirror to use from https://mirrors.opensuse.org/
YaST2 Software Repositories to modify.
What exact steps are? I do
sudo sed -i "s,http://download.opensuse.org,https://mirrorcache.opensuse.org,g" /etc/zypp/repos.d/*.repo
Do not like to do this manually for every repo. If a mirror stops to work again? Find mirrors and edit repos again? If I have several machines: repeat on every one?! It’s a hell! Any other ideas? Seems was some UI on installation step to select mirror? Or this exists only in other distros? I think suse should do this automatically: if a mirror is inaccessible - switch to another one. But it forces to access to wrong one again and again. This is stupid!
akontsevich:
What exact steps are? I do
sudo sed -i "s,http://download.opensuse.org,https://mirrorcache.opensuse.org,g" /etc/zypp/repos.d/*.repo
Do not like to do this manually for every repo. If a mirror stops to work again? Find mirrors and edit repos again? If I have several machines: repeat on every one?! It’s a hell! Any other ideas? Seems was some UI on installation step to select mirror? Or this exists only in other distros? I think suse should do this automatically: if a mirror is inaccessible - switch to another one. But it forces to access to wrong one again and again. This is stupid!
Hi
I just edited my repositories manually…
I use mirrorcache-us.opensuse.org I assumed yours would be mirrorcache-eu.opensuse.org
You can create a local repo cache and deploy to other machines, as in don’t delete the downloads… or use rsync and a local repo. A plethora of different ways to download once and deploy to many.
Exactly, and EU has a lot of mirrors but it always connect to the unreachable one in .by zone even with mirrorcache-eu .opensuse.org. Stupid! Need to fix the logic!
Hi
See MirrorCache - openSUSE Wiki to get the offending one removed
akontsevich:
What exact steps are? I do
sudo sed -i "s,http://download.opensuse.org,https://mirrorcache.opensuse.org,g" /etc/zypp/repos.d/*.repo
Do not like to do this manually for every repo. If a mirror stops to work again? Find mirrors and edit repos again? If I have several machines: repeat on every one?! It’s a hell! Any other ideas? Seems was some UI on installation step to select mirror? Or this exists only in other distros? I think suse should do this automatically: if a mirror is inaccessible - switch to another one. But it forces to access to wrong one again and again. This is stupid!
Nope. I came up with the following list of repos:
**erlangen:~ #** zypper repos -E
# | Alias | Enabled | GPG Check | Priority | URI
---+----------------------+---------+-----------+----------+---------------------------------------------------------------------------------------------
6 | Packman | Yes | (r ) Yes | 90 | https://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/
18 | non-oss | Yes | (r ) Yes | 99 | https://mirrorcache-eu.opensuse.org/tumbleweed/repo/non-oss/
20 | oss | Yes | (r ) Yes | 99 | https://mirrorcache-eu.opensuse.org/tumbleweed/repo/oss/
27 | update | Yes | (r ) Yes | 99 | https://mirrorcache-eu.opensuse.org/update/tumbleweed/
8 | chrome | Yes | (r ) Yes | 100 | https://dl.google.com/linux/chrome/rpm/stable/x86_64
13 | home_kukuk_qmapshack | Yes | (r ) Yes | 100 | https://mirrorcache-eu.opensuse.org/repositories/home:/kukuk:/qmapshack/openSUSE_Tumbleweed/
**erlangen:~ #**
I fixed the URIs using sed. Omit option ‘-i’ and repeat until satisfied. Then add the option again to actually perform the change.
Host erlangen fetches upgrades on a daily schedule and applies them without ever failing since May 30:
**erlangen:~ #** journalctl -q -u dupa -g Consumed
May 30 06:05:35 erlangen systemd[1]: dupa.service: Consumed 3.119s CPU time.
May 30 10:27:59 erlangen systemd[1]: dupa.service: Consumed 19.596s CPU time.
Jun 02 02:14:06 erlangen systemd[1]: dupa.service: Consumed 15.111s CPU time.
Jun 13 18:27:41 erlangen systemd[1]: dupa.service: Consumed 1min 51.348s CPU time.
Jun 15 12:39:53 erlangen systemd[1]: dupa.service: Consumed 19.099s CPU time.
Jun 17 05:29:24 erlangen systemd[1]: dupa.service: Consumed 4min 4.880s CPU time.
Jun 18 05:43:11 erlangen systemd[1]: dupa.service: Consumed 18.279s CPU time.
Jun 19 12:32:05 erlangen systemd[1]: dupa.service: Consumed 38.494s CPU time.
Jun 20 01:56:10 erlangen systemd[1]: dupa.service: Consumed 7.510s CPU time.
Jun 20 18:23:49 erlangen systemd[1]: dupa.service: Consumed 5.274s CPU time.
Jun 21 13:09:13 erlangen systemd[1]: dupa.service: Consumed 4.603s CPU time.
Jun 22 14:45:09 erlangen systemd[1]: dupa.service: Consumed 7.383s CPU time.
Jun 23 12:51:26 erlangen systemd[1]: dupa.service: Consumed 7.711s CPU time.
Jun 25 08:42:33 erlangen systemd[1]: dupa.service: Consumed 34.286s CPU time.
Jun 26 17:42:59 erlangen systemd[1]: dupa.service: Consumed 20.270s CPU time.
Jun 27 05:34:57 erlangen systemd[1]: dupa.service: Consumed 4.238s CPU time.
Jul 02 22:09:45 erlangen systemd[1]: dupa.service: Consumed 38.892s CPU time.
Jul 03 16:07:46 erlangen systemd[1]: dupa.service: Consumed 15.209s CPU time.
Jul 04 13:12:29 erlangen systemd[1]: dupa.service: Consumed 2.721s CPU time.
Jul 05 04:26:09 erlangen systemd[1]: dupa.service: Consumed 9.591s CPU time.
Jul 06 23:44:50 erlangen systemd[1]: dupa.service: Consumed 40.009s CPU time.
Jul 07 20:44:14 erlangen systemd[1]: dupa.service: Consumed 19.565s CPU time.
Jul 10 08:17:02 erlangen systemd[1]: dupa.service: Consumed 22.931s CPU time.
Jul 10 15:00:16 erlangen systemd[1]: dupa.service: Consumed 3.466s CPU time.
**erlangen:~ #**
Each .repo file supports multiple URIs. Select several, excluding the problem source, for inclusion in each, from mirrors.opensuse.org . If you make the last download.opensuse.org or mirrorcache.opensuse.org , then if all others fail, the last will choose something else. e.g.
...
baseurl=http://ftp5.gwdg.de/pub/opensuse/tumbleweed/repo/oss
http://ftp.uni-erlangen.de/opensuse/tumbleweed/repo/oss
http://www.gtlib.gatech.edu/pub/opensuse/tumbleweed/repo/oss
http://provo-mirror.opensuse.org/tumbleweed/repo/oss
http://mirrorcache.opensuse.org/tumbleweed/repo/oss
...
mrmazda:
Each .repo file supports multiple URIs. Select several, excluding the problem source, for inclusion in each, from mirrors.opensuse.org . If you make the last download.opensuse.org or mirrorcache.opensuse.org , then if all others fail, the last will choose something else. e.g.
...
baseurl=http://ftp5.gwdg.de/pub/opensuse/tumbleweed/repo/oss
http://ftp.uni-erlangen.de/opensuse/tumbleweed/repo/oss
http://www.gtlib.gatech.edu/pub/opensuse/tumbleweed/repo/oss
http://provo-mirror.opensuse.org/tumbleweed/repo/oss
http://mirrorcache.opensuse.org/tumbleweed/repo/oss
...
This can be an option, but it’s a workaround. Another option is troubleshooting and if any reporting an issue at GitHub - openSUSE/MirrorCache: Download Redirector
In case of trouble try both of these:
**erlangen:~ #** curl -I http://download.opensuse.org/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm
HTTP/1.1 302 Found
**Date**: Mon, 11 Jul 2022 09:03:07 GMT
**Server**: Mojolicious (Perl)
**Location**: http://mirror.de.leaseweb.net/opensuse/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm
**Content-Type**: application/x-rpm
**erlangen:~ #** wget http://**download.opensuse.org**/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm
--2022-07-11 11:03:10-- http://download.opensuse.org/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm
Resolving download.opensuse.org (download.opensuse.org)... 2001:67c:2178:8::13, 195.135.221.134
Connecting to download.opensuse.org (download.opensuse.org)|2001:67c:2178:8::13|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://mirror.de.leaseweb.net/opensuse/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm [following]
--2022-07-11 11:03:10-- http://mirror.de.leaseweb.net/opensuse/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm
Resolving mirror.de.leaseweb.net (mirror.de.leaseweb.net)... 2a00:c98:2030:a034::21, 37.58.58.140
Connecting to **mirror.de.leaseweb.net** (mirror.de.leaseweb.net)|2a00:c98:2030:a034::21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1220499 (1.2M) [application/x-redhat-package-manager]
Saving to: ‘postfix-3.6.6-4.2.x86_64.rpm’
postfix-3.6.6-4.2.x86_64.rpm 100%=========================================================================================================================================>] 1.16M 2.83MB/s in 0.4s
2022-07-11 11:03:11 (2.83 MB/s) - ‘postfix-3.6.6-4.2.x86_64.rpm’ saved [1220499/1220499]
**erlangen:~ #**
**erlangen:~ #** wget http://**mirrorcache-eu.opensuse.org**/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm
--2022-07-11 11:05:03-- http://mirrorcache-eu.opensuse.org/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm
Resolving mirrorcache-eu.opensuse.org (mirrorcache-eu.opensuse.org)... 2001:67c:2178:8::16, 195.135.221.140
Connecting to mirrorcache-eu.opensuse.org (mirrorcache-eu.opensuse.org)|2001:67c:2178:8::16|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://mirror.de.leaseweb.net/opensuse/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm [following]
--2022-07-11 11:05:03-- http://mirror.de.leaseweb.net/opensuse/tumbleweed/repo/oss/x86_64/postfix-3.6.6-4.2.x86_64.rpm
Resolving mirror.de.leaseweb.net (mirror.de.leaseweb.net)... 2a00:c98:2030:a034::21, 37.58.58.140
Connecting to **mirror.de.leaseweb.net** (mirror.de.leaseweb.net)|2a00:c98:2030:a034::21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1220499 (1.2M) [application/x-redhat-package-manager]
Saving to: ‘postfix-3.6.6-4.2.x86_64.rpm.1’
postfix-3.6.6-4.2.x86_64.rpm.1 100%=========================================================================================================================================>] 1.16M 2.84MB/s in 0.4s
2022-07-11 11:05:04 (2.84 MB/s) - ‘postfix-3.6.6-4.2.x86_64.rpm.1’ saved [1220499/1220499]
**erlangen:~ #**
It is not removed, it is unreachable in UA. BTW, logic selecting mirror is the same whether I replace standard URL with mirrorcache-eu.opensuse.org or not.
Reported a bug: Can't update openSUSE because of wrong repo mirror selected · Issue #287 · openSUSE/MirrorCache · GitHub
They reacted immediately: Thx for reporting, I’ve disabled the mirror to fix this, now it should work, Issue closed.