Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

TimerRepro throwing in C# Canary #2268

Closed
tevoinea opened this issue Aug 18, 2022 · 0 comments · Fixed by #2269
Closed

TimerRepro throwing in C# Canary #2268

tevoinea opened this issue Aug 18, 2022 · 0 comments · Fixed by #2269
Labels
bug Something isn't working

Comments

@tevoinea
Copy link
Member

tevoinea commented Aug 18, 2022

Settings and ProtectedSettings are required properties of VM Extensions but not all of our extension configurations need to set additional settings.

Result: Failure
Exception: System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'Settings required for VirtualMachineExtension'))
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'Settings required for VirtualMachineExtension')
   at Microsoft.OneFuzz.Service.ObjectExtention.EnsureNotNull[T](T thisObject, String message) in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/onefuzzlib/Utils.cs:line 6
   at Microsoft.OneFuzz.Service.VMExtensionWrapper.GetAsVirtualMachineExtension() in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/onefuzzlib/VmExtensionWrapper.cs:line 25
   at Microsoft.OneFuzz.Service.Extensions.ReproExtensions(AzureLocation region, Os reproOs, Guid reproId, ReproConfig reproConfig, Container setupContainer) in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/onefuzzlib/Extension.cs:line 444
   at Microsoft.OneFuzz.Service.ReproOperations.ExtensionsLaunch(Repro repro) in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/onefuzzlib/ReproOperations.cs:line 180
   at ApiService.OneFuzzLib.Orm.StatefulOrm`3.ProcessStateUpdate(T entity) in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/onefuzzlib/orm/Orm.cs:line 221
   at ApiService.OneFuzzLib.Orm.StatefulOrm`3.ProcessStateUpdates(T entity, Int32 MaxUpdates)
   at Microsoft.OneFuzz.Service.Functions.TimerRepro.Run(TimerInfo myTimer) in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/Functions/TimerRepro.cs:line 31
   at Microsoft.OneFuzz.Service.Functions.TimerRepro.Run(TimerInfo myTimer) in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/Functions/TimerRepro.cs:line 25
   at Microsoft.Azure.Functions.Worker.Invocation.VoidTaskMethodInvoker`2.InvokeAsync(TReflected instance, Object[] arguments) in D:\a\1\s\src\DotNetWorker.Core\Invocation\VoidTaskMethodInvoker.cs:line 24
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.Azure.Functions.Worker.Invocation.DefaultFunctionInvoker`2.<>c.<InvokeAsync>b__6_0(Task`1 t) in D:\a\1\s\src\DotNetWorker.Core\Invocation\DefaultFunctionInvoker.cs:line 32
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.Azure.Functions.Worker.Invocation.DefaultFunctionExecutor.ExecuteAsync(FunctionContext context) in D:\a\1\s\src\DotNetWorker.Core\Invocation\DefaultFunctionExecutor.cs:line 45
   at Microsoft.Azure.Functions.Worker.OutputBindings.OutputBindingsMiddleware.Invoke(FunctionContext context, FunctionExecutionDelegate next) in D:\a\1\s\src\DotNetWorker.Core\OutputBindings\OutputBindingsMiddleware.cs:line 16
   at Microsoft.OneFuzz.Service.Program.LoggingMiddleware.Invoke(FunctionContext context, FunctionExecutionDelegate next) in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/Program.cs:line 36
   at Microsoft.Azure.Functions.Worker.GrpcWorker.InvocationRequestHandlerAsync(InvocationRequest request, IFunctionsApplication application, IInvocationFeaturesFactory invocationFeaturesFactory, ObjectSerializer serializer, IOutputBindingsInfoProvider outputBindingsInfoProvider) in D:\a\1\s\src\DotNetWorker.Grpc\GrpcWorker.cs:line 167
Stack:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Microsoft.Azure.Functions.Worker.Invocation.DefaultFunctionInvoker`2.<>c.<InvokeAsync>b__6_0(Task`1 t) in D:\a\1\s\src\DotNetWorker.Core\Invocation\DefaultFunctionInvoker.cs:line 32
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.Azure.Functions.Worker.Invocation.DefaultFunctionExecutor.ExecuteAsync(FunctionContext context) in D:\a\1\s\src\DotNetWorker.Core\Invocation\DefaultFunctionExecutor.cs:line 45
   at Microsoft.Azure.Functions.Worker.OutputBindings.OutputBindingsMiddleware.Invoke(FunctionContext context, FunctionExecutionDelegate next) in D:\a\1\s\src\DotNetWorker.Core\OutputBindings\OutputBindingsMiddleware.cs:line 16
   at Microsoft.OneFuzz.Service.Program.LoggingMiddleware.Invoke(FunctionContext context, FunctionExecutionDelegate next) in /home/runner/work/onefuzz/onefuzz/src/ApiService/ApiService/Program.cs:line 36
   at Microsoft.Azure.Functions.Worker.GrpcWorker.InvocationRequestHandlerAsync(InvocationRequest request, IFunctionsApplication application, IInvocationFeaturesFactory invocationFeaturesFactory, ObjectSerializer serializer, IOutputBindingsInfoProvider outputBindingsInfoProvider) in D:\a\1\s\src\DotNetWorker.Grpc\GrpcWorker.cs:line 167

AB#40977461

@tevoinea tevoinea added the bug Something isn't working label Aug 18, 2022
@ghost ghost added the Needs: triage label Aug 18, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants