Operating System - HP-UX
1822781 Members
3973 Online
109645 Solutions
New Discussion юеВ

Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.

 
Ptalele
New Member

Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.

Hi,

I had changed the UID for the connect Direct user ,but since then i am getting two issue.

1) I cannot start the Connect Direct Services with the connect direct user, need to start it with root user only.

2) Also getting the below error.

/home/cduser/ndm/bin/direct

******************************************************
* *
* Connect:Direct for UNIX *
* *
*----------------------------------------------------*
* Copyright (c) 1992, 2006 Sterling Commerce, Inc. *
* Version 3.8.00 *
******************************************************

Failed to obtain connection to Connect:Direct server, exiting.

XAPI005I Return Code: 8 Feedback: 0
ndm_auth failure.


Connect:Direct CLI Terminated...

any advice on what should I do to get it working back?
7 REPLIES 7
TTr
Honored Contributor

Re: Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.

I don't have CD but I would think for #1 you also need to change the owner of the CD software to the new UID. For #2 once you fix #1 it may start working again or the CD server somehow needs to know about the new ID.

One more thing. When you start some software using the root account, it may create config files or log files that are owned by root. So the next time you run it as a regular user you will get errors. So look within the CD installation area and if you find files that are owned by root, see if they need to be changed to the CD user.
Ptalele
New Member

Re: Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.

Thanks for the response.

As per your suggestion I have checked the user id on the files, and can confirm that the change has been successsfully applied to all the files.

But to confirm I have not changed the user,only changed the UID for the user.
user:- CDUSER
Original UID:- 500
New UID:- 8722

I did not change the group on the user.
After this when I ran the initialisation program I am getting the issue.

I am initializing with the below command:
/home/cduser/ndm/bin/cdpmgr -i /home/cduser/ndm/cfg/MYUKSLLDECD001/initparm.cfg


Also you have suggested it needs to change the owner of the CD Software to the new UID,
Could you please provide the location or file where we need to put the changes.
TTr
Honored Contributor

Re: Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.

What does "ll -d /home/cduser" show for user owner? Similarly what does "ll /home/cduser" show? And all files under it? It should be cduser and NOT 500.
Ptalele
New Member

Re: Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.

I have checked all the directories:

ll -d /home/cduser
drwxrwxrwx 14 cduser cduser 4096 Aug 12 15:45 /home/cduser


ll /home/cduser
total 200476
-rwxrwxr-x 1 cduser cduser 614 Apr 8 11:04 239168.txt
-rw-rw-r-- 1 cduser cduser 79161 May 14 15:57 addacs
-rw-rw-r-- 1 cduser cduser 79161 May 14 16:07 addacs_fiat
-rw-rw-r-- 1 cduser cduser 79161 May 14 16:07 addacs_ge
drwxrwxr-x 2 cduser cduser 4096 Apr 9 15:47 bin
drwxrwxrwx 2 cduser cduser 4096 Apr 9 15:28 cdgefi
drwxrwxr-x 4 cdglextr cduser 4096 May 20 13:37 cdglextr
drwx------ 4 cdialler cduser 4096 Aug 13 06:00 cdialler
-r-xr-xr-x 1 cduser cduser 61337 Nov 8 2006 cdinstall
-rw-r--r-- 1 cduser cduser 93552640 Nov 8 2006 cdunix
-rwxrwxr-x 1 cduser cduser 110944819 Apr 2 10:34 CDUnix3800_RedHat_linux[1].tar.Z
lrwxrwxrwx 1 cduser cduser 16 Apr 10 14:07 cduser.env -> ./bin/cduser.env
drwxr-xr-x 2 cduser cduser 4096 Nov 8 2006 documentation
drwxr-xr-x 2 cduser cduser 4096 Apr 8 11:12 etc
-rw-r--r-- 1 prod proddba 30 Apr 11 13:41 input_file.dat
drwxr-xr-x 11 cduser cduser 4096 Apr 8 11:13 ndm
-rw-rw-r-- 1 cduser cduser 4153 Apr 8 11:04 netmap.cfg
-rw-r--r-- 1 cduser cduser 14302 Nov 8 2006 README
-rwxr-x--- 1 cduser cduser 947 Apr 9 15:30 rsh_run.csh
drwxr-xr-x 2 cduser cduser 4096 May 22 16:53 scripts
-rw-rw-r-- 1 cduser cduser 12 Apr 9 10:29 test2.txt
-rw-rw-r-- 1 cduser cduser 15 Apr 9 11:39 test3.txt
-rw-rw-r-- 1 cduser cduser 8 Apr 10 12:02 test5.txt
-rw-rw-r-- 1 cduser cduser 20 Jun 20 14:39 Test_FromGEMoney.txt
-rw-rw-r-- 1 cduser cduser 25 Jun 20 13:33 Test_FromGenworth.doc
drwxr-xr-x 2 cduser cduser 4096 Nov 8 2006 Third_Party_Licenses
-rw-r--r-- 1 prod proddba 15 Apr 21 11:13 UAT.test1
-rw-rw-r-- 1 cduser cduser 29 Jun 20 12:19 UAT_test.txt
-rw------- 1 cduser cduser 3284 Apr 8 11:04 userfile.cfg
-rw------- 1 cduser cduser 183 Aug 11 10:32 userfile_old.cfg
drwxrwxr-t 3 cduser cduser 4096 Apr 8 11:12 work
-rw-r--r-- 1 cduser cduser 112 Apr 9 11:05 y2klog.gcpr075


All these files are as they were before changing the UID.
TTr
Honored Contributor

Re: Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.

The owner looks OK except some files are owned by "prod", "cddialer", "cdglextr". I don't know if this is normal. You should go further and check all subdirectories with "ll -R /home/cduser". As I said in my first reply, I do not have CD, I was pointing out possible issues when changing the UID of installed software.

You may consider deleting or formally removing the CD software if they have a remove tool and reinstall it from scratch.
Ptalele
New Member

Re: Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.


I had logged a case with the Sterling and they too said to reinstall connect direct.
So I guess there is no way we can change the UID of a user without impacting the connect direct.

Thanks for your advices
Prashant
Ptalele
New Member

Re: Issue with Connect Direct Issue: Failed to obtain connection to Connect:Direct server, exiting.

Response from Sterling:

- delete the CD Unix installation;
- set the UID as you wish it to be for the installation user;
- install Connect Direct Unix 3.8 with the new settings


This was the option for me, due to the timeframe. might be Sterling can provide a solution on this if you have got time to Investigate and do some testing.

Hence opted the above option and reinstalled connect direct.