Please try to clear the database and then try to activate the license. To do this, use the following procedure:
Connect to the server using ssh or the vmware console
Login to the console using the root user (default password is admin)
Run the following command: psql -h localhost -U postgres -f /etc/illuminit/cleanAll.sql serviceware
Then restart the service using the command: systemctl restart tomcat
Wait a minute for the service to restart and then try to activate the license