Cpanel API 2 Loop
Hello,
We use (cPanel API 2) to create, delete and change accounts on our server.
I have the following scenario:
When a user already exists on the server, a new account with a similar domain is not created.
Example:
Existing account: domainname1.com - user: domainna
New account: domainname2.com - user: domainna
Note: So far, so good.
The problem is that the API is in a loop trying to create the account, and through the error log, we see the API working 24 hours a day, taking up server resources.
How can I interrupt the loop? I cannot delete the account, it is automatically recreated.
I appreciate the help
Ricardo Lobo
-
@Ricardo Lobo I'd be happy to help investigate your issue. Are you certain that it is a cPanel API 2 call that you are using? Could you share the specific function please? What you are describing sounds a lot like WHM API 1 modifyacct, and
Could you share this portion of your log so that we can see the frequency of the looping? Also, what version of cPanel & WHM are you on?0 -
@Ricardo Lobo I'd be happy to help investigate your issue. Are you certain that it is a cPanel API 2 call that you are using? Could you share the specific function please? What you are describing sounds a lot like WHM API 1 modifyacct, and
Could you share this portion of your log so that we can see the frequency of the looping? Also, what version of cPanel & WHM are you on?
Sorry, all the WHM API 1 and cPanel API 2 functions are in a single file, I expressed myself wrong. We are using the "createacct" function of the WHM API 1 This is my error log:[2020-04-17 22:05:57 -0300] info [xml-api] (XID rsmfep) O dom"nio "xxxxxxxxxxxxx.com.br" j" existe nos dados do usu"rio. [createacct] version [2].
CPanel version: CENTOS 7.7 [server] v86.0.18 Here is a print of the log: Thank you for your help0 -
Does anyone know a solution to my problem? 0 -
You can temporarily disable the hook in WHM Home > Development > Manage Hooks
and test to see if the scenario reproduces itself.0
Please sign in to leave a comment.
Comments
6 comments