notes icon indicating copy to clipboard operation
notes copied to clipboard

Getting a few errors and very slow performance on nc28

Open sbe-arg opened this issue 1 year ago • 7 comments

Please make a clear and concise description of what the bug is.

Steps to reproduce

go to notes create one note. try to delete the note

Expected behaviour

no errors

Actual behaviour

connection fail errors sometimes when trying to create but consistently when deleting notes. have to refresh the page and the note has been deleted

I run on chromium

Screenshots

image

also noticed this image

Server

Please complete the following information.

  • Notes app version: latest
  • Nextcloud version: latest
  • OS: truenas scale
  • Web server:
  • PHP version:
  • Database:

Nextcloud configuration:

``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder ```

Client

Please complete the following information.

  • Browser (incl. version):
  • OS:

Log files

Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.

sbe-arg avatar Mar 23 '24 03:03 sbe-arg

same problem here

osonunca avatar Mar 24 '24 09:03 osonunca

Please post the actual full log entry for the exceptions you're seeing. You can do so from the Web UI by expanding the entry and using the "Copy raw" option.

Also please provide your Server config, as requested in the issue template.

joshtrichards avatar Mar 24 '24 21:03 joshtrichards

regarding the server version. I'm running on truenas scale official app the latest version with all applications up to date. No clue what php, web, db server versions are set.

{
    "reqId": "...",
    "level": 3,
    "time": "2024-03-23T04:03:24+00:00",
    "remoteAddr": "...",
    "user": "...",
    "app": "text",
    "method": "PUT",
    "url": "/apps/text/session/1399/create",
    "message": "No permission to access this file",
    "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
    "version": "28.0.3.2",
    "exception": {
        "Exception": "OCP\\Files\\NotFoundException",
        "Message": "",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/apps/text/lib/Service/ApiService.php",
                "line": 91,
                "function": "getFileById",
                "class": "OCA\\Text\\Service\\DocumentService",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/html/apps/text/lib/Controller/SessionController.php",
                "line": 61,
                "function": "create",
                "class": "OCA\\Text\\Service\\ApiService",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 230,
                "function": "create",
                "class": "OCA\\Text\\Controller\\SessionController",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 137,
                "function": "executeController",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    [
                        "OCA\\Text\\Controller\\SessionController"
                    ],
                    "create"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/App.php",
                "line": 184,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    [
                        "OCA\\Text\\Controller\\SessionController"
                    ],
                    "create"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Route/Router.php",
                "line": 315,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OCA\\Text\\Controller\\SessionController",
                    "create",
                    [
                        "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    ],
                    [
                        "1399",
                        "text.Session.create"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/base.php",
                "line": 1069,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/apps/text/session/1399/create"
                ]
            },
            {
                "file": "/var/www/html/index.php",
                "line": 39,
                "function": "handleRequest",
                "class": "OC",
                "type": "::",
                "args": []
            }
        ],
        "File": "/var/www/html/apps/text/lib/Service/DocumentService.php",
        "Line": 495,
        "message": "No permission to access this file",
        "exception": [],
        "CustomMessage": "No permission to access this file"
    },
    "id": "..."
}
{
    "reqId": "...",
    "level": 3,
    "time": "2024-03-23T04:03:18+00:00",
    "remoteAddr": "...",
    "user": "...",
    "app": "index",
    "method": "POST",
    "url": "/apps/text/session/1399/sync",
    "message": "No proper share data",
    "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36",
    "version": "28.0.3.2",
    "exception": {
        "Exception": "InvalidArgumentException",
        "Message": "No proper share data",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/apps/text/lib/Service/ApiService.php",
                "line": 227,
                "function": "getFileForSession",
                "class": "OCA\\Text\\Service\\DocumentService",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***",
                    null
                ]
            },
            {
                "file": "/var/www/html/apps/text/lib/Controller/SessionController.php",
                "line": 88,
                "function": "sync",
                "class": "OCA\\Text\\Service\\ApiService",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 230,
                "function": "sync",
                "class": "OCA\\Text\\Controller\\SessionController",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 137,
                "function": "executeController",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    [
                        "OCA\\Text\\Controller\\SessionController"
                    ],
                    "sync"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/App.php",
                "line": 184,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    [
                        "OCA\\Text\\Controller\\SessionController"
                    ],
                    "sync"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Route/Router.php",
                "line": 315,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OCA\\Text\\Controller\\SessionController",
                    "sync",
                    [
                        "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    ],
                    [
                        "1399",
                        "text.Session.sync"
                    ]
                ]
            },
            {
                "file": "/var/www/html/lib/base.php",
                "line": 1069,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/apps/text/session/1399/sync"
                ]
            },
            {
                "file": "/var/www/html/index.php",
                "line": 39,
                "function": "handleRequest",
                "class": "OC",
                "type": "::",
                "args": []
            }
        ],
        "File": "/var/www/html/apps/text/lib/Service/DocumentService.php",
        "Line": 449,
        "message": "No proper share data",
        "exception": [],
        "CustomMessage": "No proper share data"
    },
    "id": "..."
}

sbe-arg avatar Mar 25 '24 01:03 sbe-arg

Back to add that disabling the notes app and using notes via files editor has a massive improvement in the web ui performance. not sure whats going on

sbe-arg avatar Mar 27 '24 00:03 sbe-arg

Can you provide some of the log entries that actually reference the Notes app?

This looks like it's failing in the session management.

Do you have a reverse proxy? If so, what kind? One possibly is if you have asset caching on in, say, NPM which can mess up sessions/authentication (among other things).

joshtrichards avatar Apr 16 '24 14:04 joshtrichards

A similar report from the forum: https://help.nextcloud.com/t/new-install-errors-in-the-logs/188273

joshtrichards avatar Apr 16 '24 14:04 joshtrichards

I have disabled the notes app and using the files embedded editor for md files instead.

Looks like double add fit for purpose in my usecase.

sbe-arg avatar Apr 16 '24 20:04 sbe-arg

Hi @sbe-arg - How were you logged in to the Web UI? Were you using impersonate or a guest account by chance?

joshtrichards avatar Aug 09 '24 21:08 joshtrichards

I haven't had this problem since upgrading.

sbe-arg avatar Aug 09 '24 22:08 sbe-arg