1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

CBM OpenProvider API not provisioning domains

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by Ross K, Oct 17, 2011.

  1. Ross K

    Ross K Basic Pleskian

    20
    90%
    Joined:
    Sep 5, 2009
    Messages:
    38
    Likes Received:
    0
    PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
    Parallels Plesk Panel w/CBM, v10.3.1, CentOS, 64-Bit

    We are attempting to use OpenProvider for the automated provisioning of domains names through Parallels Plesk CBM. Currently, when a user attempts to signup for web hosting and a domain, the customer is presenting with an order confirmation and the transaction is successful. However, in the backend, the customer status shows as pending.

    Further investigation seems to suggest that this is related to a problem with the domain provisioning.

    When going to "Events", the module pbaregistrar:OpenProvider shows "Error". The interesting bit is that when manually running the event, the following error is displayed:

    When looking at the OpenProvider options in Registrar Modules, the URL of the API was:
    http://www.openprovider.nl/incoming_custxml.php (per Plesk documentation)

    Changing the URL to httpS and re-running the event resulting in the following error instead:

    Grateful for any help in resolving this issue!
     
  2. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Hello, Ross

    Please try to do the following:
    1. Return http:// into API URL in registrar settings
    2. Execute in shell this: tail –f /var/log/hspc/hspc.log
    3. Restart the event - Events > Needed event > Run now
    4. Grab (copy-past) existing log from console where ‘tail –f’ was executed and post it here

    If you experience any issues, you can send me credentials to you server (web + ssh) via private message, I'll try to do the same on my own.
     
  3. Ross K

    Ross K Basic Pleskian

    20
    90%
    Joined:
    Sep 5, 2009
    Messages:
    38
    Likes Received:
    0
    Hey Eugene,

    Here's the output:

    I think that's what you were looking for? The 301 error looks like the API URL is perhaps no longer valid?
     
    Last edited: Oct 17, 2011
  4. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Hi, Ross

    Yes, it appeared that API entry-point was changed.
    Please try to change "Remote host" parameter to the following: "https://api.openprovider.eu"
     
  5. Ross K

    Ross K Basic Pleskian

    20
    90%
    Joined:
    Sep 5, 2009
    Messages:
    38
    Likes Received:
    0
    Morning Eugene,

    I've updated the URL, the domain provision is still failing. When looking at the "MBAPI Command Output", it shows the following error:

     
  6. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Hello, Ross

    Please try to do the following:
    1. Set correct URL in registrar settings
    2. Execute in shell this: tail –f /var/log/hspc/hspc.log
    3. Restart the event - Events > Needed event > Run now
    4. Grab (copy-past) existing log from console where ‘tail –f’ was executed and post it here
     
    Last edited: Oct 18, 2011
  7. EugeneL

    EugeneL Regular Pleskian

    20
    57%
    Joined:
    Feb 18, 2011
    Messages:
    461
    Likes Received:
    0
    Hi, Ross

    I was able to log in to your server (you've PMed me credentials)
    In registrar settings there was old URL, event was failed with the error you posted here

    I changed registrar settings - put there correct URL
    I restarted event for domain registration - event completed successfully, you can check this.
     
  8. Ross K

    Ross K Basic Pleskian

    20
    90%
    Joined:
    Sep 5, 2009
    Messages:
    38
    Likes Received:
    0
    Ah that explains it! I woke up this morning to an email from the panel saying the domain provisioned at 5AM my time this morning! Not sure why the old URL was showing - I definitely updated it(!).

    Again, thank you for all your help. It's been a pleasure working with you to get these bugs ironed out. I'd be happy to work with you in future to beta test any new features in the plesk panel.

    Ross
     
Loading...