Debugging setup failures

While trying to fix my problem, I had to restart because there were some pending Windows Updates that needed to install. I’m pretty sure I restarted before and was still unable to install the new Plex Media Server, but for some reason, I was able to install it now. When 0.9.12.19 was successful, I decided to try 0.9.14.x and it was successful too.

Thanks for all the quick replies, but it appears my Plex issue has been resolved now!

@tmeyersstl said:
While trying to fix my problem, I had to restart because there were some pending Windows Updates that needed to install. I’m pretty sure I restarted before and was still unable to install the new Plex Media Server, but for some reason, I was able to install it now. When 0.9.12.19 was successful, I decided to try 0.9.14.x and it was successful too.

Thanks for all the quick replies, but it appears my Plex issue has been resolved now!

Thanks for the feedback. Normally pending restarts would give different symptom : stuck on initializing.

Anyway - glad the restart cleared the problem

I am having problems with updating the PMS. I have restarted, repaired .NET, attempted to repair PMS (same error), but I keep getting the same:

[092C:1104][2015-11-23T10:22:47]e000: Error 0x80070660: Failed to install MSI package.
[092C:1104][2015-11-23T10:22:47]e000: Error 0x80070660: Failed to execute MSI package.
[06A4:04DC][2015-11-23T10:22:47]e000: Error 0x80070660: Failed to configure per-machine MSI package.

I cannot uninstall PMS, I get the same error. Help!

@asrusch said:
I am having problems with updating the PMS. I have restarted, repaired .NET, attempted to repair PMS (same error), but I keep getting the same:

[092C:1104][2015-11-23T10:22:47]e000: Error 0x80070660: Failed to install MSI package.
[092C:1104][2015-11-23T10:22:47]e000: Error 0x80070660: Failed to execute MSI package.
[06A4:04DC][2015-11-23T10:22:47]e000: Error 0x80070660: Failed to configure per-machine MSI package.

I cannot uninstall PMS, I get the same error. Help!

could you find this related log file and attach it
C:\Users\Andy\AppData\Local\Temp\Plex Media Server_20151123102244_0_pms.log

was there any error prompt / dialogue box ?

what anti virus / anti malware / security / firewall software do you have running ?

and is this on windows 8.1 ?

Attached requested log file.

Attached screenshot of install window. This is same error if I try and uninstall or repair.

The log file link in the install window was attached to my original post.

Running Windows 10 and built in Windows Defender as AV. I tried turning ON windows firewall (as i normally have it off), but that did not fix the problem.

I checked the Program Cache directory and the folders seem to be there and permissions are OK.

@asrusch said:
Attached requested log file.

Attached screenshot of install window. This is same error if I try and uninstall or repair.

The log file link in the install window was attached to my original post.

Running Windows 10 and built in Windows Defender as AV. I tried turning ON windows firewall (as i normally have it off), but that did not fix the problem.

I checked the Program Cache directory and the folders seem to be there and permissions are OK.

it is suggesting that it is free disk space or permissions issues on the temp folder
The second log file shows

MSI (c) (2C:68) [10:22:47:783]: MainEngineThread is returning 1632

and error 1632 is defined as

ERROR_INSTALL_TEMP_UNWRITABLE	1632	The Temp folder is either full or inaccessible. Verify that the Temp folder exists and that you can write to it. 

how much free disk space is available?
what is the environment variable %temp% set to?

i would expect it to be C:\Users\Andy\AppData\Local\Temp\ as that is where the log files are going

124GB free on the C: drive. Yes, the %temp% environment variable is set to the AppData\Local\Temp directory.

My user has full control permissions on that directory.

I will try clearing out that folder and retrying install.

I changed my Temp environment var to another drive with TBs free and a brand new folder. Ran the install again with same error.

Since it can write the log files to both E:\Temp and my Appdata\Local\Temp…I am assuming the permissions are fine and there are no space issues. That’s why I’m posting on here!

I can’t even uninstall it and reinstall!

