The problem of InfluxDB on Scada V6

Forum Home Forums Runtime Bugs Server Bugs The problem of InfluxDB on Scada V6

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #10844
    xdwokcn
    Participant

    I try to transfer min Data to InfluxDB ,and set URL like “127.0.0.1:8086” and set the correct token, bucket, orgnazition. but when I restart the server, it report the error like this:

    2022-09-20 22:06:59 [DESKTOP-1KFL78H][DESKTOP-1KFL78H$][INF] Archive in DAT format: C:\Users\1\Documents\ScadaProjects\Test1\Data\Min\
    2022-09-20 22:06:59 [DESKTOP-1KFL78H][DESKTOP-1KFL78H$][INF] Archive copy in DAT format: C:\Users\1\Documents\ScadaProjects\Test1\Data\MinCopy\
    2022-09-20 22:06:59 [DESKTOP-1KFL78H][DESKTOP-1KFL78H$][ERR] Resolver could not find assembly ‘System.Private.Uri.resources, Version=6.0.0.0, Culture=zh-CN, PublicKeyToken=b03f5f7f11d50a3a’
    requested by ‘System.Private.Uri, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
    2022-09-20 22:06:59 [DESKTOP-1KFL78H][DESKTOP-1KFL78H$][ERR] Resolver could not find assembly ‘System.Private.Uri.resources, Version=6.0.0.0, Culture=zh-Hans, PublicKeyToken=b03f5f7f11d50a3a’
    requested by ‘System.Private.Uri, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
    2022-09-20 22:06:59 [DESKTOP-1KFL78H][DESKTOP-1KFL78H$][ERR] Resolver could not find assembly ‘System.Private.Uri.resources, Version=6.0.0.0, Culture=zh, PublicKeyToken=b03f5f7f11d50a3a’
    requested by ‘System.Private.Uri, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’
    2022-09-20 22:06:59 [DESKTOP-1KFL78H][DESKTOP-1KFL78H$][ERR] Error calling the MakeReady method of the MinCopy archive:
    System.UriFormatException: Invalid URI: The URI scheme is not valid.
    at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
    at System.Uri..ctor(String uriString)
    at RestSharp.RestClientOptions..ctor(String baseUrl)
    at InfluxDB.Client.Api.Client.ApiClient..ctor(InfluxDBClientOptions options, LoggingHandler loggingHandler, GzipHandler gzipHandler)
    at InfluxDB.Client.InfluxDBClient..ctor(InfluxDBClientOptions options)
    at InfluxDB.Client.InfluxDBClientFactory.Create(InfluxDBClientOptions options)
    at InfluxDB.Client.InfluxDBClientFactory.Create(String url, Char[] token)
    at Scada.Server.Modules.ModArcInfluxDb.Logic.InfluxHAL.MakeReady()
    at Scada.Server.Engine.ArchiveHolder.MakeReady()

    • This topic was modified 1 year, 12 months ago by xdwokcn.
    #10854
    Mikhail
    Moderator

    System.Private.Uri is a part of .NET. May be you should install Chinese language pack for .NET.
    You can try downloading the dll from https://www.nuget.org/packages/System.Private.Uri/ , unzip it and copy the requested file into SCADA\ScadaServer\Mod\ModArcInfluxDb.Logic\ directory.

    #10855
    Mikhail
    Moderator

    Could you provide a screenshot of the archive settings?

    #10858
    xdwokcn
    Participant

    Snap of settings

    Now, the influxDB is work well, I think it maybe something wrong with my OS.

    #10859
    xdwokcn
    Participant

    Snap of settings

    Can you see the screenshot of the archive settings?

    #10885
    Mikhail
    Moderator

    Can you see the screenshot of the archive settings?

    No, I can’t.

    #15025
    dequick
    Participant

    Same problem. I used address like 192.168.1.1:8086, token, bucket and organisation. User and password is empty.

    System.UriFormatException: Invalid URI: The URI scheme is not valid.
       at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
       at System.Uri..ctor(String uriString)
       at InfluxDB.Client.InfluxDBClientOptions..ctor(String url)
       at InfluxDB.Client.InfluxDBClient..ctor(String url, String token)
       at Scada.Server.Modules.ModArcInfluxDb.Logic.InfluxHAL.MakeReady()
       at Scada.Server.Engine.ArchiveHolder.MakeReady()
    #15026
    manjey73
    Participant

    Perhaps the username and password should still appear in the request, even if they are empty

    #15027
    dequick
    Participant

    2024-07-25 17:57:08 [BPF-SCADA][BPF-SCADA$][ERR] Ошибка при вызове метода MakeReady архива Influx_export:
    It’s using token or login/pass:

    client = string.IsNullOrEmpty(connOptions.Token) 
                    ? new InfluxDBClient(connOptions.Url, connOptions.Username, connOptions.Password) 
                    : new InfluxDBClient(connOptions.Url, connOptions.Token);
    #15028
    dequick
    Participant

    The address should look like:
    https://192.168.1.1:8086
    I received next error:

    InfluxDB.Client.Core.Exceptions.HttpException: The SSL connection could not be established, see inner exception.
     ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
     ---> System.Security.Authentication.AuthenticationException: Cannot determine the frame size or a corrupted frame was received.
       at System.Net.Security.SslStream.GetFrameSize(ReadOnlySpan

    1 buffer)
    at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
    at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder1.StateMachineBox1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
    at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)
    at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
    at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
    — End of inner exception stack trace —
    at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
    at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
    at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
    at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
    at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
    at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
    at RestSharp.RestClient.ExecuteInternal(RestRequest request, CancellationToken cancellationToken)`

    • This reply was modified 1 month, 3 weeks ago by dequick.
    #15030
    dequick
    Participant

    So, I changed https to http ans its OK.

    #15031
    Mikhail
    Moderator

    Thank you for the solution.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.