[BUG] High CPU usage at random moments

オープン
#539 コメント 42 件 リアクション 4 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
docker

調査の方向性

リンクされた issue 536 から始め、提供された k3s マニフェストまたは Docker の同等物を使用して、再発時にコンテナログを収集します。CPU スパイクの再現可能なトリガーまたは原因を特定し、Nextcloud を利用可能な状態に保つ修正を検証できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

Hello, this is a recreation of the very similar bug report link.

I have not seen the errors in the logfiles and unfortunately I can't recheck them. But the symptoms are the same as in the before mentioned tickets just at random times.

I've had it occur twice over the past 5 days, the container just randomly starts using a lot of CPU resources and Nextcloud becomes unavailable. The only thing that seems to resolve it is restarting the container.

Example of the CPU spike on the server in question:
Image

Expected Behavior

No CPU usage spike and application remaining available.

Steps To Reproduce

It seems to be happening randomly.

Environment
OS: 
Ubuntu 24.04.4 LTS

Image: 
lscr.io/linuxserver/nextcloud:33.0.3-ls428

Environment:
k3s (previously experienced the exact configuration in docker as well)
CPU architecture

x86-64

Docker creation
k3s manifest:
: apps/v1
kind: Deployment
metadata:
  name: nextcloud
  namespace: cloud
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nextcloud
  template:
    metadata:
      labels:
        app: nextcloud
    spec:
      containers:
        - name: nextcloud
          image: lscr.io/linuxserver/nextcloud:33.0.3-ls428
          ports:
            - containerPort: 80
          envFrom:
            - secretRef:
                name: cloud-nextcloud
          volumeMounts:
            - name: config
              mountPath: /config
            - name: custom-apps
              mountPath: /app/www/public/custom_apps
            - name: documents
              mountPath: /documents
            - name: pictures
              mountPath: /pictures
            - name: games
              mountPath: /games
            - name: it
              mountPath: /IT
            - name: ebooks
              mountPath: /ebooks
            - name: data
              mountPath: /data


Which is the k3s equivalent of this docker-compose snippet:

  nextcloud:
    image: lscr.io/linuxserver/nextcloud:33.0.3-ls428
    healthcheck:
      test: ["CMD", "curl", "https://wolkje.heijlond.com/index.php/login"]
      timeout: 2s
      interval: 30s
      retries: 1
    environment:
      - PUID=2008
      - PGID=2008
      - TZ=Europe/London
    depends_on:
      - redis
    volumes:
<same mounts>
Container logs
I am working on a way of saving logs to be able to check/paste them. But the previous bug report linked contains logs etc.
主要言語
Dockerfile
スター
888
フォーク
139
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linuxserver/docker-nextcloud のほかの issue

linuxserver/docker-nextcloud の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。