passwords-webextension icon indicating copy to clipboard operation
passwords-webextension copied to clipboard

[BUG]: High utilization of the server

Open Markoise opened this issue 1 year ago • 5 comments

⚠️ This issue respects the following points: ⚠️

  • [X] This is a single bug, not a question or a configuration/webserver/proxy issue.
  • [X] This is not a bug in the Nextcloud App or another client.
  • [X] This issue is not already reported on Github (I've searched it).
  • [X] Nextcloud Server and the Passwords App is up to date. See Nextcloud Apps.
  • [X] The browser extension is up to date. See Nextcloud Apps.

Server Information

{
    "version": {
        "server": "28.0.4.1",
        "app": "2024.4.20",
        "lsr": false,
        "php": "8.2.17",
        "cronPhp": "8.2.17"
    },
    "environment": {
        "os": "Linux",
        "architecture": "aarch64",
        "bits": 64,
        "database": "mysql",
        "cron": "cron",
        "proxy": false,
        "sslProxy": true,
        "subdirectory": false
    },
    "services": {
        "images": "imagick",
        "favicons": "bi",
        "previews": "default",
        "security": "hibp",
        "words": "auto",
        "previewApi": false,
        "faviconApi": false
    },
    "status": {
        "autoBackupRestored": false
    },
    "settings": {
        "channel": "stable",
        "nightlies": false,
        "handbook": false,
        "performance": 1
    },
    "encryption": {
        "sse": [],
        "cse": []
    }
}

Client Information

Browser and Version: Firefox 124.0.2 (64-Bit) Client OS and Version: Windows 11 Extension Version: 2.6.0

Bug description

As soon as you connect the Firefox extension to the Nextcloud app, the processing power increases and overloads the server to such an extent that it no longer responds.

The server must then be restarted. The Firefox extension must then no longer be connected to the server, otherwise the load will increase again.

Steps to reproduce

  1. Connect Webextension with Nextcloud
  2. Server overload

Expected behavior

No/normal utilization

Extension Logs

No response

Markoise avatar Apr 12 '24 09:04 Markoise

I just tried it with the Brave browser and the Chrome extension. Here I also get a very high server load.

Markoise avatar Apr 12 '24 11:04 Markoise

I have now tried it again. I used the Brave Browser with the current extension.

The processor load increased to 100% on all 4 cores. The load average increased to 150.00

After about 2 minutes the extension crashed and I tried to connect to the Nextcloud again. This time it worked. The load average then slowly dropped.

The problem occurred on my main server (RPi5). However, I am also experiencing the same problems on my test instance with a provider on the web.

Markoise avatar Apr 16 '24 11:04 Markoise

Same here in RPi4 Server. Client: Linux+Firefox

Browser and Version: Firefox 128.0 (64-Bit) Client OS and Version: Linux Mint Extension Version: 2.6.0

Load on Server over 100 until Server hangs and apache throws connection limits. Server Log is full of requests ~5000 in 30 minutes like:

[25/Jul/2024:12:29:26 +0200] "POST /index.php/apps/passwords/api/1.0/settings/get HTTP/1.1" 200 3503 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:28:11 +0200] "POST /index.php/apps/passwords/api/1.0/session/open HTTP/1.1" 200 3467 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:28:10 +0200] "GET /index.php/apps/passwords/api/1.0/session/keepalive HTTP/1.1" 200 3368 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:27 +0200] "POST /index.php/apps/passwords/api/1.0/folder/list HTTP/1.1" 200 3753 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:19 +0200] "POST /index.php/apps/passwords/api/1.0/folder/list HTTP/1.1" 200 3747 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:26:54 +0200] "POST /index.php/apps/passwords/api/1.0/password/list HTTP/1.1" 200 33616 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:19 +0200] "POST /index.php/apps/passwords/api/1.0/tag/list HTTP/1.1" 200 3437 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:28 +0200] "POST /index.php/apps/passwords/api/1.0/folder/list HTTP/1.1" 200 3749 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:20 +0200] "POST /index.php/apps/passwords/api/1.0/tag/list HTTP/1.1" 200 3441 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:24 +0200] "POST /index.php/apps/passwords/api/1.0/settings/get HTTP/1.1" 200 3462 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:20 +0200] "POST /index.php/apps/passwords/api/1.0/settings/get HTTP/1.1" 200 3468 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:25 +0200] "POST /index.php/apps/passwords/api/1.0/tag/list HTTP/1.1" 200 3435 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:20 +0200] "POST /index.php/apps/passwords/api/1.0/settings/get HTTP/1.1" 200 3501 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:22 +0200] "POST /index.php/apps/passwords/api/1.0/folder/list HTTP/1.1" 200 3751 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:23 +0200] "POST /index.php/apps/passwords/api/1.0/folder/list HTTP/1.1" 200 3753 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:23 +0200] "POST /index.php/apps/passwords/api/1.0/tag/list HTTP/1.1" 200 3445 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:26:27 +0200] "POST /index.php/apps/passwords/api/1.0/password/list HTTP/1.1" 200 33616 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:27 +0200] "POST /index.php/apps/passwords/api/1.0/settings/get HTTP/1.1" 200 3505 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:22 +0200] "POST /index.php/apps/passwords/api/1.0/folder/list HTTP/1.1" 200 3747 "-" "Offizielle Passwords Firefox Extension auf Linux"
[25/Jul/2024:12:29:29 +0200] "POST /index.php/apps/passwords/api/1.0/session/open HTTP/1.1" 200 3469 "-" "Offizielle Passwords Firefox Extension auf Linux"

Please help and fix.

egabosh avatar Jul 25 '24 10:07 egabosh

Hi, we're seeing the exact same behavior on nextcloud 27,1,10,2, with the firefox extension (overloads the server.) And brave extension ( overloads the server, and crashes to an uninstalled state).

1 interesting note, this didn't happen on the previous installed version 25, (to 26, then to 27).

Please, can anybody look at this bug?

NoNamedCode avatar Sep 02 '24 12:09 NoNamedCode

Simply try it a second time after the error. It always works for me.

It would still be nice if the developers would look into the matter.

Markoise avatar Sep 02 '24 15:09 Markoise