it is the same - there are a few reports on this on the web

the numbers preceding the error 1632 may also be error codes

MSI (s) (60:E8) [11:30:38:545]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287037 
MSI (s) (60:E8) [11:30:38:547]: SRSetRestorePoint skipped for this transaction.
MSI (s) (60:E8) [11:30:38:548]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3: 2 
MSI (s) (60:E8) [11:30:38:549]: Note: 1: 1336 2: 3 3: C:\WINDOWS\Installer\ 
MSI (s) (60:E8) [11:30:38:549]: MainEngineThread is returning 1632

looking up 1336 - it is defined as

1336 (0x538)   ERROR_INVALID_ACL : The access control list (ACL) structure is invalid.

have a read of this article and the linked pages and see if you can find issues in the areas that are discussed

https://social.msdn.microsoft.com/Forums/windows/en-US/a74561d1-f038-46dc-be47-0951d4992dc4/vs2013-installation-failed-the-temp-folder-is-on-a-drive-that-is-full-or-is-inaccessible?forum=vssetup

The linked kb https://support.microsoft.com/en-us/kb/811881 gives this info

Cause

The NTFS file system permissions for the Administrators group or the System account no longer exist for the %SystemRoot%\Installer folder.

Note This issue may also occur if you have Read permissions for the %SystemRoot% folder. This condition stops Setup from creating the Installer folder.

Resolution

To resolve this issue, reset the NTFS permissions for the %SystemRoot%\Installer folder to include both the Administrators group and the System account:

In Windows Explorer, right-click the %SystemRoot%\Installer folder, and then click Properties. 

Note The %SystemRoot%\Installer folder has hidden system attributes. To view the %SystemRoot%\Installer folder:
In Windows Explorer, on the Tools menu, click Folder Options, and then click the View tab.

Under Advance Settings, and then under Hidden Files and Folders, select Show hidden files and folders.
Click to clear the Hide protected operating system files check box, and then click OK.

In the %SystemRoot%\Installer Properties dialog box, click the Security tab. Verify the following permissions:

Administrators group - Full Control
Everyone group - Read and Execute, List Folder, Contents and Read
System account - Full Control

see if this helps. it is a windows environment issue as opposed to a plex issue

There we go! Turns out, for C:\Windows\Installer, there was a symbolic link to a location that did not exist. I removed the Sym Link, created the folder with the desired permissions, and was able to update!

(I think I created the link awhile ago to clear up space on my C: as it’s a SSD. Recently changed the drives that is E:, and since the Installer folder was hidden, I did not see and migrate that.)

Thank you VERY much for your help.

@asrusch said:
There we go! Turns out, for whatever weird reason, for C:\Windows\Installer, there was a symbolic link to a location that did not exist. I removed the Sym Link, created the folder with the desired permissions, and was able to update!

Thank you VERY much for your help.

wow - excellent

it goes to show that google searching error codes does help

I didn’t even think to look that up since it wasn’t reporting that line as an error :\

@asrusch said:
I didn’t even think to look that up since it wasn’t reporting that line as an error :\

sorry - i know. it is well hidden !

23 pages of problems.
The lesson here should be clear:
Windows installer is horrible. Plex is awesome. Needs to be updated to use a less draconian installer that doesn’t conflict with everything and waste huge amounts of disk space on our system drive.

Nullsoft installer/inno setup are good.

Looks like I’m on the same Strugglebus.

Here is my error log snippet.

How do I resolve this?

