Forum Home › Forums › Understanding the Software › Error when download report
- This topic has 8 replies, 2 voices, and was last updated 9 months, 3 weeks ago by
Mikhail.
-
AuthorPosts
-
November 2, 2024 at 5:54 am #15564
kcks66
ParticipantHi Mikhail,
I tried to download one month data report but error happened.
Elastic Report with 30 channels from minute achieve. FYI, I am using PostgreSQL as my default storage type, and PC storage is SSD type.
If I tried to download for 10 days period it’s success but slow. Pls advice for any solutions. Thank you.
-
This topic was modified 9 months, 3 weeks ago by
kcks66.
November 4, 2024 at 7:45 am #15570Mikhail
ModeratorHi,
Please check the error details in ScadaWeb.logNovember 4, 2024 at 7:53 am #15571kcks66
ParticipantHi Mikhail,
Error detail as below.
2024-11-04 15:47:55 [WIN-HHIJ7MIVESP][WIN-HHIJ7MIVESP$][ERR] Unhandled exception:
Scada.ScadaException: Error building model of section Section1
—> System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond..
—> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
— End of inner exception stack trace —
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Scada.Client.ClientBase.ReceiveResponse(DataPacket request)
at Scada.Client.ScadaClient.GetTrends(Int32 archiveBit, TimeRange timeRange, Int32[] cnlNums)
at Scada.Web.Plugins.PlgElasticReport.Builder.ModelBuilder.TimeDataSectionBuilder.Build(TimeDataSectionConfig sectionConfig)
at Scada.Web.Plugins.PlgElasticReport.Builder.ModelBuilder.DocumentBuilder.Build(ReportConfig reportConfig, ElasticReportArgs reportArgs, BuilderOptions builderOptions)
— End of inner exception stack trace —
at Scada.Web.Plugins.PlgElasticReport.Builder.ModelBuilder.DocumentBuilder.Build(ReportConfig reportConfig, ElasticReportArgs reportArgs, BuilderOptions builderOptions)
at Scada.Web.Plugins.PlgElasticReport.Builder.ElasticReportBuilder.Generate(ElasticReportArgs args, Stream outStream)
at Scada.Web.Plugins.PlgElasticReport.Controllers.PrintController.PrintReport1(Int32 reportID, DateTime startTime, DateTime endTime, String archive, OutputFormat format, IntRange cnlNums)
at lambda_method215(Closure, Object, Object[])
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
— End of stack trace from previous location —
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
— End of stack trace from previous location —
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
— End of stack trace from previous location —
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)November 5, 2024 at 11:50 am #15580Mikhail
ModeratorHi,
According to the log file, the web app cannot receive data from the SCADA-Server service. May be data is too large. How many data points do you expect for that report and period of time?
November 5, 2024 at 11:51 am #15581Mikhail
ModeratorTry create similar report that retrieves data from *.dat archives based on files.
November 5, 2024 at 11:55 am #15582kcks66
ParticipantHi Mikhail,
I have 30 channels and download report with one minute interval for one month period, thus:
data points = 60 (minutes) X 24 (hours) X 31 (days)
= 44,640Should I 44,640 X 30 (channels)?
Unfortunately I don’t have setup that can repeat the report dowloading with the same data points in *dat achieve.
November 6, 2024 at 11:50 am #15587Mikhail
ModeratorHi,
> Should I 44,640 X 30 (channels)?
Yes.Try increasing ConnectionOptions – Timeout in ScadaWebConfig.xml. Are you able to get more data with bigger timeout?
November 6, 2024 at 1:37 pm #15588kcks66
ParticipantHi Mikhail,
That’s great. I managed to download the report. The report size is 181MB.
I changed the Timeout to 20000.Thank you.
November 7, 2024 at 8:47 am #15589Mikhail
ModeratorIt’s big 🙂
-
This topic was modified 9 months, 3 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.