Deployment Solution

 View Only

DS 7.5 SP1 HFxx Issue Installing DSPS Component on a Site Server "Microsoft VBScript Runtime Error: Path Not Found" 

Jan 09, 2015 10:09 AM

An issue has been identified in some environments when installing the DSPS component on a site server. Basically the installation of this component will fail and even if you try to install the component manually ( see below how to install the component manually ), you will get an error saying "Microsoft VBScript runtime error:path not found"

How to manually install DSPS component

-----------------------------------------------------------

 - On your Site server browse to this location  "C:\Program Files\Altiris\Altiris Agent\Package Delivery\{76D113DE-16D4-4A31-826F-A4DACCEAC8AB}\cache"

 - Under that location you will find the .bat file Install_DS_PS_Component.bat

 - Open a command prompt window and drag and drop the Install_DS_PS_Component.bat file

 - If you are experiencing this issue you shoud get the following error "Microsoft VBScript runtime error:path not found"

-------------------------------------------------------------------------------------------------------------------------------------- 

After looking at the VBS that we use to install that component. See below

--------------------------------------------------------------------------------------

objFile.WriteLine("Creating Packages folder if not exists at path " & strSourcePath & "\Deployment")
if Not objFileSystem.FolderExists(strSourcePath + "\Deployment\PSComponent") then
objFileSystem.CreateFolder(strSourcePath + "\Deployment\PSComponent")
objFile.WriteLine("Created Packages folder")
End if

strPSComponentPath = strSourcePath + "\Deployment\PSComponent"

strSourcePath = strPSDir + "\Agents\SoftwareManagement\Software Delivery\{76D113DE-16D4-4A31-826F-A4DACCEAC8AB}\cache\web"

--------------------------------------------------------------------------------------------------------------------------------------

We see that the follwing location is where the needed files to install DSPS compenent are "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{76D113DE-16D4-4A31-826F-A4DACCEAC8AB}cache\web", but if we go to that location we can see that the folder "Cache" and "web" are not present there, that's why the install script is failing. 

So, in order to fix this, we need to go to "C:\Program Files\Altiris\Altiris Agent\Package Delivery\{76D113DE-16D4-4A31-826F-A4DACCEAC8AB}" and copy the cache folder over to "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery\{76D113DE-16D4-4A31-826F-A4DACCEAC8AB}

After this we should be able to install the DSPS component sucessfully.

 

Best regards,

Ruben

Statistics
0 Favorited
3 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Aug 04, 2015 09:51 AM

Hi Shawn,

 

Did you get solution to this error if VBScript runtime error: File already exists".. as i am facing the same issue .

 

Thanks

Jan 19, 2015 05:26 AM

This sound quite wierd to me. The thing is that since the GUID is the same - then the package is the same for both SMF and PS, and they both should download it the same way. If PS has downloaded this package to own "Cache" folder below GUID folder, then SMF should do the same way, since they both are using the same core engine of "Package Delivery".

For other packages - it depends, since if package on NS has the "Package Destination Location" defined to some custom path, then the package binaries (the "Cache" folder with content) will be created at this defined location, and default location will contain only "codebases" (usual 3 xml files).

 

Jan 19, 2015 04:46 AM

Hi Roman,

 Thank you so much for sharing this valuable information with us, this will help everyone to better understand how the PS works, and it is a great help for troubleshooting as well.

Regarding this info.

"So if you don't have the folders "Cache" and "web" under "Software Delivery" folder, that means the SMF did not download the package yet by some reason. In this case you could check the SMA logs to see the reason and/or press "Download" link on the left side menu when package is selected, in order it to try downloading it once again"

 The interesting thing is that if you check on the SMA under Software delivery tap, you can see that the package has been downloaded, although when you check the "software delivery" folder you only have the usual 3 xml files but the cache folder is missing.

 

 We have noticed this is also happening with some other packages.

P.S. we are seeing the behavior in 7.5 SP1 HF5    

 

Ruben

Best regards,

Jan 19, 2015 02:00 AM

Hi guys!

I don't have any knowledge regarding the DSPS, but here are some clarification to your comments regarding packages and the Package Server:

The path "C:\Program Files\Altiris\Altiris Agent\Package Delivery" is the default package repository for Package Server.

