Здравствуйте, сервер работает на Centos 7.
Команда yum clean all && yum upd ate завершилась успешно
В меню машины 2. Configure localhost settings -> 6. Update server
Скрытый текст |
---|
Please confirm you want to update the server (N|y):y Loaded plugins: etckeeper, fastestmirror No old kernels to remove Loaded plugins: etckeeper, fastestmirror, merge-conf Loading mirror speeds from cached hostfile * base: mirror.logol.ru * extras: mirror.logol.ru * updates: mirror.logol.ru No packages marked for update |
Дальше задача обновить php с 7.2.33 до 7.4. В меню сервера выбираю обновление, задача завершается с ошибкой
Скрытый текст |
---|
[WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'. If you need to use command because yum, dnf or zypper is insufficient you can add 'warn: false' to this command task or se t 'command_warnings=False' in ansible.cfg to get rid of this message. om mysql group] ******************************** ok: [%url%]
TASK [web : include variables from web group] ********************************** ok: [%url%]
TASK [web : include variables from temporary config] *************************** ok: [%url%]
TASK [web : additional gathering facts] **************************************** ok: [%url%] included: /etc/ansible/roles/web/tasks/upgrade_php_version.yml for %url% included: /etc/ansible/roles/web/tasks/upgrade_php73.yml for %url%
TASK [web : disable remi php72 repository] ************************************* changed: [%url%]
TASK [web : enable remi php73 repository] ************************************** changed: [%url%]
TASK [web : delete old version php-pecl-zip] *********************************** changed: [%url%]
TASK [web : update system by remi repository] ********************************** fatal: [%url%]: FAILED! => {"changed": false, "msg": "Repository 'remi-php72' is missing name in configuration, using id Repository 'remi-php73' is missing name in configuration, using id
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: remi-php73 ", "rc": 1, "results": []}
NO MORE HOSTS LEFT ************************************************************* to retry, use: --lim it @/etc/ansible/web.retry
PLAY RECAP ********************************************************************* %url% : ok=11 changed=3 unreachable=0 failed=1 |
В папке /etc/yum.repois.d файла remi-php74.repo нет, файл remi-php73.repo содержит две строки
Скрытый текст |
---|
[remi-php73] enabled=1 |
Переношу файлы remi-php73.repo, remi-php74.repo репозиториев с сервера, на котором успешно прошло обновление, и запускаю через меню сервера обновление php до 7.4, обновление завершается с ошибкой
Скрытый текст |
---|
PLAY [bitrix-hosts] ************************************************************
TASK [Gathering Facts] ********************************************************* ok: [%url%] included: /etc/ansible/inc_vars.yml for %url%
TASK [web : include variables from mysql group] ******************************** ok: [%url%]
TASK [web : include variables from web group] ********************************** ok: [%url%]
TASK [web : include variables from temporary config] *************************** ok: [%url%]
TASK [web : additional gathering facts] **************************************** ok: [%url%] included: /etc/ansible/roles/web/tasks/upgrade_php_version.yml for %url% included: /etc/ansible/roles/web/tasks/upgrade_php73.yml for %url%
TASK [web : disable remi php72 repository] ************************************* ok: [%url%]
TASK [web : enable remi php73 repository] ************************************** changed: [%url%]
TASK [web : delete old version php-pecl-zip] *********************************** ok: [%url%]
TASK [web : update system by remi repository] ********************************** fatal: [%url%]: FAILED! => {"changed": true, "msg": "Error: Package: php-sodium-7.4.19-1.el7.remi.x86_64 (remi-php74) Requires: libsodium.so.23()(64bit) ", "rc": 1, "results": ["Loaded plugins: etckeeper, fastestmirror, merge-conf Loading mirror speeds from cached hostfile * base: mirror.logol.ru * extras: mirror.reconn.ru * remi-php73: mirror.reconn.ru * remi-php74: mirror.reconn.ru * updates: mirror.logol.ru Resolving Dependencies --> Running transaction check ---> Package php.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php.x86_64 0:7.4.19-1.el7.remi will be an update --> Processing Dependency: php-sodium(x86-64) = 7.4.19-1.el7.remi for package: php-7.4.19-1.el7.remi.x86_64 ---> Package php-bcmath.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-bcmath.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-cli.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-cli.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-common.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-common.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-gd.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-gd.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-gmp.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-gmp.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-intl.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-intl.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-json.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-json.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-ldap.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-ldap.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-mbstring.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-mbstring.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-mysqlnd.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-mysqlnd.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-opcache.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-opcache.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-pdo.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-pdo.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-pear.noarch 1:1.10.12-1.el7.remi will be updated ---> Package php-pear.noarch 1:1.10.12-7.el7.remi will be an update ---> Package php-pecl-apcu.x86_64 0:5.1.18-1.el7.remi.7.2 will be updated ---> Package php-pecl-apcu.x86_64 0:5.1.20-1.el7.remi.7.4 will be an update ---> Package php-pecl-geoip.x86_64 0:1.1.1-4.el7.remi.7.2 will be updated ---> Package php-pecl-geoip.x86_64 0:1.1.1-11.el7.remi.7.4 will be an update ---> Package php-pecl-mcrypt.x86_64 0:1.0.3-1.el7.remi.7.2 will be updated ---> Package php-pecl-mcrypt.x86_64 0:1.0.4-1.el7.remi.7.4 will be an update ---> Package php-pecl-memcache.x86_64 0:4.0.5.2-1.el7.remi.7.2 will be updated ---> Package php-pecl-memcache.x86_64 0:4.0.5.2-1.el7.remi.7.4 will be an update ---> Package php-pecl-rrd.x86_64 0:2.0.1-4.el7.remi.7.2 will be updated ---> Package php-pecl-rrd.x86_64 0:2.0.3-1.el7.remi.7.4 will be an update ---> Package php-pecl-xdebug.x86_64 0:2.9.6-1.el7.remi.7.2 will be updated ---> Package php-pecl-xdebug.x86_64 0:2.9.8-1.el7.remi.7.4 will be an update ---> Package php-process.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-process.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-pspell.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-pspell.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-tidy.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-tidy.x86_64 0:7.4.19-1.el7.remi will be an update ---> Package php-xml.x86_64 0:7.2.33-1.el7.remi will be updated ---> Package php-xml.x86_64 0:7.4.19-1.el7.remi will be an update --> Running transaction check ---> Package php-sodium.x86_64 0:7.4.19-1.el7.remi will be installed --> Processing Dependency: libsodium.so.23()(64bit) for package: php-sodium-7.4.19-1.el7.remi.x86_64 --> Finished Dependency Resolution You could try using --skip-broken to work around the problem ** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows: bitrix-env-7.5-0.el7.noarch has missing requires of php-pecl-zip composer-1.10.10-1.el7.remi.noarch has missing requires of php-zip "]}
NO MORE HOSTS LEFT ************************************************************* to retry, use: --lim it @/etc/ansible/web.retry
PLAY RECAP ********************************************************************* %url% : ok=11 changed=1 unreachable=0 failed=1 |
Скажите, можно ли установить пакет libsodium.so.23 вручную и повторно запустить обновление php