#3371 - Unable to validate license
hi Team i am unable to validate installation license and receiving following message : SugarOutfitters_API::call(): Unable to validate the license key. Please configure the firewall to allow requests to https://www.sugaroutfitters.com/api/v1/key/validate and make sure that SSL certs are up to date on the server. I have checked with our IT team and it seems to be able to reach www.sugaroutfitters.com via cmd line curl command [root@plolb-dsugar1 uk]# curl https://www.sugaroutfitters.com/api/v1/key/validate "Key is required."[root@plolb-dsugar1 uk]#
but unable to validate from Sugar UI. we have a on-premise installation. Any help would be great.
thanks, Kunal
7 years ago
Hello Kunal,
Please also make sure that php_curl is enabled in the server's php.ini and that config_override.php in the root Sugar directory is writeable. The php_curl not being enabled is typically the cause of this error.
Let me know if that works.
Thanks, Jason Eggers SugarOutfitters
7 years ago
BAsed on my conversation team it seems yes it is enable. Is there a quick way i can check this ? i have access to root command line on the webserver.
7 years ago
There is a chance that the command line uses a different php.ini so I recommend creating a php such as phpinfo.php in your web directory with the contents:
Then open the page from your browser. You should see php_info enabled on that page.
7 years ago
yup I am already able to see the info.php via the web URL after creating this file. So doesn that meam curl is enabled. Also based on my conversation with my It team , sugar has full access to right into the files so i am not sure what is going wrong here.
Thanks, Kunal
7 years ago
7 years ago
There should be a separate line for php_curl somewhere on that page with the gray side saying enabled. If that is the case then there is something preventing the server from connecting to the license API.
7 years ago
is there a way to validate Key from command line ?
7 years ago
7 years ago
Curl also seems to be enabled on the server.
7 years ago
cURL is different from php_curl. That is going to be the issue. Once php_curl is enabled you will be able to validate. This page will have some different ways to enable it: https://stackoverflow.com/questions/1347146/how-to-enable-curl-in-php-xampp
7 years ago
this is still not working for us. we have double checked with our IT team and curl seems to be enabled. from bash the servers are able to reach the servers but getting output below :
[root@plolb-dsugar1 certs]# curl -v https://www.sugaroutfitters.com/api/v1/key/validate * About to connect() to proxy 192.168.2.211 port 80 (#0) * Trying 192.168.2.211... * Connected to 192.168.2.211 (192.168.2.211) port 80 (#0) * Establish HTTP proxy tunnel to www.sugaroutfitters.com:443
7 years ago
Hello, it looks like it is working Ok now for you? Or are you still having the issues with license?
Best Regards, IT Sapiens Team