Skip to content

Ошибка в адресе репозитория #158

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
xinferum opened this issue May 26, 2021 · 4 comments
Open

Ошибка в адресе репозитория #158

xinferum opened this issue May 26, 2021 · 4 comments
Labels

Comments

@xinferum
Copy link

Добрый день.

После выхода релиза mamonsu 2.7.1 начал обновлять пакет на серверах и наткнулся в Ubuntu 18.04 на проблему с репозиторием:

W: Не удалось получить http://localrepo.l.postgrespro.ru/stable/mamonsu/ubuntu/dists/bionic/InRelease Не удалось разрешить «localrepo.l.postgrespro.ru»

Мы обычно переустанавливаем mamonsu с нуля, при помощи ansible, соответственно и файл apt-repo-add.sh для установки репозитория выполняем каждый раз. В самом файле http://repo.postgrespro.ru/mamonsu/keys/apt-repo-add.sh обнаружил что указан локальный адрес в качестве репозитория:

#!/bin/sh
REPO=http://localrepo.l.postgrespro.ru/stable/mamonsu
PRODUCT_NAME="Mamonsu"
...

Тоже самое обнаружилось и в CentOS 7 при установке на чистую систему:

failure: repodata/repomd.xml from mamonsu: [Errno 256] No more mirrors to try.
http://localrepo.l.postgrespro.ru/stable/mamonsu/centos/7/os/x86_64/rpms/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: localrepo.l.postgrespro.ru; Unknown error

В rpm-файле репозитория http://repo.postgrespro.ru/mamonsu/keys/centos.rpm тоже указан локальный адрес репозитория:

[mamonsu]
name=Mamonsu Packages for centos - $basearch
baseurl=http://localrepo.l.postgrespro.ru/stable/mamonsu/centos/$releasever/os/$basearch/rpms
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-POSTGRESQL-PRO

В то же время на машине с CentOS 7 где уже давно установлен репозиторий mamonsu, адрес выглядит вот так:

...
baseurl=http://repo.postgrespro.ru/mamonsu/centos/$releasever/os/$basearch/rpms
...

Вероятно была допущена ошибка в адресе репозитория.

@popov83
Copy link
Contributor

popov83 commented May 31, 2021

Попоробуйте сейчас. Ошибка должна быть исправлена.

@xinferum
Copy link
Author

Здравствуйте.

Развернул сейчас на чистых ВМ с Ubuntu 18.04 и CentOS 7 Postgres и установил mamonsu. Репозитории корректные:
Ubuntu:

# Repositiory for 'Mamonsu'
deb https://repo.postgrespro.ru/mamonsu/ubuntu bionic main

CentOS:

[mamonsu]
name=Mamonsu Packages for centos - $basearch
baseurl=https://repo.postgrespro.ru/mamonsu/centos/$releasever/os/$basearch/rpms
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-POSTGRESQL-PRO

Спасибо!

@sergeyshaklein
Copy link

Здравствуйте
curl -o apt-repo-add.sh https://repo.postgrespro.ru/pg1c-14/keys/apt-repo-add.sh

Видимо опять ошибка в скрипте (локальный репозиторий)
REPO=http://localrepo.l.postgrespro.ru/stable/archive/pg1c-14.1

@cuprumtan cuprumtan reopened this Oct 27, 2022
@cuprumtan cuprumtan added the repo label Oct 27, 2022
@cuprumtan
Copy link
Contributor

@sergeyshaklein попробуйте этот скрипт:

wget http://repo.postgrespro.ru/pg1c-14/keys/pgpro-repo-add.sh

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants