bluespec.com Forum Index bluespec.com
Bluespec Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

license error

 
Post new topic   Reply to topic    bluespec.com Forum Index -> Tools: BSC (Bluespec Compiler)
View previous topic :: View next topic  
Author Message
roMoon



Joined: 26 Jul 2009
Posts: 8

PostPosted: Mon Jul 27, 2009 3:46 am    Post subject: license error Reply with quote

We use bluespec in a LAN. It has one license server and two clients. License error occurs when I add another two clients.
I have skim over the help document and some online help, but haven't resolve it yet. I paste the errors and detail infos here hoping someone can help me and thank very much.

here is the errors in mycomputer and some info:
Quote:

/======================================================================/
@mycomputer:

$bsc Vending.bsv
......
Error: Unknown position: (S0058)
Bluespec is unable to checkout the required license. Information from
license software is given below.
Cannot connect to license server system.
The license server manager (lmgrd) has not been started yet,
the wrong [email protected] or license file is being used, or the
port or hostname in the license file has been changed.
Feature: BCOMP
Server name: Htbe.rrs.edu.cn
License path: [email protected]
FLEXnet Licensing error:-15,570. System Error: 115 "Operation now in progress"
For further information, refer to the FLEXnet Licensing End User Guide,
available at "www.macrovision.com".
......

------------------------------------------------------------------------

$lmutil lmstat -a
lmutil - Copyright (c) 1989-2004 by Macrovision Corporation. All rights reserved.
Flexible License Manager status on Mon 7/27/2009 13:13

License server status: [email protected]
License file(s) on Htbe.rrs.edu.cn: /usr/opt/Bluespec/current/../Univ_Sci_Tech_China_site_20080917.lic:

Htbe.rrs.edu.cn: license server UP (MASTER) v10.1

Vendor daemon status (on Htbe.rrs.edu.cn):

BLUESPEC: Cannot connect to license server system. (-15,570:115 "Operation now in progress")

Feature usage info:

Users of BCOMP: Cannot get users of BCOMP: No such feature exists. (-5,222:115 "Operation now in progress")
Users of BSIM: Cannot get users of BSIM: No such feature exists. (-5,222:115 "Operation now in progress")
Users of SYSCUNLIC: Cannot get users of SYSCUNLIC: No such feature exists. (-5,222:115 "Operation now in progress")

------------------------------------------------------------------------

$cat /etc/profile
.......
export BLUESPECDIR="/usr/local/bluespec/current/lib"
export BLUESPEC_HOME="/usr/local/bluespec/current/"
export [email protected]

------------------------------------------------------------------------

$cat /etc/hosts
......
192.168.100.187 Htbe.rrs.edu.cn Htbe
......

------------------------------------------------------------------------

$ ping Htbe
PING Htbe.rrs.edu.cn (192.168.100.187) 56(84) bytes of data.
64 bytes from Htbe.rrs.edu.cn (192.168.100.187): icmp_seq=1 ttl=64 time=0.145 ms
64 bytes from Htbe.rrs.edu.cn (192.168.100.187): icmp_seq=2 ttl=64 time=0.130 ms
64 bytes from Htbe.rrs.edu.cn (192.168.100.187): icmp_seq=3 ttl=64 time=0.164 ms
64 bytes from Htbe.rrs.edu.cn (192.168.100.187): icmp_seq=4 ttl=64 time=0.138 ms
64 bytes from Htbe.rrs.edu.cn (192.168.100.187): icmp_seq=5 ttl=64 time=0.143 ms
.......

here is error of another client, mycomputer and daishu have have the same VENDO_LICENSE_FILE variable:
Quote:

/======================================================================/
@daishu

$lmutil lmstat -a
lmutil - Copyright (c) 1989-2004 by Macrovision Corporation. All rights reserved.
Flexible License Manager status on Tue 7/21/2009 21:35

License server status: [email protected]
License file(s) on Htbe.rrs.edu.cn: /usr/opt/Bluespec/current/../Univ_Sci_Tech_China_site_20080917.lic:
Htbe.rrs.edu.cn: license server UP (MASTER) v10.1
Vendor daemon status (on Htbe.rrs.edu.cn):
BLUESPEC: Cannot connect to license server system. (-15,570:115 "Operation now in progress")
Feature usage info:
Users of BCOMP: Cannot get users of BCOMP: No such feature exists. (-5,222:115 "Operation now in progress")
Users of BSIM: Cannot get users of BSIM: No such feature exists. (-5,222:115 "Operation now in progress")
Users of SYSCUNLIC: Cannot get users of SYSCUNLIC: No such feature exists. (-5,222:115 "Operation now in progress")


