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

cmd is fine but, windows service get problem error 1053 #814

Open
imamhadid opened this issue Feb 13, 2024 · 0 comments
Open

cmd is fine but, windows service get problem error 1053 #814

imamhadid opened this issue Feb 13, 2024 · 0 comments

Comments

@imamhadid
Copy link

Host operating system: windows server 2019

mysqld_exporter version:

mysqld_exporter.exe --version
mysqld_exporter, version 0.15.1 (branch: HEAD, revision: cc349684494b5038ec5a52233bdca9eb9291e6f2)
  build user:       root@f3baed0b5dc7
  build date:       20231212-07:54:54
  go version:       go1.21.5
  platform:         windows/386
  tags:             unknown

MySQL server version

MySQL 8.3

mysqld_exporter command line flags

"C:\Program Files\mysqld_exporter\mysqld_exporter.exe" --mysqld.address="localhost:33066"  --config.my-cnf="C:\Program Files\mysqld_exporter\.my.cnf"

everything is fine when i run with my cmd admninistrator.

sample run success with cmd

"C:\Program Files\mysqld_exporter\mysqld_exporter.exe" --mysqld.address="localhost:33066"  --config.my-cnf="C:\Program Files\mysqld_exporter\.my.cnf"
ts=2024-02-13T10:33:06.709Z caller=mysqld_exporter.go:220 level=info msg="Starting mysqld_exporter" version="(version=0.15.1, branch=HEAD, revision=cc349684494b5038ec5a52233bdca9eb9291e6f2)"
ts=2024-02-13T10:33:06.709Z caller=mysqld_exporter.go:221 level=info msg="Build context" build_context="(go=go1.21.5, platform=windows/386, user=root@f3baed0b5dc7, date=20231212-07:54:54, tags=unknown)"
ts=2024-02-13T10:33:06.709Z caller=mysqld_exporter.go:233 level=info msg="Scraper enabled" scraper=global_status
ts=2024-02-13T10:33:06.709Z caller=mysqld_exporter.go:233 level=info msg="Scraper enabled" scraper=global_variables
ts=2024-02-13T10:33:06.709Z caller=mysqld_exporter.go:233 level=info msg="Scraper enabled" scraper=slave_status
ts=2024-02-13T10:33:06.709Z caller=mysqld_exporter.go:233 level=info msg="Scraper enabled" scraper=info_schema.innodb_cmp
ts=2024-02-13T10:33:06.709Z caller=mysqld_exporter.go:233 level=info msg="Scraper enabled" scraper=info_schema.innodb_cmpmem
ts=2024-02-13T10:33:06.709Z caller=mysqld_exporter.go:233 level=info msg="Scraper enabled" scraper=info_schema.query_response_time
ts=2024-02-13T10:33:06.710Z caller=tls_config.go:274 level=info msg="Listening on" address=[::]:9104
ts=2024-02-13T10:33:06.710Z caller=tls_config.go:277 level=info msg="TLS is disabled." http2=false address=[::]:9104

but want run mysqld_exporter to my service windows
this error event log

The mysqld_exporter service failed to start due to the following error: 
The service did not respond to the start or control request in a timely fashion.

already try with nssm and still got error like this

A timeout was reached (30000 milliseconds) while waiting for the mysqld_exporter service to connect.
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

1 participant