Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Some page loading is slow (docker compose) #449

@sh-cho

Description

@sh-cho
image image

It takes more than 30 seconds to load.

Looks like it only happens in main page and login page. /url, /rule, /service pages are ok.

docker compose up -d
docker compose run web docker-compose-bootstrap

I set up my environment with this commands

$ docker compose run web createsuperuser
[+] Creating 2/0
 ✔ Container promgen-redis-1  Running                                                                                                                          0.0s
 ✔ Container promgen-mysql-1  Running                                                                                                                          0.0s
/docker-entrypoint.sh: exec: line 42: createsuperuser: not found

(FYI, It didn't work, so I attached web container and executed promgen createsuperuser inside)

logs

2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:63)
2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [63] [INFO] Worker exiting (pid: 63)
2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [1] [ERROR] Worker (pid:63) exited with code 1
2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [1] [ERROR] Worker (pid:63) exited with code 1.
2023-11-06 22:39:56 promgen-web-1           | [2023-11-06 13:39:56 +0000] [65] [INFO] Booting worker with pid: 65
2023-11-06 22:40:00 promgen-mysql-1         | 2023-11-06T13:40:00.807959Z 121 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2023-11-06 22:40:01 promgen-mysql-1         | 2023-11-06T13:40:01.585994Z 122 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
2023-11-06 22:40:01 promgen-mysql-1         | 2023-11-06T13:40:01.632003Z 123 [Warning] [MY-013360] [Server] Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'

If I enter to slow page(main or login), I can see worker timeout and exiting logs

my environment

  • os: macOS 13.2, M1
  • docker: 24.0.2
  • docker compose: v2.19.1
  • promgen image: line/promgen:latest (0.58.3)
    • (but version on website title is 0.58.1 😮)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions