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
Cannot "show variables" on trusty/sudo:false with MySQL 5.7 #7992
Comments
Do you have a build log URL that shows the problem you are describing here? |
Yes, but it's not public: https://s3.amazonaws.com/archive.travis-ci.com/jobs/81095252/log.txt This shows the error:
I believe this to be a symptom of an incompletely upgraded mysql, but I cannot complete the upgrade without sudo. |
So, did the issue with |
Towards the end of the
I'm guessing that the |
We only tried this today, so I don't know if it is new. MySQL 5.7 has only been possible using apt-sources since it was whitelisted on Apr 20: travis-ci/apt-source-safelist@41a6948 I made a minimal example demonstrating this behaviour: https://github.com/john-latham/travis-ci-7992 It seems to produce somewhat unreliable results. Sometimes MySQL does not start (we saw this also on sudo:required) and sometimes MySQL does start but the |
I vaguely remember AppArmor being problematic, but the details escape me. |
I might add a new error:
|
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 24 hours. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
I install MySQL 5.7 using:
I want to inspect MySQL variables using
- mysql -e 'show variables'
...but this fails with:
ERROR 1682 (HY000) at line 1: Native table 'performance_schema'.'session_variables' has the wrong structure
This suggests incomplete upgrade to MySQL 5.7 (from 5.6 which comes on trusty) but I cannot upgrade using:
..because there is no sudo.
Using sudo:required is not a solution because I'm attempting to debug a test failure which only happens on the sudo:required environment, and in order to do that I want to compare all the MySQL variables between sudo:false and sudo:required environments.
I suggest as a fix that the
sudo mysql_upgrade
is added to whatever code processes the mysql-server addons, although this is possibly not under control of travis.The text was updated successfully, but these errors were encountered: