HTML-to-Xls page crash
-
Hi,
I've been migrating jsreport from my mac to an ubuntu server. My problem this time is that an html-to-xls template is bombing with:2021-08-23T14:03:49.862Z - debug: Executing recipe html-to-xlsx 2021-08-23T14:03:49.862Z - info: html-to-xlsx generation is starting - debug: OData query on scripts 2021-08-23T15:31:03.181Z - warn: Rendering request 2 finished with error in 9060022 ms 2021-08-23T15:31:03.251Z - warn: Error when processing render request 2 Error while executing html-to-xlsx recipe. Page crashed! Error: Error while executing html-to-xlsx recipe. Page crashed! at module.exports (/home/ubuntu/jsreportapp/node_modules/jsreport-core/lib/util/createError.js:11:13) at Reporter.createError (/home/ubuntu/jsreportapp/node_modules/jsreport-core/lib/reporter.js:332:12) at Object.execute (/home/ubuntu/jsreportapp/node_modules/jsreport-html-to-xlsx/lib/recipe.js:159:20) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) caused by: Error: Page crashed! at Page._onTargetCrashed (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/Page.js:216:24) at CDPSession.Page.client.on.event (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/Page.js:124:56) at emitOne (events.js:116:13) at CDPSession.emit (events.js:211:7) at CDPSession._onMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/Connection.js:200:12) at Connection._onMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/Connection.js:112:17) at WebSocketTransport._ws.addEventListener.event (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/WebSocketTransport.js:44:24) at WebSocket.onMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/event-target.js:120:16) at emitOne (events.js:116:13) at WebSocket.emit (events.js:211:7) at Receiver.receiverOnMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/websocket.js:789:20) at emitOne (events.js:116:13) at Receiver.emit (events.js:211:7) at Receiver.dataMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/receiver.js:422:14) at Receiver.getData (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/receiver.js:352:17) at Receiver.startLoop (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/receiver.js:138:22) 2021-08-23T15:31:03.252Z - debug: Processing schedule caseReviewSchedule_20210819 failed with : Error: Error while executing html-to-xlsx recipe. Page crashed! at module.exports (/home/ubuntu/jsreportapp/node_modules/jsreport-core/lib/util/createError.js:11:13) at Reporter.createError (/home/ubuntu/jsreportapp/node_modules/jsreport-core/lib/reporter.js:332:12) at Object.execute (/home/ubuntu/jsreportapp/node_modules/jsreport-html-to-xlsx/lib/recipe.js:159:20) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) caused by: Error: Page crashed! at Page._onTargetCrashed (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/Page.js:216:24) at CDPSession.Page.client.on.event (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/Page.js:124:56) at emitOne (events.js:116:13) at CDPSession.emit (events.js:211:7) at CDPSession._onMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/Connection.js:200:12) at Connection._onMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/Connection.js:112:17) at WebSocketTransport._ws.addEventListener.event (/home/ubuntu/jsreportapp/node_modules/puppeteer/lib/WebSocketTransport.js:44:24) at WebSocket.onMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/event-target.js:120:16) at emitOne (events.js:116:13) at WebSocket.emit (events.js:211:7) at Receiver.receiverOnMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/websocket.js:789:20) at emitOne (events.js:116:13) at Receiver.emit (events.js:211:7) at Receiver.dataMessage (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/receiver.js:422:14) at Receiver.getData (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/receiver.js:352:17) at Receiver.startLoop (/home/ubuntu/jsreportapp/node_modules/puppeteer/node_modules/ws/lib/receiver.js:138:22)
My template uses Chrome html engine and has nothing in the xls asset (same on my local and ubuntu). On my local install Excel is already installed on the machine. Does it also need to be installed on the ubuntu machine for me to use that recipe? I'm not sure if this is a Chrome problem or Excel, but I'm able to produce other Chrome PDF reports.
Thanks
-
Do you run in docker or normaly?
Does this happen also for other simple "hello world" html-to-xlsx templates?It could help to add this config
{ "chrome": { "launchOptions": { "args": [ "--disable-dev-shm-usage" ] } } }
-
Thank you very much. That config tweak did seem to help a lot.