nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.65k stars 3.99k forks source link

Big Video .mkv php-fpm bug #17637

Closed Revvz closed 1 year ago

Revvz commented 4 years ago

Steps to reproduce

  1. Download video in mkv format, more than 15Gb, start playback, then leave the video playing, and switch to another browser tab, wait 2 minutes, and go back to the video tab, try rewinding the video, forward or backward, watch htop, see www pool children, which peaks.

Expected behaviour

Tell us what should happen When playing videos> 15 gb in mkv format, when rewinding, www pool children should not multiply so much that they should not lead to a server crash.

Actual behaviour

When playing large> 15gb video in mkv format, in the chrome browser, a www pool is created, if you switch to another browser tab, and after 2 minutes return to the video and rewind it, then www pool children begin to form, reaching the maximum and causing it to freeze server.

Server configuration

Operating system: Ubuntu 18.04.3

Web server: Nginx 1.17.4 + php-fpm

Database: postgre 11

PHP version: 7.3.10

Nextcloud version: (see Nextcloud admin page) 16.0.5.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: nextcloud.com

Signing status:

Signing status ``` Login as admin user into your Nextcloud and access http://example.com/index.php/settings/integrity/failed paste the results here. ```

List of activated apps:

App list Enabled: - accessibility: 1.2.0 - activity: 2.9.1 - admin_audit: 1.6.0 - apporder: 0.8.0 - audioplayer: 2.8.4 - bruteforcesettings: 1.4.0 - calendar: 1.7.1 - camerarawpreviews: 0.7.2 - checksum: 0.4.3 - cloud_federation_api: 0.2.0 - comments: 1.6.0 - dav: 1.9.2 - extract: 1.2.0 - federatedfilesharing: 1.6.0 - federation: 1.6.0 - files: 1.11.0 - files_accesscontrol: 1.6.0 - files_pdfviewer: 1.5.0 - files_rightclick: 0.15.1 - files_sharing: 1.8.0 - files_texteditor: 2.8.0 - files_trashbin: 1.6.0 - files_versions: 1.9.0 - gallery: 18.3.0 - groupfolders: 4.1.4 - logreader: 2.1.0 - lookup_server_connector: 1.4.0 - metadata: 0.10.0 - nextcloud_announcements: 1.5.0 - notifications: 2.4.1 - oauth2: 1.4.2 - password_policy: 1.6.0 - privacy: 1.0.0 - provisioning_api: 1.6.0 - radio: 0.6.5 - ransomware_protection: 1.4.0 - recommendations: 0.4.0 - richdocuments: 3.4.2 - serverinfo: 1.6.0 - sharebymail: 1.6.0 - spreed: 6.0.4 - support: 1.0.0 - systemtags: 1.6.0 - tasks: 0.11.3 - theming: 1.7.0 - twofactor_backupcodes: 1.5.0 - updatenotification: 1.6.0 - viewer: 1.1.0 - workflowengine: 1.6.0 Disabled: - encryption - files_external - files_videoplayer - firstrunwizard - onlyoffice - ransomware_detection - registration - survey_client - user_ldap ``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your Nextcloud installation folder ```

Nextcloud configuration:

Config report "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "16.0.5.1", "overwrite.cli.url": "https:\/\/safetycloud.ru", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "default_language": "ru", "default_locale": "ru_RU", "logtimezone": "Europe\/Moscow", "logdateformat": "d-m-Y H:i:s", "session_lifetime": 7200, "remember_login_cookie_lifetime": 0, "allow_user_to_change_display_name": true, "appstoreenabled": true, "activity_expire_days": 30, "auth.bruteforce.protection.enabled": true, "blacklisted_files": [ ".htaccess", "Thumbs.db", "thumbs.db" ], "cron_log": true, "enable_previews": true, "enabledPreviewProviders": [ "OC\\Preview\\PNG", "OC\\Preview\\JPEG", "OC\\Preview\\GIF", "OC\\Preview\\BMP", "OC\\Preview\\XBitmap", "OC\\Preview\\MP3", "OC\\Preview\\TXT", "OC\\Preview\\MarkDown", "OC\\Preview\\Movie" ], "cache_chunk_gc_ttl": 86400, "filesystem_check_changes": 0, "filelocking.enabled": "true", "htaccess.RewriteBase": "\/", "integrity.check.disabled": false, "knowledgebaseenabled": false, "logfile": "\/var\/nc_data\/nextcloud.log", "loglevel": 2, "log_rotate_size": 104857600, "maintenance": false, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "overwriteprotocol": "https", "preview_max_x": 1024, "preview_max_y": 768, "preview_max_scale_factor": 1, "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0 }, "skeletondirectory": "", "quota_include_external_storage": false, "share_folder": "\/Shares", "trashbin_retention_obligation": "auto, 30", "updater.release.channel": "stable", "theme": "", "version_retention_obligation": "auto,30", "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_sendmailmode": "smtp", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpauthtype": "PLAIN", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "465", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***" } } ``` 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 or Insert your config.php content here. Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …) ```

Are you using external storage, if yes which one: local/smb/sftp/... NO Are you using encryption: yes/no NO Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... NO

Client configuration

Browser: Chrome 77

Operating system: Windows 10 1903

Logs

Web server error log

Web server error log ``` Insert your webserver log here ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` Insert your Nextcloud log here ```

Browser log

Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
szaimen commented 1 year ago

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!