[ZBX-24184] docker web container unhealthy Created: 2024 Mar 05  Updated: 2024 Mar 06  Resolved: 2024 Mar 06

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.4.12
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Matas Danisas Assignee: Zabbix Support Team
Resolution: Commercial support required Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux Ubuntu latest LTS


Attachments: PNG File image-2024-03-05-07-10-29-180.png    

 Description   

Steps to reproduce:

  1. Installing docker-compose
  2. sudo docker-compose -f ./docker-compose_v3_ubuntu_mysql_latest.yaml up -d
  3. localhost, 127.0.01 dont connect. checking status - web(probably frontend) container is unhealthy and i see the status of only 3 containers out of 4
  4. Checking web logs - 
    2024-03-05T04:19:10.971663688Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:19:25.988722810Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:19:41.007772635Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:19:56.019096651Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:20:11.028459065Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:20:26.043210685Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:20:41.062801410Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:20:56.078540530Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:21:11.096929054Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:21:26.111598696Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:21:41.129085930Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:21:56.145851764Z  **** MySQL server is not available. Waiting 5 seconds...
    2024-03-05T04:22:11.161794097Z  **** MySQL server is not available. Waiting 5 seconds...
    

Result:

Expected:
See screenshot....
See attached patch file...



 Comments   
Comment by Edgar Akhmetshin [ 2024 Mar 06 ]

You cannot configure Zabbix Server image to use mysql by localhost or 127.0.0.1, read https://docs.docker.com/network/.

Please be advised that this section of the tracker is for bug reports only. The case you have submitted can not be qualified as one, so please reach out to [email protected] for commercial support (https://zabbix.com/support) or consultancy services. Alternatively, you can also use our community channels (https://www.zabbix.com/community) for assistance. With that said, we are closing this ticket. Thank you for understanding.

Generated at Tue Apr 08 21:43:08 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.