Ошибка Call to undefined function sem_get() при попытке обновления

Все остальные вопросы
DanielFin
Сообщения: 22
Зарегистрирован: Ср сен 11, 2019 11:01 am

Re: Ошибка Call to undefined function sem_get() при попытке обновления

Сообщение DanielFin » Пн фев 19, 2024 5:28 pm

>>> cat /etc/yum.repos.d/CentOS-Base.repo

Код: Выделить всё

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

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

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
>>> cat /etc/os-release

Код: Выделить всё

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Аватара пользователя
sbury
Сообщения: 1362
Зарегистрирован: Вт фев 06, 2018 7:51 am

Re: Ошибка Call to undefined function sem_get() при попытке обновления

Сообщение sbury » Пн фев 19, 2024 5:48 pm

у вас недоступны сервера CentOS 7
запустите эту строку в браузере

Код: Выделить всё

http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock
попробуйте так же запустить обновление вашей ОС

Код: Выделить всё

yum update

DanielFin
Сообщения: 22
Зарегистрирован: Ср сен 11, 2019 11:01 am

Re: Ошибка Call to undefined function sem_get() при попытке обновления

Сообщение DanielFin » Пн фев 19, 2024 5:51 pm

Я то вижу, конечно, спиcок зеркал, а вот VPS видимо нет :cry:
Нужно, значит, писать хостеру
>>> yum update

Код: Выделить всё

Loaded plugins: fastestmirror, priorities, versionlock
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock: (28, 'Connection timed out after 30001 milliseconds')


 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: base/7/x86_64

Аватара пользователя
sbury
Сообщения: 1362
Зарегистрирован: Вт фев 06, 2018 7:51 am

Re: Ошибка Call to undefined function sem_get() при попытке обновления

Сообщение sbury » Пн фев 19, 2024 6:01 pm

да. пишите хостеру. У вас перекрыт доступ к серверам Centos

DanielFin
Сообщения: 22
Зарегистрирован: Ср сен 11, 2019 11:01 am

Re: Ошибка Call to undefined function sem_get() при попытке обновления

Сообщение DanielFin » Вт фев 20, 2024 8:35 am

Спасибо!
Подключился к яндекс зеркалу, обновил brainycp, поставил brainy-php5-process
Обновил сертификаты LE!

DanielFin
Сообщения: 22
Зарегистрирован: Ср сен 11, 2019 11:01 am

Re: Ошибка Call to undefined function sem_get() при попытке обновления

Сообщение DanielFin » Вт фев 20, 2024 3:38 pm

Та же история, те же ошибки, сертификаты работают
Crazy Demon писал(а):
Пт июл 07, 2023 8:21 am
Спасибо. Помогло.

При выполнении /home/dmitry# /usr/local/brainycp/src/compiled/php5/bin/php -q /usr/local/brainycp/scripts/letsen_renew.php

выдаются такие сообщения:

Код: Выделить всё

ipcrm: неверный id (52)
ipcrm: неверный id (53)
ipcrm: неверный id (54)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (55)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
ipcrm: неверный id (32768)
ipcrm: неверный id (32769)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (32770)
ls: невозможно получить доступ к 'b%%%n.ru*': Нет такого файла или каталога
ipcrm: неверный id (32779)
ipcrm: неверный id (32780)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (32781)
Failed to restart dovecot.service: Unit dovecot.service not found.
ipcrm: неверный id (32790)
ipcrm: неверный id (32791)
ipcrm: неверный id (32792)
ipcrm: неверный id (32793)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (32794)
sed: -e выражение #1, символ 1: неизвестная команда: `,'
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
ipcrm: неверный id (32804)
ipcrm: неверный id (32805)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (32806)
sed: -e выражение #1, символ 1: неизвестная команда: `,'
ls: невозможно получить доступ к 'j%%%k.ru*': Нет такого файла или каталога
ipcrm: неверный id (32815)
ipcrm: неверный id (32816)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (32817)
sed: -e выражение #1, символ 1: неизвестная команда: `,'
Failed to restart dovecot.service: Unit dovecot.service not found.
ipcrm: неверный id (32826)
ipcrm: неверный id (32827)
ipcrm: неверный id (32828)
ipcrm: неверный id (32829)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (32830)
sed: -e выражение #1, символ 1: неизвестная команда: `,'
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
ipcrm: неверный id (65543)
ipcrm: неверный id (65544)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (65545)
sed: -e выражение #1, символ 1: неизвестная команда: `,'
ls: невозможно получить доступ к 's%%%a.ru*': Нет такого файла или каталога
ipcrm: неверный id (65554)
ipcrm: неверный id (65555)
Failed to reload named.service: Unit named.service not found.
ipcrm: неверный id (65556)
sed: -e выражение #1, символ 1: неизвестная команда: `,'
Failed to restart dovecot.service: Unit dovecot.service not found.
ipcrm: неверный id (65565)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
ls: невозможно получить доступ к 'v%%%s.ru*': Нет такого файла или каталога
ipcrm: неверный id (65566)
ipcrm: неверный id (65567)
Array
(
    [am%%%um.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [am%%%ws.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [a%%%cx.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [bl%%%sk.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [b%%%n.ru.conf] => renewok
    [d%%%s.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [de%%%to.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [de%%%in.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [j%%%k.ru.conf] => renewok
    [me%%%to.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [se%%%8s.ru.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
    [s%%%a.ru.conf] => renewok
    [ts%%%sk.ru.conf] => Certificate not yet due for renewal , renewal date 2023-08-17
    [v%%%s.ru.conf] => renewok
    [xn%%%ai.conf] => Certificate not yet due for renewal , renewal date 2023-07-09
)
Как я понял, сообщения выдавались на домены с обновлёнными сертификатами.
Сертификаты сами выдались корректно. Просто ошибки напрягают сами по себе ...

Ответить