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

[Bug]: Serious memory leak in web log reader❗ #1395

Closed
5 of 8 tasks
Gloryandel opened this issue Oct 19, 2024 · 2 comments
Closed
5 of 8 tasks

[Bug]: Serious memory leak in web log reader❗ #1395

Gloryandel opened this issue Oct 19, 2024 · 2 comments

Comments

@Gloryandel
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Just open the log reader and wait for a while. If the browser has memory usage exception monitoring, it will crash directly and prompt that the memory is exceeded.otherwise the page will freeze directly.Firefox and the Chromuim series of browsers behave the same.
Image
Image
Image

Steps to reproduce

  1. Just open the log reader and wait for a while.(path:/settings/admin/logging)

Expected behavior

null

Nextcloud Server version

30

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
"system": {
"datadirectory": "REMOVED SENSITIVE VALUE",
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"192.168.10.10:8666"
],
"version": "30.0.1.2",
"overwrite.cli.url": "https://192.168.10.10:8666",
"dbtype": "pgsql",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"memcache.local": "\OC\Memcache\APCu",
"filelocking.enabled": true,
"memcache.locking": "\OC\Memcache\APCu",
"apc.shm_size": "256M",
"upgrade.disable-web": true,
"logfile": "/config/log/nextcloud.log",
"logfile_audit": "/config/log/audit.log",
"filesystem_check_changes": 1,
"default_language": "zh_CN",
"default_locale": "zh",
"default_phone_region": "CN",
"app_install_overwrite": [
"files_archive",
"extract",
"duplicatefinder"
],
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "ssl",
"mail_smtpport": "465",
"mail_smtpauth": 1,
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"maintenance": false,
"loglevel": 2,
"maintenance_window_start": 1
}
}

List of activated Apps

Enabled:

  • activity: 3.0.0
  • app_api: 4.0.0
  • bruteforcesettings: 3.0.0
  • checksum: 1.2.5
  • circles: 30.0.0-dev
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • duplicatefinder: 1.2.6
  • extract: 1.3.6
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_archive: 1.2.3
  • files_downloadlimit: 3.0.0
  • files_external: 1.22.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • firstrunwizard: 3.0.0
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • nextcloud_announcements: 2.0.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0
    Disabled:
  • admin_audit: 1.20.0
  • encryption: 2.18.0
  • suspicious_login: 8.0.0
  • twofactor_nextcloud_notification: 4.0.0
  • twofactor_totp: 12.0.0-dev
  • user_ldap: 1.21.0

Nextcloud Signing status

null

Nextcloud Logs

null

Additional info

Chrome/128.0.0.0

@joshtrichards joshtrichards transferred this issue from nextcloud/server Oct 19, 2024
@joshtrichards
Copy link
Member

Duplicate of #1262

(Presumably)

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
@Gloryandel
Copy link
Author

Duplicate of #1262

(Presumably)

I redeployed a new Nextcloud and found that /apps/logreader/api/poll?lastReqId=xxx caused the massive amount of data returned when querying the log to occupy too much memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants