connection is not establishing between servers
Posted in 2017
On Windows Server 2008 R2, dbaccess could connect from the secondary instance to the primary but not the reverse, failing with error 931 "Cannot locate secondaryport service/tcp service in /etc/services" plus a cli.iem message. Suggestions included checking that the services file is under %WINDIR%\\\\system32\\\\drivers\\\\etc (the poster confirmed it was) and that INFORMIXDIR is set (it was), then looking for a typo/space in the service name entry ("secondary port" vs "secondaryport"). Others noted you can reuse one service name/port on both machines or put the port number directly in sqlhosts. No confirmation of a fix is recorded.
Auto-generated by DrWatson from the posts below — may be imperfect; read the full thread.
Topics: Server Administration, Platform-Specific Issues
I am facing an issue while connecting between servers using DBACCESS. Environment : Windows server 2008 R2. two INFORMIXSERVER: primary and secondary. Service port for primary : primaryport 50005/tcp. Service port for secondary: secondary port 50006/tcp. From primary DBACCESS it is not connectiong to secondary but from secondary it is connecting to primary Error : 931: Cannot locate secondaryport service/tcp service in /etc/services. Cannot open file 'cli.iem'. But the service name: secondaryport is enable in /etc/services. in both servers.
Hi, in Windows, the services file is not in /etc but in <WINDOWSDIR>/system32/drivers/etc This might be the reason ? Marcus Haarmann Von: "MUKESH TANUKU" <mukeshbt1328@gmail.com> An: "ids" <ids@iiug.org> Gesendet: Donnerstag, 6. Juli 2017 10:46:44 Betreff: connection is not establishing between servers [39500] I am facing an issue while connecting between servers using DBACCESS. Environment : Windows server 2008 R2. two INFORMIXSERVER: primary and secondary. Service port for primary : primaryport 50005/tcp. Service port for secondary: secondary port 50006/tcp. >From primary DBACCESS it is not connectiong to secondary but from secondary it is connecting to primary Error : 931: Cannot locate secondaryport service/tcp service in /etc/services. Cannot open file 'cli.iem'. But the service name: secondaryport is enable in /etc/services. in both servers. ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum.
Usually this is caused by not having INFIRMIXDIR set. Art On Jul 6, 2017 04:15, "MUKESH TANUKU" <mukeshbt1328@gmail.com> wrote: > I am facing an issue while connecting between servers using DBACCESS. > > Environment : Windows server 2008 R2. > two INFORMIXSERVER: primary and secondary. > Service port for primary : primaryport 50005/tcp. > Service port for secondary: secondary port 50006/tcp. > > >From primary DBACCESS it is not connectiong to secondary but from > secondary it > is connecting to primary > > Error : 931: Cannot locate secondaryport service/tcp service in > /etc/services. > Cannot open file 'cli.iem'. > > But the service name: secondaryport is enable in /etc/services. in both > servers. > > > ************************************************************ > ******************* > Forum Note: Use "Reply" to post a response in the discussion forum. > >
I have mistaken that actually serivies file is in <WINDOWSDIR>/system32/drivers/etc only. and my INFORMIXDIR is set to desired location
my INFORMIXDIR is set to desired location.
Look carefully is it secondary port 50006/tcp as you posted? it should be secondaryport 50006/tcp > On 6 Jul 2017, at 09:46, MUKESH TANUKU <mukeshbt1328@gmail.com> wrote: > > I am facing an issue while connecting between servers using DBACCESS. > > Environment : Windows server 2008 R2. > two INFORMIXSERVER: primary and secondary. > Service port for primary : primaryport 50005/tcp. > Service port for secondary: secondary port 50006/tcp. > >> From primary DBACCESS it is not connectiong to secondary but from secondary it > is connecting to primary > > Error : 931: Cannot locate secondaryport service/tcp service in /etc/services. > Cannot open file 'cli.iem'. > > But the service name: secondaryport is enable in /etc/services. in both > servers. > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. >
Good observation Sent from Yahoo Mail for iPad On Thursday, July 6, 2017, 8:53 PM, Clive Eisen <clive@serendipita.com> wrote: Look carefully is it secondary port 50006/tcp as you posted? it should be secondaryport 50006/tcp > On 6 Jul 2017, at 09:46, MUKESH TANUKU <mukeshbt1328@gmail.com> wrote: > > I am facing an issue while connecting between servers using DBACCESS. > > Environment : Windows server 2008 R2. > two INFORMIXSERVER: primary and secondary. > Service port for primary : primaryport 50005/tcp. > Service port for secondary: secondary port 50006/tcp. > >> From primary DBACCESS it is not connectiong to secondary but from secondary it > is connecting to primary > > Error : 931: Cannot locate secondaryport service/tcp service in /etc/services. > Cannot open file 'cli.iem'. > > But the service name: secondaryport is enable in /etc/services. in both > servers. > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. > ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum.
As this is on two different machines (network identities), you could even use the same service name / port on either side, no need for having a primaryport and secondaryport. From: "Clive Eisen" <clive@serendipita.com> To: ids@iiug.org Date: 07/07/2017 04:53 AM Subject: Re: connection is not establishing between servers [39509] Sent by: ids-bounces@iiug.org Look carefully is it secondary port 50006/tcp as you posted? it should be secondaryport 50006/tcp > On 6 Jul 2017, at 09:46, MUKESH TANUKU <mukeshbt1328@gmail.com> wrote: > > I am facing an issue while connecting between servers using DBACCESS. > > Environment : Windows server 2008 R2. > two INFORMIXSERVER: primary and secondary. > Service port for primary : primaryport 50005/tcp. > Service port for secondary: secondary port 50006/tcp. > >> From primary DBACCESS it is not connectiong to secondary but from secondary it > is connecting to primary > > Error : 931: Cannot locate secondaryport service/tcp service in /etc/services. > Cannot open file 'cli.iem'. > > But the service name: secondaryport is enable in /etc/services. in both > servers. > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. > ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum.
Hi, I suspect that naming the same port number with different service names is not supported. We use a common portnumber everywhere, which is only listed once in services. You also have the choice to not name a service in sqlhosts entry but set the port number directly there. Marcus Haarmann Von: "Andreas Legner1" <Andreas.Legner1@de.ibm.com> An: "ids" <ids@iiug.org> Gesendet: Freitag, 7. Juli 2017 11:08:20 Betreff: Re: connection is not establishing between servers [39513] As this is on two different machines (network identities), you could even use the same service name / port on either side, no need for having a primaryport and secondaryport. From: "Clive Eisen" <clive@serendipita.com> To: ids@iiug.org Date: 07/07/2017 04:53 AM Subject: Re: connection is not establishing between servers [39509] Sent by: ids-bounces@iiug.org Look carefully is it secondary port 50006/tcp as you posted? it should be secondaryport 50006/tcp > On 6 Jul 2017, at 09:46, MUKESH TANUKU <mukeshbt1328@gmail.com> wrote: > > I am facing an issue while connecting between servers using DBACCESS. > > Environment : Windows server 2008 R2. > two INFORMIXSERVER: primary and secondary. > Service port for primary : primaryport 50005/tcp. > Service port for secondary: secondary port 50006/tcp. > >> From primary DBACCESS it is not connectiong to secondary but from secondary it > is connecting to primary > > Error : 931: Cannot locate secondaryport service/tcp service in /etc/services. > Cannot open file 'cli.iem'. > > But the service name: secondaryport is enable in /etc/services. in both > servers. > > > ******************************************************************************* > Forum Note: Use "Reply" to post a response in the discussion forum. > ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum. ******************************************************************************* Forum Note: Use "Reply" to post a response in the discussion forum.