Hi zeeb0t,
I have run into a potentially serious issue since enabling
Light-DB runtime mode, and I would appreciate your advice before changing anything.
Since yesterday evening at around 20:24, XenForo's Server Error Log has accumulated approximately
118,000 error entries (5,924 pages). They appear to be almost entirely the same error:
ErrorException: [E_NOTICE] tempnam(): file created in the system's temporary directory
src/vendor/doctrine/cache/lib/Doctrine/Common/Cache/FileCache.php:251
The stack traces consistently involve XF Bot Guard's application-cache/Light-DB code.
One example goes through:
Zee\BotGuard\Service\AppCache->set()
Zee\BotGuard\Service\LightDbTelemetry::flushQueuedBucketWrites()
Zee\BotGuard\Service\LightDbTelemetry::flushBucketWriteBatch()
Another occurs during the Light-DB cache readiness probe:
Zee\BotGuard\Service\AppCache->set()
Zee\BotGuard\Service\LightDbMode->probeCache()
XenForo currently uses Doctrine's
FilesystemCache, not Redis.
The current Bot Guard Health Check still reports:
- Light-DB runtime mode: Active
- Light-DB application cache: Ready
- Light-DB runtime activity: current
- Origin pressure: Normal
- Connection usage: 5/3,000
- CPU busy: 30.6%
- I/O wait: 0%
- Swap: 0
However, for the first time the Health Check also reports:
Request gate fail-open evidence: Recent: 2026-08-27 10:42:09 - A request-gate fail-open was recorded recently.
Light-DB is currently handling a substantial amount of traffic: the Health Check reports approximately
334,000 cache activities and 398,000 decisions over 24 hours.
My questions are:
1. Would you recommend that I disable Light-DB immediately until this issue is resolved, or is it safe to leave it enabled for now?
2. Could the very high Light-DB write rate to XenForo's Doctrine FilesystemCache explain these tempnam() notices, or does this indicate a filesystem/cache-directory configuration or permissions problem on the server?
3. Is Light-DB designed to operate with XenForo's FilesystemCache at this level of traffic, or would you recommend Redis for an installation processing several hundred thousand Bot Guard decisions per day?
4. Could the recent request_gate_fail_open be related to these application-cache write failures? If so, what exactly does Bot Guard do when this particular cache operation fails?
5. Is there anything I should check or change in Bot Guard itself, or should I primarily investigate the XenForo application-cache/temp-directory configuration with my hosting provider?
For reference, the current environment is:
XenForo
2.2.3 Patch 1
PHP
7.4.33
XF Bot Guard
1.4.1
Light-DB
enabled
The forum itself is still running normally, but
118,000 XenForo Server Error Log entries in less than a day obviously concerns me, particularly because reducing database writes was one of the main reasons for enabling Light-DB.
I can provide the complete stack traces and the latest redacted support bundle if needed.
Thanks again for your help.