[GH-ISSUE #993] 使用快速安装最新版本后部分页面报服务器端500错误 #4962

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

Originally created by @xcancloud on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/993

Describe the bug
使用快速安装最新版本后部分页面报服务器端500错误:

Screenshots

Image

Info (please complete the following information):

  • Server OS: CentOS 7.5 64bit
  • Server Arch: x86
  • Nginx UI Version: 2.0.0-rc.5
  • Your Browser: Chrome, Safari, Firefox

Additional context
使用快速安装脚本安装后,只配置了Nginx反向代理,以下是 nginx 配置:

Nginx 主配置文件:
http { # ... include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }

Nginx UI Server:
` server {
listen 80;
listen [::]:80;

    server_name nginx.xcan.cloud;

    rewrite ^(.*)$ https://$host$1 permanent;
}


map $http_upgrade $connection_upgrade {
   default upgrade;
   ''      close;
}

server {
    listen 443 ssl; 
    listen [::]:443  ssl;

`

Originally created by @xcancloud on GitHub (Apr 29, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/993 **Describe the bug** 使用快速安装最新版本后部分页面报服务器端500错误: **Screenshots** ![Image](https://github.com/user-attachments/assets/09058e16-b036-47a3-9ef9-ee66bc67bef9) **Info (please complete the following information):** - Server OS: CentOS 7.5 64bit - Server Arch: x86 - Nginx UI Version: 2.0.0-rc.5 - Your Browser: Chrome, Safari, Firefox **Additional context** 使用快速安装脚本安装后,只配置了Nginx反向代理,以下是 nginx 配置: Nginx 主配置文件: `http { # ... include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; }` Nginx UI Server: ` server { listen 80; listen [::]:80; server_name nginx.xcan.cloud; rewrite ^(.*)$ https://$host$1 permanent; } map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 443 ssl; listen [::]:443 ssl; `
kerem 2026-03-01 15:37:33 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Apr 29, 2025):

访问 #/install 安装了吗

可以开一下 debug 模式看一下日志

<!-- gh-comment-id:2839209367 --> @0xJacky commented on GitHub (Apr 29, 2025): 访问 #/install 安装了吗 可以开一下 debug 模式看一下日志
Author
Owner

@xcancloud commented on GitHub (Apr 29, 2025):

nginx 配置:

  • Nginx 主配置文件:
http {
	# ...
	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}

Nginx UI Server:

    server {
        listen 80;
        listen [::]:80;

        server_name nginx.xcan.cloud;

        rewrite ^(.*)$ https://$host$1 permanent;
    }


    map $http_upgrade $connection_upgrade {
       default upgrade;
       ''      close;
    }

    server {
        listen 443 ssl; 
        listen [::]:443  ssl;

        server_name nginx.xcan.cloud;

        ssl_certificate /etc/nginx/ssl/fullchain.pem;
        ssl_certificate_key /etc/nginx/ssl/privkey.pem;


        location / {

            proxy_set_header    Host                $host;
            proxy_set_header    X-Real-IP           $remote_addr;
            proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
            proxy_set_header    X-Forwarded-Proto   $scheme;
            proxy_http_version  1.1;

            proxy_set_header    Upgrade             $http_upgrade;
            proxy_set_header    Connection          $connection_upgrade;
            proxy_pass          http://127.0.0.1:9000/;

        }
    }
<!-- gh-comment-id:2839210386 --> @xcancloud commented on GitHub (Apr 29, 2025): nginx 配置: - Nginx 主配置文件: ``` http { # ... include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } ``` Nginx UI Server: ``` server { listen 80; listen [::]:80; server_name nginx.xcan.cloud; rewrite ^(.*)$ https://$host$1 permanent; } map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen 443 ssl; listen [::]:443 ssl; server_name nginx.xcan.cloud; ssl_certificate /etc/nginx/ssl/fullchain.pem; ssl_certificate_key /etc/nginx/ssl/privkey.pem; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_pass http://127.0.0.1:9000/; } } ```
Author
Owner

@xcancloud commented on GitHub (Apr 29, 2025):

访问 #/install 安装了吗

可以开一下 debug 模式看一下日志

安装了,已经登录进去了,在哪里开debug?

<!-- gh-comment-id:2839216370 --> @xcancloud commented on GitHub (Apr 29, 2025): > 访问 #/install 安装了吗 > > 可以开一下 debug 模式看一下日志 安装了,已经登录进去了,在哪里开debug?
Author
Owner

@0xJacky commented on GitHub (Apr 29, 2025):

麻烦修改 /usr/local/nginx-ui/app.ini 的run mode 为 debug,重启 nginx-ui

执行 journalctl -fu nginx-ui

访问报错的页面,查看控制台的报错信息,感谢。

<!-- gh-comment-id:2839220181 --> @0xJacky commented on GitHub (Apr 29, 2025): 麻烦修改 /usr/local/nginx-ui/app.ini 的run mode 为 debug,重启 nginx-ui 执行 journalctl -fu nginx-ui 访问报错的页面,查看控制台的报错信息,感谢。
Author
Owner

@xcancloud commented on GitHub (Apr 29, 2025):

Image

麻烦修改 /usr/local/nginx-ui/app.ini 的run mode 为 debug,重启 nginx-ui

执行 journalctl -fu nginx-ui

访问报错的页面,查看控制台的报错信息,感谢。

Image

<!-- gh-comment-id:2839240185 --> @xcancloud commented on GitHub (Apr 29, 2025): ![Image](https://github.com/user-attachments/assets/75d74f9a-8316-4d06-a076-da6e3146f494) > 麻烦修改 /usr/local/nginx-ui/app.ini 的run mode 为 debug,重启 nginx-ui > > 执行 journalctl -fu nginx-ui > > 访问报错的页面,查看控制台的报错信息,感谢。 ![Image](https://github.com/user-attachments/assets/9910df86-5247-45e3-922d-f52624deffab)
Author
Owner

@xcancloud commented on GitHub (Apr 29, 2025):

按照 debug 模式提示,这几个文件夹都需要创建好,建好以后访问页面正常了。

/etc/nginx/sites-available
/etc/nginx/sites-enabled

/etc/nginx/streams-enabled
/etc/nginx/streams-available

感谢老铁夜里支持,给开源精神点赞!!!

<!-- gh-comment-id:2839274892 --> @xcancloud commented on GitHub (Apr 29, 2025): 按照 debug 模式提示,这几个文件夹都需要创建好,建好以后访问页面正常了。 /etc/nginx/sites-available /etc/nginx/sites-enabled /etc/nginx/streams-enabled /etc/nginx/streams-available 感谢老铁夜里支持,给开源精神点赞!!!
Author
Owner

@xcancloud commented on GitHub (Apr 29, 2025):

您好,在线Demo里的Nginx监控页面安装后没有展示,这个是配置问题还是免费版本里没有带这个功能:

在线 Demo:

我按照的,没有Nginx监控:

2025年4月29日 22:50,Jacky @.***> 写道:

0xJacky
left a comment
(0xJacky/nginx-ui#993)
https://github.com/0xJacky/nginx-ui/issues/993#issuecomment-2839220181
麻烦修改 /usr/local/nginx-ui/app.ini 的run mode 为 debug,重启 nginx-ui

执行 journalctl -fu nginx-ui

访问报错的页面,查看控制台的报错信息,感谢。


Reply to this email directly, view it on GitHub https://github.com/0xJacky/nginx-ui/issues/993#issuecomment-2839220181, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDRTLTREV3ESMBV622RCLD236GU7AVCNFSM6AAAAAB4DHCF6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZZGIZDAMJYGE.
You are receiving this because you authored the thread.

<!-- gh-comment-id:2839493022 --> @xcancloud commented on GitHub (Apr 29, 2025): 您好,在线Demo里的Nginx监控页面安装后没有展示,这个是配置问题还是免费版本里没有带这个功能: 在线 Demo:  我按照的,没有Nginx监控:  > 2025年4月29日 22:50,Jacky ***@***.***> 写道: > > > 0xJacky > left a comment > (0xJacky/nginx-ui#993) > <https://github.com/0xJacky/nginx-ui/issues/993#issuecomment-2839220181> > 麻烦修改 /usr/local/nginx-ui/app.ini 的run mode 为 debug,重启 nginx-ui > > 执行 journalctl -fu nginx-ui > > 访问报错的页面,查看控制台的报错信息,感谢。 > > — > Reply to this email directly, view it on GitHub <https://github.com/0xJacky/nginx-ui/issues/993#issuecomment-2839220181>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ASDRTLTREV3ESMBV622RCLD236GU7AVCNFSM6AAAAAB4DHCF6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZZGIZDAMJYGE>. > You are receiving this because you authored the thread. >
Author
Owner

@0xJacky commented on GitHub (Apr 30, 2025):

目前没有收费版本,demo 里现在装的是 rc6,但是还没有正式发布,发布之后更新就有。

<!-- gh-comment-id:2840570868 --> @0xJacky commented on GitHub (Apr 30, 2025): 目前没有收费版本,demo 里现在装的是 rc6,但是还没有正式发布,发布之后更新就有。
Author
Owner

@xcancloud commented on GitHub (Apr 30, 2025):

收到、非常感谢。

2025年4月30日 09:12,Jacky @.***> 写道:

0xJacky
left a comment
(0xJacky/nginx-ui#993)
https://github.com/0xJacky/nginx-ui/issues/993#issuecomment-2840570868
目前没有收费版本,demo 里现在装的是 rc6,但是还没有正式发布,发布之后更新就有。


Reply to this email directly, view it on GitHub https://github.com/0xJacky/nginx-ui/issues/993#issuecomment-2840570868, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDRTLQRMRCTGVEHVGFEZ6T24APRVAVCNFSM6AAAAAB4DHCF6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBQGU3TAOBWHA.
You are receiving this because you authored the thread.

<!-- gh-comment-id:2840620941 --> @xcancloud commented on GitHub (Apr 30, 2025): 收到、非常感谢。 > 2025年4月30日 09:12,Jacky ***@***.***> 写道: > > > 0xJacky > left a comment > (0xJacky/nginx-ui#993) > <https://github.com/0xJacky/nginx-ui/issues/993#issuecomment-2840570868> > 目前没有收费版本,demo 里现在装的是 rc6,但是还没有正式发布,发布之后更新就有。 > > — > Reply to this email directly, view it on GitHub <https://github.com/0xJacky/nginx-ui/issues/993#issuecomment-2840570868>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ASDRTLQRMRCTGVEHVGFEZ6T24APRVAVCNFSM6AAAAAB4DHCF6OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBQGU3TAOBWHA>. > You are receiving this because you authored the thread. >
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#4962
No description provided.