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

check.go:36: no found item assigned to #26

Closed
jwping opened this issue Nov 27, 2019 · 2 comments
Closed

check.go:36: no found item assigned to #26

jwping opened this issue Nov 27, 2019 · 2 comments

Comments

@jwping
Copy link

jwping commented Nov 27, 2019

[root@localhost urlooker]# cat logs/agent/stdout.log
configContent:
debug: false
hostname: "hostname1"
worker: 1000
web:
addrs: ["127.0.0.1:1985"]
interval: 60
timeout: 10002019/11/28 03:43:10 config.go:64: &{false hostname1 1000 0xc0000d4990}
2019/11/28 03:43:10 config.go:65: load configuration file configs/agent.yml successfully
g.Config.Web.Addrs: &{false hostname1 1000 0xc0000d4990}
2019/11/28 03:43:10 check.go:36: no found item assigned to hostname1

这里我已经将agent.yml的hostname与web.yml的monitorMap设置一致,如下:
agent.yml:
hostname: "hostname1"

web.yml:
monitorMap:
default: ["hostname1"]
idc1: ["hostname.2"]

[root@localhost urlooker]# cat logs/web/stdout.log
2019/11/28 03:43:10 config.go:113: &{false [admin] e84d0755dda7a538315ea7a95a8c36af true 30 12 0xc0000991c0 0xc000120780 0xc00015d420 0xc0000991e0 0xc0000aa550 0xc000099320 0xc000099340 map[default:[hostname1] idc1:[hostname.2]]}
2019/11/28 03:43:10 config.go:115: load configuration file configs/web.yml successfully
2019/11/28 03:43:10 mysql.go:18: &{false [admin] e84d0755dda7a538315ea7a95a8c36af true 30 12 0xc0000991c0 0xc000120780 0xc00015d420 0xc0000991e0 0xc0000aa550 0xc000099320 0xc000099340 map[default:[hostname1] idc1:[hostname.2]]}
[negroni] listening on 0.0.0.0:1984
2019/11/28 03:43:10 rpc.go:24: listening on 0.0.0.0:1985

@jwping
Copy link
Author

jwping commented Nov 27, 2019

发现web log存在报错:
[root@localhost urlooker]# cat logs/web/stdout.log
2019/11/28 03:43:10 config.go:113: &{false [admin] e84d0755dda7a538315ea7a95a8c36af true 30 12 0xc0000991c0 0xc000120780 0xc00015d420 0xc0000991e0 0xc0000aa550 0xc000099320 0xc000099340 map[default:[hostname1] idc1:[hostname.2]]}
2019/11/28 03:43:10 config.go:115: load configuration file configs/web.yml successfully
2019/11/28 03:43:10 mysql.go:18: &{false [admin] e84d0755dda7a538315ea7a95a8c36af true 30 12 0xc0000991c0 0xc000120780 0xc00015d420 0xc0000991e0 0xc0000aa550 0xc000099320 0xc000099340 map[default:[hostname1] idc1:[hostname.2]]}
[negroni] listening on 0.0.0.0:1984
2019/11/28 03:43:10 rpc.go:24: listening on 0.0.0.0:1985
2019/11/28 03:43:10 fetcher.go:30: get strategies error: Error 1054: Unknown column 'method' in 'field list'
2019/11/28 03:43:11 fetcher.go:30: get strategies error: Error 1054: Unknown column 'method' in 'field list'
2019/11/28 03:43:12 fetcher.go:30: get strategies error: Error 1054: Unknown column 'method' in 'field list'
2019/11/28 03:43:13 fetcher.go:30: get strategies error: Error 1054: Unknown column 'method' in 'field list'
2019/11/28 03:43:14 fetcher.go:30: get strategies error: Error 1054: Unknown column 'method' in 'field list'
2019/11/28 03:43:15 fetcher.go:30: get strategies error: Error 1054: Unknown column 'method' in 'field list'
2019/11/28 03:43:16 fetcher.go:30: get strategies error: Error 1054: Unknown column 'method' in 'field list'

@710leo
Copy link
Owner

710leo commented Dec 17, 2019

@Anshan-pl 你使用的应该是旧代码,最新的代码没有问题

@710leo 710leo closed this as completed Dec 17, 2019
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

2 participants