View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
20105 | Bug reports | Assets | public | 2025-05-15 13:27 | 2025-05-15 17:33 |
Reporter | 2BITS_PL | Assigned To | |||
Priority | none | Severity | minor | ||
Status | new | Resolution | open | ||
Product Version | 6.6.x | ||||
Summary | 20105: AssetManager: inconsistent hashes due to filemtime in distributed deployments | ||||
Description | In distributed setups (e.g. behind a load balancer or using blue-green deployments), we're experiencing issues with inconsistent asset hashes caused by the use of filemtime() in the AssetManager. The problem occurs because the generatePath() method uses filemtime() to build the asset directory hash. On multiple nodes, file modification times may differ despite identical content, leading to mismatched hashes. This causes 404 errors or missing assets when users switch between nodes. Sticky sessions can partially mitigate this in load-balanced environments, but blue-green deployments still cause hash mismatches when switching traffic from one environment to another. We have a few questions:
This behavior makes it hard to maintain reliable deployments in production environments. | ||||
Tags | No tags attached. | ||||
Bug heat | 2 | ||||
Complete LimeSurvey version number (& build) | 6.8.1+241120 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | SQL Server 2019 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | v8.1.29 NTS x64 | ||||
To be sure to have a new file when you update it.
Yes : when you update a file : it was never reset except if you click on the button.
On a fixed environment : none |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2025-05-15 13:27 | 2BITS_PL | New Issue | |
2025-05-15 17:31 | DenisChenu | Note Added: 82677 | |
2025-05-15 17:31 | DenisChenu | Bug heat | 0 => 2 |
2025-05-15 17:33 | DenisChenu | Note Added: 82678 |