-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
"Could not initialize input inputs.mysql" while testing #12591 #12916
Comments
Installed per instructions, but I am now receiving the following error:
No changes to config file, but here is the server string Additionally, this is unrelated and more lack of knowledge...but when I check I even tried removing the global tag for user and set to the following with the same results:
|
To be safe, I made sure I could login with the credentials stored in the secrets manager, and I can manually. So.. mysql -u SumoMonitoring -p I enter the password "password" and i am able to connect to the db instance. So I know the password is correct/ |
Are you sure the PR binary is stored as
and post the (redacted) output? |
@srebhan |
Attaching file |
@jfrye121 I do not see any error message... Did you maybe only cut out a part of the log? If so, can you please post the full log? |
Let me rebuild the instance start from scratch with the build. |
@srebhan It looks like when telegraf is attempting to connect to mariadb, the connection is refused. After enabling logging for mariadb, I was able to see that the full error is as follows: 2023-03-30 18:08:07 31 [Warning] Access denied for user 'telegraf'@'localhost' (using password: NO) So it seems that the password is not being passed. I verified that I can manually login to mariadb using the same credentials and I am able to.
Ran |
telegraf is the correct user and the password is correct. manually logged in using the following mysql -u telegraf --password=password or if I enter this way, same thing, works like a charm mysql -u telegraf -p Connection is a success, mysql client loads. telegraf.log:
error.log
|
Telegraf 1.27.0-4d208f27 (git: pull/12919@4d208f27)' version output on ec2 instance |
After a quick discussion with @srebhan , I looked into the mariadb config file and noticed that the server was binding to local host. I commented this out and telegraf was able to successfully connect with the user credentials. Closing issue! Thank you all for the help. |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.26.0, Ubuntu Server 22.04 LTS, AWS ec2 instance
Docker
No response
Steps to reproduce
telegraf --password "enteryourpasswordtoallowaccess"
...
Expected behavior
Telegraf starts, with provided password to unlock secret store
Actual behavior
Telegraf command does not error out, however, the service does not start and error thrown in log
E! [telegraf] Error running agent: could not initialize input inputs.mysql: getting server 0 failed
Additional info
I was testing #12591 when I ran into this issue. DM'd Sven Rebhan as I was working with him prior, and was advised to open an issue.
The text was updated successfully, but these errors were encountered: