Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  24 Jun 2010, Jimmy Ngai, Forum, Error connecting to back-end computer 
    Reply  26 Jun 2010, Konstantin Olchanski, Forum, Error connecting to back-end computer 
       Reply  27 Jun 2010, Jimmy Ngai, Forum, Error connecting to back-end computer 
          Reply  28 Jun 2010, Stefan Ritt, Forum, Error connecting to back-end computer 
             Reply  28 Jun 2010, Jimmy Ngai, Forum, Error connecting to back-end computer 
                Reply  29 Jun 2010, Konstantin Olchanski, Forum, Error connecting to back-end computer 
Message ID: 709     Entry time: 28 Jun 2010     In reply to: 708     Reply to this: 710
Author: Stefan Ritt 
Topic: Forum 
Subject: Error connecting to back-end computer 
> > Hi, there. I have not recently run mserver through inetd, and we usually do not do
> > that at TRIUMF. We do this:
> > 
> > a) on the main computer: start mserver: "mserver -p 7070 -D" (note - use non-default
> > port - can use different ports for different experiments)
> > b) on remote computer: "odbedit -h main:7070" ("main" is the hostname of your main
> > computer). Use same "-h" switch for all other programs, including the frontends.
> > 
> > This works well when all computers are on the same network, but if you have some
> > midas clients running on private networks you may get into trouble when they try to
> > connect to each other and fail because network routing is funny.
> 
> Hi K.O.,
> 
> Thanks for your reply. I have tried your way but I got the same error: 
> 
> [midas.c:8623:rpc_server_connect,ERROR] mserver subprocess could not be started 
> (check path)
> 
> My front-end and back-end computers are on the same network connected by a router. I 
> have allowed port 7070 in the firewall and done the port forwarding in the router (for 
> connecting from outside the network). From the error message it seems that some 
> processes can not be started automatically. Could it be related to some security 
> settings such as the SELinux?

The way connections work under Midas is there is a callback scheme. The client starts 
mserver on the back-end, then the back-end connects back to the front-end on three 
different ports. These ports are assigned dynamically by the operating system and are 
typically in the range 40000-60000. So you also have to allow the reverse connection on 
your firewalls.
ELOG V3.1.4-2e1708b5