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: Cannot connect to MASAR server
From: Emmanuel Mayssat <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Tue, 5 Feb 2013 10:31:07 -0800
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

Replies:
Re: Cannot connect to MASAR server Shen, Guobao

Navigate by Date:
Prev: RE: (epics-python) Cothread egg installation Emmanuel Mayssat
Next: Re: Cannot connect to MASAR server Shen, Guobao
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: RE: (epics-python) Cothread egg installation Emmanuel Mayssat
Next: Re: Cannot connect to MASAR server Shen, Guobao
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 ·