Version: 7.5.1 Community
I compiled it myself through build tools, and the tutorial I referenced is Compiling ONLYOFFICE Docs for a local server - ONLYOFFICE .
When I run the service on the server where I compile OnlyOffice, the file preview and file conversion APIs are working properly.
When I copy the product of the out folder to another server to run, although the file preview service works properly, there will be errors when calling the file conversion API. Can’t the compiled products be transferred to other servers for operation?
Fileconverter error log:
[2024-01-30T22:30:59.065] [INFO] [localhost] [conv_17389_pdf] [userId] nodeJS - Start Task
[2024-01-30T22:30:59.206] [DEBUG] [localhost] [conv_17389_pdf] [userId] nodeJS - downloadFile complete filesize=93350 sha256=8b48babea17e7239201ea4827afd90a666445d8df13f41e744e043650c5f097e
[2024-01-30T22:31:00.646] [DEBUG] [localhost] [conv_17389_pdf] [userId] nodeJS - error spawnAsync Error: Process exited with non-zero code: 80
at ChildProcess.<anonymous> (/snapshot/server/build/server/FileConverter/node_modules/@expo/spawn-async/build/spawnAsync.js:39:21)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1088:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5)
[2024-01-30T22:31:00.648] [ERROR] [localhost] [conv_17389_pdf] [userId] nodeJS - stdout:
[2024-01-30T22:31:00.649] [ERROR] [localhost] [conv_17389_pdf] [userId] nodeJS - stderr:TypeError: Cannot read property 'length' of null
at b.Qee (<anonymous>:16477:447)
at b.Ree (<anonymous>:16478:41)
at e.zF (<anonymous>:16483:458)
at Object.zF (<anonymous>:12740:384)
at e.wu (<anonymous>:12898:395)
at iA (<anonymous>:19514:149)
at Yg.y.sf (<anonymous>:19513:478)
at Vg.y.jk (<anonymous>:20883:25)
at pH.tc (<anonymous>:20201:300)
at ML.tc (<anonymous>:20222:363)
DoctRenderer:<result><error code="calculate" /></result>
[2024-01-30T22:31:00.649] [ERROR] [localhost] [conv_17389_pdf] [userId] nodeJS - ExitCode (code=80;signal=null;error:-80)
[2024-01-30T22:31:00.649] [DEBUG] [localhost] [conv_17389_pdf] [userId] nodeJS - output (data={"ctx":{"tenant":"localhost","docId":"conv_17389_pdf","userId":"userId"},"cmd":{"c":"conv","id":"conv_17389_pdf","format":"docx","url":"http://192.168.90.100:8080/api/resource/17389","title":"17389.pdf","outputformat":513,"outputpath":"output.pdf","codepage":46,"delimiter":4,"embeddedfonts":false,"status_info":-80,"nobase64":true}})
[2024-01-30T22:31:00.649] [DEBUG] [localhost] [conv_17389_pdf] [userId] nodeJS - postProcess
[2024-01-30T22:31:00.650] [DEBUG] [localhost] [conv_17389_pdf] [userId] nodeJS - deleteFolderRecursive
DocService logs:
[2024-01-30T22:30:59.055] [INFO] [localhost] [docId] [userId] nodeJS - convertRequest start
[2024-01-30T22:30:59.056] [DEBUG] [localhost] [conv_17389_pdf] [userId] nodeJS - Start convert request
[2024-01-30T22:31:00.654] [INFO] [localhost] [conv_17389_pdf] [userId] nodeJS - receiveTask start: {"ctx":{"tenant":"localhost","docId":"conv_17389_pdf","userId":"userId"},"cmd":{"c":"conv","id":"conv_17389_pdf","format":"docx","url":"http://192.168.90.100:8080/api/resource/17389","title":"17389.pdf","outputformat":513,"outputpath":"output.pdf","codepage":46,"delimiter":4,"embeddedfonts":false,"status_info":-80,"nobase64":true}}
[2024-01-30T22:31:00.656] [INFO] [localhost] [conv_17389_pdf] [userId] nodeJS - receiveTask end
[2024-01-30T22:31:01.126] [DEBUG] [localhost] [conv_17389_pdf] [userId] nodeJS - End convert request end false status -80
[2024-01-30T22:31:01.127] [INFO] [localhost] [conv_17389_pdf] [userId] nodeJS - convertRequest end
Request API:/ConvertService.ashx
Request parameters:
{
“async”: false,
“filetype”: “docx”,
“key”: “17390”,
“outputtype”: “pdf”,
“title”: “17389.docx”,
“url”: “http://192.168.90.100:8080/api/resource/17389”
}
Please help me, thank you