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

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

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

Сообщение sbury » Пт июл 07, 2023 6:22 am

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

apt-get remove --purge brainy-php5*
apt-get install brainy-php5-enchant brainy-php5-zip brainy-php5-imagick brainy-php5-fpm brainy-php5-gd brainy-php5-imap brainy-php5-intl brainy-php5-json brainy-php5-mbstring brainy-php5-mcrypt brainy-php5-modules-base brainy-php5-mysql brainy-php5-pgsql brainy-php5-pdo brainy-php5-xml brainy-php5-zendopcache brainy-php5 brainy-php5-process
systemctl restart brainyphp-fpm

Аватара пользователя
Crazy Demon
Сообщения: 28
Зарегистрирован: Вт май 05, 2020 4:16 am
Откуда: Blagoveshensk.ru
Контактная информация:

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

Сообщение 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
)
Как я понял, сообщения выдавались на домены с обновлёнными сертификатами.
Сертификаты сами выдались корректно. Просто ошибки напрягают сами по себе ...

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

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

Сообщение DanielFin » Пн фев 19, 2024 10:36 am

Та же ошибка. Извините. если туплю, но что делать?
Fatal error: Call to undefined function sem_get() in /usr/local/brainycp/classes/server.php on line 0
При попытке обновить сертификат Let's Encrypt
CentOS Linux VERSION=7

Установка нового сертификата тоже не происходит

1.0951.20230530
До 1.0960 BrainyCP не обновляется, после нажатия кнопка "Обновить сейчас" становится неактивной и тишина.

Аватара пользователя
alenka
Сообщения: 2012
Зарегистрирован: Ср сен 27, 2017 11:10 am

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

Сообщение alenka » Пн фев 19, 2024 11:17 am

rpm -qa | grep brainy-php5-process
Скорее всего у вас нет пакета brainy-php5-process
установка yum -y install brainy-php5-process

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

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

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

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

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

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 2:57 pm

покажите выводы

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

ls -l /etc/yum.repos.d
yum clean all
и сеть у вас вообще работает?

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

ping -c2 8.8.8.8

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

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

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

ls -l /etc/yum.repos.d

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

total 44
-rw-r--r-- 1 root root 1404 Jun 14  2021 brainy.repo
-rw-r--r-- 1 root root 1664 Nov 23  2020 CentOS-Base.repo
-rw-r--r-- 1 root root 1309 Nov 23  2020 CentOS-CR.repo
-rw-r--r-- 1 root root  649 Nov 23  2020 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root  314 Nov 23  2020 CentOS-fasttrack.repo
-rw-r--r-- 1 root root  630 Nov 23  2020 CentOS-Media.repo
-rw-r--r-- 1 root root 1331 Nov 23  2020 CentOS-Sources.repo
-rw-r--r-- 1 root root 8515 Nov 23  2020 CentOS-Vault.repo
-rw-r--r-- 1 root root  616 Nov 23  2020 CentOS-x86_64-kernel.repo
yum clean all

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

Loaded plugins: fastestmirror, priorities, versionlock
Cleaning repos: base brainy-glibc_sb brainy-python3_sb extras myrepo-centos
              : updates
Cleaning up list of fastest mirrors
# ping -c2 8.8.8.8

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

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=110 time=4.31 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=110 time=11.1 ms

--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 4.319/7.709/11.100/3.391 ms

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

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

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

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

yum install mc
yum install brainy-php5-process

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

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

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

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

>>> yum install mc
Cannot find a valid baseurl for repo: base/7/x86_64

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

Loaded plugins: fastestmirror, priorities, versionlock
Determining fastest mirrors
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 30000 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 5:17 pm

вы не показали вывод команды

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

cat /etc/yum.repos.d/CentOS-Base.repo
а так же еще вывод этой команды

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

cat /etc/os-release

Ответить