Page MenuHomeDevCentral

Fix Zed nginx config stat issue
AcceptedPublic

Authored by dereckson on Mon, Apr 13, 21:34.
Tags
None
Referenced Files
F25905034: D4063.diff
Sat, Apr 18, 23:44
F25797895: D4063.diff
Sat, Apr 18, 08:52
F25793342: D4063.id10603.diff
Sat, Apr 18, 08:14
F25793328: D4063.id.diff
Sat, Apr 18, 08:14
Unknown Object (File)
Fri, Apr 17, 20:50
Unknown Object (File)
Thu, Apr 16, 18:31
Unknown Object (File)
Thu, Apr 16, 14:30
Unknown Object (File)
Thu, Apr 16, 04:40
Subscribers
None

Details

Reviewers
yousra
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
This revision is now accepted and ready to land.Sat, Apr 18, 22:26