Files
geedge-jira/md/OMPUB-921.md
2025-09-14 21:52:36 +00:00

63 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 【E21现场】CN自动学习的psiphon3 server ip写入TSG失败
| ID | Creation Date | Assignee | Status |
|----|----------------|----------|--------|
| OMPUB-921 | 2023-05-12T15:47:21.000+0800 | 刘洋 | 已关闭 |
---
2023.5.10 16:12:00左右用户反馈dynamic_psiphon_ip日常或者说15:00:00查询到的IP量是7w左右的IP量现在只有5.4w左右IP数量降低且dynamic_psiphon_ip更新时间仍然一直显示是15:0000要求排查原因。
背景当天用户在界面发现以前策略创建的object要求删除。
!dynamic_psiphon_ip.png|thumbnail!**liuyang** commented on *2023-05-12T15:54:09.134+0800*:
CN程序排查
* vpn-thwarting程序每1小时调用CM的API接口向dynamic_psiphon_ip对象中推送item但是16:12左右发现该IP Object最新更新时间是15:00而不是预期的16:00猜测最新一次新增失败。
* 查看程序本地日志发现最新一次16:00:00调用API新增IP失败报错Policy object configuration update failedInternal Server Error
* !CN本地日志报错.png|thumbnail!
---
**liuyang** commented on *2023-05-12T15:56:54.741+0800*:
CM程序排查
* 原因:根据/data/tsg-2211/cm/api/logs日志发现16:00左右 API接收到三次请求 界面Object删除CN删除IPsCN新增IPs并发更新数据期间遇到数据库锁竞争其中CN请求新增IPs的事务锁竞争失败回滚。
* 解决:数据库事务执行完毕后自行释放锁
---
**liuyang** commented on *2023-05-12T15:59:38.893+0800*:
现场17:00左右查询数据库锁释放object更新恢复正常。
预计object item数量应该是在昨天晚上现场时间20:00之后恢复2023.5.11验证该object中ip数量为72874恢复正常
---
**zhangwei** commented on *2023-05-26T16:50:33.926+0800*:
后期的优化方案:参见 OMPUB-922 评论
---
## Attachments
**37891/CN本地日志报错.png**
---
**37887/dynamic_psiphon_ip.png**
---