Unable to connect to sql database using hostname

Describe the bug
I'm running a console app (dotnet core 3.1) inside a kubernetes cluster (docker container). I can connect to the database using the server IP, but it fails using the hostname. The hostname is added on the /etc/hosts file. And I can ping to it without an problem.
Related to #651
Host Address: <IP_ADDRESS>
 Event Trace (<prov.DbConnectionHelper.ConnectionString_Set|API> 1, 'Data Source=SQLHOSTNAME;Initial Catalog=database_name;User ID=username;Pooling=True;Max Pool Size=500;Multiple Active Result Sets=True;Connect Timeout=10').
 Event Trace (<prov.DbConnectionHelper.ConnectionString_Get|API> 1).
Data Source=SQLHOSTNAME;Initial Catalog=database_name;User ID=username;Password=secure_password;Pooling=True;Max Pool Size=500;Multiple Active Result Sets=True;Connect Timeout=10
 Event ScopeEnter (<sc.SqlConnection.Open|API|Correlation> ObjectID 1, ActivityID 5c0b5538-eb14-4e40-b3fc-0222563bd697:1).
 Event CorrelationTrace (<sc.SqlConnection.Open|API|Correlation> ObjectID 1, ActivityID 5c0b5538-eb14-4e40-b3fc-0222563bd697:1).
 Event PoolerTrace (<prov.DbConnectionPool.TransactedConnectionPool.TransactedConnectionPool|RES|CPOOL> 1, Constructed for connection pool 1).
 Event PoolerTrace (<prov.DbConnectionPool.DbConnectionPool|RES|CPOOL> 1, Constructed.).
 Event PoolerTrace (<prov.DbConnectionPool.Startup|RES|INFO|CPOOL> 1, CleanupWait=190000).
 Event PoolerTrace (<prov.DbConnectionPool.GetConnection|RES|CPOOL> 1, Getting connection.).
 Event PoolerTrace (<prov.DbConnectionPool.GetConnection|RES|CPOOL> 1, Creating new connection.).
 Event PoolerTrace (<prov.DbConnectionPool.ReclaimEmancipatedObjects|RES|CPOOL> 1).
 Event Trace (<sc|SqlAuthenticationProviderManager|Ctor|Info>Neither SqlClientAuthenticationProviders nor SqlAuthenticationProviders configuration section found.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, host=SQLHOSTNAME).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 1, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=9990[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (2).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 1, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 100[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 2, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=9755[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (3).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 2, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 200[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 3, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=9516[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (4).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 3, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 400[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 4, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=9073[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (5).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 4, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 800[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 5, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=8267[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (6).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 5, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 1000[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 6, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=7262[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (7).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 6, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 1000[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 7, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=6254[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (8).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 7, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 1000[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 8, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=5249[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (9).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 8, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 1000[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 9, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=4243[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (10).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 9, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 1000[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 10, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=3230[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (11).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 10, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 1000[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 11, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=2219[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (12).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 11, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 1000[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 12, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=1215[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (13).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 12, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.LoginNoFailover|ADV> 4, sleeping 1000[milisec]).
 Event AdvancedTrace (<sc.TdsParserStateObject.IncrementPendingCallbacks|ADV> 13, after incrementing _pendingCallbacks: 1).
 Event AdvancedTrace (<sc.SqlInternalConnectionTds.AttemptOneLogin|ADV> 4, timout=210[msec], server=SQLHOSTNAME).
 Event Trace (<sc.TdsParser.Connect|SEC> SQL authentication).
 Event SNITrace (<sc.SNI.SNICommon. ReportSNIError |SNI|ERR > Provider =TCP_PROV, SNI Error =35, Exception =Name does not resolve).
 Event SNITrace (<sc.SNI.SNILoadHandle.LastError |SNI|INFO|SETTER > Last Error Value = Microsoft.Data.SqlClient.SNI.SNIError).
 Event ScopeEnter (<sc.TdsParser.ProcessSNIError|ERR>).
 Event AdvancedTrace (< sc.TdsParser.ProcessSNIError |ERR|ADV > Error message Detail: ).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > Empty error message received from SNI. Error Message = , SNI Error Number =35).
 Event AdvancedTrace (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Native Error Code = 0).
 Event AdvancedTraceError (<sc.TdsParser.ProcessSNIError |ERR|ADV > SNI Error Message. Native Error = 0, Line Number =0, Function =, Exception =System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo), Server = ).
 Event Trace (<sc.SqlError.SqlError|ERR> infoNumber=0, errorState=0, errorClass=20, errorMessage='A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)', procedure='', lineNumber=0).
 Event ScopeLeave (14).
 Event AdvancedTrace (<sc.TdsParserStateObject.DecrementPendingCallbacks|ADV> 13, after decrementing _pendingCallbacks: 0).
 Event Trace (<sc.TdsParser.Connect|ERR|SEC> Login failure).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|GetCachedToken|Info>Retrieved cached token null.).
 Event Trace (<sc|ActiveDirectoryAuthenticationTimeoutRetryHelper|CheckCanRetry|Error>Cannot retry when cached token is null.).
 Event Trace (<sc.SqlInternalConnectionTds.LoginFailure|RES|CPOOL> 4).
 Event ScopeLeave (1).
Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
 ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
   at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
   at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
   at Microsoft.Data.SqlClient.SqlConnection.Open()
   at home.Program.Main(String[] args) in /home/databaseconnectiontest/program.cs:line 45
   at home.Program.<Main>(String[] args)
ClientConnectionId:00000000-0000-0000-0000-000000000000

To reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
using System.Net;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Data.SqlClient;
using System.Collections.Generic;
using System.Diagnostics.Tracing;

namespace home
{
    class Program
    {
        async static Task Main(string[] args)
        {

            var user = "username";
            var password = "secure_password";
            var database = "database_name";
            var hostname = "SQLHOSTNAME";

            var listener = new SampleListener();
            foreach(var address in Dns.GetHostAddresses(hostname))
            {
                Console.WriteLine($"Host Address: {address}");
            }

            StringBuilder sb = new StringBuilder();
            sb.Append("SELECT TOP(5) type, name ")
            .Append("FROM table ");
            SqlConnection _connection = new SqlConnection(new SqlConnectionStringBuilder
            {
                DataSource = hostname,
                UserID = user,
                Password = password,
                InitialCatalog = database,
                Pooling = true,
                MaxPoolSize = 500,
                MultipleActiveResultSets = true,
                ConnectTimeout = 10,
            }.ConnectionString);
            System.Console.WriteLine(_connection.ConnectionString);
            _connection.Open();
            using SqlCommand command = new SqlCommand(sb.ToString(), _connection);
            using SqlDataReader reader = await command.ExecuteReaderAsync().ConfigureAwait(false);
            while(reader.Read())
            {
                var enumType = reader.GetString(reader.GetOrdinal("type"));
                var enumName = reader.GetString(reader.GetOrdinal("name"));
                System.Console.WriteLine($"{enumType} - {enumName}");
            }
            _connection.Close();
        }
    }

    class SampleListener : EventListener
    {
        protected override void OnEventSourceCreated(EventSource eventsource)
        {
            if (eventsource.Name.Equals("Microsoft.Data.SqlClient.EventSource"))
            {
                EnableEvents(eventsource, EventLevel.LogAlways, EventKeywords.All);
            }
        }
        protected override void OnEventWritten(EventWrittenEventArgs eventData)
        {

            // report all event information
            Console.Write(" Event {0} ", eventData.EventName);

            // Don't display activity information, as that's not used in the demos
            // Out.Write(" (activity {0}{1}) ", ShortGuid(eventData.ActivityId),
            // eventData.RelatedActivityId != Guid.Empty ? "->" + ShortGuid(eventData.RelatedActivityId) : "");

            // Events can have formatting strings 'the Message property on the 'Event' attribute.
            // If the event has a formatted message, print that, otherwise print out argument values.
            if (eventData.Message != null)
                Console.WriteLine(eventData.Message, eventData.Payload.ToArray());
            else
            {
                string[] sargs = eventData.Payload != null ? eventData.Payload.Select(o => o.ToString()).ToArray() : null;
                Console.WriteLine("({0}).", sargs != null ? string.Join(", ", sargs) : "");
            }
        }
    }
}

Expected behavior
It should connect and show some tabla base rows on the console
Further technical details
Microsoft.Data.SqlClient version: 2.0.1
.NET target: Core 3.1
SQL Server version: SQL Server 2016
Operating system: Docker container (3.1-alpine)
Additional context
The SQL hostname came from /etc/hosts file entries. Command ping execute successfully and SQL connection using IP address instead of the hostname in the above code also works as intended.

It turns out to be the alpine base image, changing to 3.1-focal tag everything works as intended using the hostname stored on the /etc/hosts file. So, now I'm intrigued to know, which dependency I'm missing? musl lib may be the issue here?

Hi @xolott
We use below API to resolve hostname in Unix environment, could you check if you can execute this in your environment where you have issues:
System.Net.Dns.GetHostAddressesAsync(hostName);

Hi @cheenamalhotra ! Same result. Calling GetHostAddresses directly resolve the correct IP, but using the SqlClient throws an exception.
 # dotnet run
Using System.Net.Dns.GetHostAddressesAsync(hostName);
Host Address: <IP_ADDRESS>

Using SqlClient:
Unhandled exception. Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
 ---> System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (00000005, 0xFFFDFFFF): Name does not resolve
   at System.Net.Dns.InternalGetHostByName(String hostName)
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle.Connect(String serverName, Int32 port, TimeSpan timeout, Boolean isInfiniteTimeout, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SNI.SNITCPHandle..ctor(String serverName, Int32 port, Int64 timerExpire, Object callbackObject, Boolean parallel, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
   at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
   at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
   at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
   at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
   at Microsoft.Data.SqlClient.SqlConnection.Open()
   at home.Program.Main(String[] args) in /root/app/program.cs:line 42
   at home.Program.<Main>(String[] args)
ClientConnectionId:00000000-0000-0000-0000-000000000000

Ok now it looks the issue is down to System.Net.Dns class, and once you get that up and running - driver will work too.
You might wanna check TCP port access is not blocked to your server host machine, and if you need help resolving that - may check with dotnet/runtime team.

@xolott
Do you confirm TCP protocol is enabled for SQL Sever instance you're trying to connect to?

Hi @cheenamalhotra
Sorry for the delay. I just checked that, the server allows tcp connection. As I said in the issue:

Additional context
The SQL hostname came from /etc/hosts file entries. Command ping execute successfully and SQL connection using IP address instead of the hostname in the above code also works as intended.

If I use the IP address, the SQL query works as expected.

Hi @xolott
As what @cheenamalhotra  has mentioned above, the exception is due to the DNS resolution failure. What the sqlcient driver does is to pass the hostname to System.Net.Dns class and to get the IP address to connect with.
If you provide the IP directly in the connection string, this will bypass the DSN resolution step and connect with the IP directly. Even though your DNS server is down, this will still work.
From your previous post, I can see this IP <IP_ADDRESS> returned by System.Net.Dns.GetHostAddressesAsync(hostName).
Using System.Net.Dns.GetHostAddressesAsync(hostName);
Host Address: <IP_ADDRESS>

And you mentioned

If I use the IP address, the SQL query works as expected

Is this <IP_ADDRESS> the working IP you provided in the connection string? Or do you provide another IP in the connection string and it works for you?

Yes, @karinazhou
That's the same IP I use. As I mentioned above, I was using alpine based image, just changing alpine to focal (without changing anything in the code) it works using the hostname.
I'm 100% sure that the hostname and the IP are correct. If it is useful I can provide the code output when resolving the hostname using the GetHostAddressesAsync, connection and query against the database using the resolved IP as connection string, and connection and query against the database using the hostname as connection string.

@xolott  Sorry to reply to you late since we are currently distracted by other issues.
As I mentioned above, I was using alpine based image, just changing alpine to focal (without changing anything in the code) it works using the hostname.

This looks more like docker image issue to me if the same code work in one image but not the other. Could you share with us a sample application with the alpine image you are using? We can try it locally to see what happens.

No problem @karinazhou
These are the actual steps that I'm following with this project so far.
Dockerfile
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build-env
WORKDIR /app
# Copy sln and restore as distinct layers
COPY *.sln ./
# Copy the main source project files
COPY src/*/*.csproj ./src/

RUN for file in $(ls src/*.csproj); do mkdir -p ${file%.*}/ && mv $file ${file%.*}/; done

RUN dotnet clean
RUN dotnet restore

# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out

############################################################################
# Build runtime image
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine

COPY docker/vpn-slice-master.zip ./
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories \
    && echo 'http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories \
    && apk add --no-cache icu-libs tzdata openconnect \
    # add vpn-slice with dependencies (dig) https://github.com/dlenski/vpn-slice
    && apk add --no-cache python3 py3-pip bind-tools gcc python3-dev musl-dev && pip3 install --upgrade pip \
    && pip3 install vpn-slice-master.zip \
    && apk del py3-pip bind-tools gcc python3-dev musl-dev \
    && rm vpn-slice-master.zip

ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

ENV TZ=America/Santiago
ARG DOTNET_ENVIRONMENT=Test
ENV DOTNET_ENVIRONMENT=${DOTNET_ENVIRONMENT}

WORKDIR /app
COPY --from=build-env /app/out .
COPY src/Worker/appsettings* ./

RUN true
## llamada de archivo bash
COPY docker/script.sh ./
COPY docker/keep_tunnel_alive.sh ./
CMD sh script.sh

Here vpn-slice-master.zip refers to this repo
Scripts
keep_tunnel_alive
Used to prevent VPN connection idle timeout
#! /bin/bash
TARGET_HOST=$(awk -F ' ' '{print $1}' <<< $VPN_INCLUDE_HOSTS )

while true; do
  ping -c 2 $TARGET_HOST;
  sleep 60;
done

script.sh
Used to open a VPN tunnel and execute the net core project
#!/bin/bash

disconnect()
{
    echo "Disconnecting..."
    pkill -SIGINT openconnect
}

connect()
{
    echo $VPN_PASSWORD | openconnect --script "vpn-slice $VPN_INCLUDE_HOSTS -v --dump" $VPN_SERVER --user=$VPN_USER --authgroup=$VPN_GROUP -b
    i=3
    while ! ip link show | grep -q "tun0"; do
        echo "Initializing the tunnel $i"
        sleep 2
        let "i=i-1"
        if [[ !"$i" -gt 0 ]]; then
            disconnect
            exit 0
        fi
    done
}

if [ ! -z "$VPN_ENABLED" ] && [ "$VPN_ENABLED" = "True" ];
then
    echo "VPN ENABLED"
    connect
    bash keep_tunnel_alive.sh &
    echo "Tunnel is ready!"
else
    echo "VPN NOT ENABLED"
fi

dotnet Worker.dll

disconnect

Worker
CSPROJ
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp3.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Data.SqlClient" Version="2.0.1" />
  </ItemGroup>

</Project>

Code
using System;
using System.Net;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Data.SqlClient;
using System.Collections.Generic;
using System.Diagnostics.Tracing;

namespace Worker
{
    class Program
    {
        async static Task Main(string[] args)
        {

            var user = "dbuser";
            var password = "dbpassword";
            var database = "db";
            var hostname = "DBHOST";
            foreach(var address in Dns.GetHostAddresses(hostname))
            {
                Console.WriteLine($"Host Address: {address}");
            }
            StringBuilder sb = new StringBuilder();
            sb.Append("SELECT TOP(5) id, type, name ")
            .Append("FROM enum_tables WITH (NOLOCK) ");
            SqlConnection _connection = new SqlConnection(new SqlConnectionStringBuilder
            {
                DataSource = hostname,
                UserID = user,
                Password = password,
                InitialCatalog = database,
                Pooling = true,
                MaxPoolSize = 500,
                MultipleActiveResultSets = true,
                ConnectTimeout = 10,
            }.ConnectionString);
            System.Console.WriteLine(_connection.ConnectionString);
            _connection.Open();
            using SqlCommand command = new SqlCommand(sb.ToString(), _connection);
            using SqlDataReader reader = await command.ExecuteReaderAsync().ConfigureAwait(false);
            while(reader.Read())
            {
                var enumType = reader.GetString(reader.GetOrdinal("type"));
                var enumName = reader.GetString(reader.GetOrdinal("name"));
                System.Console.WriteLine($"{enumType} - {enumName}");
            }
            _connection.Close();

        }
    }
}

Nothing more. Nothing less.
Hope this can help.

@xolott    Thank you for the detailed information. We will test it later.

@xolott    I tested the 3.1-alpine image to connect to the Azure SQL database and it worked fine on my side. To narrow down the cause of this issue to see whether it's from the driver or not, I didn't use the VPN-slice-master repo in my testing application. What I did is simply use the driver to connect to the hostname and run a query. You can find the test app attached in the comment and give it a try. To use the test app, replace the server hostname, your credential, and database related information.
To compare the behavior of different docker images, you can also replace 3.1-alpine with 3.1-focal in the test app since you mentioned the 3.1-focal is working for you.
GH804HostnameDocker.zip

Closing since issue not reproduced for SqlClient in default environment (without vpn-slice) as per last comment.

Closing since issue not reproduced for SqlClient in default environment (without vpn-slice) as per last comment.

Using your test code result in the same problem. Eventually, I moved to the focal based docker image, with no issue whatsoever.

Using your test code result in the same problem. Eventually, I moved to the focal based docker image, with no issue whatsoever.


Python: Facing issues in executing the notebooks in semantic kernel

Describe the bug
Base URL or Endpoint Required
To Reproduce
Steps to reproduce the behavior:

Navigate to semantic-kernel/python/samples/getting_started/00-getting-started.ipynb
Facing error while executing Option:2 - using Azure OpenAI
Even after adding the path as mentioned in the description, we are facing baseurl or endpoint required issue.

Screenshots

Hi @Gayatrimurali, per your screenshot you're showing you are providing the env_file_path=".env". It needs to be a file path and not a relative file path. Can you please try an absolute file path? Note: if you are using Poetry with SK (which we highly recommend), Poetry will load your .env file variables into env vars when you start up an IDE like VSCode.

Closing this for now. @Gayatrimurali please re-open if this is still an issue. Thanks!


add dir-cut rooms and rules column to automap

For places you know are there but aren't visited yet, for instance

Fixed recently.


Polymorphic UUID fields in structs don't save their corresponding _type fields

When polymorphic UUID fields in structs are saved to the DB, their corresponding _type fields are ignored in the action inputs and never written.

Also, it appears that the Type is included in the GraphQL schema, which I don't think it should be.


Milestone 1 To-do

[x] Teamwork contract
[x] Topic
[x] Project structure for the python project

[x] creat project structure under UBC-MDS organization

[x] edit CONTRIBUTORS.md to add contributor names

[x] edit CONDUCT.md to include code of conduct

[x] agree upon collaboration strategy (Github flow) and edit on CONTRIBUTING.md

[x] High level summary of project in README.md

[x] bulleted list of functions and 1-2 sentence description for each in README.md

[x] paragraph describing where the pacakge fits into the python ecosystem in README.md

[x] Function specifications

[x] 4 empty functions with appropriate function names

[x] Docstrings for functions

[x] Manage Issues

[x] Project Boards & Milestones

[x] create an issue for each function in the package (1 issue assigned for each team member)

Submitted Milestone 1 on canvas!


Status Page

Create a Status Page
Requirements that come to my mind:

[ ] Simple One Pager
[ ] Hosted on its own
[ ] preferably hosted on baremetal or similar - NO Firebase / Cloudflare
[ ] Needs IP and subdomain access

@ashachaf @yudilevi I assume this is pretty low priority, I am just documenting this here for later.
@ashachaf do we need mockups for this or should we use the Landing Page design elements to build this? I think that would be the easiest and fastest.

Any other ideas @Velua @Ran73Cohen ?

I really like the idea, Alchemy, Ethereum, Cloudfare, Github for token meta, Firebase the API... anyone piece could fail us.

should we consider something like this?
https://www.atlassian.com/software/statuspage

I really like the idea, Alchemy, Ethereum, Cloudfare, Github for token meta, Firebase the API... anyone piece could fail us.

did you mean to include their status within ours?

Yeah pretty much as it's all related to making Bancor operational.
Also forces us to illustrate what our dependencies are too.

https://docs.google.com/document/d/1VRjCB4UqK46fJlI6MOEUmegShhb3Z0lQF875BKNrVQA/edit


Registry-url doesn't work

Description:
When setting registry-url the result of running npm publish --dry-run remains the default instead of the configured value.
Action version:
4
Platform:

[x] Ubuntu
[ ] macOS
[ ] Windows

Runner type:

[x] Hosted
[ ] Self-hosted

Tools version:
node: v18.19.0, npm: 10.2.3
Repro steps:
name: Continuous Delivery

on:
  push:
    branches:
      - main

jobs:
  gpr-publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-node@v4
        with:
          registry-url: 'https://npm.pkg.github.com'

      - run: npm publish --dry-run
        env:
          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expected behavior:
https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#publish-to-npmjs-and-gpr-with-npm
Actual behavior:
There must be https://registry.npmjs.org/ instead https://registry.npmjs.org/

I guess I found a problem.
To publish to https://npm.pkg.github.com, it is necessary for the package.json name to include a scope. However, the validation and logging process for this is so tricky. 🥲
https://github.com/actions/setup-node/issues/243#issuecomment-995742416


feat(widgets): introduce parentIndexId

Summary
This allows you to pop out of the index hierarchy, to create more advanced nesting, for example for "no results" pages which query again, or for query suggestions.
This is not needed for vanilla InstantSearch, as the widget isn't in charge of being added, addWidgets is called by the user.

Now the parentIndexId logic is added to useWidget/widgetMixin, meaning it's valid for all widgets.
DynamicWidgets needs to expose index context/provider again to pretend to the child widgets they are part of the parentIndex as requested.
Result

parentIndexId as a prop to the React InstantSearch Hooks Index widget.
This enables the following UI/index combination
const App = () => (
  <InstantSearch>
    <Index indexName="index1">
      <Index indexName="index2" parentIndexId={null}>
        <Index indexName="index3" />
      </Index>
      <Index indexName="index4" />
    </Index>
  </InstantSearch>
);

// output:
const mainIndex = {
  id: '',
  widgets: [
    {
      id: 'index1',
      widgets: [{ id: 'index4' }],
    },
    {
      id: 'index2',
      widgets: [{ id: 'index3' }],
    },
  ],
};

For now this isn't workable, as you can't delay until all sibling indices are mounted, meaning you still need to mount the widgets in order, giving it not many use cases.


Updating NWSTokenView to support Swift 4.2

Updated pod version from 2.0.3 to 2.0.4
Updated Xcode from 8 to 10
Most of the corrections where applying auto fixes.
Also applied updates to Swift and Pod project.
Did a pod install the Example folder to update the app to run 2.0.4
Ran the app and it works just like it before.
This PR addresses #22

Can you complete the pull request,I would like to try and use this library thanks.

Looks good! I’ll update the pod shortly.
Thanks for contributing! 🍻

@mike011 @AdamLee321 The updates have been merged in. Please note I won't be able to update the actual pod as this one is tied to my old company/email that I dissolved a couple years ago. I submitted a request to claim it with my new accounts, so will update it once thats processed.
In the meantime you can point your pod to latest using this line in your pod file:
pod 'NWSTokenView', :git => 'https://github.com/Appmazo/NWSTokenView.git'
Cheers! 🍻

@mike011 @AdamLee321 CocoaPod has been updated to v2.0.4. You can now use latest version with: pod 'NWSTokenView'
Cheers! 🍻


CLI: command to download singularity/docker cache

works across users, save disk space using shared cache.
see RENEE for implementation.

There were some problems using nextflow inspect with singularity, so let's wait on this until nextflow >= v23.11 is released.


chore: Fixes test file from #4205

Quickly fixing comments from #4205

Benchmark results
Metrics with a significant change:

note_successful_decrypting_time_in_ms (8): 346 (+21%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 301f0e6d and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,412
179,524
716,068

l1_rollup_calldata_gas
221,548
866,932
3,446,776

l1_rollup_execution_gas
313,967
984,604
3,666,365

l2_block_processing_time_in_ms
1,432 (-12%)
5,301 (+2%)
20,933 (+1%)

note_successful_decrypting_time_in_ms
:warning: 346 (+21%)
842 (+1%)
3,176

note_trial_decrypting_time_in_ms
63.0 (-35%)
69.5 (+11%)
149 (+1%)

l2_block_building_time_in_ms
16,124
64,036 (+1%)
256,235

l2_block_rollup_simulation_time_in_ms
11,746
46,696
187,207

l2_block_public_tx_process_time_in_ms
4,344
17,251 (+1%)
68,644

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
16,565 (+4%)
31,523 (+3%)

note_history_successful_decrypting_time_in_ms
2,054 (+4%)
4,011 (+3%)

note_history_trial_decrypting_time_in_ms
88.5 (-40%)
168 (-28%)

node_database_size_in_bytes
3,516,067
3,551,726

pxe_database_size_in_bytes
29,923
59,478

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
213
44,681
25,561

private-kernel-ordering
166 (+1%)
43,753
14,809

base-rollup
1,198
128,338
881

root-rollup
79.0
4,088
677

private-kernel-inner
291
71,208
25,561

public-kernel-private-input
206
31,863
25,561

public-kernel-non-first-iteration
203
31,905
25,561

merge-rollup
7.74 (+2%)
2,608
881

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
15,455
32,222

Transaction processing duration by data writes.

Metric
0 new commitments
1 new commitments

tx_pxe_processing_time_ms
374
1,086

Metric
1 public data writes

tx_sequencer_processing_time_ms
537


[MM-27210] archived channels 4 III

Summary
final tests MM-T1714 & MM-T1715
IMPORTANT: this doesn't work at the time due to bug https://mattermost.atlassian.net/browse/MM-31358 which I found while creating the test. Once fixed, this test should run properly.
Ticket Link
MM-27210
Related Pull Requests
https://github.com/mattermost/mattermost-webapp/pull/7205
https://github.com/mattermost/mattermost-webapp/pull/7191

Thanks for the heads up. Will take a look once the said bug is fixed.

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!
/cc @jasonblais @jfrerich @emilyacook

@Willyfrog hey there! I see the bug you linked has been resolved, let me know if you're able to get to this 🙂

@Willyfrog hey there! I see the bug you linked has been resolved, let me know if you're able to get to this 🙂

thanks for the heads up, I didn't notice the bug was resolved. I'll try to take a look at it later today.

Please ping me again whenever ready for review. Thanks @Willyfrog!

Heads up that as part of our efforts to move to a monorepo, we're closing out a number of older pull requests like this one to help streamline the effort.
If you'd like to preserve these changes -- even if you're not the original author! -- feel free to resubmit the pull request against the monorepo once it's ready. You can subscribe to mattermost-server-issue-22420 for status updates on this effort.


Failed to install Argos-translate in Lubuntu 22.04.

Hello!
For my first post I just want to say thanks for your work. I hope I can use this software for offline translation, helping people with limited connexion or avoiding a bit more Google and other bad guys would be cool.
Sorry for my english I'm french-speaker, and I don't have much skills in computing.

1 or 2 months ago I had already tried to install Argos (following installation page here on Github) but for some reason, several times after downloading hundreds of MB it aborted, I don't remember the details but well I gave up.
Yesterday I tried again and it seemed to work better.
First I put pip install argostranslate:
me@me-pc:~$ pip install argostranslate
Defaulting to user installation because normal site-packages is not writeable
Collecting argostranslate
  Downloading argostranslate-1.7.5-py3-none-any.whl (27 kB)
Collecting sentencepiece==0.1.96
  Downloading sentencepiece-0.1.96-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 1.4 MB/s eta 0:00:00
Collecting ctranslate2==2.24.0
  Downloading ctranslate2-2.24.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.3/18.3 MB 1.2 MB/s eta 0:00:00
Collecting stanza==1.1.1
  Downloading stanza-1.1.1-py3-none-any.whl (227 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 227.6/227.6 KB 632.8 kB/s eta 0:00:00
Requirement already satisfied: pyyaml<7,>=5.3 in /usr/lib/python3/dist-packages (from ctranslate2==2.24.0->argostranslate) (5.4.1)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from ctranslate2==2.24.0->argostranslate) (1.21.5)
Collecting torch>=1.3.0
  Downloading torch-1.13.1-cp310-cp310-manylinux1_x86_64.whl (887.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 887.5/887.5 MB ? eta 0:00:00
Requirement already satisfied: protobuf in /usr/lib/python3/dist-packages (from stanza==1.1.1->argostranslate) (3.12.4)
Collecting tqdm
  Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 KB 614.4 kB/s eta 0:00:00
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from stanza==1.1.1->argostranslate) (2.25.1)
Collecting nvidia-cudnn-cu11==<IP_ADDRESS>
  Downloading nvidia_cudnn_cu11-<IP_ADDRESS>-2-py3-none-manylinux1_x86_64.whl (557.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 557.1/557.1 MB ? eta 0:00:00
Collecting typing-extensions
  Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting nvidia-cuda-runtime-cu11==11.7.99
  Downloading nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl (849 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 849.3/849.3 KB 44.6 kB/s eta 0:00:00
Collecting nvidia-cuda-nvrtc-cu11==11.7.99
  Downloading nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl (21.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.0/21.0 MB 987.4 kB/s eta 0:00:00
Collecting nvidia-cublas-cu11==<IP_ADDRESS>
  Downloading nvidia_cublas_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl (317.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 317.1/317.1 MB 515.3 kB/s eta 0:00:00
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch>=1.3.0->stanza==1.1.1->argostranslate) (59.6.0)
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch>=1.3.0->stanza==1.1.1->argostranslate) (0.37.1)
Installing collected packages: sentencepiece, typing-extensions, tqdm, nvidia-cuda-runtime-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cublas-cu11, ctranslate2, nvidia-cudnn-cu11, torch, stanza, argostranslate
  WARNING: The script tqdm is installed in '/home/me/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts ct2-fairseq-converter, ct2-marian-converter, ct2-openai-gpt2-converter, ct2-opennmt-py-converter, ct2-opennmt-tf-converter, ct2-opus-mt-converter and ct2-transformers-converter are installed in '/home/me/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

Following what said last line, I moved some files to make room and I put again pip install argostranslate:
me@me-pc:~$ pip install argostranslate
Defaulting to user installation because normal site-packages is not writeable
Collecting argostranslate
  Using cached argostranslate-1.7.5-py3-none-any.whl (27 kB)
Requirement already satisfied: ctranslate2==2.24.0 in ./.local/lib/python3.10/site-packages (from argostranslate) (2.24.0)
Collecting stanza==1.1.1
  Using cached stanza-1.1.1-py3-none-any.whl (227 kB)
Requirement already satisfied: sentencepiece==0.1.96 in ./.local/lib/python3.10/site-packages (from argostranslate) (0.1.96)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from ctranslate2==2.24.0->argostranslate) (1.21.5)
Requirement already satisfied: pyyaml<7,>=5.3 in /usr/lib/python3/dist-packages (from ctranslate2==2.24.0->argostranslate) (5.4.1)
Requirement already satisfied: protobuf in /usr/lib/python3/dist-packages (from stanza==1.1.1->argostranslate) (3.12.4)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from stanza==1.1.1->argostranslate) (2.25.1)
Requirement already satisfied: torch>=1.3.0 in ./.local/lib/python3.10/site-packages (from stanza==1.1.1->argostranslate) (1.13.1)
Requirement already satisfied: tqdm in ./.local/lib/python3.10/site-packages (from stanza==1.1.1->argostranslate) (4.64.1)
Requirement already satisfied: nvidia-cudnn-cu11==<IP_ADDRESS> in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (11.7.99)
Requirement already satisfied: nvidia-cublas-cu11==<IP_ADDRESS> in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (<IP_ADDRESS>)
Requirement already satisfied: typing-extensions in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (4.4.0)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (11.7.99)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch>=1.3.0->stanza==1.1.1->argostranslate) (59.6.0)
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch>=1.3.0->stanza==1.1.1->argostranslate) (0.37.1)
Installing collected packages: stanza, argostranslate
Successfully installed argostranslate-1.7.5 stanza-1.1.1
me@me-pc:~$

And then the GUI:
me@me-pc:~$ pip install argostranslategui
Defaulting to user installation because normal site-packages is not writeable
Collecting argostranslategui
  Downloading argostranslategui-1.6.3-py3-none-any.whl (6.7 kB)
Requirement already satisfied: argostranslate in ./.local/lib/python3.10/site-packages (from argostranslategui) (1.7.5)
Collecting PyQt5==5.15.4
  Downloading PyQt5-5.15.4-cp36.cp37.cp38.cp39-abi3-manylinux2014_x86_64.whl (8.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.3/8.3 MB 1.1 MB/s eta 0:00:00
Requirement already satisfied: PyQt5-sip<13,>=12.8 in /usr/lib/python3/dist-packages (from PyQt5==5.15.4->argostranslategui) (12.9.1)
Collecting PyQt5-Qt5>=5.15
  Downloading PyQt5_Qt5-5.15.2-py3-none-manylinux2014_x86_64.whl (59.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.9/59.9 MB 1.0 MB/s eta 0:00:00
Requirement already satisfied: ctranslate2==2.24.0 in ./.local/lib/python3.10/site-packages (from argostranslate->argostranslategui) (2.24.0)
Requirement already satisfied: stanza==1.1.1 in ./.local/lib/python3.10/site-packages (from argostranslate->argostranslategui) (1.1.1)
Requirement already satisfied: sentencepiece==0.1.96 in ./.local/lib/python3.10/site-packages (from argostranslate->argostranslategui) (0.1.96)
Requirement already satisfied: pyyaml<7,>=5.3 in /usr/lib/python3/dist-packages (from ctranslate2==2.24.0->argostranslate->argostranslategui) (5.4.1)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from ctranslate2==2.24.0->argostranslate->argostranslategui) (1.21.5)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from stanza==1.1.1->argostranslate->argostranslategui) (2.25.1)
Requirement already satisfied: protobuf in /usr/lib/python3/dist-packages (from stanza==1.1.1->argostranslate->argostranslategui) (3.12.4)
Requirement already satisfied: tqdm in ./.local/lib/python3.10/site-packages (from stanza==1.1.1->argostranslate->argostranslategui) (4.64.1)
Requirement already satisfied: torch>=1.3.0 in ./.local/lib/python3.10/site-packages (from stanza==1.1.1->argostranslate->argostranslategui) (1.13.1)
Requirement already satisfied: nvidia-cublas-cu11==<IP_ADDRESS> in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate->argostranslategui) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate->argostranslategui) (11.7.99)
Requirement already satisfied: typing-extensions in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate->argostranslategui) (4.4.0)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate->argostranslategui) (11.7.99)
Requirement already satisfied: nvidia-cudnn-cu11==<IP_ADDRESS> in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate->argostranslategui) (<IP_ADDRESS>)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch>=1.3.0->stanza==1.1.1->argostranslate->argostranslategui) (59.6.0)
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch>=1.3.0->stanza==1.1.1->argostranslate->argostranslategui) (0.37.1)
Installing collected packages: PyQt5-Qt5, PyQt5, argostranslategui
  WARNING: The scripts pylupdate5, pyrcc5 and pyuic5 are installed in '/home/me/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed PyQt5-5.15.4 PyQt5-Qt5-5.15.2 argostranslategui-1.6.3
me@me-pc:~$

Last lines of the 2 outputs say "successfully installed". But well I couldn't find Argos in main Menu, and running argos-translate in terminal said something like "command unknown" if I remember.
There is a maybe problematic line in the beginning
Defaulting to user installation because normal site-packages is not writeable
But I don't know what to do with it so I left it.
But there are also several lines
WARNING: The scripts (blahblah...) are installed in '/home/me/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Had never heard of this "PATH" thing, but I found here for example that I seemed to have to add a line in /home/me/.bashrc file, which I did:
export PATH="$PATH:/home/me/.local/bin"
After that, I made a small chek by re-running install command:
me@me-pc:~$ pip install argostranslate
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: argostranslate in ./.local/lib/python3.10/site-packages (1.7.5)
Requirement already satisfied: ctranslate2==2.24.0 in ./.local/lib/python3.10/site-packages (from argostranslate) (2.24.0)
Requirement already satisfied: stanza==1.1.1 in ./.local/lib/python3.10/site-packages (from argostranslate) (1.1.1)
Requirement already satisfied: sentencepiece==0.1.96 in ./.local/lib/python3.10/site-packages (from argostranslate) (0.1.96)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from ctranslate2==2.24.0->argostranslate) (1.21.5)
Requirement already satisfied: pyyaml<7,>=5.3 in /usr/lib/python3/dist-packages (from ctranslate2==2.24.0->argostranslate) (5.4.1)
Requirement already satisfied: tqdm in ./.local/lib/python3.10/site-packages (from stanza==1.1.1->argostranslate) (4.64.1)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from stanza==1.1.1->argostranslate) (2.25.1)
Requirement already satisfied: torch>=1.3.0 in ./.local/lib/python3.10/site-packages (from stanza==1.1.1->argostranslate) (1.13.1)
Requirement already satisfied: protobuf in /usr/lib/python3/dist-packages (from stanza==1.1.1->argostranslate) (3.12.4)
Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (11.7.99)
Requirement already satisfied: nvidia-cublas-cu11==<IP_ADDRESS> in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (<IP_ADDRESS>)
Requirement already satisfied: typing-extensions in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (4.4.0)
Requirement already satisfied: nvidia-cudnn-cu11==<IP_ADDRESS> in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (<IP_ADDRESS>)
Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in ./.local/lib/python3.10/site-packages (from torch>=1.3.0->stanza==1.1.1->argostranslate) (11.7.99)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch>=1.3.0->stanza==1.1.1->argostranslate) (59.6.0)
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from nvidia-cublas-cu11==<IP_ADDRESS>->torch>=1.3.0->stanza==1.1.1->argostranslate) (0.37.1)
me@me-pc:~$

Warnings had disappeared, which I thought was a good sign.
But Argos still not in Menu, and when I ran argos-translate or argos-translate-gui in Terminal, answer was:
Illegal instruction (core dumped)
What does it mean??
So I tried to follow the found web pages, and then I added the indicated folder for the PATH in 2 other files:
PATH="$PATH:/home/me/.local/bin"
in
/home/me/.profile
and in
/etc/environment
and I restarted the computer.
But then surprise, at session opening, I coudn't enter, cause after each confirmation of my password, the login page displayed again and asked me again the password!
So from another OS, I entered my partition and I commented with # the 2 lines I had added. And then I could re-open my session normally.
Then I tried once more to add the folder in PATH, in etc/environment there is a line, in which I added it to the end:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/me/.local/bin"
And then I restarted, but still the same (I keep this modification for the moment).
I see yet 10 things to try, but it might take hours or days and might finally work or break my partition, so if someone has the right answer it would be great.

when I ran argos-translate or argos-translate-gui in Terminal, answer was: Illegal instruction (core dumped) What does it mean??

the binary builds of the nvidia cuda packages fail to run on your hardware, either because some CPU extensions are missing, for example AVX2 (grep -m1 ^flags /proc/cpuinfo)
you could build these package from source, to make them run on your hardware. this may take 1 or 2 days
see also https://github.com/pytorch/pytorch/issues/2714#issuecomment-329196030

Last lines of the 2 outputs say "successfully installed". But well I couldn't find Argos in main Menu

because argos-translate is a command line app, usually called with python3 -m argostranslate, or by adding ~/.local/bin to PATH
for argos-translate-gui, you could add a ~/.local/share/applications/argos-translate-gui.desktop file

Thanks for answer!
In fact I had had an hypothesis that the problem comes from my too old CPU, which could coincide with what you said: "either because some CPU extensions are missing, for example AVX2 (grep -m1 ^flags /proc/cpuinfo)".
What made me think about it is that:

I tried to install LibreTranslate and it failed too.
I also tried to install Firefox Translations Translations (a Firefox addon, which works offline too), and it failed too. But in its page there also is a warning that can be the explanation of the problem: "A CPU that supports SSE4.1 extensions is required for this addon to function properly."

Then I verified in CPU-X software.
CPU tab (default tab) > Instructions line > Show: MMX, SSE(1, 2, 3, 3S), x86-64
So SSE4 is missing, probably because my computer is a bit too old. So this extension won't work, and as the goal of this extension and of LibreTranslate and ArgosTranslate are the same, they work maybe the same way at this level and all need this "SSE4" instruction.
Your command shows effectively that for example AVX2 is missing:
grep -m1 ^flags /proc/cpuinfo
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl cpuid aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm pti dtherm

Yes why not try to build missing extensions (even if for now I don't know how to build a package but it doesn't seem too hard). But yet a question, when you say "1 or 2 days", it means mainly  the time the computer will work alone, or the time I will need to work on building? For if it is the second case, oops as I'm not technician at all, I fear it would rather mean "1 or 2 weeks" for me.

For the moment I didn't try to run python3 -m argostranslate or add ~/.local/bin to PATH because trying to install LibreTranslate not only didn't work but also put the mess in my OS: CPUs always at 100%  when opening my session (which fortunately I found how to stop at each opening), and even a 2nd account created named "LibreTranslate"! So I'm a bit afraid to try new things.

Before closing I checked  the link you gave (just fast, not real reading), and surprise it talks about the "SSE4" thing.
Though I had made a search in the Github search bar and there was no result. But now I see it seems to search only in the code.
I should have rather tried  site:github.com/argosopentech/argos-translate/ "sse4" in "a search engine", but it gives only 1 result, and being about a different issue.
Maybe better searches would have given me solutions.

In fact unfortunately I miss time to try further by now. I'll try again when more possible!

Another hypothesis: maybe Argos-translate (and other software who have the same problem, if it is the case) should explain this in their presentation, like the Firefox addon does? For maybe I will not be the only one in the world with a 2007 computer, 16 years old but well 64b! :).

"A CPU that supports SSE4.1 extensions is required for this addon to function properly."

yeah, the required extension seems to be sse4, and maybe avx
it works on my cpu:
$ cat /proc/cpuinfo | grep -m1 ^flag | grep -o -E "(sse|avx)[^ ]*"
sse
sse2
sse3
sse4_1
sse4_2
avx

when you say "1 or 2 days", it means mainly the time the computer will work alone, or the time I will need to work on building?

the compile time will be in that range.
you only copy-paste some commands and wait, and hope your cpu cooler will work ; )
argos-translate depends on pytorch, so...

https://www.google.com/search?q=python+build+pytorch+from+source+for+old+cpu+without+sse4
https://github.com/pytorch/pytorch#from-source
https://discuss.pytorch.org/t/how-to-build-pytorch-without-avx/158408

Thanks again for explanations!
So I'll try all this as soon as I can and tell result. Well 1 or 2 days of big CPU usage, I'm ready to say goodbye to my grandpa laptop, but at least I will be able to cook some eggs :).
And another hypothesis, maybe also the Firefox addon should have then added in its warning "If your CPU doesn't, follow those instructions", or with a 327000 users addons, they missed maybe tens or hundreds of other users. But now the addon is said stopped https://github.com/mozilla/firefox-translations and included to FF itself since FF108, I don't see it in mine (ESR, 115) but maybe juste because it doesn't work for me. Proposing users to follow compiling instructions "in Firefox itself" being still a possibility. Maybe I will ask them about that one day.


[RDY] Tiling and Workspace fixes

I'll try to keep this original post updated as I get feedback/make changes
This pull request contains the following commits...

05162d2 Fix: workspaces remain ordered by ID when moved across monitor
I noticed that moving workspaces back and forth across monitors changes the order of them. If you have the following...
monitor1            monitor2
1 2 3  7                 5 6
and then moving workspace  5 back to monitor 1 it ends up like this
monitor1            monitor2
1 2 3  7 5                6
This commit keeps the order so it ends up "1 2 3 5 7"

31cc8d2 Feat: made right-alt usage configurable
This is in regards to #210 and just adds a config value to allow usage of the right alt. This is just an initial attempt at it, open to suggestions on a better implementation. Still need to add documentation, but that's dependent on if we decide this is a good idea or not. I'm also not sure exactly where in the doc-gen project that the documentation for config values goes?

30aeb96 Fix: prevent unmanaging windows from inactive workspaces
This tripped me up a bit a couple times but basically if you switch to another workspace it's possible depending on what windows are currently visible that you still have focus on a window that was on the workspace you just left... and if you toggle to manage/unmanage a window at this point it unmanages the window from the workspace that isn't currently visible. This is more likely to happen when working across multiple monitors and losing track of what window on what workspace you think is focused.
This commit just adds some logic to prevent unmanaging the window if it's not on the focused workspace since it's unlikely the user wants that to happen. I also went ahead and renamed a couple functions like find_window and find_grid as their names were incorrect; find_window returns a grid and find_grid returns a display, so I renamed them to find_grid_containing_window and find_grid_display.

a2f31d5 Fix: #211 columns and rows merge
This should be pretty straight forward and is just adding logic for a scenario I documented in #211 that I came across. Also added unit tests for this one.

5d5c617 Feat: Added fullscreen indicator component
This is a quality-of-life improvement for me personally. I often jump back and forth between workspaces and get confused about how I left them. This is to set up a string indicator component that displays in the bar when the current workspace has a window fullscreened. That way I can quickly tell if I have other windows hiding behind the fullscreened one. I added documentation for this one.

1add07e Fix: Re-add missing ignore_fullscreen_actions checks
This is pretty straight forward, there were a couple actions that had their ignore_fullscreen_actions checks missed during our recent config changes. This just re-adds them to make that config value work a bit better.

65c0159 Fix: #222 access denied saving grid
This was just fixing me being dumb trying to save the grid to a folder. When in debug mode it was trying to save to ./log rather than an actual file so I updated it to save to ./log/workspace.grid when running in debug mode. Release mode should be unaffected.

86b7f83 Feat: added workspace_to_workspace nogscript binding
This adds a nogscript workspace function to move an entire workspace to another workspace as long as the target workspace is empty. I find this useful as it's easier for me to hit my main workspaces 1-4 while leaving the rest of the workspaces as "backburner" workspaces. I kept it at only working if the target is empty to avoid any weirdness caused by combining workspaces; I figure that'd be something much more complex and not user-friendly.

b076b3f Feat: updated deadlock logging to log all locked threads' backtraces
While working on all this I kept running into deadlocks and noticed that the deadlock detection just spits out the backtrace of one of the stacks that is locked. I updated this to show all threads that are deadlocked. Which helped me with...

UPDATED BELOW Feb 03

d5f286a Fix: Prevent deadlocks when updating config values
While working on this pullrequest I kept running into deadlocks with the keybindings and I isolated them to two scenarios. This commit is just to prevent the deadlocks caused by the first scenario.

Both happen during hot-reloading. To re-create, try toggling the app_bar & taskbar repeatedly at random intervals.
Deadlock A (fixed in this commit):
hot_reload::update_config locks state and then calls KbManager.get_mode which attempts to lock "inner"
bottom loop of KbManager.start locks inner then tries to lock state
These two lock each other. I resolved this one by dropping the "inner" keyboard object in the bottom loop of KbManager once it's no longer needed.
Deadlock B (not fixed):
The other one is a little bit weirder but involves the Windows SendMessageA function. This happens when trying to close the app_bar; it calls SendMessageA on the app_bar window which "does not return until the window procedure has processed the message." Which, wouldn't be a big deal but...
What I've seen happen is that closing the app_bar locks the state, then it trigger this SendMessageA which fires off a window close event. Meanwhile, a separate thread is attempting to draw the app_bar and is attempting to lock the state repeatedly (WindowEvent::Draw in twm/src/bar/create.rs). So, it deadlocks with the state already locked in the SendMessageA call and the handler waiting on the Draw event to finish before handling the SendMessageA's close event and the Draw event waiting on the state to be unlocked. I was able to prevent this deadlock by using PostMessageA instead which queues the request rather than waiting on it.
Unfortunately, while using it throughout the day I noticed this introduced flashing artifact of the components in the app_bar and occasionally the app_bars would close. I'm not 100% sure why but once I reverted this portion of the commit those bugs disappeared.

44362f3 Feat: Updated documentation
Just updated the one doc line for workspace_to_workspace and removed a debug I left in.

cd413f5 Formatting
just running format on everything.

[X] Add a move workspace to another workspace, i.e, moving all the tiles on workspace 3 to workspace 9
[X] Re-add missing ignore_fullscreen_actions checks
[X] Do something about #222

Going to change this from draft and mark it as "RDY." Still open to suggestions but I think this is about as much as I'll add to this pull request.

@ramirezmike the PR is still a draft.