• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Activate customer with API It does not work

I

inxenio

Guest
We have a problem with Plesk API 1.6.3.0 when We want to re-activate a suspended customer.

Tested on development servers Linux CentOS 5.5 x64 With Plesk 10.1.1 and Windows Server 2008 R2 x64 with Plesk 10.0.1.

Same problem on two servers.

The Problem:
- I CAN suspend a customer on Plesk panel and reactivate it with API (using <status>0</status>)
- I CAN suspend a customer with the API BUT I CANNOT reactivate with the API and YES on the Plesk control panel.

If I suspend a customer with API I have to access to Plesk control panel and activate it manually.

Please check this problem and solve it ASAP because can lead system to inconsistency.

Regards :)
 
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
- Plesk API 1.6.3.0
- Tested on development servers Linux CentOS 5.5 x64 With Plesk 10.1.1 and Windows Server 2008 R2 x64 with Plesk 10.0.1.

PROBLEM DESCRIPTION AND STEPS TO REPRODUCE
a.- Suspend a customer from API and then try to reactivate it.
b.- Suspend a suscription from API.

ACTUAL RESULT
a.- After I suspend the customer with API I cannot reactivate it (with API).
b.- After I suspend a suscription from API I cannot access to http://www.domain.com but I can access to http://domain.com

EXPECTED RESULT
a.- A customer must be reactivable from API.
b.- A suscription is not well suspended. Nor www.domain.com nor domain.com must be accesible after you suspend it.

Regards.
 
Thank you for report. I have forwarded it to developers for the further investigation. I will update thread with results as soon as I receive it.
 
Developers have informed that neither suspend bug nor subscriptions suspend bug were not reproduced with attached api-rpc script.
 

Attachments

  • rpc.zip
    659 bytes · Views: 15
Hello Igor. Definitely this is not working well.

In a month of use, not all substriptions are well suspended and well activated. The API call is always the same but sometimes works well and sometimes not.

The status node is optional. It specifies the status of the created site. Data type: string. Allowed values: 0 | 16 | 64. Meanings: 0 - active, 16 - disabled by Plesk Administrator, 32 - disabled by Plesk reseller, 64 - disabled by a customer.

When I suspend a domain (<status>16</status>) I can see 3 different results:

- The domain is Well-Suspended, I cannot access to http://www.domain.com nor http://domain.com
- The domain is Suspended (status 16) but I can access to http://www.domain.com (but not to http://domain.com).
- The domain is suspended (status 16) but I can access to http://www.domain.com and to http://domain.com.

In the 2nd and 3rd cases I must access to Plesk CP and activate the subscription and then suspend the suscription again.

We test it on Linux and Windows servers.
 
Back
Top