The path "C:\Program Files\Altiris\Altiris Agent\Agents\SoftwareManagement\Software Delivery" is the default package repository for Software Management Framework (and SM Agent).

So if package come to a Package Server, then it goes to "Package Delivery" folder. If package come through the upgrade/roll-out/MSWD/Quick Delivery policy then it goes to SMF agent and it is placed to the "Software Delivery" folder.

So if you don't have the folders "Cache" and "web" under "Software Delivery" folder, that means the SMF did not download the package yet by some reason. In this case you could check the SMA logs to see the reason and/or press "Download" link on the left side menu when package is selected, in order it to try downloading it once again.

Copying the package by hands is kind of a "hack" workaround.

Regarding the "PS" virtual directory. The PS virtual directory is the pure Package Servers directory and managed by PS codebase. If it is not created, then there could be several reasons:

1. Most probably the PS is not ordered to provide HTTP(S) codebases (pure UNC PS server). In that case go to NS and check "Package Service settings" policy and check that "Publish IIS hosted codebases" is on.

2. Could be that PS do not have enough IIS roles installed, in order to work with IIS. Go to PS and check the logs, whether there are error or warning message like: "...IIS not installed..." or "...virtual directories..." and see what the problem is. If some roles are missing then they will be listed there in the message. Just install missing roles/features and restart the SMA.

3. At the end, the less resource consuming approach to "reinstall" the Package Server (if you don't want to lose PS packages locally and affect the NS, is just to run PS installer with "/reinstall" flag. This will replace the missing binaries etc, just like the MSI installer "Repair" option. Then you could restart SMA. The PS, anyway, will try to check and create (if missing) all of it's Virtual Directories, on each SMA restart.

Hope this helps.

Jan 16, 2015 12:01 PM

Excellent information Ruben, I really appreciated it.

Jan 16, 2015 04:49 AM

Hello Shawn, 

I have noticed 3 different scenarios in regard to DSPS, I will try to explain it.

1- The DSPS is not install at all, so you need to install it and then you experience the issue I described in the thread because the "Cache" and "web" are missing from Software delivery\{76D113DE-16D4-4A31-826F-A4DACCEAC8AB}.

Solution: The steps in my first post

 

2- ( I think this is the one you are experiencing) the DSPS component is installed, but you are missing the "Deployment" virtual directory in IIS ( This virtual directory should be under the PS virtual directory )

Solution: On your site server go to C:\Program Files\Altiris\Altiris Agent\Package Delivery\{76D113DE-16D4-4A31-826F-A4DACCEAC8AB}\cache. In this location you should have a .bat file named "Create_DeploymentDir.bat", run this file from a elevated command prompt and it will create the "Deployment" virtual directory in IIS.

 

3- This is an scenario I recently saw, and it is a bit trickier, PS is installed and DSPS is installed too, but you are missing de "PS" virtual directory in IIS, therefore the "Deployment" virtual directory in IIS won't be there either as we depend on the PS virtual directory to create the deployment virtual directory.

Solution: I am still researching this, but I would suggest to do the following to uninstall DSPS and PS, then reinstall PS and make sure PS virtual directory is in IIS, and from here install DSPS and use the other solutions if you still face any of the other scenarios.

I understand this solution is not very convenient in some situations, because by removing the PS will force the replication of all your packages over that Site server again, so keep this in mind.

 

I hope I explained myself clearly.

 

P.S - Just one clarification, the information above only applies to Site Servers, it does not apply to the Notification Server, as on the Notification Server we do not install the PS and the IIS virtual directories structure is different.

 

 

Best regards,

Ruben  

Jan 15, 2015 04:09 PM

Greetings Ruben,

I followed the instructions in this post because I did not have the  Deployment app installed under the IIS folder on a site server.  I ran the Install_DS_PS_Component.bat file as Admin and received a "Microsoft VBScript runtime error: File already exists" message.   The DS app still does not install.

Any insight on the issue.

 

Thanks

 

Jan 13, 2015 10:11 AM

Hi,

 

 We have noticed that this might be happening with some other Agents\Plugins as well ( Deployment task server handler), we are still investigating this though.

 

We will confirm whether this is impacting more Agent\Plugins ASAP.

 

Best regards

Ruben

Related Entries and Links

No Related Resource entered.