nextcloud / documentserver_community

Document server for onlyoffice
https://apps.nextcloud.com/apps/documentserver_community
131 stars 29 forks source link

DocumentConversionException causes core dump #218

Open rolandverhaar opened 3 years ago

rolandverhaar commented 3 years ago

Since installing the latest updates of nextcloud and apps I see errors and core dumps in the folder custom_apps/documentserver_community/3rdparty/onlyoffice/documentserver/server/FileConverter/bin The core dumps are approx. 150 MB and fill up the disk in a couple of hours.

With the older version, there were also exceptions, but they did not result in a core dump.

The error in the logs:

OCA\DocumentServer\Document\DocumentConversionException: # # Fatal error in v8::ToLocalChecked # Empty MaybeLocal. # Received signal 4 ILL_ILLOPN 7f80deb0c849 ==== C stack trace =============================== [0x7f80deb0da92] [0x7f80ddf26730] [0x7f80deb0c849] [0x7f80de328072] [0x7f80de31cfb1] [0x7f80de2eaebe] [0x7f80de2e1643] [0x000000748550] [0x00000076011b] [0x000000767895] [0x00000076af1d] [0x00000054034f] [0x7f80ddbf409b] [0x000000745f93] [end of stack trace] Illegal instruction (core dumped)

/var/www/html/custom_apps/documentserver_community/lib/DocumentConverter.php - line 125:

OCA\DocumentServer\Document\ConverterBinary->run("/tmp/oc_tmp_seqs2S-.xml", null)

/var/www/html/custom_apps/documentserver_community/lib/DocumentConverter.php - line 80:

OCA\DocumentServer\DocumentConverter->runCommand(OCA\Document ... {})

/var/www/html/custom_apps/documentserver_community/lib/Document/DocumentStore.php - line 156:

OCA\DocumentServer\DocumentConverter->saveChanges("*** sensiti ... *", [ "78;AgAAAD ... "], "/var/www/ht ... x", "docx")

/var/www/html/custom_apps/documentserver_community/lib/LocalAppData.php - line 102:

OCA\DocumentServer\Document\DocumentStore->OCA\DocumentServer\Document\{closure}("*** sensiti ... *")

/var/www/html/custom_apps/documentserver_community/lib/Document/DocumentStore.php - line 176:

OCA\DocumentServer\LocalAppData->getReadWriteLocalPath(OC\Files\Sim ... {}, Closure {})

/var/www/html/custom_apps/documentserver_community/lib/Document/SaveHandler.php - line 58:

OCA\DocumentServer\Document\DocumentStore->saveChanges(973841654, [ OCA\Docume ... }])

/var/www/html/custom_apps/documentserver_community/lib/BackgroundJob/Cleanup.php - line 71:

OCA\DocumentServer\Document\SaveHandler->flushChanges(973841654)

/var/www/html/lib/public/BackgroundJob/Job.php - line 80:

OCA\DocumentServer\BackgroundJob\Cleanup->run(null)

/var/www/html/cron.php - line 128:

OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

===================================================================================

There are no steps to reproduce this issue as the code execution is in the background during document conversion.

Server configuration

Amazon Linux release 2 (Karoo) Memory: 4 GB OS disk: 8 GB, 4.8 GB free Data disk: 140 GB, 71 GB free

Docker version: 19.03.13-ce containerd version: 1.4.1

The nextcloud platform runs in docker and is iniated with docker-compose.

Nextcloud version: 21.0.0

Community document server version: 0.1.9 The document server is disabled now.

settings/integrity/failed:

No errors have been found.

List of apps:

Enabled:

Config list:

