[GH-ISSUE #1421] 更新2.2.0之后打开配置文件出现沙箱相关的错误提示 #3890

Closed
opened 2026-02-28 11:58:11 +03:00 by kerem · 5 comments
Owner

Originally created by @YinHeng89 on GitHub (Nov 4, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1421

更新2.2.0之后打开配置文件出现沙箱相关的错误提示
nginx: [emerg] open() "/tmp/nginx-ui-sandbox-1451254628/ssl/ssl_common.conf" failed (2: No such file or directory) in /etc/nginx/sites-enabled/Memos:6 nginx: configuration file /tmp/nginx-ui-sandbox-1451254628/nginx.conf test failed exit status 1

Originally created by @YinHeng89 on GitHub (Nov 4, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1421 更新2.2.0之后打开配置文件出现沙箱相关的错误提示 `nginx: [emerg] open() "/tmp/nginx-ui-sandbox-1451254628/ssl/ssl_common.conf" failed (2: No such file or directory) in /etc/nginx/sites-enabled/Memos:6 nginx: configuration file /tmp/nginx-ui-sandbox-1451254628/nginx.conf test failed exit status 1`
kerem 2026-02-28 11:58:11 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@YinHeng89 commented on GitHub (Nov 4, 2025):

感觉跟命名空间有关系,我研究一下

<!-- gh-comment-id:3483616283 --> @YinHeng89 commented on GitHub (Nov 4, 2025): 感觉跟命名空间有关系,我研究一下
Author
Owner

@YinHeng89 commented on GitHub (Nov 4, 2025):

找到问题了,因为配置文件里面单独引用的证书文件 “include ssl/ssl_common.conf;”导致沙箱再检查配置文件的是出错了

<!-- gh-comment-id:3483649816 --> @YinHeng89 commented on GitHub (Nov 4, 2025): 找到问题了,因为配置文件里面单独引用的证书文件 “include ssl/ssl_common.conf;”导致沙箱再检查配置文件的是出错了
Author
Owner

@0xJacky commented on GitHub (Nov 4, 2025):

可以将这个文件放在 /etc/nginx/snippets 内image

<!-- gh-comment-id:3483729941 --> @0xJacky commented on GitHub (Nov 4, 2025): 可以将这个文件放在 /etc/nginx/snippets 内![image](https://github.com/user-attachments/assets/5e01ea7a-9680-40c7-9818-423d89e4c608)
Author
Owner

@YinHeng89 commented on GitHub (Nov 4, 2025):

可以将这个文件放在 /etc/nginx/snippets 内image

这样操作后还是失败,我目前先删除所有的命名空间绑定关系和命名空间了,暂时用不到这个功能,有时间我再多试试,感谢!

<!-- gh-comment-id:3483955633 --> @YinHeng89 commented on GitHub (Nov 4, 2025): > 可以将这个文件放在 /etc/nginx/snippets 内![image](https://github.com/user-attachments/assets/5e01ea7a-9680-40c7-9818-423d89e4c608) 这样操作后还是失败,我目前先删除所有的命名空间绑定关系和命名空间了,暂时用不到这个功能,有时间我再多试试,感谢!
Author
Owner

@0xJacky commented on GitHub (Nov 11, 2025):

优化了一下逻辑,现在会复制 Nginx 配置目录下除 sites-/streams- 之外的所有文件与子目录到沙箱。
sites/streams 为“按需拷贝”:仅把传入的站点与流(通常为当前命名空间)写入沙箱的 sites-enabled/、streams-enabled/,其余不拷贝。
主配置中对 sites-enabled、streams-enabled 的通配 include 被替换为沙箱内精确文件列表。

<!-- gh-comment-id:3514663633 --> @0xJacky commented on GitHub (Nov 11, 2025): 优化了一下逻辑,现在会复制 Nginx 配置目录下除 sites-/streams- 之外的所有文件与子目录到沙箱。 sites/streams 为“按需拷贝”:仅把传入的站点与流(通常为当前命名空间)写入沙箱的 sites-enabled/、streams-enabled/,其余不拷贝。 主配置中对 sites-enabled、streams-enabled 的通配 include 被替换为沙箱内精确文件列表。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#3890
No description provided.