network license server on linux

network license server on linux

bob_wooldridge
Explorer Explorer
2,809 Views
6 Replies
Message 1 of 7

network license server on linux

bob_wooldridge
Explorer
Explorer

I have set up Fedora server (version 25) and installed flexlm.  It is up and running and outputting to the log file.  I have tried connecting from two different client machines.  On these machines I changed the environment var and updated license.lic in each application folder to point to the new server.  However, when I try to connect, I get a pop up windows asking for the name of the license server.  When I put in the server name it throws an error:  "A valid license could not be obtained by the network license manager."  Error: -15.570.0

 

Any ideas on why this is happening and how to resolve it?

0 Likes
Accepted solutions (2)
2,810 Views
6 Replies
Replies (6)
Message 2 of 7

Otto
Alumni
Alumni
Hello bob.wooldridge and welcome to the Autodesk community!

It looks like you are seeing "FLEXnet Licensing error:-15,570". The following article(s) should help you resolve the problem:

Common FlexNet error codes

How to specify license servers using the ADSKFLEX_LICENSE_FILE environment variable

Troubleshooting FLEXnet Licensing Errors


I'm a software-based HelpBot, designed to provide the information you need to get up and running with Autodesk products—any time, day or night. Your feedback will help train me to deliver more accurate and helpful answers. Thanks in advance! Also, please note that I'm only set up to respond to the first post of a topic, not to any replies. Thank you!

Helpful links: Find Serial Numbers and Product Keys | Find Downloads and Service Packs | Activate Autodesk software
0 Likes
Message 3 of 7

natasha.l
Alumni
Alumni

Hello @bob_wooldridge,

 

 

Check the system requirements for the Autodesk Network License Manager System on a Linux operating system, check to make sure it is a supported operating system: Linux System Requirements for the Network License 

 

Then, take a look at Installing the Network License Manager on Linux, to make sure you have set this up properly. 

 

 

Let us know how everything went & report back on the progress. Smiley Happy

 

 

Please "Accept As Solution" if a reply has helped resolve the issue or answered your question, to help others in the community.

 

 



 

0 Likes
Message 4 of 7

natasha.l
Alumni
Alumni
Accepted solution

Hello @bob_wooldridge,

 

Please let us know if you are using a supported version of RedHat & you were able to set this up. Remember to please "Accept As Solution" if a reply has helped resolve the issue or answered your question, to help others in the community.

 

Thanks! Smiley Happy

 

 



0 Likes
Message 5 of 7

Anonymous
Not applicable

Fedora is not officially supported.

But if in the log there is no error then probably the problem is not the OS.

Have you configured the firewall? Need to open tcp 2080, 27000-27009.

 

For older versions of the NLM you need to disable IPV6 on the server. But I'm not sure that for new versions this is necessary.

 

 

0 Likes
Message 6 of 7

bob_wooldridge
Explorer
Explorer
Accepted solution

I was able to get FlexLM up on Fedora 25. It works quite well. I am not as familiar with Fedora as I am with Debian or Ubunut and I did not realize that Fedora installs a firewall by default. This firewall is called firewalld. In order to stop it and disable it use the following commands:
systemctl stop firewalld
systemctl disable firewalld

 

Take note that the 2nd command will disable firewalld and prevent it from starting on startup.

 

In order to check if the firewall is loaded and running use this command:
iptables -L -n

 

The output should look like this if the firewall is off:

# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination

 

Chain FORWARD (policy ACCEPT)
target prot opt source destination

 

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

 

If you have another linux machine on your network there's a better way (than using a web browser) to test if the proper ports are open on the license server using nmap:
nmap -p2080 -Pn ServerName

 

The results should tell you that the port is open. If it says closed or filtered, this indicates the port not open.

 

Although Fedora is not officially supported, it actually works very well.

Message 7 of 7

bob_wooldridge
Explorer
Explorer

In order have the flexnet license server start automatically when the server is rebooted you must create a unit file for systemd.  Here is the file I created:

 

File name: flexnetserver.service

 

Contents:

[Unit]
Description=flexnetserverd License Daemon
After=network.target network.service

[Service]
User=flexlm
WorkingDirectory=/opt/flexnetserver
ExecStart=/opt/flexnetserver/lmgrd -c ./license.lic -l ./flex.log
Restart=always
RestartSec=30
Type=forking

[Install]
WantedBy=multi-user.target

 

Copy this file to /etc/systemd/system/system/

 

It is advised to run flexnet as a non root user so use the following commands to create the flexlm user:

 

useradd flexlm
usermod -d /opt flexlm
usermod -c "Privileged FlexLM User" flexlm
usermod -u 123 flexlm
groupmod -g 123 flexlm
usermod -s /sbin/nologin flexlm
find $WorkingDirectory -exec chown flexlm {} \;
find $WorkingDirectory -exec chgrp flexlm {} \;

 

Issue the following commands to reload and enable the systemd unit to work:

systemctl daemon-reload

systemctl enable flexnetserver.service

 

You should not be able to start and restart your server and have the flexnet LM come up automatically.

0 Likes