-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
coercing to Unicode: need string or buffer, NoneType found - for mysql_user #52723
Comments
anyone facing the same issue |
@oliyavan Oh yeah, apparently that state is super broken in 2019.0 😞 . It was fixed with ed62a2f which should be in the (coming soon) 2019.2.1 release |
I'm facing exactly the same error with Salt version
|
@tcristina if you can test it, does the aforementioned patch fix the problem for you? |
i'm having the same issue and i would like to test the patch. but i have no idea where the file is supposed to be. doing a locate only pointed me to python2.7 lib, and i remember salt now needing python3. |
@poofyteddy you can do HTH! |
Thank's @waynew, I did this on the salt master last time, and it didn't work. i just swap the file on the minion, run a state.apply of my sls, and the issue is still there. Is there something i'm not doing right ? The error changed for this
|
You would need to change this file on your salt minion, yeah. I believe that you can also drop it in as a custom module, which should send it to the minion on a highstate/saltutil.sync_all. One way that you can test to make sure that the code you expect is being executed is by adding |
i can confirm i used the file from the "fix" and get the error i write about. I'm taking a look at it but i'm not a dev :(
|
so yea the fix break because of this
Before when password wasn't defined i didn't force it, now it have to be there. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Thank you for updating this issue. It is no longer marked as stale. |
@oliyavan / @tcristina / @poofyteddy Can you verify whether or not this problem exists on Salt 3000? |
I'll need to test it, last time i try the mysql module i had issue with changing the root login from password to unix_socket, so i didn't check further |
yea, sadly i'm encountering other issue with the actual mysql module which stop me from testing this specific bug Sorry, but i can't help checking the validity of this issue while the mysql module is still broken on my side :(
Server version: 10.4.12-MariaDB-1:10.4.12+maria~buster mariadb.org binary distribution
#56124 should have fixed it, but i can't tell if salt 3000.1 is out yet or not ... all i know is that i'm up to date with the latest salt-server and minion on salt-stack official debian repository |
the packages will be available soon on repo.saltstack.com |
i'll try again this weekend with 3000.1 |
fixes were released in Neon, please open a new ticket if issues persist |
Description of Issue/Question
We are using mysql_user.present saltstate to maintain the db user via salstack
After the last release the we are not able to use the saltstate any more it is showing the error
Setup
Steps to Reproduce Issue
Versions Report
The text was updated successfully, but these errors were encountered: