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

php-mysql problem installing to CentOS #869

Closed
ajs6f opened this issue Jul 5, 2018 · 2 comments
Closed

php-mysql problem installing to CentOS #869

ajs6f opened this issue Jul 5, 2018 · 2 comments

Comments

@ajs6f
Copy link

ajs6f commented Jul 5, 2018

I'm having a weird problem trying to install to CentOS7. Something is trying to install php-mysql, but I think for CentOS after PHP5.5, we want php-mysqlnd, right? @seth-shaw-unlv, did you see anything like this?

TASK [geerlingguy.php : Ensure PHP packages are installed.] ********************************************************************************************************************************************************
Thursday 05 July 2018  11:54:45 -0400 (0:00:00.068)       0:01:57.096 *********
ok: [default] => (item=php)
ok: [default] => (item=php-cli)
ok: [default] => (item=php-common)
ok: [default] => (item=php-devel)
ok: [default] => (item=php-fpm)
ok: [default] => (item=php-gd)
ok: [default] => (item=php-imap)
ok: [default] => (item=php-ldap)
ok: [default] => (item=php-mbstring)
ok: [default] => (item=php-opcache)
ok: [default] => (item=php-pdo)
ok: [default] => (item=php-pear)
ok: [default] => (item=php-pecl-apcu)
ok: [default] => (item=php-xml)
ok: [default] => (item=php-xmlrpc)
failed: [default] (item=php-mysql) => {"changed": false, "item": "php-mysql", "msg": "Error: php-mysql conflicts with php-mysqlnd-7.0.30-1.el7.remi.x86_64\nError: Package: php-mysql-5.4.16-45.el7.x86_64 (rhel-7-server-rpms)\n           Requires: php-pdo(x86-64) = 5.4.16-45.el7\n           Installed: php-pdo-7.0.30-1.el7.remi.x86_64 (@remi-php70)\n               php-pdo(x86-64) = 7.0.30-1.el7.remi\n           Available: php-pdo-5.4.16-21.el7.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-21.el7\n           Available: php-pdo-5.4.16-23.el7_0.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-23.el7_0\n           Available: php-pdo-5.4.16-23.el7_0.1.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-23.el7_0.1\n           Available: php-pdo-5.4.16-23.el7_0.3.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-23.el7_0.3\n           Available: php-pdo-5.4.16-36.el7_1.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-36.el7_1\n           Available: php-pdo-5.4.16-36.1.el7_2.1.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-36.1.el7_2.1\n           Available: php-pdo-5.4.16-36.3.el7_2.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-36.3.el7_2\n           Available: php-pdo-5.4.16-42.el7.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-42.el7\n           Available: php-pdo-5.4.16-43.el7_4.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-43.el7_4\n           Available: php-pdo-5.4.16-43.el7_4.1.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-43.el7_4.1\n           Available: php-pdo-5.4.16-45.el7.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-45.el7\n", "rc": 1, "results": ["Loaded plugins: enabled_repos_upload, package_upload, product-id, search-\n              : disabled-repos, subscription-manager\nResolving Dependencies\n--> Running transaction check\n---> Package php-mysql.x86_64 0:5.4.16-45.el7 will be installed\n--> Processing Dependency: php-pdo(x86-64) = 5.4.16-45.el7 for package: php-mysql-5.4.16-45.el7.x86_64\n--> Processing Conflict: php-mysql-5.4.16-45.el7.x86_64 conflicts php-mysqlnd\nRemoving php-mysql.x86_64 0:5.4.16-45.el7 - u due to obsoletes from installed php-mysqlnd-7.0.30-1.el7.remi.x86_64\n--> Restarting Dependency Resolution with new changes.\n--> Running transaction check\n---> Package php-mysql.x86_64 0:5.4.16-45.el7 will be installed\n--> Finished Dependency Resolution\nError: php-mysql conflicts with php-mysqlnd-7.0.30-1.el7.remi.x86_64\nError: Package: php-mysql-5.4.16-45.el7.x86_64 (rhel-7-server-rpms)\n           Requires: php-pdo(x86-64) = 5.4.16-45.el7\n           Installed: php-pdo-7.0.30-1.el7.remi.x86_64 (@remi-php70)\n               php-pdo(x86-64) = 7.0.30-1.el7.remi\n           Available: php-pdo-5.4.16-21.el7.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-21.el7\n           Available: php-pdo-5.4.16-23.el7_0.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-23.el7_0\n           Available: php-pdo-5.4.16-23.el7_0.1.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-23.el7_0.1\n           Available: php-pdo-5.4.16-23.el7_0.3.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-23.el7_0.3\n           Available: php-pdo-5.4.16-36.el7_1.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-36.el7_1\n           Available: php-pdo-5.4.16-36.1.el7_2.1.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-36.1.el7_2.1\n           Available: php-pdo-5.4.16-36.3.el7_2.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-36.3.el7_2\n           Available: php-pdo-5.4.16-42.el7.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-42.el7\n           Available: php-pdo-5.4.16-43.el7_4.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-43.el7_4\n           Available: php-pdo-5.4.16-43.el7_4.1.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-43.el7_4.1\n           Available: php-pdo-5.4.16-45.el7.x86_64 (rhel-7-server-rpms)\n               php-pdo(x86-64) = 5.4.16-45.el7\n**********************************************************************\nyum can be configured to try to resolve such errors by temporarily enabling\ndisabled repos and searching for missing dependencies.\nTo enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf\n**********************************************************************\n\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\nUploading Enabled Repositories Report\nLoaded plugins: product-id, subscription-manager\n"]}
ok: [default] => (item=php-pgsql)
@seth-shaw-unlv
Copy link
Contributor

What is going on is that this role is trying to install php 5 libraries when the php 7 libraries are already installed.

So, this may or may not be the issue you are running into, but there are two separate playbooks that attempt to install php-mysql: webserver.yml and crayfish.yml. Both of them need to include the repo-remi role and install the same version of PHP or else they start conflicting with each other.

This is the situation that Islandora-Devops/islandora-playbook/pull/68 should resolve. I would double-check your webserver.yml, crayfish.yml for the remi role, and then group_vars/all/main.yml to make sure the PHP version number is what you want.

I know when I pointed the playbook at an existing CentOS install I had to be careful that the libraries were correctly configured before running the playbook or else I would get errors like this thrown. You may want to manually check your own repo lists before running the playbook.

@ajs6f
Copy link
Author

ajs6f commented Jul 5, 2018

Nailed it, @seth-shaw-unlv ! I needed to correct my group_vars/all/main.yml because I have an independent inventory. Thanks!

@ajs6f ajs6f closed this as completed Jul 5, 2018
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