HowTo: Fix the Invalid License Error
Prerequisites:
Any version of InterWorx-CP.
Overview:
There are a variety or reasons why you may get the “invalid license” error. They all relate in some way to the quad daily license verification. This HowTo document will give the reader an overview of each cause and how to fix them.
| It is important to remember that this error does NOT mean that your site or email are down. The normal operation of the server has NOT been interrupted. You have merely been locked out of NodeWorx and SiteWorx. Visitors can still view yours and your client’s web pages and your email still works. |
Causes:
There are 5 known causes of the invalid license error:
- The time on your system clock is off
- Port 2443 is blocked or InterWorx is mot installed on a publicly available IP
- You’ve changed IP‘s and haven’t made the change on our licensing server.
- Your server is unable to resolve
license.interworx.com - Your license has expired or been suspended due to non payment
Solutions:
Depending on the cause, please follow the instructions below to fix your server:
Cause #1: The time on your system clock is off
| This is by far the most common cause of this error, always check this first! |
- Log into your server as ‘root’ and verify the system time
- Sync your system time against an Internet timebase server (run the following as
root):service ntpd stopntpdate tick.usno.navy.milOR ntpdate bitsy.mit.eduservice ntpd start
- Sync your license with the licensing server:
/home/interworx/cron/license.pex --sync(or~iworx/cron/license.pex --sync)
- That should fix your problem.
Cause #2: Port 2443 is blocked or InterWorx is not installed on a publicly available IP
InterWorx MUST be have at least one IP that is publicly available with port 2443 OPEN to all connections. You can install InterWorx on an internal IP, but you will have to make appropriate changes to firewalls/routers to make that port on at least one IP accessible to the Internet. The InterWorx software contacts our licensing server 4 times a day to verify the license. If it fails to make contact, there is approximately a 24 hour grace period and then it suspends the software until such time as it can make contact.
- Reconfigure you router if needed to make sure at least one IP is available to the Internet.
- Verify that port 2443 is completely OPEN in your firewall.
- Log into your server as
rootand run the following command~iworx/cron/license.pex --sync - That should fix your problem.
Cause #3: Changed IP's
Each licensed copy of InterWorx-CP may only be installed on ONE server at a time. In order to enforce this license, the InterWorx software attempts to contact the licensing server 4 times a day to verify the license. If the IP of the server and the IP on file with the licensing server for a particular license key do not match, the InterWorx software will suspend itself until such time as this is corrected.
- If you are planning to run InterWorx-CP on more than one server, you will need to buy a separate license key for each server (even in clustering).
- If you have changed servers or have changed the IP or your existing server:
- Follow the instructions in this howto doc to change the IP associated with your license key.
- Log into your server as or
sutorootand execute the following command~iworx/cron/license.pex --sync - That should fix your problem.
Cause #4: Unable to resolve license.interworx.com
As part of the license verification process, InterWorx attempts to contact license.interworx.com. If the dns lookup fails this can also suspend your license.
Assuming you are using your own server as a dns server:
Check your resolv.conf settings:
[root@iworx ~]# cat /etc/resolv.conf nameserver 127.0.0.1 [root@iworx ~]#
This is EXACTLY what you should see. It should NOT read localhost or have the actual IP of your server.
If this has been changed somehow:
- Edit
resolv.confso that it reads as above - Execute
service ntpd restartasroot
If you are using an external dns resolver
- Run
ping license.interworx.comasroot - If you don’t get a response, contact your DNS provider for assistance
Cause #5: Expired or suspended License
- Please check causes 1-4 before contacting InterWorx unless you already know that this is the cause.
- Contact InterWorx to verify that your license is up to date and paid.
- Renew or pay your bill as needed.
- Log into your server as
rootand run the following command~iworx/cron/license.pex --sync - That should fix your problem.
None of these:
If none of these issues seems to be the problem, direct clients, please open a support ticket. Indirect clients, please contact your reseller for assistance.
