[GH-ISSUE #92] 部署掉linux后: nginx-ui服务自己就挂掉了 #5832

Closed
opened 2026-03-01 17:07:20 +03:00 by kerem · 30 comments
Owner

Originally created by @yuhongqiang on GitHub (Mar 14, 2023).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/92

可能是linux原因: 但是我部署了3台不同的linux服务器 都出现了这个情况
您那边发生过吗?

Originally created by @yuhongqiang on GitHub (Mar 14, 2023). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/92 可能是linux原因: 但是我部署了3台不同的linux服务器 都出现了这个情况 您那边发生过吗?
kerem 2026-03-01 17:07:20 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@0xJacky commented on GitHub (Mar 14, 2023):

可以看一下日志吗
systemctl status nginx-ui

<!-- gh-comment-id:1467211856 --> @0xJacky commented on GitHub (Mar 14, 2023): 可以看一下日志吗 systemctl status nginx-ui
Author
Owner

@0xJacky commented on GitHub (Mar 14, 2023):

我这边的话跑了4台服务器,都没挂过了,麻烦提供一下详细日志

journalctl -u nginx-ui -e
<!-- gh-comment-id:1467214324 --> @0xJacky commented on GitHub (Mar 14, 2023): 我这边的话跑了4台服务器,都没挂过了,麻烦提供一下详细日志 ``` journalctl -u nginx-ui -e ```
Author
Owner

@yuhongqiang commented on GitHub (Mar 14, 2023):

[GIN] 2023/03/13 - 19:44:24 | 200 | 44.376µs | 10.20.198.128 | GET "/"
[GIN] 2023/03/13 - 19:44:39 | 200 | 49.975µs | 10.20.198.128 | GET "/"
[GIN] 2023/03/13 - 19:44:54 | 200 | 77.827µs | 10.20.198.128 | GET "/"
[GIN] 2023/03/13 - 19:45:09 | 200 | 40.901µs | 10.20.198.128 | GET "/"
[GIN] 2023/03/13 - 19:45:24 | 200 | 51.847µs | 10.20.198.128 | GET "/"
[GIN] 2023/03/13 - 19:45:39 | 200 | 42.513µs | 10.20.198.128 | GET "/"
[GIN] 2023/03/13 - 19:45:54 | 200 | 89.038µs | 10.20.198.128 | GET "/"
[GIN] 2023/03/13 - 19:46:09 | 200 | 60.461µs | 10.20.198.128 | GET "/"

19:47挂的: 我得linux是6 没有journalctl命令
上面的是我nohup ./nginx-ui -config app.ini > /applog/nginx-ui/nginx-ui.log 2>&1 &
打印出的最后几行日志 (日志没问题)

那应该就是我服务器的问题 我在排查下吧

<!-- gh-comment-id:1467228994 --> @yuhongqiang commented on GitHub (Mar 14, 2023): [GIN] 2023/03/13 - 19:44:24 | 200 | 44.376µs | 10.20.198.128 | GET "/" [GIN] 2023/03/13 - 19:44:39 | 200 | 49.975µs | 10.20.198.128 | GET "/" [GIN] 2023/03/13 - 19:44:54 | 200 | 77.827µs | 10.20.198.128 | GET "/" [GIN] 2023/03/13 - 19:45:09 | 200 | 40.901µs | 10.20.198.128 | GET "/" [GIN] 2023/03/13 - 19:45:24 | 200 | 51.847µs | 10.20.198.128 | GET "/" [GIN] 2023/03/13 - 19:45:39 | 200 | 42.513µs | 10.20.198.128 | GET "/" [GIN] 2023/03/13 - 19:45:54 | 200 | 89.038µs | 10.20.198.128 | GET "/" [GIN] 2023/03/13 - 19:46:09 | 200 | 60.461µs | 10.20.198.128 | GET "/" 19:47挂的: 我得linux是6 没有journalctl命令 上面的是我nohup ./nginx-ui -config app.ini > /applog/nginx-ui/nginx-ui.log 2>&1 & 打印出的最后几行日志 (日志没问题) 那应该就是我服务器的问题 我在排查下吧
Author
Owner

@0xJacky commented on GitHub (Mar 14, 2023):

可以再观察一下,有错误日志发上来就行,我会尽快解决

<!-- gh-comment-id:1467265025 --> @0xJacky commented on GitHub (Mar 14, 2023): 可以再观察一下,有错误日志发上来就行,我会尽快解决
Author
Owner

@yuhongqiang commented on GitHub (Mar 14, 2023):

好的

<!-- gh-comment-id:1467268756 --> @yuhongqiang commented on GitHub (Mar 14, 2023): 好的
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

2023/03/14 15:51:09 [Error] analytic WriteJSON write tcp 10.0.8.9:9000->154.31.112.39:42648: write: broken pipe

这个会有影响吗?
还是 linux得设置下哪里 才可以 我部署到我自己的腾讯云服务器上一天 也自己就突然挂掉了

<!-- gh-comment-id:1472997877 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 2023/03/14 15:51:09 [Error] analytic WriteJSON write tcp 10.0.8.9:9000->154.31.112.39:42648: write: broken pipe 这个会有影响吗? 还是 linux得设置下哪里 才可以 我部署到我自己的腾讯云服务器上一天 也自己就突然挂掉了
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

2023/03/14 13:37:21 [AutoCert] Recover runtime error: invalid memory address or nil pointer dereference

往前翻 还发现了这样一个error

<!-- gh-comment-id:1473008445 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 2023/03/14 13:37:21 [AutoCert] Recover runtime error: invalid memory address or nil pointer dereference 往前翻 还发现了这样一个error
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

2023/03/14 15:51:09 [Error] analytic WriteJSON write tcp 10.0.8.9:9000->154.31.112.39:42648: write: broken pipe

这个会有影响吗? 还是 linux得设置下哪里 才可以 我部署到我自己的腾讯云服务器上一天 也自己就突然挂掉了

这个没有影响

<!-- gh-comment-id:1473019097 --> @0xJacky commented on GitHub (Mar 17, 2023): > 2023/03/14 15:51:09 [Error] analytic WriteJSON write tcp 10.0.8.9:9000->154.31.112.39:42648: write: broken pipe > > 这个会有影响吗? 还是 linux得设置下哪里 才可以 我部署到我自己的腾讯云服务器上一天 也自己就突然挂掉了 这个没有影响
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

这个话目前应该是没啥问题,写了recovery,一般来说不会卡死主进程,而且你后面都有请求了,请问您方便提供一下运行环境吗,比如系统,架构。

如果可以的话也可以提供脱敏后的database.db, app.ini 启动参数等到我的邮箱 me@jackyu.cn

<!-- gh-comment-id:1473044967 --> @0xJacky commented on GitHub (Mar 17, 2023): > 这个话目前应该是没啥问题,写了recovery,一般来说不会卡死主进程,而且你后面都有请求了,请问您方便提供一下运行环境吗,比如系统,架构。 如果可以的话也可以提供脱敏后的database.db, app.ini 启动参数等到我的邮箱 me@jackyu.cn
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

已发送

<!-- gh-comment-id:1473060694 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 已发送
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

好的 我过两天研究一下,这两天有点忙JackyOn Mar 17, 2023, at 11:15 AM, yuhongqiang @.***> wrote:
已发送

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

<!-- gh-comment-id:1473063218 --> @0xJacky commented on GitHub (Mar 17, 2023): 好的 我过两天研究一下,这两天有点忙JackyOn Mar 17, 2023, at 11:15 AM, yuhongqiang ***@***.***> wrote: 已发送 —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

嗯嗯 不急不急

<!-- gh-comment-id:1473063648 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 嗯嗯 不急不急
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

有试过 release 版本的吗,看看能不能正常使用

<!-- gh-comment-id:1473064421 --> @0xJacky commented on GitHub (Mar 17, 2023): 有试过 release 版本的吗,看看能不能正常使用
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

用过: 也是服务突然就挂了

<!-- gh-comment-id:1473065072 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 用过: 也是服务突然就挂了
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

嗯好的

<!-- gh-comment-id:1473065645 --> @0xJacky commented on GitHub (Mar 17, 2023): 嗯好的
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

我猜是不是您那里的linux服务器做了什么操作配置 服务才不会挂 我这都试了 就突然就挂

<!-- gh-comment-id:1473067354 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 我猜是不是您那里的linux服务器做了什么操作配置 服务才不会挂 我这都试了 就突然就挂
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

github.com/0xJacky/nginx-ui@ba87f02a53/install.sh (L269-L272)

我这边用的 systemd,做了 restart on failure,那可能确实程序的bug,我这边观察一下,感谢您的反馈

<!-- gh-comment-id:1473070434 --> @0xJacky commented on GitHub (Mar 17, 2023): https://github.com/0xJacky/nginx-ui/blob/ba87f02a53f3ec62ae95cb9bdc383f218215055c/install.sh#L269-L272 我这边用的 systemd,做了 restart on failure,那可能确实程序的bug,我这边观察一下,感谢您的反馈
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

对了,我再确认一下,是目前最新的版本v1.7.7也会出现这个问题是吧

<!-- gh-comment-id:1473103682 --> @0xJacky commented on GitHub (Mar 17, 2023): 对了,我再确认一下,是目前最新的版本v1.7.7也会出现这个问题是吧
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

我现在用的是v1.7.6 之前用 v1.7.5 都有这个问题 1.7.7 没有用过

<!-- gh-comment-id:1473164374 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 我现在用的是v1.7.6 之前用 v1.7.5 都有这个问题 1.7.7 没有用过
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

麻烦升级一下看看

<!-- gh-comment-id:1473165116 --> @0xJacky commented on GitHub (Mar 17, 2023): 麻烦升级一下看看
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

嗯 升级之后 还有问题我再反馈

<!-- gh-comment-id:1473165645 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 嗯 升级之后 还有问题我再反馈
Author
Owner

@yuhongqiang commented on GitHub (Mar 17, 2023):

已升级 : 星期一给您反馈

<!-- gh-comment-id:1473167822 --> @yuhongqiang commented on GitHub (Mar 17, 2023): 已升级 : 星期一给您反馈
Author
Owner

@0xJacky commented on GitHub (Mar 17, 2023):

好嘞,我这边也测测看

<!-- gh-comment-id:1473171400 --> @0xJacky commented on GitHub (Mar 17, 2023): 好嘞,我这边也测测看
Author
Owner

@0xJacky commented on GitHub (Mar 20, 2023):

我这边在 Ubuntu 22.04 上跑了几天了,一直没重启。您那边是什么发行版的 Linux 呢

<!-- gh-comment-id:1475504534 --> @0xJacky commented on GitHub (Mar 20, 2023): 我这边在 Ubuntu 22.04 上跑了几天了,一直没重启。您那边是什么发行版的 Linux 呢
Author
Owner

@yuhongqiang commented on GitHub (Mar 20, 2023):

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

<!-- gh-comment-id:1475704131 --> @yuhongqiang commented on GitHub (Mar 20, 2023): NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
Author
Owner

@yuhongqiang commented on GitHub (Mar 20, 2023):

Linux version 3.10.0-1160.31.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Thu Jun 10 13:32:12 UTC 2021

<!-- gh-comment-id:1475704507 --> @yuhongqiang commented on GitHub (Mar 20, 2023): Linux version 3.10.0-1160.31.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) ) #1 SMP Thu Jun 10 13:32:12 UTC 2021
Author
Owner

