nextcloud / nextcloud/documentserver_community
OCA\DocumentServer\Document\DocumentConversionException: TypeError: Cannot read property 'om' of undefined at mm.Rh
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 142
- Forks
- 32
- Avg merge
- 23h 13m
- Merged PRs (30d)
- 15
Description
The following error appears about once every hour (today: 01:04, 02:17, 03:51, 05:03, 06:14, 07:25, 08:36, 09:47, 10:58, 12:11, 13:22, 14:33, 15:44, 16:55, 18:06).
[documentserver_community] Fehler: OCA\DocumentServer\Document\DocumentConversionException: TypeError: Cannot read property 'om' of undefined
at mm.Rh (<anonymous>:19930:444)
at za.C.asc_docs_api.asc_nativeApplyChanges2 (<anonymous>:11253:127)
Uncaught TypeError: Cannot read property 'om' of undefined
DoctRenderer:<result><error index="0" /></result>
at <<closure>>
0. /volume1/web/nc/apps/documentserver_community/lib/DocumentConverter.php line 125
OCA\DocumentServer\Document\ConverterBinary->run("/volume1/@tmp/oc_tmp_mHRONQ-.xml", null)
1. /volume1/web/nc/apps/documentserver_community/lib/DocumentConverter.php line 80
OCA\DocumentServer\DocumentConverter->runCommand(OCA\DocumentServ ... {})
2. /volume1/web/nc/apps/documentserver_community/lib/Document/DocumentStore.php line 156
OCA\DocumentServer\DocumentConverter->saveChanges("*** sensitive parameters replaced ***", ["78;AgAAADEA//8 ... "], "/volume1/web/nc ... x", "docx")
3. /volume1/web/nc/apps/documentserver_community/lib/LocalAppData.php line 102
OCA\DocumentServer\Document\DocumentStore->OCA\DocumentServer\Document\{closure}("*** sensitive parameters replaced ***")
4. /volume1/web/nc/apps/documentserver_community/lib/Document/DocumentStore.php line 176
OCA\DocumentServer\LocalAppData->getReadWriteLocalPath(OC\Files\SimpleFS\SimpleFolder {}, Closure {})
5. /volume1/web/nc/apps/documentserver_community/lib/Document/SaveHandler.php line 58
OCA\DocumentServer\Document\DocumentStore->saveChanges(1908255055, [OCA\DocumentSer ... "])
6. /volume1/web/nc/apps/documentserver_community/lib/BackgroundJob/Cleanup.php line 71
OCA\DocumentServer\Document\SaveHandler->flushChanges(1908255055)
7. /volume1/web/nc/lib/public/BackgroundJob/Job.php line 79
OCA\DocumentServer\BackgroundJob\Cleanup->run(null)
8. /volume1/web/nc/cron.php line 177
OCP\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
GET /cron.php
from xx.xxx.x.xx at 2022-12-17T17:06:16+00:00
When I donwload logs, I find the additionally information
"app":"documentserver_community","method":"GET","url":"/cron.php","message":"Error while applying changes for document 1908255055"
Nextcloud Server: 24.0.8
Community Document Server: 0.1.13
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with lib/DocumentConverter.php at line 125 and trace the saveChanges path through lib/Document/DocumentStore.php and lib/BackgroundJob/Cleanup.php. Reproduce or inspect the recurring cron conversion failure using the reported stack trace and document 1908255055. Done means the intermittent conversion error is understood and the affected changes complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100