• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

pm_ApiCli::callSbin() and pm_ApiCli::call() not working in Windows 12.x version

R. Sreenath Menon

New Pleskian
Hello,

I am creating a plugin for plesk (windows) but pm_ApiCli::callSbin("myutility") and pm_ApiCli::call("myutility") are not working.

The responses are like below:
  • pm_ApiCli::callSbin("myutility")
    • 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.
    • In "Additional Information" window - Not supported on Windows platform
  • pm_ApiCli::call("myutility")
    • 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.
    • In "Additional Information" window - Public CLI utilities can be used only in CLI mode.
Please let me know how to solve this issue or provide a alternative way to run the commands in "myutility" which needs Administrative privileges.

Thanks in advance

Sreenathwindows_plesk_issue.png
 
Hi @R. Sreenath Menon!


In "Additional Information" window - Not supported on Windows platform
This error means that pm_ApiCli::callSbin is supported in Linux only because on Windows there are no sbin utilities.


In "Additional Information" window - Public CLI utilities can be used only in CLI mode.
This error means that pm_ApiCli::call can be called only from scripts. It's not supported when you make some actions in UI. It's because of security reasons and privileges for CLI and UI.
 
Back
Top