testsigma icon indicating copy to clipboard operation
testsigma copied to clipboard

[Bug]: Install the Testsigma by docker-compose, happened problem stay at mysql container staring long time

Open tiandong19860806 opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

What is the current behavior?

when I run script 'docker-compose up -d', there is start testsigma two container normal and not stay starting long time.


[docker@CNT7XATST01 docker-compose-yml]$ docker-compose up -d [+] Running 1/2 [+] Running 1/2stsigma_mysql Waiting 310.6s ⠿ Container testsigma_mysql Waiting 2749.7s ⠿ Container testsigma_server Created 0.1s

What is the expected behavior?

I expect result : it is start testsigma two container normal. (1) mysql container is startup normal. (2) testsigma container also is startup normal.

Steps To Reproduce

(1) OS version [root@CNT7XATST01 ~]# uname -a Linux CNT7XATST01 3.10.0-1160.el7.x86_64 https://github.com/testsigmahq/testsigma/pull/1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

(2) docker version [root@CNT7XATST01 ~]# docker --version Docker version 20.10.17, build 100c701 [root@CNT7XATST01 ~]# [root@CNT7XATST01 ~]# docker-compose --version Docker Compose version v2.9.0

(3) Testsigma install by docker as below cat > /home/app/testsigma-server/docker-compose-yml/docker-compose.yml << EOF version: "3.9" services: mysql: image: mysql:5.7 platform: linux/x86_64 container_name: testsigma_mysql restart: always volumes:

  • /home/data/testsigma-server/db_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: root MYSQL_DATABASE: db_testsigma_opensource LANG: C.UTF-8 LC_ALL: C.UTF-8 ports:
  • "3306:3306" command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci healthcheck: test: out=$$(mysqladmin ping -h localhost -P 3306 -u root --password=root 2>&1); echo $$out | grep 'mysqld is alive' || { echo $$out; exit 1; } interval: 300s retries: 10 testsigma_server: image: testsigmahq/server:v1.1.0 container_name: testsigma_server ports:
  • "9090:9090"
  • "443:443" volumes:
  • /home/data/testsigma-server/ts_data:/opt/app/ts_data depends_on: mysql: condition: service_healthy EOF

-- and detail steps , look below url https://github.com/testsigmahq/testsigma/discussions/79

Version

Testsigma Community Edition

tiandong19860806 avatar Aug 04 '22 07:08 tiandong19860806

@tiandong19860806 Can you update to the latest version (2.7) and check. Also provide details of the OS version you are using if reproduced

tarun-testsigma avatar Feb 13 '23 08:02 tarun-testsigma