-
-
Notifications
You must be signed in to change notification settings - Fork 112
Description
Bug Description
Running fredy via docker-compose with file shown below.
Docker version 29.1.2, build 890dcca,
Linux 6.1.57 #11 SMP Fri Apr 26 12:02:53 CST 2024 aarch64 GNU/Linux
Notice that I am running aarch64, this issue might be arm specific.
After some time (roughly once a week), fredy hogs 1 CPU core at 100% and the container size quickly grows (~70GB in a few hours). Restarting the container brings everything back to normal.
This is the second time this has happened.
I will try to inspect the container live the next time it happens.
Steps to Reproduce
- Run fredy:
services:
fredy:
image: ghcr.io/orangecoding/fredy:master
container_name: fredy
restart: unless-stopped
ports:
- "9998:9998"
volumes:
- ./fredydb:/db
- ./conf:/conf
environment:
CONFIG_JSON: |
{
"interval": "9",
"port": 9998,
"workingHours": { "from": "", "to": "" },
"demoMode": false,
"analyticsEnabled": true,
"sqlitepath": "/db"
}
entrypoint: >
sh -c 'echo "$$CONFIG_JSON" > /conf/config.json &&
exec pm2-runtime index.js'
- Wait (Took about a week in my case)
Expected Behavior
Fredy should recover from errors without leaving orphaned data and/or processes.
Actual Behavior
One Thread gets maxed out to a permanent 100% and the container size grows indefinitely.
Screenshots / Logs
Environment
Docker version 29.1.2, build 890dcca, Linux 6.1.57 #11 SMP Fri Apr 26 12:02:53 CST 2024 aarch64 GNU/Linux
Additional Context
No response