fatal: libiconv.so.2: open failed

General discussion of the Co:Z Toolkit
Post Reply
db2
Posts: 7
Joined: Thu May 07, 2009 7:53 am

fatal: libiconv.so.2: open failed

Post by db2 »

Hi,

I compiled coz in a Sun Solaris box succesfully. When I execute a JCL from z/OS, I have the error below:

Code: Select all

********************************* TOP OF DATA **********************************
CoZLauncher.N.: version: 1.2.5 2009-04-20
CoZLauncher.N.: Copyright (C) Dovetailed Technologies, LLC. 2006. All rights res
Warning: remote port forwarding failed for listen port 8040

ld.so.1: cozagent: fatal: libiconv.so.2: open failed: No such file or directory
Killed
CoZLauncher.E.: cmo3665@sunetld01 target command '<default shell>' ended with RC
******************************** BOTTOM OF DATA ********************************
Seems that /usr/local/lib is missing in some path. I added this library in the LD_LIBRARY_PATH variable in a .profile file for the user submitting the job...

Can someone help please?
Thanks!
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

When sshd executes cozagent, it doesn't use a login shell, so your ~/.profile is not run. (By default, cozagent will start a default login shell to run your script, so your ~/.profile will run then, but its too late for loading cozagent itself).

In order to export any variables needed to run cozagent, you need to set them in ~/.ssh/environment, ~/.ssh/rc, or /etc/ssh/sshrc

The following man page is a reference on how to use these:

http://www.openbsd.org/cgi-bin/man.cgi?query=sshd

BTW: it looks like SSHD was also not able to reverse-forwarding the port. Check to see if the configured port range is available and that your SSHD server is configured to allow reverse forwarding.
db2
Posts: 7
Joined: Thu May 07, 2009 7:53 am

Post by db2 »

Hi,

Thanks a lot for your feedback.

I found that I need to enable PermitUserEnvironment in ssh in order to use ~/.ssh/environment, I'm waiting for a test server in order to validate if this will solve the issue. I'm not sure of the security impacts of this change.

In the mean time, I wonder if there is a way of including the missing modules staticly in the load module during compilation. I tried the --enable-static option of configure but the final effect is the same...any ideas?

I did change the configuration to ssh-tunnel=false, will test if I can work whith this settings in order to circumbent the reverse-forwarding missing configuration.

Thx again!
Cristian, rainy Belgium
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