Action start 15:50:42: InstallInitialize.
MSI (s) (CC:7C) [15:50:42:521]: Doing action: RemoveExistingProducts
Action ended 15:50:42: InstallInitialize. Return value 1.
Action start 15:50:42: RemoveExistingProducts.
MSI (s) (CC:88) [15:50:42:521]: Resetting cached policy values
MSI (s) (CC:88) [15:50:42:521]: Machine policy value ‘Debug’ is 0
MSI (s) (CC:88) [15:50:42:521]: ******* RunEngine:
******* Product: {B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}
******* Action:
******* CommandLine: **********
MSI (s) (CC:88) [15:50:42:521]: Warning: Local cached package ‘C:\Windows\Installer\2173be88.msi’ is missing.
MSI (s) (CC:88) [15:50:42:521]: User policy value ‘SearchOrder’ is ‘nmu’
MSI (s) (CC:88) [15:50:42:521]: User policy value ‘DisableMedia’ is 0
MSI (s) (CC:88) [15:50:42:521]: Machine policy value ‘AllowLockdownMedia’ is 1
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Looking for sourcelist for product {B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Adding {B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}; to potential sourcelist list (pcode;disk;relpath).
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Now checking product {B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Trying source C:\ProgramData\Package Cache{B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}v0.9.1211.
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 2203 2: C:\ProgramData\Package Cache{B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}v0.9.1211\pms.msi 3: -2147287037
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 1706 2: -2147483647 3: pms.msi
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Processing net source list.
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 1706 2: -2147483647 3: pms.msi
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Processing media source list.
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 2203 2: 3: -2147287037
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 1706 2: -2147483647 3: pms.msi
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Processing URL source list.
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 1402 2: UNKNOWN\URL 3: 2
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 1706 2: -2147483647 3: pms.msi
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 1706 2: 3: pms.msi
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 4384 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 4248 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 4108 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 4336 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 2008 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 1956 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 2388 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 3260 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 4732 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 4176 could not be cancelled. Error: 1168
MSI (s) (CC:68) [15:50:44:409]: I/O on thread 648 could not be cancelled. Error: 1168
MSI (s) (CC:88) [15:50:44:424]: SOURCEMGMT: Failed to resolve source
MSI © (44:20) [15:50:42:521]: User policy value ‘SearchOrder’ is ‘nmu’
MSI © (44:20) [15:50:42:521]: User policy value ‘DisableMedia’ is 0
MSI © (44:20) [15:50:42:521]: Machine policy value ‘AllowLockdownMedia’ is 1
MSI © (44:20) [15:50:42:521]: SOURCEMGMT: Prompting user for a valid source.
MSI © (44:20) [15:50:42:521]: Machine policy value ‘DisableBrowse’ is 0
MSI © (44:20) [15:50:42:521]: Machine policy value ‘AllowLockdownBrowse’ is 0
MSI © (44:20) [15:50:42:521]: SOURCEMGMT: Browsing is enabled.
MSI © (44:20) [15:50:42:537]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg

MSI © (44:20) [15:50:42:537]: Machine policy value ‘DisableUserInstalls’ is 0
MSI © (44:20) [15:50:42:537]: SOURCEMGMT: Now checking product {B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}
MSI © (44:20) [15:50:42:537]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
MSI © (44:20) [15:50:42:537]: Note: 1: 1706 2: 3: pms.msi
MSI © (44:20) [15:50:42:537]: SOURCEMGMT: Processing net source list.
MSI © (44:20) [15:50:42:537]: Note: 1: 1706 2: -2147483647 3: pms.msi
MSI © (44:20) [15:50:42:537]: SOURCEMGMT: Processing media source list.
MSI © (44:20) [15:50:42:537]: SOURCEMGMT: Trying media source ;.
MSI © (44:20) [15:50:42:537]: Note: 1: 1706 2: 3: pms.msi
MSI © (44:20) [15:50:42:537]: SOURCEMGMT: Processing URL source list.
MSI © (44:20) [15:50:42:537]: Note: 1: 1402 2: UNKNOWN\URL 3: 2
MSI © (44:20) [15:50:42:537]: Note: 1: 1706 2: -2147483647 3: pms.msi
MSI © (44:20) [15:50:42:537]: Note: 1: 1706 2: 3: pms.msi
MSI (s) (CC:7C) [15:50:44:424]: Note: 1: 1714 2: Plex Media Server 3: 1612
CustomAction returned actual error code 1612 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (CC:7C) [15:50:45:703]: Product: Plex Media Server – Error 1714. The older version of Plex Media Server cannot be removed. Contact your technical support group. System Error 1612.

Error 1714. The older version of Plex Media Server cannot be removed. Contact your technical support group. System Error 1612.
MSI (s) (CC:7C) [15:50:45:703]: User policy value ‘DisableRollback’ is 0
MSI (s) (CC:7C) [15:50:45:703]: Machine policy value ‘DisableRollback’ is 0
MSI (s) (CC:7C) [15:50:45:703]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
Action ended 15:50:45: RemoveExistingProducts. Return value 3.
MSI (s) (CC:7C) [15:50:45:703]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (CC:7C) [15:50:45:703]: No System Restore sequence number for this installation.
MSI (s) (CC:7C) [15:50:45:703]: Unlocking Server
Action ended 15:50:45: INSTALL. Return value 3.

@rmussell said:
Looks like I’m on the same Strugglebus.

Here is my error log snippet.

How do I resolve this?

MSI (s) (CC:7C) [15:50:42:521]: Doing action: RemoveExistingProducts
MSI (s) (CC:88) [15:50:42:521]: Warning: Local cached package ‘C:\Windows\Installer\2173be88.msi’ is missing.
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Trying source C:\ProgramData\Package Cache{B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}v0.9.1211.
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 2203 2: C:\ProgramData\Package Cache{B4760EA0-17DF-4F24-89ED-97DDD2DB57A2}v0.9.1211\pms.msi 3: -2147287037
MSI (s) (CC:88) [15:50:42:521]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
MSI (s) (CC:88) [15:50:42:521]: Note: 1: 1706 2: -2147483647 3: pms.msi

MSI (s) (CC:7C) [15:50:45:703]: Product: Plex Media Server – Error 1714. The older version of Plex Media Server cannot be removed. Contact your technical support group. System Error 1612.

Error 1714. The older version of Plex Media Server cannot be removed. Contact your technical support group. System Error 1612.

So the package files for the old version 0.9.12.11 are gone or inaccessible

If this is windows 7 or windows 8 try to use the Microsoft Fix It program / Install Uninstall Troubleshooter to tidy the msi setup and remove the old version - see link to the Fix It on this support page:
https://support.plex.tv/hc/en-us/articles/202967086-Errors-trying-to-upgrade-install-or-uninstall-Plex-Media-Server-on-Windows

If it is windows 10 or it gives you a chance to tell it where the pms.msi is then you could download 0.9.12.11 from here:
https://plex.tv/downloads/1/archive and follow steps in option 2 in this post (substituting 0.9.12.11 file for the 0.9.12.8 file shown in the steps there)

It was W7, and the MS Fix It program did the trick.

Thanks!

“A problem has been detected with a core component of Plex Media Server.
Please visit the forums and provide your logs, as described here.”
So here I am.

@Goldalene said:
“A problem has been detected with a core component of Plex Media Server.
Please visit the forums and provide your logs, as described here.”
So here I am.

The error is returned if the python bundles do not start in time. Normally such issues arise if there is a corrupt install or some security software / proxy / vpn software that is blocking the communication between the plex media server and the python components - it could also be firewall settings on the PC

Could you also upload the logs that got created in the Logs\PMS Plugin Logs folder

And look into what security software you have and if there is a vpn application running or proxy.

For the firewall make sure it has exceptions for all the plex media server exe files and separately to have in advanced settings an inbound port rule for tcp local port 32400 ( remote port : any, remote IP : any) and allow for all network profiles

To see if it is a corrupt install download plex media server afresh and check file properties to make sure you do see a digital signatures tab with entry for plex inc. run it again to do a repair - if that does not resolve the issue - run the repair again with anti virus software disabled and try again.

Get logs again uploaded if problem does get resolved and details of what security software is running and confirm no proxy or vpn application

I get "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item…
I tried to add permission, it is everything ok, it just doesnt works