Error while starting license manager

757 views
Skip to first unread message

Guillermo Cabrera

unread,
Dec 17, 2014, 9:32:26 PM12/17/14
to am...@googlegroups.com
Hi there,

I have the following problem with my AMPL license. 

netlicchk: Trying to start license manager ampl_lic.
netlicchk: Invoking "/usr/bin/ampl_lic".
netlicchk: Could not connect with license manager.
AMPL Version 20130816 (Linux x86_64)

I'm connected through VPN, so my IP address is within the allowed range.

any guess?

Robert Fourer

unread,
Dec 23, 2014, 5:47:13 PM12/23/14
to am...@googlegroups.com
The first things to check are that the computer that acts as the AMPL license server is up and reachable, and that the AMPL license management program (ampl_lic) is currently running on the server. The two commands

ampl_lic status
ampl_lic netstatus

when run on the server will display status messages that tell you whether ampl_lic is running properly there. If everything checks out on the server, then look at the file "ampl.lic" on the client; it will say something like "MGR_IP = 123.45.67.8" -- you should check that the IP address that it specifies is still the IP address of the server. If so, then run these commands on the client computer to get some more troubleshooting information:

ampl_lic stop
/usr/bin/ampl_lic
ampl_lic status
ampl_lic netstatus
ampl

If this doesn't result in an "ampl:" prompt then post all the commands you typed and the resulting messages.

Bob Fourer
am...@googlegroups.com

=======

Guillermo Cabrera

unread,
Jan 12, 2015, 2:08:01 PM1/12/15
to am...@googlegroups.com, 4...@ampl.com
Hi Bob,

Thanks for your reply.

I did what you recommended and this is what I get

I did run the commands in the desktop within the network 

gcab623@en-294433:~$ ampl_lic status
Could not connect with local license manager.

gcab623@en-294433:~$ ampl_lic netstatus
20150113  7:52:05: 6 machines have licenses in use:
Machine       Program  #_licenses
xxxxxxxxx     ampl     1
xxxxxxxxx     ampl     1
xxxxxxxxx     ampl     1
xxxxxxxxx     ampl     1
xxxxxxxxx     ampl     1
xxxxxxxxx     ampl     1

Available licenses:
ampl 4 machines
cplex 10 processes
gurobi 10 processes
xpress 10 processes
Could not connect with local license manager.

After that, I did run the same commands in my desktop using VPN
guillermo@HP-dv5:~$ ampl_lic status
Could not connect with local license manager.

guillermo@HP-dv5:~$ ampl_lic netstatus
Could not connect with network license manager.

Finally I did run the following commands on my client (using VPN)

guillermo@HP-dv5:~$ ampl_lic stop 
guillermo@HP-dv5:~$ /usr/bin/ampl_lic 
guillermo@HP-dv5:~$ ampl_lic status
Could not connect with local license manager.
guillermo@HP-dv5:~$ ampl
netlicchk: Trying to start license manager ampl_lic.
netlicchk: Invoking "/usr/bin/ampl_lic".
20150112 16:02:12: ampl_lic is already running.
AMPL network license manager version 20130604 (Linux x86_64).
Today = 20150112; found license file "/usr/bin/ampl.lic":
MGR_IP=130.216.1.99
Computed 1-2-0-19b8ac8f
HP-dv5
1c:c1:de:97:fc:d7
00:27:10:45:04:48

netlicchk: Could not connect with license manager.
AMPL Version 20130816 (Linux x86_64)

Not sure whats going on. When I try to do the same using windows it works perfectly..... 

I'm using Linux 14.04

Cheers
Guillermo

Robert Fourer

unread,
Jan 13, 2015, 6:18:41 PM1/13/15
to am...@googlegroups.com
In general the message "Could not connect with local license manager" means that ampl_lic is not actually running on the computer where you are typing the ampl_lic commands. Thus on the desktop machine it appears that you are connected to the license server (because "ampl_lic netstatus" shows a lot of ampl licenses checked out) but that ampl_lic is not currently running.

Using VPN changes your apparent IP address. The license server may be configured to accept license requests from certain IP address ranges, so using VPN may make a difference to whether your are successful in running AMPL.

According to our notes, the IP address information on the server may have been changed. So what we need is to see the "ampl.netlic" file that is currently being used on the server. It should be sent to lice...@ampl.com and then you'll get a reply with some additional instructions.

Guillermo Cabrera

unread,
Jan 13, 2015, 8:14:01 PM1/13/15
to am...@googlegroups.com
Thanks Robert. I'll ask for that file and I'll send it to you.

Cheers
Guillermo

--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/dQXZW3axgX8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.

tuan...@gmail.com

unread,
Apr 1, 2018, 1:23:56 PM4/1/18
to AMPL Modeling Language
Dear Mr. Fourer,

I have the exact issue as the OP, so could you please help instruct me what to do so that I could connect with AMPL? Here is all the command line that I typed in the terminal window on MacOS:

[NAME]s-MacBook-Air:~ tuan$ nano .bash_profile

Tuans-MacBook-Air:~ tuan$ source ~/.bash_profile

Tuans-MacBook-Air:~ tuan$ cd ~/ampl201101.cplex122.macosx/examples/models

Tuans-MacBook-Air:models tuanle$ ampl

netlicchk: Trying to start license manager ampl_lic.

netlicchk: Invoking "/Users/tuan/ampl201101.cplex122.macosx/ampl_lic".


I plan to send an email to lice...@ampl.com  to ask if I could connect to AMPL from my personal laptop. Otherwise, I don't know what to do now. 

Reply all
Reply to author
Forward
0 new messages