Error: "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

Error: "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

There are a couple of packages that are failing to create the codebase when the "NS.Package Refresh" scheduled task runs on the Symantec Management Platform (SMP) Server. Also, Package Servers show a "retrying" status for those packages. 

The NS logs include entries like these:

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

Could not access the path for package: 'BDC' (374e1c49-4f58-4f5c-8d51-07a30f0dxxx), 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-07a30f0dxxx), 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.x

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 no longer exists or the location specified is no longer available.

Resolution

The NS log entry related to this issue should show the folder path that can't be accessed, for example:

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

Could not access the path for package: 'BDC' (374e1c49-4f58-4f5c-8d51-07a30f0dxxx), path=\\SMPserver.domain.com\NSCap\bin\Deployment\BDC

It also should mention the reason why it can't access the package, like in this example: 

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

Usually a reference of the account being used is the one having an issue accessing the mentioned folder or path should be present at the bottom of the log entry. For 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, then add the rights or make sure that the account belongs to one of the groups granted access to the folder.
    • 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)
    • 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)