My team was encountering a problem with the Snowflake Connector that caused EasyMorph Server 5.1.1 to stop unexpectedly. When we upgraded to EasyMorph 5.1.2, in hope that this problem may have been corrected, we found a different log message that I believe may be a separate issue. When EasyMorph Server 5.1.2 quit unexpectedly (presumably from the Snowflake Connector problem) we found this error in EasyMorphServer.log and EasyMorphServerDebug.log:
Could not load file or assembly ‘log4net, Version=2.0.8.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Admittedly, I know little about how these assemblies are configured, but I did notice that log4net is referenced in EasyMorph Server 5.1.1’s Morph.Server.WebConsole.deps.json and it is not referenced in EasyMorph Server 5.1.2’s version of that same file.
The error message we expected to find in the log for the Snowflake Connector problem always look like the following:
02/17/2022 11:00:04 PM 002264 ERROR Unhandled exception System.AggregateException: One or more errors occurred. —> System.AggregateException: One or more errors occurred. —> Snowflake.Data.Client.SnowflakeDbException: Your session has expired. Please login again.
02/17/2022 11:00:04 PM 002265 ERROR at Snowflake.Data.Core.SFStatement.Cancel()
02/17/2022 11:00:04 PM 002266 ERROR at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
02/17/2022 11:00:04 PM 002267 ERROR at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
02/17/2022 11:00:04 PM 002268 ERROR at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
02/17/2022 11:00:04 PM 002269 ERROR at System.Threading.CancellationCallbackInfo.ExecuteCallback()
02/17/2022 11:00:04 PM 002270 ERROR at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002271 ERROR — End of inner exception stack trace —
02/17/2022 11:00:04 PM 002272 ERROR at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002273 ERROR at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002274 ERROR at System.Threading.CancellationTokenSource.LinkedTokenCancelDelegate(Object source)
02/17/2022 11:00:04 PM 002275 ERROR at System.Threading.CancellationCallbackInfo.ExecuteCallback()
02/17/2022 11:00:04 PM 002276 ERROR at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002277 ERROR — End of inner exception stack trace —
02/17/2022 11:00:04 PM 002278 ERROR at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002279 ERROR at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002280 ERROR at System.Threading.CancellationTokenSource.TimerCallbackLogic(Object obj)
02/17/2022 11:00:04 PM 002281 ERROR at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
02/17/2022 11:00:04 PM 002282 ERROR at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
02/17/2022 11:00:04 PM 002283 ERROR at System.Threading.TimerQueueTimer.CallCallback()
02/17/2022 11:00:04 PM 002284 ERROR at System.Threading.TimerQueueTimer.Fire()
02/17/2022 11:00:04 PM 002285 ERROR at System.Threading.TimerQueue.FireNextTimers()
02/17/2022 11:00:04 PM 002286 ERROR —> (Inner Exception #0) System.AggregateException: One or more errors occurred. —> Snowflake.Data.Client.SnowflakeDbException: Your session has expired. Please login again.
02/17/2022 11:00:04 PM 002287 ERROR at Snowflake.Data.Core.SFStatement.Cancel()
02/17/2022 11:00:04 PM 002288 ERROR at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
02/17/2022 11:00:04 PM 002289 ERROR at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
02/17/2022 11:00:04 PM 002290 ERROR at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
02/17/2022 11:00:04 PM 002291 ERROR at System.Threading.CancellationCallbackInfo.ExecuteCallback()
02/17/2022 11:00:04 PM 002292 ERROR at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002293 ERROR — End of inner exception stack trace —
02/17/2022 11:00:04 PM 002294 ERROR at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002295 ERROR at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002296 ERROR at System.Threading.CancellationTokenSource.LinkedTokenCancelDelegate(Object source)
02/17/2022 11:00:04 PM 002297 ERROR at System.Threading.CancellationCallbackInfo.ExecuteCallback()
02/17/2022 11:00:04 PM 002298 ERROR at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException)
02/17/2022 11:00:04 PM 002299 ERROR —> (Inner Exception #0) Error: Your session has expired. Please login again. SqlState: , VendorCode: 390112, QueryId: <—
02/17/2022 11:00:04 PM 002300 ERROR <—
02/17/2022 11:00:04 PM 002301 ERROR
To be clear, I believe there are 2 problems here:
- logging issue in EasyMorph Server 5.1.2
- Snowflake Connector issue affecting EasyMorph Server 5.1.1 and 5.1.2 (and possibly others)
I believe the Snowflake Connector issue may be due to multiple tables in a single Morph connecting to Snowflake at same time. But, we are still doing research to narrow down the exact cause.