EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Cannot connect to MASAR server
From: "Shen, Guobao" <[email protected]>
To: Emmanuel Mayssat <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 05 Feb 2013 15:21:36 -0500
Do you have your firewall open?
Are the ports 5075/5076 disable?

Seems like that your ports are closed.

Guobao

On 2/5/13 1:31 PM, Emmanuel Mayssat wrote:
Following the docs at 
I installed masar.

The installation is relatively smooth.
But when I try to start the server and then the client, I get 
"Cannot connect to MASSAR server. Please .... "

Client and server are running on the same machine.




epics2@cr1dev1 $ ./bin/linux-x86_64/masarServiceRun MASARSERVICE:TEST:EXAMPLE
VERSION : pvAccess Server v1.2-SNAPSHOT
PROVIDER_NAMES : pvService
BEACON_ADDR_LIST : 
AUTO_BEACON_ADDR_LIST : 1
BEACON_PERIOD : 15
BROADCAST_PORT : 5076
SERVER_PORT : 5075
RCV_BUFFER_SIZE : 16384
IGNORE_ADDR_LIST: 
STATE : INITIALIZED
===Starting channel RPC server: MASARSERVICE:TEST:EXAMPLE
===Use CTRl-D or exit() command to stop MASARSERVICE:TEST:EXAMPLE server.
masarService>

The server seems to be running correctly. 
In another terminal, I start the pyqt client

epics2@cr1dev1 $ python masar MASARSERVICE:TEST:EXAMPLE
Which returns the 'cannot connect' error message...

I tried connecting with the API

epics2@cr1dev1 $ python 
Python 2.7.3 (default, Jul 24 2012, 11:41:40) 
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from masarclient import masarClient
>>> from masarclient.channelRPC import epicsExit
>>> channel='MASARSERVICE:TEST:EXAMPLE'
>>> mc = masarClient.client(channelname = channel)
>>> result = mc.retrieveSystemList()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/local/epics/middleware/4.20130201/masarService/python/masarclient/masarClient.py", line 70, in retrieveSystemList
    nttable = self.__clientRPC(function, params)
  File "/home/local/epics/middleware/4.20130201/masarService/python/masarclient/masarClient.py", line 42, in __clientRPC
    if not channelRPC.waitConnect(1.0) :
  File "/home/local/epics/middleware/4.20130201/masarService/python/masarclient/channelRPC.py", line 75, in waitConnect
    result = channelRPCPy._waitConnect(self.cppPvt,timeout);
SystemError: error return without exception set

It seems that the server and clients cannot see each others.
Am I missing something?

--
Emmanuel


References:
Cannot connect to MASAR server Emmanuel Mayssat

Navigate by Date:
Prev: Cannot connect to MASAR server Emmanuel Mayssat
Next: RE: Save/Compare/Restore Application Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Cannot connect to MASAR server Emmanuel Mayssat
Next: The INP field Bruno Seiva Martins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·