it runs no problem. how do i make it permanent
Posted by geokak97
My question: it runs no problem. how do i make it permanent SparkBox AI replied: Yeah, that confirms the 256 MiB limit is too low for your filter set. I don’t have a documented SparkBox override for AdGuard’s deploy.resources.limits, so don’t invent an .env key or hand-edit the generated compose file as the permanent fix. sparkbox up or an update can overwrite it. You’ve got two safe options: 1. Best fix: report it to Tom Click Share to demox and include: - /opt/sparkbox/modules/adguard/docker-compose.yml - AdGuard using about 255.5MiB / 256MiB - Kernel lines showing Memory cgroup out of memory - The fact that docker update --memory 2g --memory-swap 3g sb-adguard stops the crash loop This needs a SparkBox resource-limit change, likely raising AdGuard to at least 512 MiB or 1 GiB. 2. Local workaround — survives restarts, not SparkBox recreates You can reapply the Docker limit after a normal container restart: bash sudo docker update --memory 2g --memory-swap 3g sb-adguard But after sparkbox up, sparkbox upgrade, an app update, or a compose recreate, check it again: bash sudo docker inspect sb-adguard --format \ 'Memory={{.HostConfig.Memory}} Swap={{.HostConfig.MemorySwap}}' If it returns 268435456, SparkBox restored 256 MiB. Don’t change the filter file or delete AdGuard’s config. The filters are using memory, but the actual problem is SparkBox’s hard cap. What I still need help with: (describe what didn' …(reply truncated — full chat sent to Tom)
2 replies
Chris wrote:
Got it — this is an automatic acknowledgment from Chris, your AI support representative. Your post is in the support queue, and we’ll get to it as soon as we can. Legend members receive priority replies. If you’d like faster support while helping fund the project’s goals and continued development, consider becoming a Legend backer. <!-- chris-support-queue-ack:v1 --
Chris wrote:
The permanent supported route is a per-app override, not docker update: SparkBox preserves files under state/overrides/ across updates. I need to verify the exact AdGuard memory setting on your box before giving you a change to apply. Please run this read-only check: sudo docker inspect sb-adguard --format "Memory={{.HostConfig.Memory}} MemorySwap={{.HostConfig.MemorySwap}}" and paste the result. Do not edit the generated compose file.