Hi,
We have been running Jsreports 2.5 as a webservice from our application for a while (more than a year). A few days ago it suddenly stopped working. It´s possible something has changed on the machine but our code did not change.
We have a F# dotnet core application and start the webservice as follows:
LocalReporting()
.KillRunningJsReportProcesses()
.UseBinary(JsReportBinary.GetBinary())
.Configure(
fun cfg -> cfg.Chrome <- new ChromeConfiguration()
cfg.Chrome.Timeout <- Nullable<int> 120000
cfg)
.AsWebServer()
.Create()
.StartAsync()
Our logs would only contain the following
2019-11-11 14:47:50.1585 An unhandled exception has occurred while executing the request - Exception: System.Exception: Failed to start jsreport server, output:
at jsreport.Local.Internal.LocalWebServerReportingService.WaitForStarted()
at jsreport.Local.Internal.LocalWebServerReportingService.StartAsync()
I've tried to update to to JsReport 2.6.1 and the only difference is that we get a little bit more logoutput
2019-11-11 14:47:50.1585 An unhandled exception has occurred while executing the request - Exception: System.Exception: Failed to start jsreport server, output: 2019-11-11T13:47:27.906Z - [34mdebug[39m: Extension authentication@2.3.0 was disabled2019-11-11T13:47:28.037Z - [34mdebug[39m: Extension authorization@2.2.5 was disabled2019-11-11T13:47:28.069Z - [34mdebug[39m: Chrome strategy is dedicated-process2019-11-11T13:47:28.070Z - [34mdebug[39m: Chrome custom launch options are executablePath=C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\jsreport\compile\jsreport-2.6.1-HkSd-6jOS\chrome\chrome2019-11-11T13:47:28.114Z - [34mdebug[39m: Extension fs-store@2.6.0 was disabled2019-11-11T13:47:28.327Z - [34mdebug[39m: studio request logs are enabled (flush interval: 2000)2019-11-11T13:47:28.457Z - [34mdebug[39m: Extension public-templates@2.1.0 was disabled2019-11-11T13:47:28.561Z - [34mdebug[39m: studio default theme is: light2019-11-11T13:47:27.135Z - [32minfo[39m: Initializing jsreport@2.6.1 in development mode using configuration file: none2019-11-11T13:47:27.721Z - [32minfo[39m: Setting in-process strategy for rendering2019-11-11T13:47:27.784Z - [32minfo[39m: Using extension cli@2.1.12019-11-11T13:47:27.812Z - [32minfo[39m: Using extension handlebars@2.1.02019-11-11T13:47:27.842Z - [32minfo[39m: Using extension puppeteer-compile@1.2.02019-11-11T13:47:27.847Z - [32minfo[39m: Using extension authentication@2.3.02019-11-11T13:47:27.910Z - [32minfo[39m: Using extension jsrender@2.1.12019-11-11T13:47:27.914Z - [32minfo[39m: Using extension templates@2.3.22019-11-11T13:47:27.933Z - [32minfo[39m: Using extension import-export@1.4.02019-11-11T13:47:27.944Z - [32minfo[39m: Using extension debug@2.1.12019-11-11T13:47:27.954Z - [32minfo[39m: Using extension freeze@2.0.02019-11-11T13:47:27.961Z - [32minfo[39m: Using extension express@2.5.02019-11-11T13:47:27.982Z - [32minfo[39m: Using extension tags@2.3.02019-11-11T13:47:27.989Z - [32minfo[39m: Using extension version-control@1.3.22019-11-11T13:47:28.005Z - [32minfo[39m: Using extension docx@2.3.12019-11-11T13:47:28.033Z - [32minfo[39m: Using extension authorization@2.2.52019-11-11T13:47:28.037Z - [32minfo[39m: Using extension data@2.1.02019-11-11T13:47:28.040Z - [32minfo[39m: Using extension chrome-pdf@1.6.12019-11-11T13:47:28.074Z - [32minfo[39m: Using extension child-templates@1.3.02019-11-11T13:47:28.088Z - [32minfo[39m: Using extension pdf-utils@1.5.22019-11-11T13:47:28.089Z - [32minfo[39m: Using extension pptx@0.4.12019-11-11T13:47:28.092Z - [32minfo[39m: Using extension fs-store@2.6.02019-11-11T13:47:28.115Z - [32minfo[39m: Using extension browser-client@2.2.12019-11-11T13:47:28.128Z - [32minfo[39m: Using extension reports@2.2.02019-11-11T13:47:28.137Z - [32minfo[39m: Using extension text@2.0.02019-11-11T13:47:28.138Z - [32minfo[39m: Using extension base@2.0.22019-11-11T13:47:28.141Z - [32minfo[39m: Using extension static-pdf@0.3.12019-11-11T13:47:28.143Z - [32minfo[39m: Using extension studio@2.6.62019-11-11T13:47:28.349Z - [32minfo[39m: Using extension licensing@2.1.22019-11-11T13:47:28.362Z - [32minfo[39m: Using extension scripts@2.2.12019-11-11T13:47:28.379Z - [32minfo[39m: Using extension assets@1.5.12019-11-11T13:47:28.390Z - [32minfo[39m: Using extension html-to-xlsx@2.4.12019-11-11T13:47:28.403Z - [32minfo[39m: html-to-xlsx detected chrome as available html engine2019-11-11T13:47:28.404Z - [32minfo[39m: Using extension studio-theme-dark@0.2.02019-11-11T13:47:28.408Z - [32minfo[39m: Using extension scheduling@2.1.12019-11-11T13:47:28.423Z - [32minfo[39m: Using extension xlsx@2.2.12019-11-11T13:47:28.441Z - [32minfo[39m: Using extension sample-template@2.4.02019-11-11T13:47:28.452Z - [32minfo[39m: Using extension resources@2.0.32019-11-11T13:47:28.455Z - [32minfo[39m: Using extension public-templates@2.1.02019-11-11T13:47:28.457Z - [32minfo[39m: Using memory provider for template store. The saved templates will be lost after restart
at jsreport.Local.Internal.LocalWebServerReportingService.WaitForStarted()
at jsreport.Local.Internal.LocalWebServerReportingService.StartAsync()}
I've tried to run the JsReport executable from
C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\jsreport\dotnet\binary-default-2.6.1.0
as described here https://forum.jsreport.net/topic/428/asp-net-an-error-has-occurred-when-trying-to-initialize-jsreport/5 and the webservice starts fine and is usable.
The webservice also works fine using the same code to start it on my local machine.
Any help or insights on how to solve this or turn on more logging would be greatly appreciated.
Regards,
Samuel