Symptoms
Plesk displays the following error messages on logon attempt:1. Error Message
Fatal error: Unknown exception in C:\Program Files\SWsoft\Plesk\admin\plib\common_func.php3 on line 2884
2. Error Message
DefPackageMng() constructor failed: defpackagemng failed: CoInitialize has not been called. (COM Error 800401F0) at getTypes()---------------------- Debug Info -------------------------------0: C:\Program Files\SWsoft\Plesk\admin\plib\common_func.php3:153 psaerror(string 'DefPackageMng() constructor failed: defpackagemng failed: CoInitialize has not been called. (COM Error 800401F0) at getTypes()')1: C:\Program Files\SWsoft\Plesk\admin\plib\class.DefPackageMng.php:19 defpackagemngMaker()2: C:\Program Files\SWsoft\Plesk\admin\plib\class.ActionLog.php:457ActionLog->submit()3: C:\Program Files\SWsoft\Plesk\admin\plib\cmd_loginup.php:248createSessionAdmin(string 'admin', string '********', boolean false)4: C:\Program Files\SWsoft\Plesk\admin\plib\cmd_loginup.php:122createSession(string 'admin', string '********')5: C:\Program Files\SWsoft\Plesk\admin\htdocs\login_up.php3:16
3. Error Message
Fatal error: The system cannot find the file specified. (Error code 2) atCreateProcess 'cmd.exe /c ""C:\Program Files\SWsoft\Plesk\/admin/bin/defpackagemng" --get"' in C:\ProgramFiles\SWsoft\Plesk\admin\plib\common_func.php3 on line 1146
4. Error Message
Warning: Unexpected character in input: '' (ASCII=12) state=1 in C:\ProgramFiles\SWsoft\Plesk\admin\plib\PleskException.php on line 72Parse error: parse error, unexpected ')' in C:\ProgramFiles\SWsoft\Plesk\admin\plib\PleskException.php on line 72
Cause
1. CAUSEPermissions are insufficient for psaadm user to access the registry key:HKEY_LOCAL_MACHINE\SOFTWARE\PLESK\PSA Config\PSA Key
2. CAUSE
Most likely a third-party SSH server is installed on the box.
3. CAUSE
Most likely the system variable ComSpec does not exist.
4. CAUSE
Plesk php files are corrupted. Most probably it's "%plesk_dir%\admin\auto_prepend\auth.php3"
Resolution
1. RESOLUTION1. Open regedit.
2. Find the key
HKEY_LOCAL_MACHINE\SOFTWARE\PLESK\PSA Config\PSA Key
3. Right Click > Permissions.
4. Set Read permission to user psaadm.
5. Stop Plesk Panel Service.
6. Delete Plesk cache in %plesk_dir%PrivateTemp
7. Restart Plesk Panel Service.
2. RESOLUTION
Remove SSH server as per its manual.
3. RESOLUTION
Create system variable ComSpec.
1. Open Control Panel > System.
2. Switch to Advanced tab.
3. Environment Variables
4. System variables
There should variable ComSpec pointing to %SystemRoot%\system32\cmd.exe. If the variable does not exist follow next steps.
5. New > set Variable name to ComSpec, Variable value set to %SystemRoot%\system32\cmd.exe
6. Restart the server.
4. RESOLUTION
Try to replace "%plesk_dir%\admin\auto_prepend\auth.php3" with the same file from other server.