Host can’t be null , Normal execution is impossible.

Forum Home Forums Development and Integration Host can’t be null , Normal execution is impossible.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13181
    zzz
    Participant

    Trying to switch to postgres backend and …

    
    023-08-04 13:56:11 [workstation][appstack][ACT] Server 6.1.1.0 started
    2023-08-04 13:56:13 [workstation][appstack][ACT] Storage PostgreSqlStorage 6.1.0.0 loaded from file /app/appstack/rapidscada6/Linux/scada/ScadaServer/PostgreSqlStorage.dll
    2023-08-04 13:56:15 [workstation][appstack][ERR] Error initializing application storage:
    System.ArgumentException: Host can't be null
       at Npgsql.NpgsqlConnectionStringBuilder.Validate()
       at Npgsql.NpgsqlConnection.GetPoolAndSettings()
       at Npgsql.NpgsqlConnection.set_ConnectionString(String value)
       at Npgsql.NpgsqlConnection..ctor(String connectionString)
       at Scada.Storages.PostgreSqlStorage.PostgreSqlStorageShared.CreateDbConnection(DbConnectionOptions options)
       at Scada.Storages.PostgreSqlStorage.PostgreSqlStorageLogic.MakeReady()
       at Scada.Storages.StorageWrapper.InitStorage()
    2023-08-04 13:56:15 [workstation][appstack][ERR] Normal execution is impossible
    
    
    <?xml version="1.0" encoding="utf-8" ?>
    <ScadaInstanceConfig>
      <Culture>en-GB</Culture>
      <LogDir></LogDir>
      <ActiveStorage>PostgreSqlStorage</ActiveStorage>
      <Storages>
        <Storage code="FileStorage">
          <ViewAvailable>false</ViewAvailable>
        </Storage>
        <Storage code="PostgreSqlStorage">
          <ViewAvailable>true</ViewAvailable>
          <WaitTimeout>30</WaitTimeout>
          <Connection>
            <Name>PostgreConn</Name>
            <Server>localhost</Server>
            <Database>rapid_scada</Database>
            <Username>~~uid~~~</Username>
            <Password>~~~~~~~~~~pwd~~~~~~~~~</Password>
            <ConnectionString />
          </Connection>
        </Storage>
      </Storages>
    </ScadaInstanceConfig>
    
    #13184
    Mikhail
    Moderator

    You should update ScadaInstanceConfig.xml
    It was changed in the recent versions.

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