{ "system": { "htaccess.RewriteBase": "\/", "memcache.local": "\OC\Memcache\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusted_domains": [ "localhost", "tstcertificeringmkb.nl", "isodoejezo.nl", "www.isodoejezo.nl", "ng-server" ], "trusted_proxies": "REMOVED SENSITIVE VALUE", "overwritewebroot": "\/nextcloud", "overwriteprotocol": "https", "datadirectory": "REMOVED SENSITIVE VALUE", "dbtype": "sqlite3", "version": "21.0.0.18", "overwrite.cli.url": "https:\/\/isodoejezo.nl\/nextcloud", "installed": true, "onlyoffice": { "verify_peer_off": true }, "maintenance": false, "twofactor_enforced": "false", "twofactor_enforced_groups": [ "admin" ], "twofactor_enforced_excluded_groups": [], "loglevel": 0, "allow_local_remote_servers": "true", "app_install_overwrite": [ "ransomware_detection" ], "mail_smtpmode": "smtp", "mail_smtpauth": 1, "mail_sendmailmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "587", "mail_smtpname": "REMOVED SENSITIVE VALUE", "mail_smtppassword": "REMOVED SENSITIVE VALUE", "theme": "" }, "apps": { "accessibility": { "installed_version": "1.7.0", "types": "", "enabled": "yes" }, "activity": { "installed_version": "2.14.3", "types": "filesystem", "enabled": "yes", "notify_stream_favorite": "1", "notify_email_favorite": "0", "notify_stream_file_changed": "1", "notify_email_file_changed": "0", "notify_stream_file_created": "1", "notify_email_file_created": "0", "notify_stream_file_deleted": "1", "notify_email_file_deleted": "0", "notify_stream_file_favorite": "0", "notify_stream_file_restored": "1", "notify_email_file_restored": "0", "notify_stream_comments": "1", "notify_email_comments": "0", "notify_stream_calendar": "1", "notify_email_calendar": "0", "notify_stream_calendar_event": "1", "notify_email_calendar_event": "0", "notify_stream_calendar_todo": "1", "notify_email_calendar_todo": "0", "notify_stream_shared": "1", "notify_email_shared": "0", "notify_stream_remote_share": "1", "notify_email_remote_share": "0", "notify_stream_public_links": "1", "notify_email_public_links": "0", "notify_stream_systemtags": "1", "notify_email_systemtags": "0", "notify_setting_batchtime": "3600", "notify_setting_self": "0", "notify_setting_selfemail": "0", "enable_email": "no", "notify_notification_group_settings": "1", "notify_notification_security": "1", "notify_notification_personal_settings": "1", "notify_notification_favorite": "0", "notify_notification_file_changed": "0", "notify_notification_file_favorite_changed": "1", "notify_email_file_favorite_changed": "0", "notify_notification_comments": "0", "notify_notification_calendar": "0", "notify_notification_calendar_event": "0", "notify_notification_calendar_todo": "0", "notify_notification_shared": "0", "notify_notification_remote_share": "0", "notify_notification_public_links": "0", "notify_notification_systemtags": "0", "notify_notification_twofactor_totp": "1" }, "admin_audit": { "installed_version": "1.11.0", "enabled": "yes", "types": "logging" }, "backgroundjob": { "lastjob": "8631" }, "bruteforcesettings": { "installed_version": "2.0.1", "enabled": "no", "types": "" }, "calendar": { "installed_version": "2.2.0", "enabled": "no", "types": "" }, "cloud_federation_api": { "installed_version": "1.4.0", "types": "filesystem", "enabled": "yes" }, "comments": { "installed_version": "1.11.0", "types": "logging", "enabled": "yes" }, "contacts": { "installed_version": "3.5.1", "enabled": "yes", "types": "dav" }, "contactsinteraction": { "installed_version": "1.2.0", "types": "dav", "enabled": "yes" }, "core": { "installedat": "1580088891.7597", "lastupdatedat": "1617785065", "vendor": "nextcloud", "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php", "public_files": "files_sharing\/public.php", "installed.bundles": "[\"CoreBundle\"]", "theming.variables": "32ef7dc01a3ffbcbbaf8fb9483f9bd03", "lastcron": "1617785102", "lastupdateResult": "[]", "shareapi_allow_links": "no", "shareapi_allow_resharing": "no", "shareapi_default_permission_canshare": "yes", "shareapi_default_permissions": "31", "shareapi_enabled": "yes", "shareapi_allow_public_upload": "no", "updater.secret.created": "1612024447", "backgroundjobs_mode": "cron", "shareapi_only_share_with_group_members": "yes", "shareapi_restrict_user_enumeration_to_group": "yes", "moveavatarsdone": "yes", "previewsCleanedUp": "1", "oc.integritycheck.checker": "[]" }, "dashboard": { "installed_version": "7.1.0", "types": "", "enabled": "yes" }, "dav": { "installed_version": "1.17.1", "types": "filesystem", "enabled": "yes", "generateBirthdayCalendar": "no", "sendEventReminders": "no", "sendInvitations": "no", "regeneratedBirthdayCalendarsForYearFix": "yes", "buildCalendarSearchIndex": "yes", "buildCalendarReminderIndex": "yes", "chunks_migrated": "1" }, "documentserver_community": { "installed_version": "0.1.9", "enabled": "no", "types": "filesystem" }, "federatedfilesharing": { "installed_version": "1.11.0", "types": "", "enabled": "yes" }, "federation": { "installed_version": "1.11.0", "types": "authentication", "enabled": "yes" }, "files": { "installed_version": "1.16.0", "types": "filesystem", "enabled": "yes", "cronjob_scan_files": "500", "watermark_enabled": "no" }, "files_mindmap": { "installed_version": "0.0.24", "enabled": "yes", "types": "" }, "files_pdfviewer": { "installed_version": "2.1.0", "types": "", "enabled": "yes" }, "files_rightclick": { "installed_version": "1.0.0", "types": "", "enabled": "yes" }, "files_sharing": { "installed_version": "1.13.1", "types": "filesystem", "enabled": "yes", "outgoing_server2server_share_enabled": "no", "incoming_server2server_share_enabled": "no", "lookupServerUploadEnabled": "no", "lookupServerEnabled": "no" }, "files_trashbin": { "installed_version": "1.11.0", "types": "filesystem,dav", "enabled": "yes" }, "files_versions": { "installed_version": "1.14.0", "types": "filesystem,dav", "enabled": "yes" }, "files_videoplayer": { "installed_version": "1.10.0", "types": "", "enabled": "yes" }, "firstrunwizard": { "installed_version": "2.10.0", "types": "logging", "enabled": "yes" }, "logreader": { "installed_version": "2.6.0", "types": "", "enabled": "yes", "levels": "00111" }, "lookup_server_connector": { "installed_version": "1.9.0", "types": "authentication", "enabled": "yes" }, "mail": { "installed_version": "1.9.4", "enabled": "[\"Beheer\"]", "types": "" }, "nextbackup": { "installed_version": "21.1.0", "enabled": "no", "types": "" }, "nextcloud_announcements": { "installed_version": "1.10.0", "types": "logging", "enabled": "yes", "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200" }, "notifications": { "installed_version": "2.9.0", "types": "logging", "enabled": "yes" }, "oauth2": { "installed_version": "1.9.0", "types": "authentication", "enabled": "yes" }, "onlyoffice": { "installed_version": "6.3.0", "enabled": "no", "types": "filesystem", "DocumentServerUrl": "https:\/\/isodoejezo.nl\/nextcloud\/apps\/documentserver_community\/", "defFormats": "{\"csv\":\"false\",\"doc\":\"true\",\"docm\":\"false\",\"docx\":\"true\",\"dotx\":\"false\",\"epub\":\"false\",\"html\":\"false\",\"odp\":\"true\",\"ods\":\"true\",\"odt\":\"true\",\"pdf\":\"false\",\"potm\":\"false\",\"potx\":\"false\",\"ppsm\":\"false\",\"ppsx\":\"false\",\"ppt\":\"true\",\"pptm\":\"false\",\"pptx\":\"true\",\"rtf\":\"false\",\"txt\":\"false\",\"xls\":\"true\",\"xlsm\":\"false\",\"xlsx\":\"true\",\"xltm\":\"false\",\"xltx\":\"false\"}", "editFormats": "{\"csv\":\"true\",\"odp\":\"true\",\"ods\":\"true\",\"odt\":\"true\",\"rtf\":\"true\",\"txt\":\"true\"}", "sameTab": "false", "demo": "{\"available\":false,\"enabled\":false,\"start\":{\"date\":\"2020-01-29 20:07:54.187671\",\"timezone_type\":3,\"timezone\":\"UTC\"}}", "DocumentServerInternalUrl": "", "jwt_secret": "", "StorageUrl": "", "settings_error": "", "groups": "[]", "customizationChat": "true", "customizationCompactHeader": "true", "customizationFeedback": "false", "customizationHelp": "true", "customizationToolbarNoTabs": "true", "customizationReviewDisplay": "original" }, "password_policy": { "installed_version": "1.11.0", "types": "authentication", "enabled": "yes", "enforceUpperLowerCase": "1", "enforceNumericCharacters": "1", "enforceSpecialCharacters": "1", "enforceHaveIBeenPwned": "1" }, "photos": { "installed_version": "1.3.0", "types": "", "enabled": "yes" }, "privacy": { "installed_version": "1.5.0", "types": "", "enabled": "yes", "readableLocation": "de" }, "provisioning_api": { "installed_version": "1.11.0", "types": "prevent_group_restriction", "enabled": "yes" }, "ransomware_detection": { "installed_version": "0.8.0", "enabled": "no", "types": "logging", "debug": "0" }, "ransomware_protection": { "installed_version": "1.10.0", "enabled": "yes", "types": "logging", "extension_exclusions": "[\".aac\"]" }, "recommendations": { "installed_version": "1.0.0", "types": "", "enabled": "yes" }, "serverinfo": { "installed_version": "1.11.0", "types": "", "enabled": "yes" }, "settings": { "installed_version": "1.3.0", "types": "", "enabled": "yes" }, "sharebymail": { "installed_version": "1.11.0", "types": "filesystem", "enabled": "yes", "sendpasswordmail": "no" }, "support": { "installed_version": "1.4.0", "types": "session", "enabled": "yes", "SwitchUpdaterServerHasRun": "yes" }, "survey_client": { "installed_version": "1.9.0", "types": "", "enabled": "yes", "server": "no", "php": "no", "database": "no", "apps": "no", "stats": "no", "files_sharing": "no", "encryption": "no" }, "systemtags": { "installed_version": "1.11.0", "types": "logging", "enabled": "yes" }, "text": { "installed_version": "3.2.0", "types": "dav", "enabled": "yes" }, "theming": { "installed_version": "1.12.0", "types": "logging", "enabled": "yes" }, "twofactor_backupcodes": { "installed_version": "1.10.0", "types": "", "enabled": "yes" }, "twofactor_totp": { "installed_version": "6.0.0", "enabled": "yes", "types": "" }, "updatenotification": { "installed_version": "1.11.0", "types": "", "enabled": "yes", "update_check_errors": "0", "documentserver_community": "0.1.9", "mail": "1.9.4", "onlyoffice": "6.1.0", "core": "20.0.8.1", "contacts": "3.5.1", "calendar": "2.0.4", "twofactor_totp": "5.0.0", "bruteforcesettings": "2.0.1", "nextbackup": "21.1.0", "files_mindmap": "0.0.24", "ransomware_detection": "0.10.0", "ransomware_protection": "1.10.0" }, "user_status": { "installed_version": "1.1.1", "types": "", "enabled": "yes" }, "viewer": { "installed_version": "1.5.0", "types": "", "enabled": "yes" }, "weather_status": { "installed_version": "1.1.0", "types": "", "enabled": "yes" }, "workflowengine": { "installed_version": "2.3.0", "types": "filesystem", "enabled": "yes" } } }

rolandverhaar commented 3 years ago

I found that the documentconverter was producing this error before the update of nextcloud to v. 21.0.0 So, it seems safe to assume the documentconverter has some problem which forces a core dump

mkriegl commented 3 years ago

I severe the same issue after upgrading to NC21. I am able to edit uploaded documents in the browser and changes appear after a reopen, but somehow the information is not written back. When I download the document I just get the uploaded version

WaaromZoMoeilijk commented 3 years ago

Chiming in, same issue.

hermann-san commented 3 years ago

same issue for me with the same error log. In a few days, 11GB of MySQL binlog is piled up. I can delete the log via SQL, but log Messages are not stopped.
if there is a way to limit the size of the binlog, it would be a temp solution. Appreciate any help.

github-actions[bot] commented 1 month ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.