One alternative is to create a front-end shell script to cozagent, that looks something like this:
#!/bin /sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bin
export LD_LIBRARY_PATH
DIR=`dirname $0`
exec $DIR/cozagent
Note: there is no space after "/bin" (this forum won't allow that string for some strange reason).

Make this script executable and name it something like "cozagent.sh", in the same directory as the cozagent executable. Change the "agent-path" launcher option to point to the full path of the shell script.

This should allow you to setup the environment for cozagent without ssh "PermitEnvironment".
db2
Posts: 7
Joined: Thu May 07, 2009 7:53 am

Post by db2 »

Hi,

Devetail, thx for this great tip, I did implemet it as follows, as it works for the non found library problem:

Code: Select all

#!/bin /sh
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
PATH=$PATH:/usr/local/bin:/opt/dovetail/coz/bin
export PATH
DIR=`dirname $0`
exec $DIR/cozagent
Now the process goes further and I find the following error:

Code: Select all

N.: version: 1.2.5 2009-04-20
CoZLauncher.N.: Copyright (C) Dovetailed Technologies, LLC. 2006. All rights res
cozagent.N.: version: 1.0.5 2008-03-01
cozagent.E.: execvp: No such file or directory
cozagent.E.: execvp: No such file or directory
cozagent.E.: execvp: No such file or directory
cozagent.E.: Target Program(1375) received signal - 13
cozagent.E.: Stderr DD Writer(1378) ended with RC=102
cozagent.E.: Stdout DD Writer(1377) ended with RC=102
cozagent.E.: Stdin DD Reader(1376) ended with RC=102
CoZLauncher.E.: cmoxxxx@sunxxxx01 target command '<default shell>' ended with RC
I did execute the job using traces (-LT,t) and I got:

Code: Select all

N.: version: 1.2.5 2009-04-20
CoZLauncher.N.: Copyright (C) Dovetailed Technologies, LLC. 2006. All rights res
CoZLauncher.D.: target_user=cmoxxxx, target_host=sunxxxx01, target_port=NULL
CoZLauncher.T.: -> CoZLauncher()
CoZLauncher.D.: sysname=TEST
CoZLauncher.T.: <- CoZLauncher()
CoZLauncher.T.: -> run()
CoZLauncher.D.: CoZLauncher process id=67436753.  Parent pid=1
CoZLauncher.T.: -> logRegionSize()
CoZLauncher.D.: region size requested = 262144K, Actual below/above limit = 9192
CoZLauncher.T.: <- logRegionSize()
CoZLauncher.T.: -> loadConfiguration()
CoZLauncher.I.: Agent output WTO is OFF
CoZLauncher.I.: ssh tunnelling is OFF
CoZLauncher.D.: server-path=/u/users/cmoxxxx/coz/bin/cozserver
CoZLauncher.D.: server-ports=8040-8048
CoZLauncher.D.: ssh-tunnel=false
CoZLauncher.D.: agent-path=/opt/dovetail/coz/bin/cozagent.sh
CoZLauncher.D.: server-env-COZ_TRSUB_US-ASCII=ISO8859-1
CoZLauncher.D.: target-env-LD_LIBRARY_PATH=/usr/local/lib
CoZLauncher.D.: target-env-PATH=$PATH:/usr/local/lib
CoZLauncher.T.: <- loadConfiguration()
CoZLauncher.T.: -> setServerEnvironment()
CoZLauncher.T.: -> loadEtcInitOptionsEnv()
CoZLauncher.T.:    loadEtcInitOptionsEnv: TZ=GMT0BST
CoZLauncher.T.: <- loadEtcInitOptionsEnv()
CoZLauncher.D.: Set server environment variable:'COZ_TRSUB_US-ASCII'='ISO8859-1'
CoZLauncher.T.: <- setServerEnvironment()
CoZLauncher.T.: -> generateAuthToken()
CoZLauncher.D.: open(/dev/random) - EDC5157I An internal error has occurred. (er
CoZLauncher.D.: ICSF not available, using random()
CoZLauncher.T.: <- generateAuthToken()
CoZLauncher.T.: -> determineServerPort()
CoZLauncher.D.: Server port range: 8040-8048
CoZLauncher.D.: Attempting to start socket listener on port 8040
CoZLauncher.T.: -> startSocketListener(host=0.0.0.0, port=8040)
CoZLauncher.I.: CoZServer listener socket bound to: 0.0.0.0:8040
CoZLauncher.T.: <- startSocketListener(listensock=0)
CoZLauncher.T.: <- determineServerPort()
CoZLauncher.T.: -> launchServer()
CoZLauncher.T.: -> buildServerCommand()
CoZLauncher.D.: server_cmd...
5/coz/bin/cozserver -sockfd 3
CoZLauncher.T.: <- buildServerCommand()
CoZLauncher.T.: -> spawnServer()
CoZLauncher.T.: server fd_map.-1,-1,2,0.
CoZLauncher.T.: server_stderr_fd=1
CoZLauncher.D.: Started CoZServer process: 50659546
CoZLauncher.T.: <- spawnServer()
CoZLauncher.T.: <- launchServer()
CoZLauncher.T.: -> launchAgent()
CoZLauncher.T.: -> buildAgentCommand()
CoZLauncher.D.: agent_cmd...
3665 sunxxxx01 /opt/dovetail/coz/bin/cozagent.sh
CoZLauncher.T.: <- buildAgentCommand()
CoZLauncher.T.: -> spawnAgent()
CoZLauncher.T.: agent_fd_map.0,4,6.
CoZLauncher.T.: agent_fds.2,3,5.
CoZLauncher.T.: -> serverStderrThread()
CoZLauncher.D.: Started CoZAgent process: 84213980
CoZLauncher.T.: <- spawnAgent()
CoZLauncher.T.: agent FDS=.2,3,5.
CoZLauncher.D.: About to start target command: ''
CoZLauncher.T.: <- launchAgent()
CoZLauncher.T.: -> waitForChildren()
CoZLauncher.T.: -> agentStdinThread()
CoZLauncher.T.: -> agentStderrThread()
CoZLauncher.T.: -> agentStdoutThread()
CoZLauncher.D.: First agent message received:
rsion: 1.0.5 2008-03-01
CoZLauncher.D.: CoZAgent: completed with RC=105

CoZLauncher.T.: -> handleAgentCompletion()
CoZLauncher.D.: Killing child process CoZServer (50659546) with signal 15
ecvp: No such file or directory
ecvp: No such file or directory
ecvp: No such file or directory
rget Program(1443) received signal - 13
CoZLauncher.T.: <- handleAgentCompletion()
derr DD Writer(1446) ended with RC=102
CoZLauncher.T.: -> waitStatusAgent()
CoZLauncher.D.: serverStderrThread completed
dout DD Writer(1445) ended with RC=102
CoZLauncher.D.: agentStdoutThread completed
CoZLauncher.E.: cmoxxxx@sunxxxx01 target command '<default shell>' ended with RC
CoZLauncher.T.: <- serverStderrThread()
din DD Reader(1444) ended with RC=102
CoZLauncher.T.: <- agentStdoutThread()
CoZLauncher.T.: <- waitStatusAgent()
CoZLauncher.D.: agentStderrThread completed
CoZLauncher.D.: Killing child process CoZServer (50659546) with signal 15
CoZLauncher.T.: <- agentStderrThread()
CoZLauncher.D.: Waiting for CoZServer
CoZLauncher.T.: -> waitStatusServer()
CoZLauncher.D.: CoZServer (50659546) ended with RC=0
CoZLauncher.T.: <- waitStatusServer()
CoZLauncher.T.: <- waitForChildren(rc=105)
CoZLauncher.T.: -> cleanup()
CoZLauncher.T.: <- agentStdinThread()
CoZLauncher.T.: <- cleanup()
CoZLauncher.I.: CoZLauncher ended with RC=105
CoZLauncher.T.: <- run()
CoZLauncher.T.: -> ~CoZLauncher()
CoZLauncher.T.: <- ~CoZLauncher()
I cannot find a way of solving this, nor more details on the RC=105
Again, any help will be appreciated!

Cristian
(sunny today in Belgium)
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Are your cozagent binary and shell script files in "/opt/dovetail/coz/bin"? Are the "fromdsn" and "todsn" commands in this directory also and are their permissions set to executable? Try executing the "fromdsn" and "todsn" commands to verify.

Otherwise, please enable logging for the target system and post or email to info@dovetail.com

To do this, use the following launcher options:

agent-options=-LD,t
target-env-COZ_LOG=D,t
db2
Posts: 7
Joined: Thu May 07, 2009 7:53 am

Post by db2 »

Hi,

Thx again for your support.
The modules are located as follows:

Code: Select all

[root@sunxxxx01]:/opt/dovetail/coz/bin # ls -la
total 1082
drwxr-xr-x   2 root     root         512 May 18 08:38 .
drwxr-xr-x   4 root     root         512 May 18 08:01 ..
-rwxr-xr-x   1 root     root       87304 May 18 08:01 cozagent
-rwxr-xr-x   1 root     root         177 May 18 08:57 cozagent.sh
-rwxr-xr-x   1 root     root      128312 May 18 08:01 cozclient
-rwxr-xr-x   1 root     root      128936 May 18 08:01 fromdsn
-rwxr-xr-x   1 root     root       44968 May 18 08:01 genlines
-rwxr-xr-x   1 root     root      128864 May 18 08:01 todsn
[root@sunxxxx01]:/opt/dovetail/coz/bin #
I execute the fromdsn command as folllows and I get the same problem.

Code: Select all

//RUNCOZ EXEC PROC=COZPROC,ARGS='-LD,t  CMOxxxx@sunxxxx01'
//COZCFG DD   DISP=SHR,DSN=CMOxxxx.PROJ.SSH.COZ.CNTL(COZCFGD)
//STDIN DD *
fromdsn '//sys1.maclib(acb)'   grep BLKSIZE
/*
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
I executed the following JCL using the tracing options indicated in your previous post, here the results:

The JCL

Code: Select all

//RUNCOZ EXEC PROC=COZPROC,ARGS='-LD,t  CMOxxxx@sunxxxx01'
//COZCFG DD   DISP=SHR,DSN=CMOxxxx.PROJ.SSH.COZ.CNTL(COZCFGD)
//STDIN DD *
uname -a
env
/*
The output

Code: Select all

.05:39:21.341. CoZLauncher.N.: version: 1.2.5 2009-04-20
.05:39:21.344. CoZLauncher.N.: Copyright (C) Dovetailed Technologies, LLC. 2006.
.05:39:21.344. CoZLauncher.D.: target_user=CMOxxxx, target_host=sunxxxx01, targe
.05:39:21.344. CoZLauncher.D.: sysname=TEST
.05:39:21.344. CoZLauncher.D.: CoZLauncher process id=50659771.  Parent pid=1
.05:39:21.344. CoZLauncher.D.: region size requested = 262144K, Actual below/abo
.05:39:21.371. CoZLauncher.I.: Agent output WTO is OFF
.05:39:21.371. CoZLauncher.I.: ssh tunnelling is OFF
.05:39:21.371. CoZLauncher.D.: agent-options=-LD,t
.05:39:21.371. CoZLauncher.D.: target-env-COZ_LOG=D,t
.05:39:21.371. CoZLauncher.D.: server-path=/u/users/CMOxxxx/coz/bin/cozserver
.05:39:21.371. CoZLauncher.D.: server-ports=8040-8048
.05:39:21.371. CoZLauncher.D.: ssh-tunnel=false
.05:39:21.371. CoZLauncher.D.: agent-path=/opt/dovetail/coz/bin/cozagent.sh
.05:39:21.371. CoZLauncher.D.: server-env-COZ_TRSUB_US-ASCII=ISO8859-1
.05:39:21.371. CoZLauncher.D.: target-env-LD_LIBRARY_PATH=/usr/local/lib
.05:39:21.371. CoZLauncher.D.: target-env-PATH=$PATH:/usr/local/lib
.06:39:21.382. CoZLauncher.D.: Set server environment variable:'COZ_TRSUB_US-ASC
.06:39:21.385. CoZLauncher.D.: open(/dev/random) - EDC5157I An internal error ha
.06:39:21.385. CoZLauncher.D.: ICSF not available, using random()
.06:39:21.385. CoZLauncher.D.: Server port range: 8040-8048
.06:39:21.385. CoZLauncher.D.: Attempting to start socket listener on port 8040
.06:39:21.642. CoZLauncher.I.: CoZServer listener socket bound to: 0.0.0.0:8040
.06:39:21.642. CoZLauncher.D.: server_cmd...
/u/users/CMOxxxx/coz/bin/cozserver -sockfd 3
.06:39:21.709. CoZLauncher.D.: Started CoZServer process: 328159
.06:39:21.712. CoZLauncher.D.: arg.0. = '-LD,t'
.06:39:21.712. CoZLauncher.D.: agent_cmd...
/bin/ssh -l CMOxxxx sunxxxx01 /opt/dovetail/coz/bin/cozagent.sh -LD,t
.06:39:21.760. CoZLauncher.D.: Started CoZAgent process: 328165
.06:39:21.760. CoZLauncher.D.: About to start target command: ''
.06:39:37.026. CoZLauncher.D.: First agent message received:
cozagent.N.: version: 1.0.5 2008-03-01
.06:39:37.275. CoZLauncher.D.: CoZAgent: completed with RC=105

.06:39:37.276. CoZLauncher.D.: Killing child process CoZServer (328159) with sig
cozagent.E.: execvp: No such file or directory
cozagent.E.: execvp: No such file or directory
cozagent.E.: execvp: No such file or directory
cozagent.E.: Target Program(20369) received signal - 13
cozagent.E.: Stderr DD Writer(20372) ended with RC=102
cozagent.E.: Stdout DD Writer(20371) ended with RC=102
cozagent.E.: Stdin DD Reader(20370) ended with RC=102
.06:39:37.278. CoZLauncher.D.: agentStdoutThread completed
.06:39:37.278. CoZLauncher.D.: agentStderrThread completed
.06:39:37.279. CoZLauncher.D.: serverStderrThread completed
.06:39:37.285. CoZLauncher.E.: CMOxxxx@sunxxxx01 target command '<default shell>
.06:39:37.285. CoZLauncher.D.: Killing child process CoZServer (328159) with sig
.06:39:37.286. CoZLauncher.D.: Waiting for CoZServer
.06:39:37.286. CoZLauncher.D.: CoZServer (328159) ended with RC=0
.06:39:37.298. CoZLauncher.I.: CoZLauncher ended with RC=105
Btw, the target system is a :

Code: Select all

SunOS sunxxxx01 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-Blade-T6320
Thx a lot again for your help.

Cristian
coz
Posts: 391
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

The logging options are not getting to cozagent. The last line of your cozagent.sh should read:

Code: Select all

exec $DIR/cozagent "$@"
Please make that change and post your results
db2
Posts: 7
Joined: Thu May 07, 2009 7:53 am

Post by db2 »

Hi,

Changes done, here the outcome:

Code: Select all

.12:49:21.748. CoZLauncher.N.: version: 1.2.5 2009-04-20
.12:49:21.757. CoZLauncher.N.: Copyright (C) Dovetailed Technologies, LLC. 2006.
.12:49:21.757. CoZLauncher.D.: target_user=cmoxxxx, target_host=sunetlp01, targe
.12:49:21.757. CoZLauncher.D.: sysname=TEST
.12:49:21.757. CoZLauncher.D.: CoZLauncher process id=327939.  Parent pid=1
.12:49:21.757. CoZLauncher.D.: region size requested = 262144K, Actual below/abo
.12:49:22.009. CoZLauncher.I.: Agent output WTO is OFF
.12:49:22.009. CoZLauncher.I.: ssh tunnelling is OFF
.12:49:22.009. CoZLauncher.D.: agent-options=-LD,t
.12:49:22.009. CoZLauncher.D.: target-env-COZ_LOG=D,t
.12:49:22.009. CoZLauncher.D.: server-path=/u/users/cmoxxxx/coz/bin/cozserver
.12:49:22.009. CoZLauncher.D.: server-ports=8040-8048
.12:49:22.009. CoZLauncher.D.: ssh-tunnel=false
.12:49:22.009. CoZLauncher.D.: agent-path=/opt/dovetail/coz/bin/cozagent.sh
.12:49:22.009. CoZLauncher.D.: server-env-COZ_TRSUB_US-ASCII=ISO8859-1
.12:49:22.009. CoZLauncher.D.: target-env-LD_LIBRARY_PATH=/usr/local/lib
.12:49:22.009. CoZLauncher.D.: target-env-PATH=$PATH:/usr/local/lib
.13:49:22.021. CoZLauncher.D.: Set server environment variable:'COZ_TRSUB_US-ASC
.13:49:22.022. CoZLauncher.D.: open(/dev/random) - EDC5157I An internal error ha
.13:49:22.022. CoZLauncher.D.: ICSF not available, using random()
.13:49:22.022. CoZLauncher.D.: Server port range: 8040-8048
.13:49:22.022. CoZLauncher.D.: Attempting to start socket listener on port 8040
.13:49:22.198. CoZLauncher.I.: CoZServer listener socket bound to: 0.0.0.0:8040
.13:49:22.199. CoZLauncher.D.: server_cmd...
/u/users/cmoxxxx/coz/bin/cozserver -sockfd 3
.13:49:22.278. CoZLauncher.D.: Started CoZServer process: 328007
.13:49:22.289. CoZLauncher.D.: arg.0. = '-LD,t'
.13:49:22.296. CoZLauncher.D.: agent_cmd...
/bin/ssh -l cmoxxxx sunetlp01 /opt/dovetail/coz/bin/cozagent.sh -LD,t
.13:49:22.321. CoZLauncher.D.: Started CoZAgent process: 328178
.13:49:22.321. CoZLauncher.D.: About to start target command: ''
.13:49:44.884. CoZLauncher.D.: First agent message received:
cozagent.N.: version: 1.0.5 2008-03-01
.14:46:38.585. cozagent.I.: version: 1.0.5 2008-03-01
.14:46:38.585. cozagent.I.: Copyright (C) Dovetailed Technologies, LLC. 2006. Al
.14:46:38.585. cozagent.D.: cozagent dir: /opt/dovetail/coz/bin
.14:46:38.586. cozagent.D.: cwd: /home/cmoxxxx
.14:46:38.586. cozagent.D.: PATH:
.14:46:38.586. cozagent.D.:  /usr/bin
.14:46:38.586. cozagent.D.:  /usr/local/bin
.14:46:38.586. cozagent.D.:  /opt/dovetail/coz/bin
.14:46:38.586. cozagent.D.:  /opt/dovetail/coz/bin
.14:46:38.586. cozagent.D.: Waiting for configuration commands...
.14:46:38.586. cozagent.D.: Set environment variable: 'COZ_SERVER_HOST'
.14:46:38.586. cozagent.D.: Set environment variable: 'COZ_SERVER_PORT'
.14:46:38.586. cozagent.D.: Set environment variable: 'COZ_AUTH_TOKEN'
.14:46:38.586. cozagent.D.: Set environment variable: 'COZ_LOG'
.14:46:38.586. cozagent.D.: Set environment variable: 'LD_LIBRARY_PATH'
.14:46:38.586. cozagent.D.: Set environment variable: 'PATH'
.14:46:38.586. cozagent.D.: target_command='NULL'
.14:46:38.587. cozagent.D.: getpwuid(geteuid()) pw=2de64, pw_shell=/bin/sh
.14:46:38.588. cozagent.D.: target_pid = 8135
.13:49:45.172. CoZLauncher.D.: CoZAgent: completed with RC=1

.13:49:45.172. CoZLauncher.D.: Killing child process CoZServer (328007) with sig
.14:46:38.589. cozagent.D.: stdin_dd_pid = 8136
.14:46:38.590. cozagent.D.: stdout_dd_pid = 8137
.14:46:38.590. cozagent.E.: execvp: No such file or directory
.14:46:38.591. cozagent.D.: stderr_dd_pid = 8138
.14:46:38.591. cozagent.E.: execvp: No such file or directory
.14:46:38.592. cozagent.E.: execvp: No such file or directory
.14:46:38.593. cozagent.E.: Target Program(8135) ended with RC=1
.14:46:38.593. cozagent.E.: Stdout DD Writer(8137) ended with RC=102
.14:46:38.593. cozagent.E.: Stdin DD Reader(8136) ended with RC=102
.14:46:38.593. cozagent.D.: At least one child process still running, waiting ag
.14:46:38.795. cozagent.E.: Stderr DD Writer(8138) ended with RC=102
.13:49:45.174. CoZLauncher.D.: agentStdoutThread completed
.13:49:45.174. CoZLauncher.D.: agentStderrThread completed
.13:49:45.176. CoZLauncher.D.: serverStderrThread completed
.13:49:45.177. CoZLauncher.E.: cmoxxxx@sunetlp01 target command '<default shell>
.13:49:45.177. CoZLauncher.D.: Killing child process CoZServer (328007) with sig
.13:49:45.178. CoZLauncher.D.: Waiting for CoZServer
.13:49:45.178. CoZLauncher.D.: CoZServer (328007) ended with RC=0
.13:49:45.188. CoZLauncher.I.: CoZLauncher ended with RC=1
Thx again...
coz
Posts: 391
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

Interesting. Using a shell on your target machine, set and export your LD_LIBRARY_PATH and PATH as per your cozagent.sh, then issue the following command:

Code: Select all

todsn -v
And post the results.
db2
Posts: 7
Joined: Thu May 07, 2009 7:53 am

Post by db2 »

Hi,
Here the command output...

Code: Select all

[root@sunxxxx01]:/opt/dovetail/coz/bin # todsn -v
1.0.5 2008-03-01
[root@sunxxxx01]:/opt/dovetail/coz/bin #
Thx!
coz
Posts: 391
Joined: Fri Jul 30, 2004 5:29 pm

Post by coz »

Can you remove the following two lines from your COZCFG and try again?

Code: Select all

target-env-LD_LIBRARY_PATH=/usr/local/lib
target-env-PATH=$PATH:/usr/local/lib
You don't need these, as the environment is properly setup via your shell script. In this case, LD_LIBRARY_PATH may be getting (re)set improperly. If this doesn't work, we'll have you make some changes to the target toolkit code for more diagnostic information.
db2
Posts: 7
Joined: Thu May 07, 2009 7:53 am

Post by db2 »

Hi,

I got the following:

Code: Select all

CoZLauncher.N.: version: 1.2.5 2009-04-20
CoZLauncher.N.: Copyright (C) Dovetailed Technologies, LLC. 2006. All rights res
CoZLauncher.W.: Unable to read /etc/init.options, continuing without setting bas
cozagent.N.: version: 1.0.5 2008-03-01
.14:28:45.963. cozagent.I.: version: 1.0.5 2008-03-01
.14:28:45.963. cozagent.I.: Copyright (C) Dovetailed Technologies, LLC. 2006. Al
.14:28:45.963. cozagent.D.: cozagent dir: /opt/dovetail/coz/bin
.14:28:45.963. cozagent.D.: cwd: /home/cmoxxxx
.14:28:45.963. cozagent.D.: PATH:
.14:28:45.963. cozagent.D.:  /usr/bin
.14:28:45.964. cozagent.D.:  /usr/local/bin
.14:28:45.964. cozagent.D.:  /opt/dovetail/coz/bin
.14:28:45.964. cozagent.D.:  /opt/dovetail/coz/bin
.14:28:45.964. cozagent.D.: Waiting for configuration commands...
.14:28:45.964. cozagent.D.: Set environment variable: 'COZ_SERVER_HOST'
.14:28:45.964. cozagent.D.: Set environment variable: 'COZ_SERVER_PORT'
.14:28:45.964. cozagent.D.: Set environment variable: 'COZ_AUTH_TOKEN'
.14:28:45.964. cozagent.D.: Set environment variable: 'COZ_LOG'
.14:28:45.964. cozagent.D.: target_command='NULL'
.14:28:45.964. cozagent.D.: getpwuid(geteuid()) pw=2de34, pw_shell=/bin/sh
.14:28:45.966. cozagent.D.: target_pid = 5506
.14:28:45.967. cozagent.D.: stdin_dd_pid = 5507
.14:28:45.967. cozagent.D.: stdout_dd_pid = 5508
.14:28:45.968. cozagent.D.: stderr_dd_pid = 5509
.14:28:45.981. fromdsn-client.I.: version: 1.0.5 2008-03-01
.14:28:45.981. todsn-client.I.: version: 1.0.5 2008-03-01
.14:28:45.982. fromdsn-client.D.: Using getaddrinfo() to start connection to ser
.14:28:45.982. todsn-client.D.: Using getaddrinfo() to start connection to serve
.14:28:45.982. todsn-client.I.: version: 1.0.5 2008-03-01
.14:28:45.983. todsn-client.D.: Using getaddrinfo() to start connection to serve
.14:28:48.991. todsn-client.W.: Timeout attempting to connect socket
.14:28:48.991. todsn-client.W.: Timeout attempting to connect socket
.14:28:48.991. fromdsn-client.W.: Timeout attempting to connect socket
.14:28:48.991. fromdsn-client.D.: clientCodePage '646' (via setlocale)
.14:28:48.991. todsn-client.D.: clientCodePage '646' (via setlocale)
.14:28:48.991. todsn-client.D.: clientCodePage '646' (via setlocale)
.14:28:48.992. todsn-client.E.: CoZClient.C(644) - iconv_open(UTF-8, 646) - .22.
.14:28:48.992. todsn-client.E.: CoZClient.C(644) - iconv_open(UTF-8, 646) - .22.
.14:28:48.992. fromdsn-client.E.: CoZClient.C(644) - iconv_open(UTF-8, 646) - .2
.14:28:48.993. todsn-client.E.: Error: no exit code received from CoZServer
.14:28:48.993. fromdsn-client.E.: Error: no exit code received from CoZServer
.14:28:48.993. todsn-client.E.: Error: no exit code received from CoZServer
.14:28:48.994. cozagent.D.: Target Program(5506) ended with RC=0
.14:28:48.994. cozagent.D.: At least one child process still running, waiting ag
.14:28:49.201. cozagent.E.: Stdin DD Reader(5507) ended with RC=102
.14:28:49.201. cozagent.E.: Stderr DD Writer(5509) ended with RC=102
.14:28:49.202. cozagent.E.: Stdout DD Writer(5508) ended with RC=102
CoZLauncher.E.: cmoxxxx@sunetlp01 target command '<default shell>' ended with RC
Please let me know if you like to introduce more changes for diagnosis...

Thx!
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

This is looking much better - you are getting the binaries to run now on Solaris. Your problem now is that you are not able to get a non-tunneled socket connection from Solaris back to z/OS. This is likely due to a firewall.

If you can't correct the firewall to allow access for the configured port range, then you will have to turn tunneling back on (which requires your to allow port forwarding in SSHD, which is the "AllowTcpForwarding" setting).
Post Reply