I am trying to setup the cPanel module with a reseller - i do not want to use root for this.
If i add or modify a server in the cPanel module config, i get this error : "A connection to the server could not be established. Please check to ensure that the Hostname, User Name, and Remote Key are correct."
I saw if i remove those lines from the cpanel.php file, then i can add the server, but still : i have no cPanel package listed upon modification of existing package.
There is nothing on the server's log. No other error.
The reseller is ok with he's ACL : we do allow listpkgs, password change, suspension, create and "Allow the reseller to use all global packages" - this should be enough imho.
Under Blesta, in Tools > Logs, it's strange : i see a success for listpkgs each time i try to access the package creation page ( in fact, all automated task return a success even if there is no request made)
The reseller already have a couple of packages.
I tried without firewall (and also without phpids just in case)
While i was trying to add the server, and i was trying to create a package, i was running a tcpdump on both cPanel and Blesta servers, and i saw absolutely no request made to the remote cPanel server (same thing on the cPanel server). There is no attempt to log in through the API
There is no logs on the cPanel server, and no logs on the Blesta server for the API requests.
...why am i getting a success result in the logs under Blesta while no request is made, and why the cPanel module do not work for me? I even see success for cPanel API requests even if the key is an old key, that's no longer valid.
Question
L3Y
Hi,
I am trying to setup the cPanel module with a reseller - i do not want to use root for this.
If i add or modify a server in the cPanel module config, i get this error : "A connection to the server could not be established. Please check to ensure that the Hostname, User Name, and Remote Key are correct."
I saw if i remove those lines from the cpanel.php file, then i can add the server, but still : i have no cPanel package listed upon modification of existing package.
'valid_connection'=>array(
'rule'=>array(array($this, "validateConnection"), $vars['host_name'], $vars['user_name'], $vars['use_ssl'], &$vars['account_count']),
'message'=>Language::_("Cpanel.!error.remote_key_valid_connection", true)
)
While i was trying to add the server, and i was trying to create a package, i was running a tcpdump on both cPanel and Blesta servers, and i saw absolutely no request made to the remote cPanel server (same thing on the cPanel server). There is no attempt to log in through the API
There is no logs on the cPanel server, and no logs on the Blesta server for the API requests.
...why am i getting a success result in the logs under Blesta while no request is made, and why the cPanel module do not work for me? I even see success for cPanel API requests even if the key is an old key, that's no longer valid.
What's wrong exactly? Any clue?
Thank you,
Carl
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.