The following warnings occurred:
Warning [2] Undefined array key "extra" - Line: 100 - File: inc/plugins/google_seo/url.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/url.php 100 errorHandler->error_callback
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 263 pluginSystem->load
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined variable $location - Line: 1250 - File: inc/plugins/google_seo/url.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/url.php 1250 errorHandler->error_callback
/inc/plugins/google_seo/url.php 174 google_seo_url_hook
/inc/plugins/google_seo.php 317 require_once
/inc/class_plugins.php 38 require_once
/inc/init.php 263 pluginSystem->load
/global.php 20 require_once
/printthread.php 16 require_once
Warning [2] Undefined array key "oa_social_login_custom_caption" - Line: 356 - File: inc/plugins/oa_social_login.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/oa_social_login.php 356 errorHandler->error_callback
/inc/plugins/oa_social_login.php 197 oa_social_login_load_plugin
/inc/class_plugins.php 142 oa_social_login_load_plugin_hook_any
/global.php 498 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined variable $unreadreports - Line: 44 - File: global.php(961) : eval()'d code PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/global.php(961) : eval()'d code 44 errorHandler->error_callback
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "button_www" - Line: 273 - File: inc/plugins/google_seo/meta.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/meta.php 273 errorHandler->error_callback
/inc/plugins/google_seo/meta.php 252 google_seo_meta_posts
/inc/plugins/google_seo/meta.php 288 google_seo_meta_thread
/inc/class_plugins.php 142 google_seo_meta_printthread
/printthread.php 210 pluginSystem->run_hooks
Warning [2] Undefined array key "button_www" - Line: 273 - File: inc/plugins/google_seo/meta.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/meta.php 273 errorHandler->error_callback
/inc/plugins/google_seo/meta.php 301 google_seo_meta_posts
/inc/class_plugins.php 142 google_seo_meta_printthread_post
/printthread.php 210 pluginSystem->run_hooks
Warning [2] Undefined array key "button_www" - Line: 273 - File: inc/plugins/google_seo/meta.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo/meta.php 273 errorHandler->error_callback
/inc/plugins/google_seo/meta.php 301 google_seo_meta_posts
/inc/class_plugins.php 142 google_seo_meta_printthread_post
/printthread.php 210 pluginSystem->run_hooks



AWS Discussion Forum
Target group health check failed - Printable Version

+- AWS Discussion Forum (https://letstalkaws.com)
+-- Forum: Q & A (https://letstalkaws.com/forum-10.html)
+--- Forum: System Administration Help (https://letstalkaws.com/forum-25.html)
+--- Thread: Target group health check failed (/thread-82.html)



Target group health check failed - sreekarachanta - 24-02-2023

Folks we are facing the below issue , can anyone help me here? 

Issue: Target group health check failing .

We configured blue green ecs deployment . When we have a single ec2 instance in the cluster and when we create ECS service with desired task count as 1 - the task will place a container on port 8080. 

Next time when we do a deployment - the service fails since the port 8080 is already in use in the container instance . So we decided to use the dynamic port mapping in task definition but in that case the target group health check is failing with the settings like in the image.


RE: Target group health check failed - fzs - 24-02-2023

Few question to add some context here.

1. So, with just the initial deployment, the target groups works and only when you do additional deployments its failing? Or does the target group never work?
2. Is the inbound from the LB SG allowed on the EC2 SG?
3. In ECS, what network mode are you using?

Also, please confirm if all instruction on this link was follwed correctly including the exceptions to watch out for: https://aws.amazon.com/premiumsupport/knowledge-center/dynamic-port-mapping-ecs/


RE: Target group health check failed - sreekarachanta - 24-02-2023

Yes first time when we deploy after giving host and container port the same i.e. 8080 it gets deployed and runs fine(only one ec2 instance exists at that time). When we increase the desired count to 2, the new one fails saying port is already in use(obvious).
We have allowed the inbound traffic for all ports on EC2 SG from ALB SG
We have not mentioned any network mode so its automatically taking bridge mode. other modes have some issues with dynamic port mapping so we are not specifying any network modes.

We rechecked the article and found that all the recommend settings are already in place as specified in the link.