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

Nextcloud extreme Slow #15589

Closed
gnilebein opened this issue May 17, 2019 · 16 comments
Closed

Nextcloud extreme Slow #15589

gnilebein opened this issue May 17, 2019 · 16 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage needs info stale Ticket or PR with no recent activity

Comments

@gnilebein
Copy link

Steps to reproduce

  1. Update to Nextcloud 16.0.1
  2. Open any Page in Nextcloud

Expected behaviour

Nextcloud should run with normal performance

Actual behaviour

The call is many times slower than expected. It sesems files_external is responsible for this (See Xdebug Infos)

Server configuration

Operating system: Ubuntu 18.04

Web server: Apache 2.4

Database: MySQL 5.7

PHP version: 7.2 FPM

Nextcloud version: 16.0.1

Updated from an older Nextcloud/ownCloud or fresh install: Updated

Where did you install Nextcloud from: tar.gz and Updater

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.2.0
  - cloud_federation_api: 0.2.0
  - dav: 1.9.2
  - event_update_notification: 0.3.4
  - federatedfilesharing: 1.6.0
  - federation: 1.6.0
  - files: 1.11.0
  - files_external: 1.7.0
  - files_mindmap: 0.0.13
  - files_pdfviewer: 1.5.0
  - files_rightclick: 0.13.0
  - files_sharing: 1.8.0
  - files_texteditor: 2.8.0
  - files_trashbin: 1.6.0
  - files_versions: 1.9.0
  - files_videoplayer: 1.5.0
  - firstrunwizard: 2.5.0
  - gallery: 18.3.0
  - logreader: 2.1.0
  - lookup_server_connector: 1.4.0
  - news: 13.1.6
  - nextcloud_announcements: 1.5.0
  - notifications: 2.4.1
  - oauth2: 1.4.2
  - password_policy: 1.6.0
  - passwords: 2019.5.0
  - privacy: 1.0.0
  - provisioning_api: 1.6.0
  - rainloop: 6.0.2
  - recommendations: 0.4.0
  - serverinfo: 1.6.0
  - sharebymail: 1.6.0
  - support: 1.0.0
  - survey_client: 1.4.0
  - systemtags: 1.6.0
  - theming: 1.7.0
  - twofactor_backupcodes: 1.5.0
  - updatenotification: 1.6.0
  - user_external: 0.6.1
  - viewer: 1.0.0
  - workflowengine: 1.6.0
Disabled:
  - activity
  - admin_audit
  - apporder
  - calendar
  - camerarawpreviews
  - comments
  - contacts
  - deck
  - encryption
  - previewgenerator
  - qownnotesapi
  - ransomware_protection
  - richdocuments
  - twofactor_totp
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.gnilebein.de",
            "www.nextcloud.gnilebein.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/nextcloud.gnilebein.de",
        "dbtype": "mysql",
        "version": "16.0.1.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "defaultapp": "rainloop",
        "loglevel": 0,
        "debug": false,
        "appstoreenabled": true,
        "appstore.experimental.enabled": true,
        "maintenance": false,
        "theme": "",
        "remember_login_cookie_lifetime": 2592000,
        "session_lifetime": 604800,
        "session_keepalive": true,
        "user_backends": [
            {
                "class": "OC_User_IMAP",
                "arguments": [
                    "{localhost:143\/imap\/tls\/novalidate-cert}"
                ]
            }
        ],
        "mysql.utf8mb4": true,
        "updater.release.channel": "stable",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "PLAIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "app_install_overwrite": [
            "apporder"
        ]
    }
}

Are you using external storage, if yes which one: SMB

Are you using encryption: no

Are you using an external user-backend, if yes which one: IMAP

Client configuration

Browser: Chrome

Operating system: Windows 10

Logs

Web server error log

Web server error log ``` No error in Log. Only Access logs. ```

Nextcloud log (data/nextcloud.log)

Nextcloud log
No Logfile entries

Browser log

Browser log
No errors

XDEBUG Logs

Xdebug log
Download of XDEBUG Files and screeshot: https://download.gnilebein.de/NextCloudXdebug/
@gnilebein gnilebein added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels May 17, 2019
@AInteriorB
Copy link

Could php-xdebug itself be the issue? Remove (not only disable) the entire package and try again.

@gnilebein
Copy link
Author

No. I installed it after the problem occurred.

@kesselb
Copy link
Contributor

kesselb commented May 18, 2019

I've seen some reports from smb users about high cpu load. Mind to try https://github.com/eduardok/libsmbclient-php?

#6865
#12505

@gnilebein
Copy link
Author

The problem only occurs if the SMB share is unreachable.

@kesselb
Copy link
Contributor

kesselb commented May 25, 2019

The problem only occurs if the SMB share is unreachable.

What behaviour would you expect when the smb share is unreachable? I guess we could lower (or make configurable) the timeout for smb connections ...

@gnilebein
Copy link
Author

In the last version, a banner was displayed in the upper area if a share was not available. But it was usable.

But in version 16 nextcloud seems unusable until a certain timeout is reached. And this regardless of whether you are in the file browser, calendar or contacts.

@kesselb

This comment has been minimized.

@gnilebein

This comment has been minimized.

@zocker-160
Copy link

zocker-160 commented Jun 5, 2019

I've seen some reports from smb users about high cpu load. Mind to try https://github.com/eduardok/libsmbclient-php?

#6865
#12505

@kesselb OMG thank you that solved my issue!!
after 3hours of debugging and desparation I finally have a fast NC instance again 🎉 🎉 :D

EDIT: I had to purge the smbclient package completely as well

@kesselb
Copy link
Contributor

kesselb commented Aug 27, 2019

@gnilebein #16836 mind to try this patch?

@gnilebein
Copy link
Author

@gnilebein #16836 mind to try this patch?

I tried. But nextcloud ist still very slow and the page load time ist very high when the mount is not available.

@kesselb
Copy link
Contributor

kesselb commented Aug 30, 2019

Is the same happening with https://github.com/eduardok/libsmbclient-php?

cc @blizzz @icewind1991 smb fun ;) Do you remember any changes to the timeout logic? Is this "storage not available" message gone?

@gnilebein
Copy link
Author

Is the same happening with https://github.com/eduardok/libsmbclient-php?

Yes it seems so. IIRC in earlier version the message "storage not available" appears. But now it seems that NC does not try to connect in background. It seems that the connection is blocking the complete process.

@blizzz
Copy link
Member

blizzz commented Aug 30, 2019

@kesselb nope, contrary: with the php-smbclient module it should be handled now correctly, if it fais for auth issues. The best solution would be if the underyling lib would act in a consistent way, indepent of what way of talking to the SMB storage was used.

@ghost ghost added the stale Ticket or PR with no recent activity label Sep 29, 2019
@nextcloud nextcloud deleted a comment Sep 29, 2019
@ghost ghost removed the stale Ticket or PR with no recent activity label Sep 29, 2019
@szaimen
Copy link
Contributor

szaimen commented May 26, 2021

I suppose this issue is still valid? If not, please close this issue!

@ghost
Copy link

ghost commented Jun 27, 2021

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the stale Ticket or PR with no recent activity label Jun 27, 2021
@ghost ghost closed this as completed Jul 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: external storage needs info stale Ticket or PR with no recent activity
Projects
None yet
Development

No branches or pull requests

6 participants