https application health check with consul

265 views
Skip to first unread message

sanjaya.g...@gmail.com

unread,
Feb 20, 2017, 3:11:09 AM2/20/17
to Consul
Hi All,

I have a spring boot application that runs on https. Consul is unable to do the health check due to the application is https. When i change it to http, it works.

Any solution for this?


thanks

Lowe Schmidt

unread,
Feb 20, 2017, 3:22:06 AM2/20/17
to consu...@googlegroups.com
Hey,

could you please show the logs for both the app and consul ? 

It's really hard and error prone to troubleshoot a problem without any data. 

Regards,

--
Lowe Schmidt | +46 723 867 157

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/f13b0418-c474-4cec-8802-bc4d8809f54b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sanjaya.g...@gmail.com

unread,
Feb 20, 2017, 4:00:24 AM2/20/17
to Consul
    2017/02/20 16:56:11 [DEBUG] http: Request GET /v1/kv/config/application/?recurse&wait=55s (1.0001ms) from=127.0.0.1:54241
   
2017/02/20 16:56:12 [DEBUG] http: Request GET /v1/kv/config/null/?recurse&wait=55s (0s) from=127.0.0.1:54241
   
2017/02/20 16:56:12 [DEBUG] http: Request GET /v1/kv/config/application/?recurse&wait=55s (0s) from=127.0.0.1:54241
   
2017/02/20 16:56:12 [WARN] agent: http request failed 'http://xxxxx:8443/health': Get http://xxxx:844
3/health: EOF
   
2017/02/20 16:56:12 [DEBUG] http: Request GET /v1/catalog/services?wait=2s&index=1054 (2.0792079s) from=127.0.0.1:54225
   
2017/02/20 16:56:13 [DEBUG] http: Request GET /v1/kv/config/null/?recurse&wait=55s (0s) from=127.0.0.1:54225

it seems to me like it is trying to check with http when the application is https

On Monday, February 20, 2017 at 4:22:06 PM UTC+8, Lowe Schmidt wrote:
Hey,

could you please show the logs for both the app and consul ? 

It's really hard and error prone to troubleshoot a problem without any data. 

Regards,

--
Lowe Schmidt | +46 723 867 157

On 20 February 2017 at 09:11, <sanjaya.g...@gmail.com> wrote:
Hi All,

I have a spring boot application that runs on https. Consul is unable to do the health check due to the application is https. When i change it to http, it works.

Any solution for this?


thanks

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
IRC: #consul on Freenode
---
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.

Lowe Schmidt

unread,
Feb 20, 2017, 4:35:01 AM2/20/17
to consu...@googlegroups.com
Hi,

I have a few follow up questions and thoughts, in no particular order: 

It looks like the http check fails, have you an example where https checks fails?
Can you show us what the check definition looks like?
Do you have an /health endpoint in your app? 

--
Lowe Schmidt | +46 723 867 157

To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/1e0cba69-636a-4ff0-b612-bd7e2d68967b%40googlegroups.com.

sanjaya.g...@gmail.com

unread,
Feb 20, 2017, 4:49:24 AM2/20/17
to Consul
health check end point works when i manually enter it in the browser. But consul UI fails to check the health status as consul is still trying to check http.

if i changed my spring boot application to http by commenting configuration, then works.

#server.ssl.enable=true

sanjaya.g...@gmail.com

unread,
Feb 21, 2017, 3:01:14 AM2/21/17
to Consul
Hi,

Does Consul support health checking for applications running on HTTPS?

thanks

adrian...@bluesombrero.com

unread,
Feb 21, 2017, 4:18:04 PM2/21/17
to Consul
What is your check configuration? If you have the URL as https in the config, it should check using https.
Reply all
Reply to author
Forward
0 new messages