Some page loading is slow (docker compose)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 152
- Avg merge
- 16h 18m
- Merged PRs (30d)
- 12
Description
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.
```sh
docker compose up -d
docker compose run web docker-compose-bootstrap
```
I set up my environment with this commands
```sh
$ 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](https://hub.docker.com/layers/line/promgen/latest/images/sha256-f2ae484e89cef4ceb7cdb547314af98e3ded8cbaf0e36202e64a09a396d1ff4e?context=explore) (0.58.3)
- (but version on website title is 0.58.1 😮)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with `docker compose up -d` and the documented bootstrap command, then compare the main and login pages with `/url`, `/rule`, and `/service`. Trace the worker timeout shown in the logs; done means the affected pages load without timing out in the reported Docker Compose setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, python
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100