Failed connection to mirrorlist.nethserver.org from Russia

After the next update through gui, again writes to clear a cache in gui. In the console:

20:15:08  root@ms  jobs:0 cmd:276  /root
# yum upgrade
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.nethserver.org/?release=7&repo=c                                                             e-base&arch=x86_64&nsrelease=7.6.1810 error was
14: curl#7 - "Failed connect to mirrorlist.nethserver.org:80; Connection refused                                                             "


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=<repoid> ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>
        or
            subscription-manager repos --disable=<repoid>

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: ce-base/7/x86_64

A recent update transformed NethServer.repo, overwriting local config file changes.

If you changed manually the YUM configuration, you need to make a custom template of NethServer.repo now.

I remember that some clients from Russia cannot reach our mirrorlist server, hosted by digital ocean in the US.

In past discussions some workarounds were proposed… Sorry for not telling more now because I’m on mobile.

2 Likes

Are there other full repositories at the moment?

mirror.nethserver.org
I don’t know if you can reach this.

You can pick a mirror from this list

Check their status here

http://mirror-status.nethserver.org/

For centos:

https://www.centos.org/download/mirrors/

1 Like

Thanks, I left the one for now. server.liftingtrade.hu without the test repository. Repository Centos Russia has its own https://mirror.yandex.ru/centos they faster.

1 Like

Since the last update a template-custom of NethServer.repo has to be set up.

We need an #howto to workaround this issue.

If somebody would like to write it down…

…however I would also consider to move the server to another country in the next future.

2 Likes

After 4 weeks we are switching to a new provider (fast) could make a mirror.
Preferably complete with test repositories

Hi!
How to?
please, example :grinning:

# ================= DO NOT MODIFY THIS FILE =================
# 
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
# 

[nethserver-base]
name=NethServer-$nsrelease - Base
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=base&arch=$basearch&nsrelease=$nsrelease
#baseurl=http://mirror.nethserver.org/nethserver/$releasever/base/$basearch/
baseurl=http://server.liftingtrade.hu/nethserver/$releasever/base/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
enabled=1
enablegroups=0

[nethserver-updates]
name=NethServer-$nsrelease - Updates
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=updates&arch=$basearch&nsrelease=$nsrelease
#baseurl=http://mirror.nethserver.org/nethserver/$releasever/updates/$basearch/
baseurl=http://server.liftingtrade.hu/nethserver/$releasever/updates/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
enabled=1
enablegroups=1

[nethserver-testing]
name=NethServer-$nsrelease - Testing
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=testing&arch=$basearch&nsrelease=$nsrelease
baseurl=http://server.liftingtrade.hu/nethserver/$releasever/testing/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-NethServer-$releasever
enabled=0
enablegroups=0

[ce-base]
name=CE-Base-$nsrelease
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-base&arch=$basearch&nsrelease=$nsrelease
baseurl=http://mirror.yandex.ru/centos/$nsrelease/os/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[ce-updates]
name=CE-Updates-$nsrelease
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-updates&arch=$basearch&nsrelease=$nsrelease
baseurl=http://mirror.yandex.ru/centos/$nsrelease/updates/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[ce-extras]
name=CE-Extras-$nsrelease
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-extras&arch=$basearch&nsrelease=$nsrelease
baseurl=http://mirror.yandex.ru/centos/$nsrelease/extras/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1

[ce-sclo-sclo]
name=CE-SCLo-sclo-$nsrelease
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-sclo-sclo&arch=$basearch&nsrelease=$nsrelease
baseurl=http://mirror.yandex.ru/centos/$nsrelease/sclo/$basearch/sclo/
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
enabled=1

[ce-sclo-rh]
name=CE-SCLo-rh-$nsrelease
#mirrorlist=http://mirrorlist.nethserver.org/?release=$releasever&repo=ce-sclo-rh&arch=$basearch&nsrelease=$nsrelease
baseurl=http://mirror.yandex.ru/centos/$nsrelease/sclo/$basearch/rh/
gpgcheck=1
repo_gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
enabled=1

Yes
I did that
but after rebooting everything comes back

Here’s the example:

In this special case we copy a fragment, usually we should create new custom fragments.

mkdir -p /etc/e-smith/templates-custom/etc/yum.repos.d/NethServer.repo/
cp /etc/e-smith/templates/etc/yum.repos.d/NethServer.repo/10base /etc/e-smith/templates-custom/etc/yum.repos.d/NethServer.repo/

You can now edit /etc/e-smith/templates-custom/etc/yum.repos.d/NethServer.repo/10base to fit your needs.

To apply the config:

signal-event nethserver-release-update

Here are the template docs.

4 Likes

Hi!
Thank you very much!
It’s work fine!

1 Like