Page MenuHomeDevCentral

Fix Zed nginx config stat issue
Needs ReviewPublic

Authored by dereckson on Mon, Apr 13, 21:34.
Tags
None
Referenced Files
F25467236: D4063.id10603.diff
Tue, Apr 14, 19:16
F25463638: D4063.diff
Tue, Apr 14, 15:18
F25458110: D4063.id.diff
Tue, Apr 14, 10:28
F25456974: D4063.diff
Tue, Apr 14, 09:29
F25456670: D4063.id10603.diff
Tue, Apr 14, 09:16
Subscribers
None
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

nginx was checking if the file request_filename existed at each request.

Fixes the following issue:
2026/04/13 21:10:27 [crit] 97679#103893: *336960 stat() "request_filename" failed (13: Permission denied)

This is a follow-up for 79263880.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
zed-nginx-issue
Build Status
Buildable 6601
Build 6885: arc lint + arc unit

Event Timeline

dereckson created this revision.

This is a temporary fix to fix the current error.

In a longer term, the nginx configuration should evolve in a try_files block and use a separate location for caching.

Not easy because Dojo has a lot of extensions.

For example, we would like to do something like:

location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|webp|avif|woff|woff2|ttf|eot)$ {
    expires 30d;
    access_log off;
    log_not_found off;
}

But Dojo has files css|gif|gz|html|ico|jpg|js|json|mov|png|svg|ttf|txt|xml|xsd|xsl + legacy stuff like swf/fla/htc
As those files are loaded by JS code, not straightforward either to get a comprehensive list.

dereckson retitled this revision from Fix Zed nginx configration stat issue to Fix Zed nginx config stat issue.Mon, Apr 13, 21:42