Unable to refresh the codebase information for package: '"Package Name"' ({Package GUID}. Could not access the package path. Access to path has been denied
search cancel

Unable to refresh the codebase information for package: '"Package Name"' ({Package GUID}. Could not access the package path. Access to path has been denied

book

Article ID: 251159

calendar_today

Updated On:

Products

IT Management Suite Client Management Suite

Issue/Introduction

The customer has a couple of packages that are failing to create their codebase when "NS.Package Refresh" scheduled task runs on the SMP Server. As well, package servers show a "retrying" status for those packages. 

The NS logs show entries like these ones:

Unable to refresh the codebase information for package: 'BDC' (374e1c49-4f58-4f5c-8d51-07a30f0d44ad)

Could not access the path for package: 'BDC' (374e1c49-4f58-4f5c-8d51-07a30f0d44ad), path=\\SMPserver.example.com\NSCap\bin\Deployment\BDC
   [System.UnauthorizedAccessException @ Altiris.NS.StandardItems]
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0()
   at Altiris.NS.StandardItems.SoftwareDelivery.AccPackageAreaExtensions.Execute(IAccPackageArea area, Action action)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.DistributionPointsPackageArea.Enter(PackageItem pkgItem, Boolean snapshotOnly)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.ManageDistributionPoints(PackageItem pkgItem, Boolean snapshotOnly, ICollection`1 agentGuids)
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageItem.UpdateDistributionPoints()
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageItem.OnSchedule(String identifier)

Access to path '\\SMPserver.example.com\NSCap\bin\Deployment\BDC' has been denied.
   [System.UnauthorizedAccessException @ Altiris.Common]
   at Altiris.Common.IO.LongPathDirectory.Exists(String path)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0()

Exception logged from: 
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageItem.OnSchedule(String)
   at Altiris.NS.Scheduling.Schedule.Execute(Altiris.Profiling.CodeProfiling.CodeProfiler, System.Guid)
   at Altiris.NS.Scheduling.Schedule.Execute(Altiris.NS.Security.SecurityContext, System.Guid)
   at Altiris.NS.Security.SecurityContext.ExecuteAsOwner(System.Collections.Generic.ICollection<System.Guid>, System.Guid, System.Action<Altiris.NS.Security.SecurityContext,System.Guid>, Int32, String, String)
   at Altiris.NS.Scheduling.Schedule.OnSchedule(String)
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageRefreshSchedule.OnSchedule(String)
   at Altiris.NS.Scheduling.ScheduleService.ProcessScheduleImpl(String, Altiris.Profiling.CodeProfiling.CodeProfiler, Altiris.NS.Security.SecurityContext, System.Guid)
   at Altiris.NS.Scheduling.ScheduleService+<>c__DisplayClass0_1.<ProcessSchedule>b__0(Altiris.NS.Security.SecurityContext)
   at Altiris.NS.Security.SecurityContext+<>c__DisplayClass46_0.<ExecuteAsOwner>b__1(Altiris.NS.Security.SecurityContext)
   at Altiris.NS.Security.SecurityContext.ExecuteAs<T,TK>(Altiris.NS.Security.EExecuteAs, TK, System.Func<TK,Altiris.NS.Security.SecurityContext>, System.Func<Altiris.NS.Security.SecurityContext,T>)
   at Altiris.NS.Scheduling.ScheduleService.ProcessSchedule(String)
   at Altiris.NS.Scheduling.ScheduleService.ProcessScheduleWithCleanup(String, Boolean)
   at Altiris.Diagnostics.RemoteControl.ScheduleServiceProxy.ProcessScheduleImpl(String, Boolean)
   at Altiris.Diagnostics.RemoteControl.ScheduleServiceProxy.ProcessScheduleThreadProc(Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at Altiris.Diagnostics.RemoteControl.ScheduleServiceProxy.ProcessSchedule(String, Boolean)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr, Object[], Object, Object[]&)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
   at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
   at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
   at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[])
   at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage&)
   at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage&, System.Runtime.Remoting.Channels.ITransportHeaders&, System.IO.Stream&)
   at System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage&, System.Runtime.Remoting.Channels.ITransportHeaders&, System.IO.Stream&)
   at System.Runtime.Remoting.MetadataServices.SdlChannelSink.ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage&, System.Runtime.Remoting.Channels.ITransportHeaders&, System.IO.Stream&)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object)
   at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
   at System.Runtime.Remoting.Channels.SocketHandler.BeginReadMessageCallback(IAsyncResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Net.ContextAwareResult.Complete(IntPtr)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object, IntPtr)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

User [example\AltirisSrv], Auth [example\AltirisSrv], AppDomain [AeXSVC.exe]

-----------------------------------------------------------------------------------------------------
Date: 9/29/2022 3:14:34 PM, Tick Count: 466710953 (5.09:38:30.9530000), Size: 6.68 KB
Process: AeXSvc (7264), Thread ID: 73, Module: Altiris.NS.StandardItems.dll
Priority: 1, Source: Altiris.NS.StandardItems.SoftwareDelivery.PackageItem.OnSchedule

 

Could not access the path for package: 'BDC' (374e1c49-4f58-4f5c-8d51-07a30f0d44ad), path=\\SMPserver.example.com\NSCap\bin\Deployment\BDC
   [System.UnauthorizedAccessException @ ]

Access to path '\\SMPserver.example.com\NSCap\bin\Deployment\BDC' has been denied.
   [System.UnauthorizedAccessException @ Altiris.Common]
   at Altiris.Common.IO.LongPathDirectory.Exists(String path)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0()

Exception logged from: 
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport+<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0()
   at Altiris.NS.StandardItems.SoftwareDelivery.AccPackageAreaExtensions.Execute(Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport+IAccPackageArea, Action)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport+DistributionPointsPackageArea.Enter(Altiris.NS.StandardItems.SoftwareDelivery.PackageItem, Boolean)
   at Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport.ManageDistributionPoints(Altiris.NS.StandardItems.SoftwareDelivery.PackageItem, Boolean, System.Collections.Generic.ICollection<System.Guid>)
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageItem.UpdateDistributionPoints()
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageItem.OnSchedule(String)
   at Altiris.NS.Scheduling.Schedule.Execute(Altiris.Profiling.CodeProfiling.CodeProfiler, System.Guid)
   at Altiris.NS.Scheduling.Schedule.Execute(Altiris.NS.Security.SecurityContext, System.Guid)
   at Altiris.NS.Security.SecurityContext.ExecuteAsOwner(System.Collections.Generic.ICollection<System.Guid>, System.Guid, System.Action<Altiris.NS.Security.SecurityContext,System.Guid>, Int32, String, String)
   at Altiris.NS.Scheduling.Schedule.OnSchedule(String)
   at Altiris.NS.StandardItems.SoftwareDelivery.PackageRefreshSchedule.OnSchedule(String)
   at Altiris.NS.Scheduling.ScheduleService.ProcessScheduleImpl(String, Altiris.Profiling.CodeProfiling.CodeProfiler, Altiris.NS.Security.SecurityContext, System.Guid)
   at Altiris.NS.Scheduling.ScheduleService+<>c__DisplayClass0_1.<ProcessSchedule>b__0(Altiris.NS.Security.SecurityContext)
   at Altiris.NS.Security.SecurityContext+<>c__DisplayClass46_0.<ExecuteAsOwner>b__1(Altiris.NS.Security.SecurityContext)
   at Altiris.NS.Security.SecurityContext.ExecuteAs<T,TK>(Altiris.NS.Security.EExecuteAs, TK, System.Func<TK,Altiris.NS.Security.SecurityContext>, System.Func<Altiris.NS.Security.SecurityContext,T>)
   at Altiris.NS.Scheduling.ScheduleService.ProcessSchedule(String)
   at Altiris.NS.Scheduling.ScheduleService.ProcessScheduleWithCleanup(String, Boolean)
   at Altiris.Diagnostics.RemoteControl.ScheduleServiceProxy.ProcessScheduleImpl(String, Boolean)
   at Altiris.Diagnostics.RemoteControl.ScheduleServiceProxy.ProcessScheduleThreadProc(Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at Altiris.Diagnostics.RemoteControl.ScheduleServiceProxy.ProcessSchedule(String, Boolean)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr, Object[], Object, Object[]&)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
   at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
   at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage)
   at System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(Object[])
   at System.Runtime.Remoting.Channels.ChannelServices.DispatchMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage&)
   at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage&, System.Runtime.Remoting.Channels.ITransportHeaders&, System.IO.Stream&)
   at System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage&, System.Runtime.Remoting.Channels.ITransportHeaders&, System.IO.Stream&)
   at System.Runtime.Remoting.MetadataServices.SdlChannelSink.ProcessMessage(System.Runtime.Remoting.Channels.IServerChannelSinkStack, System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Channels.ITransportHeaders, System.IO.Stream, System.Runtime.Remoting.Messaging.IMessage&, System.Runtime.Remoting.Channels.ITransportHeaders&, System.IO.Stream&)
   at System.Runtime.Remoting.Channels.Tcp.TcpServerTransportSink.ServiceRequest(Object)
   at System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
   at System.Runtime.Remoting.Channels.SocketHandler.BeginReadMessageCallback(IAsyncResult)
   at System.Net.LazyAsyncResult.Complete(IntPtr)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, Object)
   at System.Net.ContextAwareResult.Complete(IntPtr)
   at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object, IntPtr)
   at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

User [example\AltirisSrv], Auth [example\AltirisSrv], AppDomain [AeXSVC.exe]

-----------------------------------------------------------------------------------------------------
Date: 9/29/2022 3:14:34 PM, Tick Count: 466710953 (5.09:38:30.9530000), Size: 6.62 KB
Process: AeXSvc (7264), Thread ID: 73, Module: Altiris.NS.StandardItems.dll
Priority: 2, Source: Altiris.NS.StandardItems.SoftwareDelivery.SWDSupport+<>c__DisplayClass24_0.<ValidatePackageForMdp>b__0

Environment

ITMS 8.5, 8.6

Cause

The account in use didn't have rights to the share mentioned in the error message.

Other reasons to explore are that the actual package file doesn't exist anymore or the location specified is no longer available.

Resolution

The NS log entry related to this issue should show what folder is the one that can't be accessed. For example:

Unable to refresh the codebase information for package: 'BDC' (374e1c49-4f58-4f5c-8d51-07a30f0d44ad)

Could not access the path for package: 'BDC' (374e1c49-4f58-4f5c-8d51-07a30f0d44ad), path=\\SMPserver.domain.com\NSCap\bin\Deployment\BDC
 
As well should mention the reason why can't access the package. In this example: 

Access to path '\\SMPserver.example.com\NSCap\bin\Deployment\BDC' has been denied.

Usually a reference of what account is the one having an issue accessing the mentioned folder or path should be present at the bottom of the log entry. Example:  

User [example\AltirisSrv], Auth [example\AltirisSrv], AppDomain [AeXSVC.exe]

 

Try the following:

  1. Navigate to the mentioned folder and make sure:
    • That the account in use has the proper rights. At least:
      Read & execute
      List folder contents
      Read
      If not, add the rights or make sure that the account belongs to one of the groups granted access to the folder.
    • That the folder containing the package files actually exists. If it doesn't exist, you can recreate the package location or just delete the package from the SMP Console (under Manage>All Resources>Default>Package)
    • That the actual path is pointing to the right server name (in case this package was migrated from a previous SMP server it may have the old SMP server name as its reference)

Additional Information

"Unable to refresh the codebase information for package: '"Package Name"' ({Package GUID} Could not access the package path." (KB 163729)