documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

Fatal error in DocumentConversionException

Open Gspohu opened this issue 3 years ago • 4 comments

Hello,

I'm having a little trouble with Onlyoffice on Nextcloud. I have just made a brand new installation (not the first one), because the old one went up in flames in Strasbourg.

But now I have a lot of problems with Onlyoffice, before I was using an Onlyoffice server that I had set up myself, but I discovered that a great job had been done with the "documentserver_community" application, so I installed it.

The problems are :

  • The loss of some data written in the documents
  • Some files become corrupted and can't be opened anymore
  • The file versions downloaded from Nextcloud are not up to date and when I open the file with Onlyoffice from my server the data is there, but not in the downloaded version I think all of this must have a root cause.

The only information I have to give is this error in the log that appears all the time. After a lot of research I don't really understand it and I haven't found a solution. I think it's a bug in the application.

{"reqId":"***sensitive***","level":3,"time":"2021-03-25T08:55:06+00:00","remoteAddr":"","user":"--","app":"documentserver_community","method":"","url":"--","message":{"Exception":"OCA\\DocumentServer\\Document\\DocumentConversionException","Message":"\n#\n# Fatal error in v8::ToLocalChecked\n# Empty MaybeLocal.\n#\n\nReceived signal 4 ILL_ILLOPN 7f824f6b1849\n\n==== C stack trace ===============================\n\n [0x7f824f6b2a92]\n [0x7f824eac73c0]\n [0x7f824f6b1849]\n [0x7f824eecd072]\n [0x7f824eec1fb1]\n [0x7f824ee8febe]\n [0x7f824ee86643]\n [0x000000748550]\n [0x00000076011b]\n [0x000000767895]\n [0x00000076af1d]\n [0x00000054034f]\n [0x7f824e7980b3]\n [0x000000745f93]\n[end of stack trace]\nIllegal instruction (core dumped)\n","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/documentserver_community/lib/DocumentConverter.php","line":125,"function":"run","class":"OCA\\DocumentServer\\Document\\ConverterBinary","type":"->"},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/DocumentConverter.php","line":80,"function":"runCommand","class":"OCA\\DocumentServer\\DocumentConverter","type":"->"},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php","line":156,"function":"saveChanges","class":"OCA\\DocumentServer\\DocumentConverter","type":"->"},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/LocalAppData.php","line":102,"function":"OCA\\DocumentServer\\Document\\{closure}","class":"OCA\\DocumentServer\\Document\\DocumentStore","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php","line":176,"function":"getReadWriteLocalPath","class":"OCA\\DocumentServer\\LocalAppData","type":"->"},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/Document/SaveHandler.php","line":58,"function":"saveChanges","class":"OCA\\DocumentServer\\Document\\DocumentStore","type":"->"},{"file":"/var/www/nextcloud/apps/documentserver_community/lib/BackgroundJob/Cleanup.php","line":71,"function":"flushChanges","class":"OCA\\DocumentServer\\Document\\SaveHandler","type":"->"},{"file":"/var/www/nextcloud/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\DocumentServer\\BackgroundJob\\Cleanup","type":"->"},{"file":"/var/www/nextcloud/cron.php","line":128,"function":"execute","class":"OCP\\BackgroundJob\\Job","type":"->"}],"File":"/var/www/nextcloud/apps/documentserver_community/lib/Document/ConverterBinary.php","Line":66,"CustomMessage":"Error while applying changes for document 866290271"},"userAgent":"--","version":"21.0.0.18","id":"605c4feb50e4a"}

Like many things in version 21 of Nextcloud the formatted copy button does not work, so sorry for the presentation.

My server : Nextcloud version 21.0.0 Community Document Server 0.1.9 Onlyoffice 6.3.0 Ubuntu 20.04 up to date Database : Type : mysql Version : 8.0.23 PHP : Version : 7.4.3

My config file :

$CONFIG = array (
'instanceid' => '***Sensitive data***',
'passwordsalt' => '***Sensitive data***',
'secret' => '***Sensitive data***',
'trusted_domains' => array ( 0 => 'nextcloud.***Sensitive data***',
),
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '21.0.0.18',
'overwrite.cli.url' => 'https://nextcloud.***Sensitive data***',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '***Sensitive data***',
'installed' => true,
'updater.release.channel' => 'stable',
'maintenance' => false,
'default_phone_region' => 'FR',
'filelocking.enabled' => true,
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array ( 'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
'password' => '***Sensitive data***',
),
'onlyoffice' => array ( 'verify_peer_off' => true,
),
'allow_local_remote_servers' => true,
);

Thank you in advance for reading me,

Gspohu avatar Mar 25 '21 09:03 Gspohu

I also get this Error everytime after every cronjob running on nc 21.02

[documentserver_community] Error: OCA\DocumentServer\Document\DocumentConversionException:

Fatal error in v8::ToLocalChecked

Empty MaybeLocal.

Received signal 4 ILL_ILLOPN 7f8556512849

==== C stack trace ===============================

[0x7f8556513a92] [0x7f855591e730] [0x7f8556512849] [0x7f8555d2e072] [0x7f8555d22fb1] [0x7f8555cf0ebe] [0x7f8555ce7643] [0x000000748550] [0x00000076011b] [0x000000767895] [0x00000076af1d] [0x00000054034f] [0x7f85555ec09b] [0x000000745f93] [end of stack trace] Illegal instruction at <>

  1. /var/www/html/nextcloud/apps/documentserver_community/lib/DocumentConverter.php line 125 OCA\DocumentServer\Document\ConverterBinary->run("/tmp/oc_tmp_q8qgU7-.xml", null)
  2. /var/www/html/nextcloud/apps/documentserver_community/lib/DocumentConverter.php line 80 OCA\DocumentServer\DocumentConverter->runCommand(OCA\DocumentServ ... {})
  3. /var/www/html/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 156 OCA\DocumentServer\DocumentConverter->saveChanges("*** sensitive parameter replaced ***", ["78;AgAAADEA//8 ... "], "/ncdata/appdata ... t", "odt")
  4. /var/www/html/nextcloud/apps/documentserver_community/lib/LocalAppData.php line 102 OCA\DocumentServer\Document\DocumentStore->OCA\DocumentServer\Document{closure}("*** sensitive parameters replaced ***")
  5. /var/www/html/nextcloud/apps/documentserver_community/lib/Document/DocumentStore.php line 176 OCA\DocumentServer\LocalAppData->getReadWriteLocalPath(OC\Files\SimpleFS\SimpleFolder {}, Closure {})
  6. /var/www/html/nextcloud/apps/documentserver_community/lib/Document/SaveHandler.php line 58 OCA\DocumentServer\Document\DocumentStore->saveChanges(3367994357, [OCA\DocumentSer ... "])
  7. /var/www/html/nextcloud/apps/documentserver_community/lib/BackgroundJob/Cleanup.php line 71 OCA\DocumentServer\Document\SaveHandler->flushChanges(3367994357)
  8. /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php line 80 OCA\DocumentServer\BackgroundJob\Cleanup->run(null)
  9. /var/www/html/nextcloud/cron.php line 128 OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

rauldux avatar Apr 13 '21 10:04 rauldux

obviously a file-conversion bug. I identified the file which caused the error and converted it manually in LibreOffice to odt (in my case) format. From there on I haven't had problems.

rauldux avatar Apr 14 '21 15:04 rauldux

How did you find the faulty file ?

dgedgedge avatar Dec 29 '21 11:12 dgedgedge

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.

github-actions[bot] avatar Aug 12 '24 00:08 github-actions[bot]