mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #1029] 升級到 rc-6 後報告error log目錄文件不存在 #550
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#550
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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):
@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@Lawlietr commented on GitHub (May 8, 2025):
謝謝,修復了
@Lawlietr commented on GitHub (May 8, 2025):
順便說下,我使用的 nginx 是 ubuntu 24.04 源自帶的包
他的 nginx -V 輸入的日誌為
--error-log-path=stderr@0xJacky commented on GitHub (May 8, 2025):
這個是預期的行為。因為 stderr 不是一個 Regular File,在線日誌查看器用到了 tail,而 tail 一個設備可能會導致 CPU 100%,所以這個檢查是有必要的。