by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Free Trial

By clicking you consent to share your profile with the developer

#2305 - Unable to validate the license key although "manual" validation works

Closed Installation created by tiagozwick 8 years ago

Hi there,

I am getting the error "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. Group rights have been temporarily dropped to Owner rights."

I have tried to "manually" validate the license key executing on a browser "https://www.sugaroutfitters.com/api/v1/key/validate?public_key=8865f4bed3a24ab802b2b4942f57c9cf,ed757ceaef6ab1ada555d0da1c8cb74e&key=my_license_key" - That worked fine. I got the message: "{"validated":true}"

What else could be wrong?

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    8 years ago

    Sorry for the troubles! The other two reasons will be that php_curl isn't enabled on the server or config_override.php isn't writable. Check those two and then try again. It should then validate.

  2. tiagozwick member avatar

    tiagozwick

    8 years ago

    Hi there.

    I am using Windows. So I have added the user "everyone" in the security list for the "Config_override.php" file and gave him full control. php_curl: I have execute this line on my php server (echo 'Curl: ', function_exists('curl_version') ? 'Enabled' : 'Disabled';). I got: Curl Enabled

    Is there any log file that can be double checked? Any chance for a Webex (remote meeting)?

    My enterprise does want to buy the software, but if it's failing even before the tests.... it is difficult...

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      I understand the frustrations. This isn't typical, but it happens in some unique server configurations. I won't be able to hop on a call until late next week due to holidays, but I'll try to help a bit more here until then. If you continue to have validation issues you can always cancel the trial and start a new one when we can connect.

      Did you execute that on the command line or from a PHP script? Many servers will have a different php.ini configuration for the two so there may be a discrepancy there.

      The 3 reasons that what you are experiencing will happen are:

      • The server cannot connect to https://www.sugaroutfitters.com
      • php_curl is not enabled
      • config_override.php is not writable

      I believe in your case it is one of the first 2 based on the message that you are getting. Are you testing the URL on a browser that is on that server?

      For php_curl, you can also put a php_info() call in a PHP script on the app server and see if php_curl is enabled by hitting that script in your browser.

    • tiagozwick member avatar

      tiagozwick

      8 years ago

      Hi there,

      the result of php_info()

      curl

      cURL support enabled cURL Information 7.21.7 Age 3 Features AsynchDNS Yes Debug No GSS-Negotiate Yes IDN No IPv6 Yes Largefile Yes NTLM Yes SPNEGO No SSL Yes SSPI Yes krb4 No libz Yes CharConv No Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp Host i386-pc-win32 SSL Version OpenSSL/0.9.8r ZLib Version 1.2.5 libSSH Version libssh2/1.2.7

    • tiagozwick member avatar

      tiagozwick

      8 years ago

      Hi there

      I used Wireshark on my server. The server is sending the validation traffic directly to your server. The proxy configured on IE is not used. How to force your software to use IE proxy?

      Server: 10.145.117.157 Sugaroutfitters Server: 104.130.124.191 Message: TCP 62 [TCP Spurious Retransmission] 53665 → 443 [SYN] Seq=0 Win=8192 Len=0 MSS=1460 SACK_PERM=1

    • tiagozwick member avatar

      tiagozwick

      8 years ago

      Your code has a problem; I needed to enter the proxy settings manually in your code; Using those 2 additional parameters I could get that working.

      _File: SecuritySuiteOutfittersLicense.php curl_setopt($ch, CURLOPT_PROXY, "10.145.117.9"); //your proxy url curl_setopt($ch, CURLOPT_PROXYPORT, "8080"); // your proxy port number _

      Could you please fix it and send me a new official version? I need a version that uses IE proxy.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      Nice find! We don't ever see folks using SecuritySuite with a proxy so I didn't consider that for your issue. I can't change the code to support your proxy as it would break hundreds of other installs, but it is fine for you to change yours as you have.

      I'm going to close this out now that you have a solution. Definite a great find. Feel free to follow up here or open a new case if you have any other issues or questions.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "Good product, but we need to support 'Quick Create' feature. and raised up this request to your page." - lcyang

    Read More Reviews