Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Multi-pod setup intermittently returns 404 for assets

More
1 day 56 minutes ago #272833 by ryderhs
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.x.x
Own server or LimeSurvey hosting:
Survey theme/template:
==================When running LimeSurvey with multiple pods (2+) and
Code:
debug=0
, static assets are published under hashed folders, e.g.:/tmp/assets/61f5ab8b/jquery-ui.min.css
/tmp/assets/adedf5c9/css/font-awesome.min.css
/tmp/assets/379ee63f/ibm-sans.css
...

Intermittently we get 404 errors for those URLs. This seems to happen when the load balancer routes a user from pod A to pod B (or after a pod restart) — each pod has a different /tmp/assets content, so the hashed directory names don’t always exist on the other pod.
 What we want
  • Keep
    Code:
    debug=0
    (production).
  • Avoid 404s in multi-pod environment.
  • Ideally have both pods serve the same asset paths (no per-pod hash differences), or an officially recommended way to make asset publishing deterministic/shared in production.

    Is there an officially supported way in LimeSurvey to run with
    Code:
    debug=0
    and disable AssetManager’s hashing, or to make hashed output deterministic and identical across pods?

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose