[GH-ISSUE #1029] 升級到 rc-6 後報告error log目錄文件不存在 #4981

Closed
opened 2026-03-01 15:37:42 +03:00 by kerem · 4 comments
Owner

Originally created by @Lawlietr on GitHub (May 8, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1029

剛從rc-5 升級到 rc-6 後報告"錯誤日誌路徑不存在"
但實際檢查這個是日誌文件不但存在,今天也有寫入紀錄
error log 設定在我 nginx.conf 是這樣寫的
error_log /var/log/nginx/error.log;

nginx -t 檢查正常

Info (please complete the following information):

  • Server OS: Ubuntu 24.04
  • Server Arch: x86-64
  • Nginx UI Version: 2.0.0 rc-6
  • Your Browser: Brave
Originally created by @Lawlietr on GitHub (May 8, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1029 剛從rc-5 升級到 rc-6 後報告"錯誤日誌路徑不存在" 但實際檢查這個是日誌文件不但存在,今天也有寫入紀錄 error log 設定在我 nginx.conf 是這樣寫的 `error_log /var/log/nginx/error.log;` nginx -t 檢查正常 **Info (please complete the following information):** - Server OS: Ubuntu 24.04 - Server Arch: x86-64 - Nginx UI Version: 2.0.0 rc-6 - Your Browser: Brave
kerem 2026-03-01 15:37:42 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (May 8, 2025):

這個問題是因為 Nginx UI 在從 nginx -V 的輸出中獲取 error-log-path 失敗,或者 error log path 不存在磁盤中,您可以手動在 app.ini 中指定 https://nginxui.com/zh_TW/guide/config-nginx.html#errorlogpath

<!-- gh-comment-id:2862158887 --> @0xJacky commented on GitHub (May 8, 2025): 這個問題是因為 Nginx UI 在從 `nginx -V` 的輸出中獲取 error-log-path 失敗,或者 error log path 不存在磁盤中,您可以手動在 app.ini 中指定 https://nginxui.com/zh_TW/guide/config-nginx.html#errorlogpath
Author
Owner

@Lawlietr commented on GitHub (May 8, 2025):

這個問題是因為 Nginx UI 在從 nginx -V 的輸出中獲取 error-log-path 失敗,或者 error log path 不存在磁盤中,您可以手動在 app.ini 中指定 https://nginxui.com/zh_TW/guide/config-nginx.html#errorlogpath

謝謝,修復了

<!-- gh-comment-id:2862214335 --> @Lawlietr commented on GitHub (May 8, 2025): > 這個問題是因為 Nginx UI 在從 `nginx -V` 的輸出中獲取 error-log-path 失敗,或者 error log path 不存在磁盤中,您可以手動在 app.ini 中指定 https://nginxui.com/zh_TW/guide/config-nginx.html#errorlogpath 謝謝,修復了
Author
Owner

@Lawlietr commented on GitHub (May 8, 2025):

順便說下,我使用的 nginx 是 ubuntu 24.04 源自帶的包
他的 nginx -V 輸入的日誌為
--error-log-path=stderr

<!-- gh-comment-id:2862220811 --> @Lawlietr commented on GitHub (May 8, 2025): 順便說下,我使用的 nginx 是 ubuntu 24.04 源自帶的包 他的 nginx -V 輸入的日誌為 `--error-log-path=stderr`
Author
Owner

@0xJacky commented on GitHub (May 8, 2025):

這個是預期的行為。因為 stderr 不是一個 Regular File,在線日誌查看器用到了 tail,而 tail 一個設備可能會導致 CPU 100%,所以這個檢查是有必要的。

<!-- gh-comment-id:2862234390 --> @0xJacky commented on GitHub (May 8, 2025): 這個是預期的行為。因為 stderr 不是一個 Regular File,在線日誌查看器用到了 tail,而 tail 一個設備可能會導致 CPU 100%,所以這個檢查是有必要的。
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#4981
No description provided.