PDA

View Full Version : defpackagemng failed: Access is denied (can't access Plesk)


Milovan
06-22-2006, 01:20 PM
You tried to access Plesk and go the following error:

Operation failed

The operation you were performing failed. You can retry the operation with or without changing its parameters. You may also want to report this problem to our support so that we could help you as soon as possible.

Show details:

DefPackageMng() constructor failed: defpackagemng failed: Access is denied. (Error code 5) at CreateProcess 'C:\WINDOWS\system32\cmd.exe /c ""C:\SWsoft\Plesk\admin\bin\defpackagemng.exe" --get"'
at execUtil C:\SWsoft\Plesk\admin\bin\defpackagemng.exe --get on C:\SWSoft\Plesk\admin(PleskSrvClient::execUtil line 420)
at execute console command --get(vconsoleapp::start line 128)
at execute C:\SWsoft\Plesk\/admin/bin/defpackagemng --get(vconsoleapp::run line 138)
---------------------- Debug Info -------------------------------
0: C:\SWsoft\Plesk\admin\plib\class.DefPackageMng.php :14 psaerror(string "DefPackageMng() constructor failed: defpackagemng failed: Access is denied. (Error code 5) at CreateProcess 'C:\WINDOWS\system32\cmd.exe /c ""C:\SWsoft\Plesk\admin\bin\defpackagemng.exe" --get"'
at execUtil C:\SWsoft\Plesk\admin\bin\defpackagemng.exe --get on C:\SWSoft\Plesk\admin(PleskSrvClient::execUtil line 420)
at execute console command --get(vconsoleapp::start line 128)
at execute C:\SWsoft\Plesk\/admin/bin/defpackagemng --get(vconsoleapp::run line 138)")
1: C:\SWsoft\Plesk\admin\plib\class.ActionLog.php:426 defpackagemngmaker()
2: C:\SWsoft\Plesk\admin\plib\cmd_loginup.php:240 actionlog->submit()
3: C:\SWsoft\Plesk\admin\plib\cmd_loginup.php:99 createsessionadmin(string "admin", string "YOUR_PASSWORD", boolean true)
4: C:\SWSoft\Plesk\admin\htdocs\login_up.php3:51 createsession(string "admin", string "YOUR_PASSWORD")
---

First thing you should try to do is open CMD and type:

"%plesk_bin%\defpackagemng.exe" --fix

where %plesk_bin% is the location where Plesk's bin is located (i.e. C:\SWsoft\Plesk\admin\bin\).

C:\SWsoft\Plesk\admin\bin\defpackagemng.exe --fix

If you don't see any errors messages, try to login to Plesk. Most likely you will see something like:

C:\>C:\SWsoft\Plesk\admin\bin\defpackagemng --fix
Access is denied. (Error code 5) at CreateProcess 'C:\WINDOWS\system32\cmd.exe /
c ""C:\SWsoft\Plesk\admin\bin\defpackagemng.exe" --fix"'
C:\>

Open Windows Explorer and go to:

C:\WINDOWS\system32

right-click on cmd.exe -> choose Properties -> Security tab

Click on SYSTEM and check "full control" box under Allow.

Normally, problem is that "Deny all" for SYSTEM user is checked, hence Plesk can't access cmd.exe.