Problem of multiple sending reports from the same shedule in less than two minutes
-
Yes, I have a single instance of jsreport for that data, but I have noticed that there are occasions in which the shedule fires and generates a single report and there are others in which it generates it several times, and when it does that it is because it enters several times to beforeRender.
is there any way to fix this?
-
Please provide the logs, maybe there will be something interesting.
Please make sure it includes thedebug
level."logger": { "console": { "transport": "console", "level": "debug" }, "file": { "transport": "file", "level": "debug", "filename": "logs/reporter.log" }, "error": { "transport": "file", "level": "error", "filename": "logs/error.log" } },
-
I am new to jsreport and I don't know how to access the logs
-
No problem... You should find them in the file
logs/reporter.log
. That is the default location.
-
but i am working with jsrepor on docker and azure
-
hopefully this helps
https://stackoverflow.com/a/61614400/1660996
-
This post is deleted!
-
2021-12-15T14:04:55.208511073Z 2021-12-15T14:04:55.207Z - [34mdebug[39m: Page request: GET (image) data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAABWCAYAAAAt6W9WAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbW...
2021-12-15T14:04:55.213742347Z 2021-12-15T14:04:55.210Z - [34mdebug[39m: Page request finished: GET (image) 200 data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAABWCAYAAAAt6W9WAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbW...
2021-12-15T14:04:55.215582943Z 2021-12-15T14:04:55.214Z - [34mdebug[39m: Page request: GET (font) https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmg1hVF9eO.woff2
2021-12-15T14:04:55.215612145Z 2021-12-15T14:04:55.214Z - [34mdebug[39m: Page request: GET (font) https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJfecg.woff2
2021-12-15T14:04:55.774777336Z 2021-12-15T14:04:55.774Z - [34mdebug[39m: Page request finished: GET (font) 200 https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJfecg.woff2
2021-12-15T14:04:55.781765402Z 2021-12-15T14:04:55.776Z - [34mdebug[39m: Page request finished: GET (font) 200 https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmg1hVF9eO.woff22021-12-15T14:04:57.977181108Z 2021-12-15T14:04:57.976Z - [34mdebug[39m: Running chrome with params {"printBackground":true,"landscape":true,"marginTop":"0.5cm","marginLeft":"0.5cm","marginRight":"0.5cm","format":"Legal","margin":{"top":"0.5cm","right":"0.5cm","left":"0.5cm"}}
2021-12-15T14:04:58.617501951Z 2021-12-15T14:04:58.612Z - [32minfo[39m: Starting rendering request 17 (user: undefined)
2021-12-15T14:04:58.621338952Z 2021-12-15T14:04:58.619Z - [32minfo[39m: Rendering template { name: estadisticas, recipe: chrome-pdf, engine: handlebars, preview: false }
2021-12-15T14:04:58.624347209Z 2021-12-15T14:04:58.624Z - [34mdebug[39m: Data item not defined for this template.
2021-12-15T14:04:58.627593379Z 2021-12-15T14:04:58.627Z - [34mdebug[39m: Resources not defined for this template.
2021-12-15T14:04:58.633255876Z 2021-12-15T14:04:58.633Z - [34mdebug[39m: Executing script estadisticas using http-server strategy
2021-12-15T14:04:58.642206345Z 2021-12-15T14:04:58.642Z - [34mdebug[39m: Replaced assets ["/share/utilities/library_request.js","/core/services/global_service.js","/share/services/stats_service.js","/share/utilities/date_format.js","/share/utilities/message_configuration.js","/share/utilities/sendgrid.js","/share/utilities/application_insights.js","/modules/estadisticas/services/estadisticas_service.js"]2021-12-15T14:05:11.962177783Z 2021-12-15T14:05:11.961Z - [34mdebug[39m: Processing schedule 7942bef4-c36b-4394-8500-295b856b70ff is starting.
2021-12-15T14:05:32.907350032Z 2021-12-15T14:05:32.907Z - [34mdebug[39m: Report stored as VnHMYwVQyiK0xuC7.pdf
2021-12-15T14:05:32.909338636Z 2021-12-15T14:05:32.909Z - [34mdebug[39m: Executing script anonymous using http-server strategy
2021-12-15T14:05:34.350837088Z 2021-12-15T14:05:34.350Z - [34mdebug[39m: Processing schedule efcfc49e-f070-4aa7-ab7d-c7d1ccb0e78a succeeded.2021-12-15T14:05:34.350837088Z 2021-12-15T14:05:34.350Z - [34mdebug[39m: Processing schedule efcfc49e-f070-4aa7-ab7d-c7d1ccb0e78a succeeded.
2021-12-15T14:05:37.718760264Z 2021-12-15T14:05:37.718Z - [32minfo[39m: Starting rendering request 18 (user: undefined)
2021-12-15T14:05:37.726971011Z 2021-12-15T14:05:37.726Z - [32minfo[39m: Rendering template { name: estadisticas, recipe: chrome-pdf, engine: handlebars, preview: false }
2021-12-15T14:05:37.728342586Z 2021-12-15T14:05:37.727Z - [34mdebug[39m: Data item not defined for this template.
2021-12-15T14:05:37.728971520Z 2021-12-15T14:05:37.728Z - [34mdebug[39m: Resources not defined for this template.
2021-12-15T14:05:37.730043978Z 2021-12-15T14:05:37.729Z - [34mdebug[39m: Executing script estadisticas using http-server strategy
2021-12-15T14:05:37.740977273Z 2021-12-15T14:05:37.740Z - [34mdebug[39m: Replaced assets ["/share/utilities/library_request.js","/core/services/global_service.js","/share/services/stats_service.js","/share/utilities/date_format.js","/share/utilities/message_configuration.js","/share/utilities/sendgrid.js","/share/utilities/application_insights.js","/modules/estadisticas/services/estadisticas_service.js"]2021-12-15T14:05:55.367279303Z 2021-12-15T14:05:55.367Z - [34mdebug[39m: Mapeo: rgba(166, 201, 106, 1)
2021-12-15T14:05:55.367864234Z 2021-12-15T14:05:55.367Z - [34mdebug[39m: Mapeo: rgba(119, 161, 229, 1)
2021-12-15T14:05:55.368222052Z 2021-12-15T14:05:55.367Z - [34mdebug[39m: Mapeo: rgba(73, 41, 112, 1)
2021-12-15T14:05:55.368786382Z 2021-12-15T14:05:55.368Z - [34mdebug[39m: Mapeo: rgba(145, 0, 0, 1)
2021-12-15T14:05:55.369053596Z 2021-12-15T14:05:55.368Z - [34mdebug[39m: Mapeo: rgba(13, 35, 58, 1)
2021-12-15T14:05:55.369664628Z 2021-12-15T14:05:55.369Z - [34mdebug[39m: Mapeo: undefined
2021-12-15T14:05:55.369934842Z 2021-12-15T14:05:55.369Z - [34mdebug[39m: Mapeo: undefined
2021-12-15T14:05:55.370187156Z 2021-12-15T14:05:55.369Z - [34mdebug[39m: Mapeo: undefined
2021-12-15T14:05:55.370779687Z 2021-12-15T14:05:55.370Z - [34mdebug[39m: Mapeo: undefined
2021-12-15T14:05:55.742789712Z 2021-12-15T14:05:55.742Z - [34mdebug[39m: Mapeo: undefined
2021-12-15T14:05:55.745238641Z 2021-12-15T14:05:55.742Z - [34mdebug[39m: Mapeo: undefined
2021-12-15T14:05:55.758101816Z 2021-12-15T14:05:55.757Z - [34mdebug[39m: Base url not specified, skipping its injection.
2021-12-15T14:05:55.839772803Z 2021-12-15T14:05:55.839Z - [34mdebug[39m: Replaced assets ["/modules/estadisticas/css/estadisticas.css","Logo_Wiga.png"]
2021-12-15T14:05:55.842370539Z 2021-12-15T14:05:55.842Z - [34mdebug[39m: Replaced assets ["Logo_Wiga.png"]
2021-12-15T14:05:55.846050232Z 2021-12-15T14:05:55.845Z - [34mdebug[39m: Rendering engine handlebars using http-server strategy
2021-12-15T14:05:56.141703150Z 2021-12-15T14:05:56.141Z - [34mdebug[39m: Taking compiled template from engine cache2021-12-15T14:05:56.261464136Z 2021-12-15T14:05:56.261Z - [34mdebug[39m: Executing recipe chrome-pdf
2021-12-15T14:05:56.769061778Z 2021-12-15T14:05:56.768Z - [34mdebug[39m: Converting with chrome HeadlessChrome/79.0.3945.130 using dedicated-process strategy
2021-12-15T14:05:57.159186955Z 2021-12-15T14:05:57.158Z - [34mdebug[39m: Page request: GET (document) file:///tmp/jsreport/autocleanup/ff483549-9e22-498e-bd51-3f4b7a9d8a2b-chrome-pdf.html2021-12-15T14:05:58.155160030Z 2021-12-15T14:05:58.154Z - [34mdebug[39m: Page request: GET (stylesheet) https://fonts.googleapis.com/css?family=Poppins:400,500i&display=swap
2021-12-15T14:05:58.158646413Z 2021-12-15T14:05:58.158Z - [34mdebug[39m: Page request: GET (script) https://code.jquery.com/jquery-3.1.1.min.js
2021-12-15T14:05:58.159430054Z 2021-12-15T14:05:58.159Z - [34mdebug[39m: Page request: GET (script) https://code.highcharts.com/stock/highstock.js
2021-12-15T14:05:58.160232396Z 2021-12-15T14:05:58.159Z - [34mdebug[39m: Page request: GET (script) https://code.highcharts.com/highcharts-more.js
2021-12-15T14:05:58.162839933Z 2021-12-15T14:05:58.162Z - [34mdebug[39m: Page request: GET (script) https://code.highcharts.com/stock/modules/exporting.js
2021-12-15T14:05:58.163656576Z 2021-12-15T14:05:58.163Z - [34mdebug[39m: Page request: GET (script) https://code.highcharts.com/stock/modules/export-data.js
2021-12-15T14:05:58.169970608Z 2021-12-15T14:05:58.169Z - [34mdebug[39m: Page request finished: GET (document) file:///tmp/jsreport/autocleanup/ff483549-9e22-498e-bd51-3f4b7a9d8a2b-chrome-pdf.html
2021-12-15T14:05:58.171296277Z 2021-12-15T14:05:58.170Z - [34mdebug[39m: Page request finished: GET (stylesheet) 200 https://fonts.googleapis.com/css?family=Poppins:400,500i&display=swap
2021-12-15T14:05:58.172308630Z 2021-12-15T14:05:58.171Z - [34mdebug[39m: Page request finished: GET (script) 200 https://code.jquery.com/jquery-3.1.1.min.js
2021-12-15T14:05:58.174831463Z 2021-12-15T14:05:58.174Z - [34mdebug[39m: Page request finished: GET (script) 200 https://code.highcharts.com/stock/modules/exporting.js
2021-12-15T14:05:58.175874517Z 2021-12-15T14:05:58.175Z - [34mdebug[39m: Page request finished: GET (script) 200 https://code.highcharts.com/stock/modules/export-data.js
2021-12-15T14:05:58.177728915Z 2021-12-15T14:05:58.177Z - [34mdebug[39m: Page request finished: GET (script) 200 https://code.highcharts.com/highcharts-more.js
2021-12-15T14:05:58.179986933Z 2021-12-15T14:05:58.179Z - [34mdebug[39m: Page request finished: GET (script) 200 https://code.highcharts.com/stock/highstock.js2021-12-15T14:06:02.588937685Z 2021-12-15T14:06:02.577Z - [34mdebug[39m: Report stored as 5nrizoLLPtzyP5a9.pdf
2021-12-15T14:06:02.597755656Z 2021-12-15T14:06:02.591Z - [34mdebug[39m: Executing script anonymous using http-server strategy
2021-12-15T14:06:03.175141496Z 2021-12-15T14:06:03.174Z - [32minfo[39m: Rendering request 16 finished in 131644 ms
2021-12-15T14:06:03.190270905Z 2021-12-15T14:06:03.190Z - [34mdebug[39m: Processing schedule 7942bef4-c36b-4394-8500-295b856b70ff succeeded.
-
Thank you, this is really suspicious:
2021-12-15T14:05:34.350837088Z 2021-12-15T14:05:34.350Z - [34mdebug[39m: Processing schedule efcfc49e-f070-4aa7-ab7d-c7d1ccb0e78a succeeded.
2021-12-15T14:05:34.350837088Z 2021-12-15T14:05:34.350Z - [34mdebug[39m: Processing schedule efcfc49e-f070-4aa7-ab7d-c7d1ccb0e78a succeeded.How do you persist the entities? Are you using the default fs store with a mapped disk? Or a full database?
It would probably help me a lot if you would email me your data backup.
-
yes, I'm using the default fs store