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

Readonly database user not working #15697

Open
kaerer opened this issue Mar 16, 2020 · 1 comment
Open

Readonly database user not working #15697

kaerer opened this issue Mar 16, 2020 · 1 comment
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.

Comments

@kaerer
Copy link

kaerer commented Mar 16, 2020

Hi, we are using matomo version 3.12.0.
We have recently divide our database into master-slave type clusters.

When we defined database_reader configurations with slave information as below, we got SQLSTATE[HY000]: General error: 1290 The MariaDB server is running with the --read-only option so it cannot execute this statement error message.

[database]

[database_reader]

To make things work we define master for both of it.
We can not deactivate readonly option from slave, it wont sync the information with master.

Is there any extra configurations or misconfiguration ?

@tsteur
Copy link
Member

tsteur commented Mar 16, 2020

I can only suppose it fails to create temporary tables on the reader. Not sure how your particular MariaDB version handles this. Maybe there is a setting or maybe it needs upgrading to a different version or so.

For now I would recommend you upgrade to the latest Matomo version and see if it works there maybe. This is recommended anyway to be compatible with recent browser changes in case you are using JavaScript tracking.

@Findus23 Findus23 added the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users.
Projects
None yet
Development

No branches or pull requests

4 participants