curl: (7) couldn't connect to host

Discussion of the free COZBATCH utility for z/OS
Post Reply
tsdjim
Posts: 60
Joined: Fri May 07, 2010 2:21 am

curl: (7) couldn't connect to host

Post by tsdjim » Thu Mar 17, 2016 11:09 am

I keep getting the following error occasionally on a curl job, when we re-run the job the, it works fine. The address 10.1.1.130 was fine at the time.
Any idea what the problem might be

datey=$(date +%d%m%y-%H%M%S)
to="-m 50 -v --retry 3 --retry-delay 5 --retry-max-time 32 "
to1="--local-port 52940-60000"
to2="anonymous:zzz"
fromdsn -b '//DD:INPUT001' |
gzip |
curl $to $to1 -T- -u $to2 ftp://10.1.1.130/autof/scnsauts-$datey

14.44.57 JOB00282 BPXP023I THREAD 273E560000000000, IN PROCESS 33557328, WAS 177
177 TERMINATED BY SIGNAL SIGKILL, SENT FROM THREAD
177 273E120000000000, IN PROCESS 33557325, UID 1111, IN JOB OPSFSCNS.
14.45.18 JOB00282 BPXP023I THREAD 273E670000000000, IN PROCESS 2898, WAS 179
179 TERMINATED BY SIGNAL SIGKILL, SENT FROM THREAD
179 273E560000000000, IN PROCESS 2897, UID 1111, IN JOB OPSFSCNS.
CoZLauncherøNò: version: 2.2.0 2012-09-01
CoZLauncherøNò: Copyright (C) Dovetailed Technologies, LLC. 2006. All rights reserved.
cozagentøNò: version: 1.1.2 2013-03-19
fromdsn(DD:STDIN)øNò: 13 records/1040 bytes read; 478 bytes written in 0 milliseconds.
fromdsn(DD:INPUT001)øNò: 12061 records/506562 bytes read; 506562 bytes written in 0.078 seconds (6342.172 KBytes/sec).
cozserver(5)øEò: ./OutputMux.h(118) - write_fully(1, 276FFED8, 4) - ø140ò EDC5140I Broken pipe. (errno2=0x74520442)
cozserver(5)øEò: ./OutputMux.h(118) - write_fully(1, 276C8300, 5) - ø140ò EDC5140I Broken pipe. (errno2=0x76697242)
cozserver(5)øWò: Exception: 103 sending exit code packet(rc=103) to client
todsn(DD:STDERR)øNò: 603 bytes read; 21 records/585 bytes written in 63.104 seconds (9.556 Bytes/sec).
todsn(DD:STDOUT)øNò: 0 bytes read; 0 records/0 bytes written in 63.106 seconds (0.000 Bytes/sec).
cozagentøEò: Target Program(46065) ended with RC=7
cozserver(6)øEò: ./OutputMux.h(118) - write_fully(1, 279DDED8, 4) - ø140ò EDC5140I Broken pipe. (errno2=0x74520442)
cozserver(6)øEò: ./OutputMux.h(118) - write_fully(1, 279A6300, 5) - ø140ò EDC5140I Broken pipe. (errno2=0x76697242)
cozserver(6)øWò: Exception: 103 sending exit code packet(rc=103) to client
CoZLauncherøEò: prod@10.63.2.202 target command '<default shell>' ended with RC=7
CoZAgent: prod@pifssl target program '/bin/bash' PID: 46065
CoZAgent: completed with RC=7
* About to connect() to 10.1.1.130 port 21 (#0)
* Trying 10.1.1.130... Local port: 52940
* Connection timed out
* couldn't connect to host
* Closing connection #0

curl: (7) couldn't connect to host
* About to connect() to 10.1.1.130 port 21 (#0)
* Trying 10.1.1.130... Local port: 52940
* Connection timed out
* couldn't connect to host
* Closing connection #0

Post Reply