-
Notifications
You must be signed in to change notification settings - Fork 91
A mismatch between Designer and Gitea is probably causing LibGit2SharpException #18350
Copy link
Copy link
Open
Labels
kind/bugUsed when there is a defect / something is not working as it should.Used when there is a defect / something is not working as it should.squad/kjøringIssues that belongs to the named squad.Issues that belongs to the named squad.
Description
A mismatch between Designer and Gitea is probably causing a LibGit2SharpException when running studio locally.
The exception was thrown when trying to make changes to the new code lists in the organization library (only visible with feature flag "newCodeLists" set in studio http://studio.localhost/info/flags).
The problem disapeared after removing local changes in ttd-content.

Stack trace:
Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the request.
LibGit2Sharp.LibGit2SharpException: remote authentication required but no callback set
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154
at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 172
at LibGit2Sharp.Core.Proxy.git_remote_fetch(RemoteHandle remote, IEnumerable`1 refSpecs, GitFetchOptions fetchOptions, String logMessage) in /_/LibGit2Sharp/Core/Proxy.cs:line 2290
at LibGit2Sharp.Commands.Fetch(Repository repository, String remote, IEnumerable`1 refspecs, FetchOptions options, String logMessage) in /_/LibGit2Sharp/Commands/Fetch.cs:line 79
at LibGit2Sharp.Commands.Pull(Repository repository, Signature merger, PullOptions options) in /_/LibGit2Sharp/Commands/Pull.cs:line 36
at Altinn.Studio.Designer.Services.Implementation.SourceControlService.<>c.<PullRemoteChanges>b__9_0(SourceControlService self, ValueTuple`2 ctx) in C:\Projects\altinn-studio\src\Designer\backend\src\Designer\Services\Implementation\SourceControlService.cs:line 141
at Altinn.Studio.Designer.Services.Implementation.SourceControlService.ExecuteWithTelemetry[TContext,TReturn](Activity activity, TContext context, Func`3 action) in C:\Projects\altinn-studio\src\Designer\backend\src\Designer\Services\Implementation\SourceControlService.cs:line 1491
at Altinn.Studio.Designer.Services.Implementation.SourceControlService.PullRemoteChanges(AltinnAuthenticatedRepoEditingContext authenticatedContext) in C:\Projects\altinn-studio\src\Designer\backend\src\Designer\Services\Implementation\SourceControlService.cs:line 115
at Altinn.Studio.Designer.Services.Implementation.Organisation.OrgLibraryService.UpdateSharedResourcesByPath(String org, String developer, String token, UpdateSharedResourceRequest request, CancellationToken cancellationToken) in C:\Projects\altinn-studio\src\Designer\backend\src\Designer\Services\Implementation\Organisation\OrgLibraryService.cs:line 139
at Altinn.Studio.Designer.Controllers.Organisation.OrgLibraryController.UpdateSharedResources(String org, UpdateSharedResourceRequest requestBody, CancellationToken cancellationToken) in C:\Projects\altinn-studio\src\Designer\backend\src\Designer\Controllers\Organisation\OrgLibraryController.cs:line 135
at lambda_method35(Closure, Object)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ExceptionContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Altinn.Studio.Designer.Middleware.UserRequestSynchronization.RequestSynchronizationMiddleware.InvokeAsync(HttpContext httpContext, IRequestSyncEvaluator`1 repoUserWideRequestSyncEvaluator, IRequestSyncEvaluator`1 orgWideRequestSyncEvaluator, ILockService synchronizationLockService) in C:\Projects\altinn-studio\src\Designer\backend\src\Designer\Middleware\UserRequestSynchronization\RequestSynchronizationMiddleware.cs:line 65
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Altinn.Studio.Designer.Middleware.DeveloperContextMiddleware.InvokeAsync(HttpContext httpContext, IDeveloperContextProvider developerContextProvider) in C:\Projects\altinn-studio\src\Designer\backend\src\Designer\Middleware\DeveloperContextMiddleware.cs:line 20
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugUsed when there is a defect / something is not working as it should.Used when there is a defect / something is not working as it should.squad/kjøringIssues that belongs to the named squad.Issues that belongs to the named squad.
Type
Projects
Status
No status
Status
⭐ Backlog