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

Searching in a large folder makes the browser unresponsive #6861

Closed
CamZie opened this issue Oct 18, 2017 · 16 comments
Closed

Searching in a large folder makes the browser unresponsive #6861

CamZie opened this issue Oct 18, 2017 · 16 comments
Labels
1. to develop Accepted and waiting to be taken care of bug feature: files

Comments

@CamZie
Copy link

CamZie commented Oct 18, 2017

Steps to reproduce

  1. Searching using the search button, in a large folder (8.4 GB) which contains 7716 files.
  2. The Installation freezes when typing one string on the search button.
  3. Browser becomes unresponsive.

Expected behaviour

It should find the files matching the string I wrote on the search button.

Actual behaviour

Typing one string on the search button freezes the browsers firefox, chrome and safari in a Linux or Mac OS X computers.

Server configuration

Operating system: Debian 8 (jessie)

Web server: nginx 1.12.1

Database: MariaDB 10.0.32

PHP version: 5.6.30

Nextcloud version: 12.0.3

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

Where did you install Nextcloud from: The Nextcloud website

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.5.2
  - admin_audit: 1.2.0
  - comments: 1.2.0
  - dav: 1.3.0
  - federatedfilesharing: 1.2.0
  - federation: 1.2.0
  - files: 1.7.2
  - files_pdfviewer: 1.1.1
  - files_sharing: 1.4.0
  - files_texteditor: 2.4.1
  - files_trashbin: 1.2.0
  - files_versions: 1.5.0
  - files_videoplayer: 1.1.0
  - firstrunwizard: 2.1
  - gallery: 17.0.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.0.0
  - nextcloud_announcements: 1.1
  - notifications: 2.0.0
  - oauth2: 1.0.5
  - password_policy: 1.2.2
  - provisioning_api: 1.2.0
  - serverinfo: 1.2.0
  - sharebymail: 1.2.0
  - survey_client: 1.0.0
  - systemtags: 1.2.0
  - theming: 1.3.0
  - twofactor_backupcodes: 1.1.1
  - updatenotification: 1.2.0
  - workflowengine: 1.2.0
Disabled:
  - encryption
  - files_external
  - user_external
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "12.0.3.3",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "theme": "",
        "loglevel": 0,
        "activity_expire_days": 180,
        "trashbin_retention_obligation": "auto,90",
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}

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

Are you using encryption: no

Client configuration

Browser: Firefox, Chrome and Safari

Operating system: Linux and Mac OS X

Logs

Web server error log

Web server error log
no errors

Nextcloud log (data/nextcloud.log)

Nextcloud log
no errors

Browser log

Browser log

Could not follow since the browser becomes unresponsive. I only receive the error that the browser takes too long too load so I had to kill the process

@CamZie CamZie changed the title Searching a file in a large folder makes the browsers unresponsive Searching a file in a large folder makes the browser unresponsive Oct 18, 2017
@CamZie CamZie changed the title Searching a file in a large folder makes the browser unresponsive Searching in a large folder makes the browser unresponsive Oct 18, 2017
@nickvergessen
Copy link
Member

I tested it with 1k Files.

It doesnt actually freeze for me, but it takes quite some time to load the list and react again.
I guess the JS filtering takes up all the resources?

@nickvergessen
Copy link
Member

Here is a zip with 6k files: test2.zip

Uploading takes ~20mins for me and yes, jQuery dies when searching:
bildschirmfoto vom 2017-10-19 13-47-36

@CamZie
Copy link
Author

CamZie commented Nov 6, 2017

@nickvergessen Thank you for reproducing the problem, this is exactly what happened on our side. Do you by any chance know if this issue will be fixed on the next release? If not, is there any workaround for this problem?

@nickvergessen
Copy link
Member

Not really, until now no one took over the issue or had a look how to fix it.

@CamZie
Copy link
Author

CamZie commented Jan 11, 2018

Is there any updates or news for this issue?

@CamZie
Copy link
Author

CamZie commented Mar 15, 2018

I upgraded my installation to Nextcloud 13.0.1 hoping that the problem would be fixed, since I read in the changelog that there is significant improvement in the speed and the search functionality. Unfortunately, the issue still persists.

@nextcloud-bot nextcloud-bot added the stale Ticket or PR with no recent activity label Jun 20, 2018
@skjnldsv skjnldsv added the 1. to develop Accepted and waiting to be taken care of label Dec 21, 2018
@nextcloud-bot nextcloud-bot removed the stale Ticket or PR with no recent activity label Dec 21, 2018
@solracsf
Copy link
Member

Errors also while browsing

Steps to reproduce

  1. Define PHP post_max_size and upload_max_size to 1024M
  2. Upload more than 3000 pictures at root using Object Storage as Primary Storage
  3. Try to browse WebGUI

Expected behaviour

Browsing is smooth

Actual behaviour

Chrome and Firefox crashes, or, some CSS is lost and a message about server limits appears.

image

Server configuration

Operating system: Windows 10 (client)

Web server: 18.04 under Nginx+Apache

Database: MariaDB10.2

PHP version: 7.3.13

Nextcloud version: (see Nextcloud admin page) 17.0.2

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

Where did you install Nextcloud from: download.nextcloud.com

Signing status: No errors have been found.

No browser or nextcloud errors in logs.

@skjnldsv
Copy link
Member

Fixed nc20

@adrianbj
Copy link

adrianbj commented Dec 3, 2020

@skjnldsv - I am having issues with this. I just installed NC today, so it's the latest version. When things were initially set up, the search was very fast, but now I have copied across ~3TB of files to a group folder and done an occ files:scan --all. I was testing the search as the scan index was being built and it kept getting slower and slower as it went, to the point where it became non-functional. The search?term= XHR requests end up taking minutes to complete but if I do a simple:

SELECT * FROM oc_filecache WHERE name LIKE '%searchterm%'

the results are returned in less than a second, so it's certainly not the query that's the issue, but I am not really sure why the request takes so long. Please let me know if there is any other info I can provide or if you'd like me to post a new issue.

Thanks.

@intcreator
Copy link

I'm using Nextcloud 23. I have a folder with over 41,000 files in it and when I search the browser becomes unresponsive until I force close it with task manager. navigating and searching the data storage folder using Windows Explorer is very fast. for me this issue does not appera to be fixed in Nextcloud 20 so the issue should be reopened

@abacuslifedev
Copy link

I am having the same issue as @intcreator using NextCloud 23.... this issue should be reopened.

@germainm
Copy link

Using latest nextcloud and issue still present.

You can easily trigger the problem :

go in a folder with thousand files. start a search (with glass). it will become unresponsive.

javascript seems the issue because the cpu is running at max during that time.

it could be optimisation problem?

if I start the search from another directory with only some files, the search doesn't lag.

Fulltextsearch is enabled fyi

@germainm
Copy link

germainm commented Jul 17, 2022

I changed the appdata location and it improved loading time a lot.

There's no option to change it, so I had to symlink it.

But still anormal loading time

@Traace
Copy link

Traace commented Jul 26, 2022

Bug still exists... I'm using NC23. Around 3500 PDFs in Folder

Please reopen the issue @skjnldsv

@bilibilinan
Copy link

Bug still exists with with NC 24.0.5.
Freeze when you input the 2nd character of file name.

@fcharlaix-opendsi
Copy link

This issue is still present with Nextcloud v26.0.1.

Tested with two Chrome browsers and Firefox, all of them got a warning from the page being unresponsive.

@skjnldsv cloud you reopen this issue please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug feature: files
Projects
None yet
Development

No branches or pull requests