Open nexitpl opened 1 year ago
Logs from Agent on endpoint (Windows event log): Application Source: Remotely_Agent Data: 21.09.2023 10:34:14 Category: Remotely.Agent.Services.ScriptExecutor EventId: 0
Error while running command from terminal.
Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Cannot find specific file.
File name: 'Microsoft.Management.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at System.Management.Automation.Runspaces.PSSnapInHelpers.GetAssemblyTypes(Assembly assembly, String name)
at System.Management.Automation.Runspaces.PSSnapInHelpers.AnalyzeModuleAssemblyWithReflection(Assembly assembly, String name, PSSnapInInfo psSnapInInfo, PSModuleInfo moduleInfo, String helpFile, Dictionary2& cmdlets, Dictionary
2& aliases, Dictionary2& providers) at System.Management.Automation.Runspaces.PSSnapInHelpers.AnalyzePSSnapInAssembly(Assembly assembly, String name, PSSnapInInfo psSnapInInfo, PSModuleInfo moduleInfo, Dictionary
2& cmdlets, Dictionary2& aliases, Dictionary
2& providers, String& helpFile)
at System.Management.Automation.Runspaces.InitialSessionState.ImportPSSnapIn(PSSnapInInfo psSnapInInfo, PSSnapInException& warning)
at System.Management.Automation.Runspaces.InitialSessionState.CreateDefault()
at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(PSHost host)
at System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace()
at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection1 input, PSDataCollection
1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection1 input, PSDataCollection
1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TOutput](IEnumerable input, PSDataCollection1 output, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke(IEnumerable input, PSInvocationSettings settings) at System.Management.Automation.PowerShell.Invoke() at Remotely.Agent.Services.PsCoreShell..ctor(IConfigService configService, ILogger
1 logger) in C:\repos\Remotely\Agent\Services\PsCoreShell.cs:line 50
at InvokeStub_PsCoreShell..ctor(Object, Object, IntPtr*)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass2_0.
XML:
Hello anyone there?
Docker
Describe the bug After recent upgrade to Version: 2023.09.11.1010 I can't use terminal to send commands to my endpoints, tried on different endpoints and I always get "Error executing command" and "There was an error executing the command. It has been logged on the client device." Windows 10+ Devices with upgraded agent.
To Reproduce Steps to reproduce the behavior:
Remotely Version Server Version: 2023.09.11.1010 Agent Version: 2023.09.11.1010
Logs: [10:10:28 INF] Command executed by X. Shell: PSCore. Command: ipconfig. Devices: 3f54a308-5426-4055-8de3-6b5c57fc49a7 {SourceContext="Remotely.Server.Hubs.CircuitConnection", TransportConnectionId="NBtBYsP3rhxSCSSKM-tmAg", RequestId="0HMTQH7LSJ2MU:00000001", RequestPath="/_blazor", ConnectionId="0HMTQH7LSJ2MU", ThreadId=25}
Screenshots
Please Help :)