@yuhongqiang commented on GitHub (Mar 20, 2023):

我这边用我的mac m1 放了几天 也没有挂 就上linux挂了

<!-- gh-comment-id:1475705392 --> @yuhongqiang commented on GitHub (Mar 20, 2023): 我这边用我的mac m1 放了几天 也没有挂 就上linux挂了
Author
Owner

@0xJacky commented on GitHub (Mar 20, 2023):

看看系统日志,是不是 OOM 了然后被 kill 了JackyOn Mar 20, 2023, at 2:47 PM, yuhongqiang @.***> wrote:
我这边用我的mac m1 放了几天 也没有挂 就上linux挂了

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

<!-- gh-comment-id:1475738352 --> @0xJacky commented on GitHub (Mar 20, 2023): 看看系统日志,是不是 OOM 了然后被 kill 了JackyOn Mar 20, 2023, at 2:47 PM, yuhongqiang ***@***.***> wrote: 我这边用我的mac m1 放了几天 也没有挂 就上linux挂了 —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
Author
Owner

@yuhongqiang commented on GitHub (Apr 3, 2023):

我这边还是突然中断,不是oom问题, 我这边目的是可视化 不需要编辑 所以就上了守护进程 也不影响使用

<!-- gh-comment-id:1493522995 --> @yuhongqiang commented on GitHub (Apr 3, 2023): 我这边还是突然中断,不是oom问题, 我这边目的是可视化 不需要编辑 所以就上了守护进程 也不影响使用
Author
Owner

@0xJacky commented on GitHub (Apr 3, 2023):

嗯,好的

<!-- gh-comment-id:1493893501 --> @0xJacky commented on GitHub (Apr 3, 2023): 嗯,好的
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#5832
No description provided.