Installing License
Learn how to update or install the Polarity license
Install or Update your License
You can update or install the license on your Polarity server by adding the license file to the correct location on the Polarity Server. The license file will be named polarity.lic
and should be located in the directory /app/license
on your Polarity server.
Start by copying your license file to license directory.
Finally restart the Polarity Server containers so the license is loaded
Troubleshooting
Solve CRLF Line endings on the polarity.lic file
If the Polarity Server license file has Window line endings in it, the server will throw errors but will not crash. If you check the server status by running docker ps
you can tell if the poalrity_web or polarity_platform containers are running.
To diagnose the issue, you can run the following grep on the server log file.
If you get back the error message:
Then you likely have a license with window line endings. You can also confirm that there are window line endings by running the file
command on the license file. The output will show CRLF line terminators.
To remove the line endings you can use the following command which will rewrite the existing license file.
If the user has access to yum
you can also install dos2unix
Restart the server process after running the above commands.
Last updated