|
|||
|
addon with api2 not working
Hi,
after spending a lot of time understanding how to call the API2 calls and which values to pass in URL to create an addon I got the XML output coming out fine but the addon domain does not work. Here is the error. Code:
- <cpanelresult> <apiversion>2</apiversion> - <data> <reason>Error from domain wrapper: .domain.tld could not be modified because it does not resolve to a valid IP address. Please ask the system admin to check their resolv.conf and their dns trust relationship Ignore any messages of success this can only result in failure!</reason> <result>0</result> </data> <func>addaddondomain</func> <module>AddonDomain</module> </cpanelresult> I am 100% sure the domain's DNS is already updated. Actually the domain was parked to the main domain but in order to test it I deleted it and tried to add as a an addon from my API2 call but it does not work. I then tried to add it as an addon from cpanel and it worked. Here is the call that I am making: https://domain.tld:2083/xml-api/cpan...pass=jhg8779hj Please help. Regards, Jaunty |
|
||||
|
Your API2 call looks good, worked for me on my test server.
As for when you added the addon domain in cPanel, can you just go back to the Addon Domains screen to make certain that the addon domain was added?
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net |
|
|||
|
Hi,
thanks for the reply, I did check in the addon page from cpanel right after adding it and it was listed there. I had also checked it after trying with the api call but it was not listed on the cpanel addon page. Regards, Jaunty |
|
||||
|
Is there anything in /usr/local/cpanel/logs/error_log that is relevant to your API2 call immediately after making that API2 call?
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net |
|
|||
|
Hi,
here is what I see in the logs. Code:
null user passed: info: Cpanel::Hulk null user passed: info: Cpanel::Hulk 2009-07-10 08:34:23 info [cphulkd] [6571] Waiting for lock on /var/cpanel/cphulk.conf held by cPhulkd - processor - locking /var/cpanel/cphulk.conf with pid$ 2009-07-10 08:34:24 info [cphulkd] [6571] Lock file /var/cpanel/cphulk.conf.lock now gone, try to acquire 2009-07-10 09:22:35 info [cphulkd] [22191] Waiting for lock on /var/cpanel/cphulk.conf held by cPhulkd - processor - locking /var/cpanel/cphulk.conf with pi$ 2009-07-10 09:22:37 info [cphulkd] [22191] Lock file /var/cpanel/cphulk.conf.lock now gone, try to acquire 2009-07-10 09:30:26 info [cphulkd] [24785] Waiting for lock on /var/cpanel/cphulk.conf held by cPhulkd - processor - locking /var/cpanel/cphulk.conf with pi$ 2009-07-10 09:30:26 info [cphulkd] [24810] Waiting for lock on /var/cpanel/cphulk.conf held by cPhulkd - processor - locking /var/cpanel/cphulk.conf with pi$ 2009-07-10 09:30:26 info [cphulkd] [24809] Waiting for lock on /var/cpanel/cphulk.conf held by cPhulkd - processor - locking /var/cpanel/cphulk.conf with pi$ 2009-07-10 09:30:26 info [cphulkd] [24866] Waiting for lock on /var/cpanel/cphulk.conf held by cPhulkd - processor - locking /var/cpanel/cphulk.conf with pi$ 2009-07-10 09:30:27 info [cphulkd] [24785] Lock file /var/cpanel/cphulk.conf.lock now gone, try to acquire 2009-07-10 09:30:27 info [cphulkd] [24810] Lock file /var/cpanel/cphulk.conf.lock now gone, try to acquire 2009-07-10 09:30:27 info [cphulkd] [24809] Lock file /var/cpanel/cphulk.conf.lock now gone, try to acquire 2009-07-10 09:30:27 info [cphulkd] [24866] Lock file /var/cpanel/cphulk.conf.lock now gone, try to acquire Unable to compress stream: Connection reset by peerInternal Error: "GET /webmail/x3/?login=1 HTTP/1.1" Unable to compress stream: Connection reset by peer Unable to compress stream: Broken pipeInternal Error: "GET /webmail/x3/?login=1 HTTP/1.1" Unable to compress stream: Broken pipe 2009-07-10 09:32:11 info [cphulkd] [25329] Waiting for lock on /var/cpanel/cphulk.conf held by cPhulkd - processor - locking /var/cpanel/cphulk.conf with pi$ 2009-07-10 09:32:12 info [cphulkd] [25329] Lock file /var/cpanel/cphulk.conf.lock now gone, try to acquire 2009-07-10 11:06:27 info [cphulkd] [21664] Waiting on invalid lock /var/cpanel/hulkdpass.lock for 60 seconds null user passed: info: Cpanel::Hulk null user passed: info: Cpanel::Hulk null user passed: info: Cpanel::Hulk null user passed: info: Cpanel::Hulk Regards, Jaunty |
|
||||
|
Are you currently calling API2 from a script, or just via typing in the URLs into your web browser?
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net |
|
||||
|
What is your full cPanel version information?
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net |
|
||||
|
Quote:
I think you should check the variables you are passing. All is okay but could you please check the <dir>/home/mejaunty/public_html/jaunty</dir>. Last edited by Mofiz; 07-20-2009 at 12:10 AM. |
|
||||
|
Quote:
We found an issue in STABLE this morning with Fast Mode. Change xml_api_user to user and the API call will work.
__________________
Need technical assistance? You can find your best avenue for support at: http://support.cPanel.net |
![]() |
| Tags |
| addon domain , api2 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cPanel API2 | DevBreak | Developer Discussions | 3 | 07-10-2009 10:45 AM |
| Use API1 and API2 | rongup | cPanel and WHM Discussions | 38 | 02-04-2009 11:16 AM |
| API2 Basics? | mikelegg | Developer Discussions | 16 | 12-19-2008 06:02 PM |
| minimum cpanel verion for api2 | sllik | cPanel and WHM Discussions | 1 | 08-25-2007 09:12 PM |
| What about the cPanel API2 tags? | orware | Developer Discussions | 0 | 05-08-2007 11:29 AM |