Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

centos/7 fails on vagrant #25

Closed
Gauravshah opened this issue Jun 29, 2019 · 7 comments
Closed

centos/7 fails on vagrant #25

Gauravshah opened this issue Jun 29, 2019 · 7 comments

Comments

@Gauravshah
Copy link

Gauravshah commented Jun 29, 2019

Playbook:

---
- hosts: all
  become: yes
  roles:
    - web_server
    - role: chusiang.php7
      yum_php_version: "70u"
      apt_php_third_party_repo: true
      debug: true

Error message:

fatal: [default]: FAILED! => {"attempts": 3, "changed": false, "msg": "No package matching 'php70u-cli' found available, installed or updated", "rc": 126, "results": ["No package matching 'php70u-cli' found available, installed or updated"]}
@chusiang
Copy link
Owner

Hi, can you provide the more detail information of Vagrant box ? Like "bento/centos-7.4" or other. Thank you.

@Gauravshah
Copy link
Author

config.vm.box = "centos/7"
Vagrant 2.2.5
virtualbox 5.2.30

@chusiang
Copy link
Owner

chusiang commented Jul 3, 2019

This is the error message on centos/7 box.

 _______________________________
< TASK [Install PHP 7 Packages] >
 -------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

FAILED - RETRYING: Install PHP 7 Packages (3 retries left).
FAILED - RETRYING: Install PHP 7 Packages (2 retries left).
FAILED - RETRYING: Install PHP 7 Packages (1 retries left).
fatal: [centos]: FAILED! => {"attempts": 3, "changed": false, "msg": "No package matching 'php70u-cli' found available, installed or updated", "rc": 126, "results": ["No package matching 'php70u-cli' found available, installed or updated"]}
        to retry, use: --limit @/tmp/ansible-retry/setup.retry
 ____________
< PLAY RECAP >
 ------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

centos                     : ok=5    changed=3    unreachable=0    failed=1

The IUS Community Project (https://ius.io/) has remove each php70u-* rpm, so I will change the default variable of yum_php_version from 70u to 71u for this issue.

https://repo.ius.io/7/x86_64/packages/p/

chusiang added a commit that referenced this issue Jul 3, 2019
The IUS Community Project (https://ius.io/) has remove each `php70u-*` rpm, so
I change the default vars of `yum_php_version` from 70u to 71u.

> https://repo.ius.io/7/x86_64/packages/p/
@Gauravshah
Copy link
Author

Thanks @chusiang so no simple way to install 70 ?

chusiang added a commit that referenced this issue Jul 3, 2019
The IUS Community Project (https://ius.io/) has remove each `php70u-*` rpm, so
I change the default vars of `yum_php_version` from 70u to 71u.

> https://repo.ius.io/7/x86_64/packages/p/

By the way, I also upgrade the Debian & Ubuntu part.
@chusiang
Copy link
Owner

chusiang commented Jul 3, 2019

You can manual use the webtatic.com mirror first, I see the php70w on https://repo.webtatic.com/yum/el7/x86_64/RPMS/ .

https://webtatic.com/packages/php70/

[vagrant@centos ~]$ sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
Retrieving https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
warning: /var/tmp/rpm-tmp.PAZoNA: Header V4 RSA/SHA1 Signature, key ID 62e74ca5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:webtatic-release-7-3             ################################# [100%]

[vagrant@centos ~]$ cd /etc/yum.repos.d/ && ls
CentOS-Base.repo       epel.repo          remi-glpi93.repo   remi-php73.repo
CentOS-CR.repo         epel-testing.repo  remi-glpi94.repo   remi.repo
CentOS-Debuginfo.repo  ius-archive.repo   remi-modular.repo  remi-safe.repo
CentOS-fasttrack.repo  ius.repo           remi-php54.repo    webtatic-archive.repo
CentOS-Media.repo      ius-testing.repo   remi-php70.repo    webtatic.repo
CentOS-Sources.repo    remi-glpi91.repo   remi-php71.repo    webtatic-testing.repo
CentOS-Vault.repo      remi-glpi92.repo   remi-php72.repo

[vagrant@centos yum.repos.d]$ cat webtatic.repo
[webtatic]
name=Webtatic Repository EL7 - $basearch
#baseurl=https://repo.webtatic.com/yum/el7/$basearch/
mirrorlist=https://mirror.webtatic.com/yum/el7/$basearch/mirrorlist
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7

[webtatic-debuginfo]
name=Webtatic Repository EL7 - $basearch - Debug
#baseurl=https://repo.webtatic.com/yum/el7/$basearch/debug/
mirrorlist=https://mirror.webtatic.com/yum/el7/$basearch/debug/mirrorlist
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7

[webtatic-source]
name=Webtatic Repository EL7 - $basearch - Source
#baseurl=https://repo.webtatic.com/yum/el7/SRPMS/
mirrorlist=https://mirror.webtatic.com/yum/el7/SRPMS/mirrorlist
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7
[vagrant@centos yum.repos.d]$

@chusiang
Copy link
Owner

chusiang commented Jul 3, 2019

I can add a new variable for support switch the third-party yum mirror site, but it will be later.

@Gauravshah
Copy link
Author

thanks @chusiang

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

No branches or pull requests

2 participants