Skip to content

Instantly share code, notes, and snippets.

@mafonso
Created December 6, 2016 14:34
Show Gist options
  • Save mafonso/2ed99d729e3ea840c5a954710ab42eac to your computer and use it in GitHub Desktop.
Save mafonso/2ed99d729e3ea840c5a954710ab42eac to your computer and use it in GitHub Desktop.
2016/12/06 14:31:58.477298 [INFO] consul-template v0.16.0
2016/12/06 14:31:58.477321 [INFO] (runner) creating new runner (dry: false, once: false)
2016/12/06 14:31:58.477615 [DEBUG] (runner) final config (tokens suppressed):
{
"Path": "/usr/local/consul-template/config/nginx.hcl",
"Consul": "172.17.0.1:8500",
"Token": "",
"ReloadSignal": 1,
"DumpSignal": 3,
"KillSignal": 2,
"Auth": {
"Enabled": false,
"Username": "",
"Password": ""
},
"Vault": {
"Address": "",
"UnwrapToken": false,
"RenewToken": true,
"SSL": {
"Enabled": true,
"Verify": true,
"Cert": "",
"Key": "",
"CaCert": ""
}
},
"SSL": {
"Enabled": false,
"Verify": true,
"Cert": "",
"Key": "",
"CaCert": ""
},
"Syslog": {
"Enabled": false,
"Facility": "LOCAL0"
},
"Exec": {
"Command": "/usr/local/openresty/bin/openresty -g \"daemon off;\"",
"Splay": 0,
"ReloadSignal": null,
"KillSignal": 15,
"KillTimeout": 30000000000
},
"MaxStale": 1000000000,
"ConfigTemplates": [
{
"Source": "/usr/local/consul-template/templates/service.ctmpl",
"Destination": "/usr/local/openresty/nginx/conf/nginx.conf",
"Command": "/usr/local/openresty/bin/openresty -s reload",
"CommandTimeout": 30000000000,
"Perms": 420,
"Backup": false,
"LeftDelim": "",
"RightDelim": "",
"Wait": {
"min": 0,
"max": 0
}
}
],
"Retry": 5000000000,
"Wait": {
"min": 0,
"max": 0
},
"PidFile": "",
"LogLevel": "debug",
"Deduplicate": {
"Enabled": false,
"Prefix": "consul-template/dedup/",
"TTL": 15000000000
}
}
2016/12/06 14:31:58.477672 [INFO] (clients) creating consul/api client
2016/12/06 14:31:58.477688 [DEBUG] (clients) setting consul address to "172.17.0.1:8500"
2016/12/06 14:31:58.477698 [INFO] (clients) creating vault/api client
2016/12/06 14:31:58.477709 [DEBUG] (clients) enabling vault SSL
2016/12/06 14:31:58.477730 [INFO] (runner) creating Watcher
2016/12/06 14:31:58.478823 [INFO] (runner) starting
2016/12/06 14:31:58.478847 [DEBUG] (runner) running initial templates
2016/12/06 14:31:58.478858 [INFO] (runner) running
2016/12/06 14:31:58.478908 [DEBUG] (runner) checking template /usr/local/consul-template/templates/service.ctmpl
2016/12/06 14:31:58.479388 [INFO] (runner) was not watching 2 dependencies
2016/12/06 14:31:58.479397 [INFO] (watcher) adding "services"
2016/12/06 14:31:58.479405 [DEBUG] (watcher) "services" starting
2016/12/06 14:31:58.479415 [INFO] (watcher) adding "services"
2016/12/06 14:31:58.479423 [DEBUG] (watcher) "services" already exists, skipping
2016/12/06 14:31:58.479429 [INFO] (runner) diffing and updating dependencies
2016/12/06 14:31:58.479442 [INFO] (runner) watching 1 dependencies
2016/12/06 14:31:58.479481 [DEBUG] (view) "services" starting fetch
2016/12/06 14:31:58.479553 [DEBUG] ("services") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:0 WaitTime:1m0s Token: Near:}
2016/12/06 14:31:58.483647 [DEBUG] ("services") Consul returned 6 catalog services
2016/12/06 14:31:58.483669 [INFO] (view) "services" received data
2016/12/06 14:31:58.483678 [DEBUG] (view) "services" starting fetch
2016/12/06 14:31:58.483728 [DEBUG] ("services") querying Consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:4223 WaitTime:1m0s Token: Near:}
2016/12/06 14:31:58.483817 [DEBUG] (runner) receiving dependency "services"
2016/12/06 14:31:58.483830 [INFO] (runner) running
2016/12/06 14:31:58.483838 [DEBUG] (runner) checking template /usr/local/consul-template/templates/service.ctmpl
2016/12/06 14:31:58.484448 [INFO] (runner) was not watching 4 dependencies
2016/12/06 14:31:58.484457 [INFO] (watcher) adding "service(app1 [passing])"
2016/12/06 14:31:58.484463 [DEBUG] (watcher) "service(app1 [passing])" starting
2016/12/06 14:31:58.484468 [INFO] (watcher) adding "service(app2 [passing])"
2016/12/06 14:31:58.484473 [DEBUG] (watcher) "service(app2 [passing])" starting
2016/12/06 14:31:58.484479 [INFO] (watcher) adding "service(app1 [passing])"
2016/12/06 14:31:58.484484 [DEBUG] (watcher) "service(app1 [passing])" already exists, skipping
2016/12/06 14:31:58.484489 [INFO] (watcher) adding "service(app2 [passing])"
2016/12/06 14:31:58.484493 [DEBUG] (watcher) "service(app2 [passing])" already exists, skipping
2016/12/06 14:31:58.484497 [INFO] (runner) diffing and updating dependencies
2016/12/06 14:31:58.484502 [DEBUG] (runner) "services" is still needed
2016/12/06 14:31:58.484507 [INFO] (runner) watching 3 dependencies
2016/12/06 14:31:58.484523 [DEBUG] (view) "service(app2 [passing])" starting fetch
2016/12/06 14:31:58.484554 [DEBUG] ("service(app2 [passing])") querying consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:0 WaitTime:1m0s Token: Near:}
2016/12/06 14:31:58.484809 [DEBUG] (view) "service(app1 [passing])" starting fetch
2016/12/06 14:31:58.484851 [DEBUG] ("service(app1 [passing])") querying consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:0 WaitTime:1m0s Token: Near:}
2016/12/06 14:31:58.487416 [DEBUG] ("service(app2 [passing])") Consul returned 3 services
2016/12/06 14:31:58.487434 [DEBUG] ("service(app2 [passing])") 3 services after health check status filtering
2016/12/06 14:31:58.487447 [INFO] (view) "service(app2 [passing])" received data
2016/12/06 14:31:58.487461 [DEBUG] (view) "service(app2 [passing])" starting fetch
2016/12/06 14:31:58.487508 [DEBUG] ("service(app2 [passing])") querying consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:4223 WaitTime:1m0s Token: Near:}
2016/12/06 14:31:58.487626 [DEBUG] (runner) receiving dependency "service(app2 [passing])"
2016/12/06 14:31:58.487639 [INFO] (runner) running
2016/12/06 14:31:58.487645 [DEBUG] (runner) checking template /usr/local/consul-template/templates/service.ctmpl
2016/12/06 14:31:58.487836 [DEBUG] ("service(app1 [passing])") Consul returned 3 services
2016/12/06 14:31:58.487857 [DEBUG] ("service(app1 [passing])") 3 services after health check status filtering
2016/12/06 14:31:58.487869 [INFO] (view) "service(app1 [passing])" received data
2016/12/06 14:31:58.487885 [DEBUG] (view) "service(app1 [passing])" starting fetch
2016/12/06 14:31:58.487922 [DEBUG] ("service(app1 [passing])") querying consul with &{Datacenter: AllowStale:true RequireConsistent:false WaitIndex:4223 WaitTime:1m0s Token: Near:}
2016/12/06 14:31:58.488420 [INFO] (runner) missing data for 1 dependencies
2016/12/06 14:31:58.488432 [INFO] (runner) diffing and updating dependencies
2016/12/06 14:31:58.488439 [DEBUG] (runner) "services" is still needed
2016/12/06 14:31:58.488446 [DEBUG] (runner) "service(app1 [passing])" is still needed
2016/12/06 14:31:58.488453 [DEBUG] (runner) "service(app2 [passing])" is still needed
2016/12/06 14:31:58.488461 [INFO] (runner) watching 3 dependencies
2016/12/06 14:31:58.488478 [DEBUG] (runner) receiving dependency "service(app1 [passing])"
2016/12/06 14:31:58.488488 [INFO] (runner) running
2016/12/06 14:31:58.488495 [DEBUG] (runner) checking template /usr/local/consul-template/templates/service.ctmpl
2016/12/06 14:31:58.489225 [DEBUG] (runner) checking ctemplate &{Source:/usr/local/consul-template/templates/service.ctmpl Destination:/usr/local/openresty/nginx/conf/nginx.conf Command:/usr/local/openresty/bin/openresty -s reload CommandTimeout:30s Perms:-rw-r--r-- Backup:false LeftDelim: RightDelim: Wait:0xc4200cca80}
2016/12/06 14:31:58.499048 [DEBUG] (runner) wouldRender: true, didRender: true
2016/12/06 14:31:58.499066 [DEBUG] (runner) appending command: /usr/local/openresty/bin/openresty -s reload
2016/12/06 14:31:58.499073 [INFO] (runner) diffing and updating dependencies
2016/12/06 14:31:58.499079 [DEBUG] (runner) "services" is still needed
2016/12/06 14:31:58.499084 [DEBUG] (runner) "service(app1 [passing])" is still needed
2016/12/06 14:31:58.499089 [DEBUG] (runner) "service(app2 [passing])" is still needed
2016/12/06 14:31:58.499097 [DEBUG] (runner) running command: `/usr/local/openresty/bin/openresty -s reload`, timeout: 30s
2016/12/06 14:31:58 [notice] 20#20: signal process started
2016/12/06 14:31:58 [error] 20#20: open() "/usr/local/openresty/nginx/logs/nginx.pid" failed (2: No such file or directory)
nginx: [error] open() "/usr/local/openresty/nginx/logs/nginx.pid" failed (2: No such file or directory)
2016/12/06 14:31:58.539934 [ERR] (runner) error running command: exit status 1
Consul Template returned errors:
1 error(s) occurred:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment