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

Getting a few errors and very slow performance on nc28 #1255

Open
sbe-arg opened this issue Mar 23, 2024 · 7 comments
Open

Getting a few errors and very slow performance on nc28 #1255

sbe-arg opened this issue Mar 23, 2024 · 7 comments
Labels
bug Something isn't working need to reproduce Issue that has not been reproduced

Comments

@sbe-arg
Copy link

sbe-arg commented Mar 23, 2024

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 sbe-arg added bug Something isn't working need to reproduce Issue that has not been reproduced labels Mar 23, 2024
@osonunca

This comment was marked as spam.

@joshtrichards
Copy link
Member

joshtrichards commented Mar 24, 2024

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 joshtrichards added the needs info More details are needed in order to validate issue label Mar 24, 2024
@sbe-arg
Copy link
Author

sbe-arg commented Mar 25, 2024

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
Copy link
Author

sbe-arg commented Mar 27, 2024

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

@joshtrichards joshtrichards removed the needs info More details are needed in order to validate issue label Mar 28, 2024
@joshtrichards
Copy link
Member

joshtrichards commented Apr 16, 2024

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
Copy link
Member

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

@sbe-arg
Copy link
Author

sbe-arg commented Apr 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need to reproduce Issue that has not been reproduced
Projects
None yet
Development

No branches or pull requests

3 participants