Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 群晖docker安装,最近一段时间会导致群晖卡死什么情况? #916

Closed
4 of 7 tasks
389377616 opened this issue Feb 15, 2025 · 4 comments
Closed
4 of 7 tasks
Labels
bug Something isn't working

Comments

@389377616
Copy link

389377616 commented Feb 15, 2025

Don't skip these steps | 不要跳过这些步骤

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field | 我明白,如果我“故意”删除或跳过任何强制性的*字段,我将被限制
  • I am sure that this is a running error exception problem and will not submit any problems unrelated to this project | 我确定这是运行报错异常问题,不会提交任何与本项目无关的问题
  • I have searched and double-checked that there are no similar issues that have been created | 我已经通过搜索并仔细检查过没有存在已经创建的类似问题

Occurrence environment | 触发环境

  • Workflow | 工作流
  • GUI | 软件
  • Docker
  • Command line | 命令行

Bug description | 具体描述

我是群晖docker安装,群晖安装在pve虚拟机里,最近一段时间群晖多次出现无法访问情况,进入pve检查群晖虚拟机状态发现全部是CPU使用率被干爆,直接到了100%,我就在群晖添加了一个sh脚本,每分钟执行一次,检查CPU和内存使用率,只要有一项超过60%就把cpu和内存占用率前几名进程写入一个文件记录下来,进过几天观察发现在就是这个iptv-api容器进程导致

Image
容器之前老版时候我发现没办法按照容器里的定时任务定时执行,所以我进采取了使用群晖的任务计划,定时重启容器来更新直播源,但是我的定时计划是6:10 14:10 22:10三个时间点,和出现群晖出现高占用的18:02时间也对不上,我就导出了容器里的定时任务/var/spool/cron/crontabs/root文件检查了下

Image

我发现里边有很多重复定时任务,至于和这个有没有关系我进不太清楚了.

Error log | 报错日志

No response

@389377616 389377616 added the bug Something isn't working label Feb 15, 2025
@Guovin
Copy link
Owner

Guovin commented Feb 15, 2025

这是由于你多次重复重启容器,定时任务被多次写入,导致任务被多次执行。基于你的使用场景,只在容器重启时更新接口,建议暂时将环境变量UPDATE_CRON1和UPDATE_CRON2赋值为空,避免定时任务被创建即可,后续我会优化这个问题。

@389377616
Copy link
Author

这是由于你多次重复重启容器,定时任务被多次写入,导致任务被多次执行。基于你的使用场景,只在容器重启时更新接口,建议暂时将环境变量UPDATE_CRON1和UPDATE_CRON2赋值为空,避免定时任务被创建即可,后续我会优化这个问题。

好的,我试试,UPDATE_CRON1和UPDATE_CRON2赋值为空,然后/var/spool/cron/crontabs/root文件里已经有的定时任务是不是都要清空

@Guovin
Copy link
Owner

Guovin commented Feb 15, 2025

这是由于你多次重复重启容器,定时任务被多次写入,导致任务被多次执行。基于你的使用场景,只在容器重启时更新接口,建议暂时将环境变量UPDATE_CRON1和UPDATE_CRON2赋值为空,避免定时任务被创建即可,后续我会优化这个问题。

好的,我试试,UPDATE_CRON1和UPDATE_CRON2赋值为空,然后/var/spool/cron/crontabs/root文件里已经有的定时任务是不是都要清空

是的

@Guovin
Copy link
Owner

Guovin commented Feb 18, 2025

已优化,更新最新镜像即可。

@Guovin Guovin closed this as completed Feb 18, 2025
@Guovin Guovin mentioned this issue Feb 21, 2025
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants