Package Server creating Package Server Delivery folder at wrong location
search cancel

Package Server creating Package Server Delivery folder at wrong location

book

Article ID: 176697

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

I am having problems setting up a child NS to be a Package Server to a parent NS for Package Replication.

It was working previously, all the packages were on the machine, and I was about to install Package Replication, but I discovered that the Altiris agent folder was installed to the wrong location. It was installed to "Program File\Altiris" instead of "Program Files\Altiris".

I did a typo when I pushed the Altiris agent to the Child NS from the parent. (I had to reinstall the Agent before the package replication because the agent was originally on the C: drive where there was only 25Gb of space. I removed it from C: and installed it to the G: drive in order to have plenty of space for packages.)

 I tried to fix this but I eventually had to just wipe the agent and reinstall. I kept a copy of the package delivery folders so it wouldn't have to download all of the packages again.

So now the Altiris Agent is installed and working, and Inventory and Software Delivery and Task Synchronization is installed and working OK, but the Package Server virtual directories in IIS are still pointing to Program File\Altiris instead of Program Files\Altiris.

If  Program File\Altiris is deleted, the folder structure is automatically recreated and packages begin to download to Program File\Altiris\Package Delivery.

Environment

NS 8.x

Cause

In each of the Package Delivery\{GUID.EN_US} folders is a snapshot XML file. This file contains the path to where the package will be installed.  Since the Package Delivery folder was copied from the Program File folder in order to pre stage the packages, it didn't pull down a new snapshot and has retained these settings containing the old path.

Resolution

The Altiris Agent looks at this registry location HKLM\SOFTWARE\Altiris\Altiris Agent\Plugin Objects\Agents\Package
Server\Install Path to determine that the altiris package server agent is installed.

The Altiris\PS virtual directory is created based upon the HKLM\SOFTWARE\Altiris\Altiris Agent\Package Server\PackageServerBaseDir path.

The paths of the virtual directories under the PS folder seem to be based upon the location that the aexnscpackageserver.dll is registered in. If the aexnscpackageserver.dll is registered in the program files\altiris\altiris agent folder then the virtual directories point to the program files\altiris\altiris agent\Package Delivery folder. If the aexnscpackageserver.dll is registered in the program file\altiris\altiris agent folder then the virtual directories point to the program file\altiris\altiris agent\Package Delivery folder.  


1. Stop the Altiris Agent service on the package server
2. Delete the package and snapshot XML files in each of the Package Delivery\{GUID.EN_US} folders.
3. Make sure the HKLM\SOFTWARE\Altiris\Altiris Agent\Package Server\PackageServerBaseDir is pointing to the correct location. i.e. "G:\Program Files\Altiris\Altiris Agent"
4. Make sure the HKLM\SOFTWARE\Altiris\Altiris Agent\Plugin Objects\Agents\Package Server\Install Path is pointing to the correct location. i.e "G:\Program Files\Altiris\Altiris Agent"
5. Run Regsvr32 to reregister the G:\program files\altiris\altiris agent\aexnscpackageserver.dll file.
6. Open IIS Manager and delete the Altiris\PS virtual directory
7. Restart the Altiris Agent service. This will recreate the Altiris\PS virtual directory and run a client config request
8.. Stop and restart the IIS default web site.
9. Open the Altiris Agent UI.
10. On the Package Server tab click the Refresh Packages. The IIS virtual directories should come back in pointing to the correct location.