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] casaos-local-storage无限占用内存导致卡死 #646

Closed
sesame-foxes opened this issue Nov 1, 2022 · 5 comments
Closed

[Bug] casaos-local-storage无限占用内存导致卡死 #646

sesame-foxes opened this issue Nov 1, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@sesame-foxes
Copy link

ING8@E(1F_QFEA 2ACG6X5H
casaos-local-storage 会随着使用无限增长最终导致系统卡死

@sesame-foxes sesame-foxes added the bug Something isn't working label Nov 1, 2022
@zhanghengxin zhanghengxin moved this to Need Triage (QA+PM) in CasaOS Issues Nov 1, 2022
@Mace404
Copy link

Mace404 commented Nov 1, 2022

Got the same behaviour. casaos-local-storage service increasing memory over time. (v0.3.7)
Ran a while without any extra apps enabled but memory kept increasing.

from the log:

2022-10-31T21:19:51.949Z        info    Checking serial disk mount...   {"func": "service.(*diskService).CheckSerialDiskMount", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 469}
2022-10-31T21:19:51.996Z        error   failed to enable S.M.A.R.T: smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.18.17-edge] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sda failed: No such device
        {"error": "exit status 2", "path": "/dev/sda", "func": "service.(*diskService).CheckSerialDiskMount", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 493}
2022-10-31T21:19:52.016Z        error   failed to enable S.M.A.R.T: smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.18.17-edge] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

Smartctl open device: /dev/sdb failed: No such device
        {"error": "exit status 2", "path": "/dev/sdb", "func": "service.(*diskService).CheckSerialDiskMount", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 493}
2022-10-31T21:19:52.076Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}
2022-10-31T21:19:52.097Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}
2022-10-31T21:19:52.122Z        info    Notified systemd that local storage service is ready    {"func": "main.main", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/main.go", "line": 243}
2022-10-31T21:19:52.122Z        info    LocalStorage service is listening...    {"address": "127.0.0.1:35417", "func": "main.main", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/main.go", "line": 248}
2022-10-31T21:29:55.023Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}
2022-10-31T21:29:55.045Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}
2022-10-31T21:40:00.024Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}
2022-10-31T21:40:00.045Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}
2022-10-31T21:50:05.024Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}
2022-10-31T21:50:05.046Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}
2022-10-31T22:00:10.022Z        error   failed to exec shell - smartctl exec error      {"func": "service.(*diskService).SmartCTL", "file": "/home/runner/work/CasaOS-LocalStorage/CasaOS-LocalStorage/service/disk.go", "line": 88}

Where it repeats every 10 minutes.

restarting the service with "systemctl restart casaos-local-storage.service" releases the memory

I'm running CasaOS as an LXC under ProxMox. Installed using https://tteck.github.io/Proxmox/ > Docker > CasaOS

@Black-Boom
Copy link

Same problem using v0.3.7

@jerry945
Copy link

jerry945 commented Nov 3, 2022

image

@zhong1260310
Copy link

3个设备更新了 0.3.7版本 , 同样问题, 0.3.6 没有这种问题

@raller1028
Copy link
Contributor

This issue has been fixed in 0.3.7.1, please verify in the update to 0.3.7.1, if you have problems, please reopen the issue.

Repository owner moved this from Need Triage (QA+PM) to To be verified (QA) in CasaOS Issues Nov 7, 2022
@raller1028 raller1028 moved this from To be verified (QA) to Done in CasaOS Issues Nov 21, 2022
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
Archived in project
Development

No branches or pull requests

7 participants