here is info of the license server:
Quote:

/======================================================================/
@Htbe:

$ lmutil lmstat -a
lmutil - Copyright (c) 1989-2004 by Macrovision Corporation. All rights reserved.
Flexible License Manager status on Mon 7/27/2009 13:18

License server status: [email protected]
License file(s) on Htbe.rrs.edu.cn: /usr/opt/Bluespec/current/../Univ_Sci_Tech_China_site_20080917.lic:

Htbe.rrs.edu.cn: license server UP (MASTER) v10.1

Vendor daemon status (on Htbe.rrs.edu.cn):

BLUESPEC: UP v10.1

Feature usage info:

Users of BCOMP: (Total of 5 licenses issued; Total of 0 licenses in use)

Users of BSIM: (Total of 5 licenses issued; Total of 0 licenses in use)

"BSIM" v3.8, vendor: BLUESPEC
floating license

lgm RAMP 127.0.1.1 (v3.Cool (Htbe.rrs.edu.cn/20520 179), start Sat 7/25 9:37
lgm RAMP 127.0.1.1 (v3.Cool (Htbe.rrs.edu.cn/20520 265), start Sun 7/26 15:16
lgm RAMP 127.0.1.1 (v3.Cool (Htbe.rrs.edu.cn/20520 387), start Sun 7/26 15:21
lgm RAMP 127.0.1.1 (v3.Cool (Htbe.rrs.edu.cn/20520 471), start Mon 7/27 11:01
lgm RAMP 127.0.1.1 (v3.Cool (Htbe.rrs.edu.cn/20520 507), start Mon 7/27 11:17

Users of SYSCUNLIC: (Total of 1 license issued; Total of 0 licenses in use)

------------------------------------------------------------------------

$ps -aux
......
nobody 2927 0.0 0.0 2548 748 ? S Jun10 0:00 /usr/opt/Bluespec/current/util/flexlm/x86_re3/lmgrd -c /usr/opt/Bluespec/current/../Univ_Sci_Tech_China_site_20080917.lic -L /var/log/Bluespec_licensing.log
nobody 2928 0.0 0.0 2896 928 ? Ss Jun10 0:00 BLUESPEC -T Htbe.rrs.edu.cn 10.1 3 -c /usr/opt/Bluespec/current/../Univ_Sci_Tech_China_site_20080917.lic --lmgrd_start 4a2f6813
......

------------------------------------------------------------------------

$ cat /usr/opt/Bluespec/Univ_Sci_Tech_China_site_20080917.lic
......
SERVER Htbe.rrs.edu.cn 000aeb792e7e 20520
## VENDOR BLUESPEC /usr/license/flexlm/bluespec/BLUESPEC
......


Here is another client that works well, it is also set the same VEDO_LICENSE_FILE with mycomputer and daishu. And I wonder that it also reports some errors when execute lmutil lmstat -a.
Quote:

/======================================================================/
@RAMP

$lmutil lmstat -a
lmutil - Copyright (c) 1989-2006 Macrovision Europe Ltd. and/or Macrovision Corporation. All Rights Reserved.
Flexible License Manager status on Mon 7/27/2009 13:25

License server status: [email protected]
License file(s) on Htbe.rrs.edu.cn: /usr/....../core_licenses:[email protected]:

lmgrd is not running: License server machine is down or not responding. (-96,7:110 "Connection timed out")

------------------------------------------------------------------------
$bsc Vending.bsv
#it works well with out license errors
Back to top
View user's profile Send private message
ewc



Joined: 08 May 2007
Posts: 31

PostPosted: Mon Jul 27, 2009 2:53 pm    Post subject: Reply with quote

Hi roMoon,

In looking over your situation, I do not see anything obviously incorrect. It appears that the license server is up an running with the correct version. However, some hosts cannot appear to connect to this server.

Please check the following.
- Can you telnet to the license server at port 20520 from the client machine?
- Try using the lmdiag command, as this often reports additional information.
e.g. lmutil lmdiag BCOMP

Do note that each license daemon open another tcp port which communicates to the host application. These port must be able to accept outside telnet connection. Check the log file or output from the lmgrd command to find the port number. You can specify the port in the the license file.

E.g. (from our lmgrd.log)
..
15:18:38 (lmgrd) Started BLUESPEC (internet tcp_port 27801 pid 3124)
..

(from our Bluespec.lic file
VENDOR BLUESPEC Daemons/BLUESPEC port=27801

Regards,
Ed C.
Bluespec Inc

_________________
Ed C
Back to top
View user's profile Send private message
roMoon



Joined: 26 Jul 2009
Posts: 8

PostPosted: Tue Aug 04, 2009 7:27 am    Post subject: Reply with quote

Hi ewc,

Thank you for your reply.

I am sorry for not reply soon as I am waiting for a root permission to modify the bluespeclicense.Now I have tried follow your steps. It also not work well, but provides more information.

First, I telnet to the license server from mycomputer. And execute lmdiag on mycomputer. It seems that the license server can accept telnet connection at port 20520, but Bluespec wants to access the license server at port 23.
Quote:

@mycomputer

$ telnet Htbe 20520
Trying 192.168.100.187...
Connected to Htbe.rrs.edu.cn.
Escape character is '^]'.
^]

telnet> q


$ ./lmdiag BCOMP
...
License file: [email protected]
-----------------------------------------------------
"BCOMP" v3.8, vendor: BLUESPEC
License server: Htbe.rrs.edu.cn
floating license starts: 1-jan-1990, expires: 17-sep-2009

This license cannot be checked out because:
Cannot connect to license server

... I will try to determine what the problem is...

"telnet" port (23) on node Htbe.rrs.edu.cn does not respond
->if Htbe.rrs.edu.cn is a Unix system, it's probably down



This is the bluespec log on the license server.
Quote:

@Htbe

$ tail -n 25 Bluespec_licensing.log
...
12:36:35 (lmgrd) lmgrd tcp-port 20520
12:36:35 (lmgrd) Starting vendor daemons ...
12:36:35 (lmgrd) Started BLUESPEC (internet tcp_port 36180 pid 3058)
12:36:35 (BLUESPEC) FLEXnet Licensing version 10.1
12:36:35 (BLUESPEC) Server started on Htbe.rrs.edu.cn for: BCOMP
12:36:35 (BLUESPEC) BSIM SYSCUNLIC
12:36:35 (lmgrd) BLUESPEC using TCP-port 36180
...


I try to telnet to the license server on port 36180. But one client can access while another can't.

mycomputer can't telnet to it.
Quote:

@mycomputer

$ telnet Htbe 36180
Trying 192.168.100.187...
telnet: Unable to connect to remote host: Connection timed out


but another client can connect to server.
Quote:

@RAMP

$telnet Htbe 36180
Trying 192.168.100.187...
Connected to Htbe.
Escape character is '^]'.
^]

telnet> q
Connection closed.



Then I specify the port to be 23 in the license file and restart lmgrd.
Quote:

@Htbe

$cat Univ_Sci_Tech_China_site_20080917.lic
...
#VENDOR BLUESPEC /opt/Bluespec-2008.06.E/util/flexlm/x86_re3/BLUESPEC
VENDOR BLUESPEC /opt/Bluespec-2008.06.E/util/flexlm/x86_re3/BLUESPEC port=23
...


$ tail -n 25 Bluespec_licensing.log
...
16:53:01 (lmgrd) The license server manager (lmgrd) running as root:
16:53:01 (lmgrd) This is a potential security problem
16:53:01 (lmgrd) and is not recommended.
...
16:53:01 (lmgrd) lmgrd tcp-port 20520
16:53:01 (lmgrd) Starting vendor daemons ...
16:53:01 (lmgrd) Using vendor daemon port 23 specified in license file
16:53:01 (lmgrd) Started BLUESPEC (internet tcp_port 23 pid 5465)
...
16:53:01 (BLUESPEC) Server started on Htbe.rrs.edu.cn for: BCOMP
16:53:01 (BLUESPEC) BSIM SYSCUNLIC
16:53:01 (lmgrd) BLUESPEC using TCP-port 23
18:30:06 (BLUESPEC) OUT: "BCOMP" [email protected]
18:30:08 (BLUESPEC) IN: "BCOMP" [email protected]


But it presents the same as before. Telnet to port from mycomputer still rejected and lmdiag also report telnet not respond. And RAMP can telnet to server at port 23 and lmdiag also reports the same error.
Quote:

@mycomputer

$ telnet Htbe 23
Trying 192.168.100.187...
telnet: Unable to connect to remote host: Connection timed out


$ ./lmdiag BCOMP
...
License file: [email protected]

"BCOMP" v3.8, vendor: BLUESPEC
License server: Htbe.rrs.edu.cn
floating license starts: 1-jan-1990, expires: 17-sep-2009

This license cannot be checked out because:
Cannot connect to license server

... I will try to determine what the problem is...

"telnet" port (23) on node Htbe.rrs.edu.cn does not respond
->if Htbe.rrs.edu.cn is a Unix system, it's probably down


$bsc Vending.bsv
Error: Unknown position: (S0058)
Bluespec is unable to checkout the required license. Information from
license software is given below.
Cannot connect to license server system.
The license server manager (lmgrd) has not been started yet,
the wrong [email protected] or license file is being used, or the
port or hostname in the license file has been changed.
Feature: BCOMP
Server name: Htbe.rrs.edu.cn
License path: [email protected]
FLEXnet Licensing error:-15,570. System Error: 115 "Operation now in progress"
...

Quote:

@RAMP

$telnet Htbe 23
Trying 192.168.100.187...
Connected to Htbe.
Escape character is '^]'.
^]

telnet> q
Connection closed.


$lmutil lmdiag BCOMP
...
"BCOMP" v3.8, vendor: BLUESPEC
License server: Htbe.rrs.edu.cn
floating license starts: 1-jan-1990, expires: 17-sep-2009

This license cannot be checked out because:
Cannot connect to license server

... I will try to determine what the problem is...

"telnet" port (23) on node Htbe.rrs.edu.cn does not respond
->if Htbe.rrs.edu.cn is a Unix system, it's probably down
...

$ bsc Vending
##it still works well.
$

The client can't telnet to the server, what's the problem? How can I find it out?

Regards,
Qi, Li
Back to top
View user's profile Send private message
ewc



Joined: 08 May 2007
Posts: 31

PostPosted: Thu Aug 06, 2009 3:22 pm    Post subject: Reply with quote

Hi roMoon,

lets' try to specify the ports used by the license server and the bluespec license daemon.
For the license server, please use the port 27000, the flex tools expect this.

The server line in the license file should look something like:
SERVER Htbe xxxxxxx 27000

For the bluespec daemon specific its port to be something else. say 27800
VENDOR BLUESPEC Daemons/BLUESPEC port=27800
Other license daemon must use other ports.

kill and restart the license server.

From external machines you should be able to telnet to those ports. The telnet will not timeout nor will the connection be refused nor will the telnet prompt come back. Telnet will validate your ability to connect to the server.

In some experiments here, I've noticed that lmdiag sometime reports that a license cannot be checked out, but it fact is can be checkedout. if the connection are ok then you might be best to check the license status with a call to bsc foo.bsv

Ed.

_________________
Ed C
Back to top
View user's profile Send private message
roMoon



Joined: 26 Jul 2009
Posts: 8

PostPosted: Fri Aug 07, 2009 11:33 pm    Post subject: Reply with quote

Hi ewc,

by trying "bsc foo.bsv" in "mycomputer", this is the results:
Quote:

Cannot connect to license server system.
The license server manager (lmgrd) has not been started yet,
the wrong [email protected] or license file is being used, or the
port or hostname in the license file has been changed.
Feature: BCOMP
Server name: Htbe.rrs.edu.cn
License path: [email protected]
FLEXnet Licensing error:-15,570. System Error: 115 "Operation now in progress"


Then I tried to specify the ports to be 27000 and 27800.
RAMP, which works well former, can still telnet to these two ports. But the new client, mycomputer, still can't telnet to them with the error: timed out.

I think this is the problem, but I don't know how to fix it.
Do you know how to diagnose whether it is the problem of my network or the problem of Bluespec? or the problem of telnet?

Regards
Li Qi
Back to top
View user's profile Send private message
ewc



Joined: 08 May 2007
Posts: 31

PostPosted: Mon Aug 10, 2009 2:55 pm    Post subject: Reply with quote

Hi roMoon,

The problems you are seeing are in your network connections and not within the bsc or flex software. These software are using standard unix network calls.

The concern I have is the message regarding the license path. where does [email protected] come from?
Server name: Htbe.rrs.edu.cn
License path: [email protected]

Do you have a $(HOME)/.flexlmrc file, it so delete it.

Ed

_________________
Ed C
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    bluespec.com Forum Index -> Tools: BSC (Bluespec Compiler) All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
bluespec.com topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP