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

Playbook fails on "ensure mariadb-server is enabled and started" step #12

Closed
jimmyface opened this issue Sep 3, 2018 · 2 comments
Closed

Comments

@jimmyface
Copy link

Granted I'm running CentOS 7.5, but I thought I'd report. The playbook failed for me on the "ensure mariadb-server is enabled and started" step.

fatal: [nextcloud]: FAILED! => {"changed": false, "msg": "Unable to start service mariadb: Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.\n"}

Mariadb didn't like this particular option which the playbook adds to /etc/my.cnf.d/server.cnf:

explicit_defaults_for_timestamp=1

If I run the play without having it add that option in mariadb config it completes successfully.

@lalmeras
Copy link
Contributor

lalmeras commented Sep 4, 2018

Confirmed here. Option was not in my file, as it is added only when: mariadb_installation.changed, but if I add the option manually, mariadb does not start and complains about this option:

180904  8:57:08 Percona XtraDB (http://www.percona.com) 5.5.59-MariaDB-38.11 started; log sequence number 859316839
180904  8:57:08 [Note] Plugin 'FEEDBACK' is disabled.
180904  8:57:08 [ERROR] /usr/libexec/mysqld: unknown variable 'explicit_defaults_for_timestamp=1'
180904  8:57:08 [ERROR] Aborting
[lalmeras@nextcloud ~]$ cat /etc/redhat-release 
CentOS Linux release 7.5.1804 (Core) 
[lalmeras@nextcloud ~]$ rpm -qa mariadb
mariadb-5.5.60-1.el7_5.x86_64

rbicker pushed a commit that referenced this issue Nov 15, 2018
@rbicker
Copy link
Owner

rbicker commented Nov 15, 2018

The problem was that this option was introduced in mysql version 5.6. As we are using custom mirrors, we got more recent mysql versions so we did not see this issue. Should be fixed now.

@rbicker rbicker closed this as completed Nov 15, 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

3 participants