When trying to run chef-load i am getting the following error:
/usr/local/bin/chef-load -config chef-load.toml -nodes 6 --interval 1
Issue setting up client: asn1: structure error: tags don't match (2 vs {class:0 tag:16 length:13 isCompound:true}) {optional:false explicit:false application:false defaultValue: tag: stringType:0 timeType:0 set:false omitEmpty:false} @5
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6515c2]
goroutine 1 [running]:
main.getAPIClient(0xc420064e01, 0xa, 0xc4200c44c1, 0x15, 0xc4200826e0, 0x4d, 0x0, 0x0, 0x0, 0x0, ...)
/Users/snappj/work/go-work/src/github.com/jeremiahsnapp/chef-load/util.go:54 +0x202
main.main()
/Users/snappj/work/go-work/src/github.com/jeremiahsnapp/chef-load/main.go:101 +0x825
here is the config:chef-load.toml
chef_server_url = "https://ip-10-xxx-xxx-xx.x,x,x,x/organizations/spacewalkprod"
The client defined by client_name needs to be an admin user of the Chef Server org.
client_name = "spediadmin"
client_key = "/root/swprodadmin.pem"
data_collector_url = "https://ip-10-xxx-xxx-xx.xx.xx.xx.xx/data-collector/v0/"
The Authorization token for the Automate server.
The following default value is sufficient unless you set your own token in your Automate server.
data_collector_token = "2222"
ohai_json_file = "/path/to/example-ohai.json"
converge_status_json_file = "/path/to/example-converge-status.json"
compliance_status_json_file = "/path/to/example-compliance-status.json"
num_nodes = 30
interval = 30
node_name_prefix = "chef-load"
chef_environment = "_default"
run_list = [ ]
sleep_duration = 0
download_cookbooks = "never"
api_get_requests = [ ]
chef_version = "13.2.20"
chef_server_creates_client_key = false
enable_reporting = false
When trying to run chef-load i am getting the following error:
/usr/local/bin/chef-load -config chef-load.toml -nodes 6 --interval 1
Issue setting up client: asn1: structure error: tags don't match (2 vs {class:0 tag:16 length:13 isCompound:true}) {optional:false explicit:false application:false defaultValue: tag: stringType:0 timeType:0 set:false omitEmpty:false} @5
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6515c2]
goroutine 1 [running]:
main.getAPIClient(0xc420064e01, 0xa, 0xc4200c44c1, 0x15, 0xc4200826e0, 0x4d, 0x0, 0x0, 0x0, 0x0, ...)
/Users/snappj/work/go-work/src/github.com/jeremiahsnapp/chef-load/util.go:54 +0x202
main.main()
/Users/snappj/work/go-work/src/github.com/jeremiahsnapp/chef-load/main.go:101 +0x825
here is the config:chef-load.toml
For example: chef_server_url = "https://chef.example.com/organizations/demo/"
chef_server_url = "https://ip-10-xxx-xxx-xx.x,x,x,x/organizations/spacewalkprod"
The client defined by client_name needs to be an admin user of the Chef Server org.
client_name = "spediadmin"
client_key = "/root/swprodadmin.pem"
For example: data_collector_url = "https://automate.example.org/data-collector/v0/"
data_collector_url = "https://ip-10-xxx-xxx-xx.xx.xx.xx.xx/data-collector/v0/"
The Authorization token for the Automate server.
The following default value is sufficient unless you set your own token in your Automate server.
data_collector_token = "2222"
ohai_json_file = "/path/to/example-ohai.json"
converge_status_json_file = "/path/to/example-converge-status.json"
compliance_status_json_file = "/path/to/example-compliance-status.json"
num_nodes = 30
interval = 30
node_name_prefix = "chef-load"
chef_environment = "_default"
run_list = [ ]
sleep_duration = 0
download_cookbooks = "never"
api_get_requests = [ ]
chef_version = "13.2.20"
chef_server_creates_client_key = false
enable_reporting = false