Skip to content

Instantly share code, notes, and snippets.

@cachedout
Created December 11, 2018 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cachedout/97780a77c1e9a35c18834115cf21faed to your computer and use it in GitHub Desktop.
Save cachedout/97780a77c1e9a35c18834115cf21faed to your computer and use it in GitHub Desktop.
PARSING DSN
wrongparsing host: wrong:test@tcp(127.0.0.1:3306)/
goroutine 1 [running]:
runtime/debug.Stack(0x20, 0x0, 0xc00068eeb8)
/usr/local/Cellar/go/1.11.2/libexec/src/runtime/debug/stack.go:24 +0xa7
runtime/debug.PrintStack()
/usr/local/Cellar/go/1.11.2/libexec/src/runtime/debug/stack.go:16 +0x22
github.com/elastic/beats/metricbeat/module/mysql.ParseDSN(0x5978c60, 0xc0001c0800, 0xc000460ac0, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/module/mysql/mysql.go:59 +0x59
github.com/elastic/beats/metricbeat/mb.initMetricSets(0xc0003d7e30, 0x5978c60, 0xc0001c0800, 0xc0001ebbe0, 0x1, 0x1, 0x2540be400, 0x2540be400)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/mb/builders.go:129 +0x7d1
github.com/elastic/beats/metricbeat/mb.NewModule(0xc00041bcb0, 0xc0003d7e30, 0xc00068f6e8, 0x43a7fa3, 0xc00041bcb0, 0x52b1e60, 0xc00068f6e8, 0x400e778, 0x50)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/mb/builders.go:64 +0x19b
github.com/elastic/beats/metricbeat/mb/module.NewWrapper(0xc00041bcb0, 0xc0003d7e30, 0xc0004ce050, 0x1, 0x1, 0x0, 0x0, 0xc0002978c0)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:81 +0x4d
github.com/elastic/beats/metricbeat/mb/module.(*Factory).Create(0xc000484d80, 0x5978660, 0xc000498dc0, 0xc00041bcb0, 0x0, 0x4, 0x4, 0x0, 0x0)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/mb/module/factory.go:50 +0xde
github.com/elastic/beats/libbeat/cfgfile.(*Reloader).Check(0xc000184f50, 0x5969560, 0xc000484d80, 0xc000184f50, 0xc0005761e0)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/libbeat/cfgfile/reload.go:140 +0x28c
github.com/elastic/beats/metricbeat/beater.(*Metricbeat).Run(0xc0001d0000, 0xc0004b7440, 0x6b33790, 0x1)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/beater/metricbeat.go:220 +0x474
github.com/elastic/beats/libbeat/cmd/instance.(*Beat).launch(0xc0004b7440, 0x5738a55, 0xa, 0x5738a55, 0xa, 0x0, 0x0, 0x0, 0x0, 0xc00014e0f0, ...)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/libbeat/cmd/instance/beat.go:413 +0x4f2
github.com/elastic/beats/libbeat/cmd/instance.Run.func1(0x5738a55, 0xa, 0x5738a55, 0xa, 0x0, 0x0, 0x5738a55, 0xa, 0x5738a55, 0xa, ...)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/libbeat/cmd/instance/beat.go:184 +0x611
github.com/elastic/beats/libbeat/cmd/instance.Run(0x5738a55, 0xa, 0x5738a55, 0xa, 0x0, 0x0, 0x0, 0x0, 0xc00014e0f0, 0x0, ...)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/libbeat/cmd/instance/beat.go:185 +0xbe
github.com/elastic/beats/libbeat/cmd.genRunCmd.func1(0xc0004b7b00, 0xc00012c500, 0x0, 0x5)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/libbeat/cmd/run.go:37 +0x4f
github.com/elastic/beats/vendor/github.com/spf13/cobra.(*Command).execute(0xc0004b7b00, 0xc00012c4b0, 0x5, 0x5, 0xc0004b7b00, 0xc00012c4b0)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/vendor/github.com/spf13/cobra/command.go:704 +0x2d3
github.com/elastic/beats/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0001d2a00, 0xc0000ae058, 0x0, 0xc0000d58c0)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/vendor/github.com/spf13/cobra/command.go:785 +0x2dc
github.com/elastic/beats/vendor/github.com/spf13/cobra.(*Command).Execute(0xc0001d2a00, 0xc0004f1f88, 0xc0000ae058)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/vendor/github.com/spf13/cobra/command.go:738 +0x2b
main.main()
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/main.go:34 +0x2f
PARSING DSN
rootparsing host: root:secret@tcp(127.0.0.1:3306)/
goroutine 176 [running]:
runtime/debug.Stack(0x20, 0x0, 0xc00068b230)
/usr/local/Cellar/go/1.11.2/libexec/src/runtime/debug/stack.go:24 +0xa7
runtime/debug.PrintStack()
/usr/local/Cellar/go/1.11.2/libexec/src/runtime/debug/stack.go:16 +0x22
github.com/elastic/beats/metricbeat/module/mysql.ParseDSN(0x5978c60, 0xc00019e980, 0xc0003dcf00, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/module/mysql/mysql.go:59 +0x59
github.com/elastic/beats/metricbeat/mb.initMetricSets(0xc0003d7e30, 0x5978c60, 0xc00019e980, 0xc000581570, 0x1, 0x1, 0x2540be400, 0x2540be400)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/mb/builders.go:129 +0x7d1
github.com/elastic/beats/metricbeat/mb.NewModule(0xc0003170e0, 0xc0003d7e30, 0xc00068ba60, 0x43a7fa3, 0xc0003170e0, 0x52b1e60, 0xc00068ba60, 0x400e778, 0x50)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/mb/builders.go:64 +0x19b
github.com/elastic/beats/metricbeat/mb/module.NewWrapper(0xc0003170e0, 0xc0003d7e30, 0xc0004ce050, 0x1, 0x1, 0x0, 0x0, 0x0)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/mb/module/wrapper.go:81 +0x4d
github.com/elastic/beats/metricbeat/mb/module.(*Factory).Create(0xc000484d80, 0x5978660, 0xc000498dc0, 0xc0003170e0, 0x0, 0x1, 0xc00012c4b0, 0x0, 0x0)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/mb/module/factory.go:50 +0xde
github.com/elastic/beats/libbeat/cfgfile.(*RunnerList).Reload(0xc0005768c0, 0xc000260f80, 0x4, 0x4, 0x0, 0x0)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/libbeat/cfgfile/list.go:94 +0x7d1
github.com/elastic/beats/libbeat/cfgfile.(*Reloader).Run(0xc000184f50, 0x5969560, 0xc000484d80)
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/libbeat/cfgfile/reload.go:197 +0x3e4
created by github.com/elastic/beats/metricbeat/beater.(*Metricbeat).Run
/Users/mikeplace/devel/elastic/src/github.com/elastic/beats/metricbeat/beater/metricbeat.go:224 +0x4bf
PARSING DSN
rootparsing host: root:secret@tcp(127.0.0.1:3306)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment