hercules-390 / hyperion

Hercules 390
Other
248 stars 67 forks source link

CTCI: Error writing to device tun0: 9 Bad file descriptor #163

Closed hackob closed 7 years ago

hackob commented 7 years ago

After upgrade to macOS Sierra (10.12): CTCI: Error writing to device tun0: 9 Bad file descriptor

This looks like is the problem that prevents the networking between mainframe and host machine

kern.ostype: Darwin
kern.osrelease: 16.0.0
kern.osrevision: 199506
kern.version: Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64

HHC00901I 0:0E20 CTCI: Interface tun0, type TUN opened
HHC00912E 0:0E20 CTCI: Error reading from device tun0: 5 Input/output error
HHC00007I Previous message from function 'CTCI_ReadThread' at ctc_ctci.c(1016)
HHC00911E 0:0E20 CTCI: Error writing to device tun0: 9 Bad file descriptor
HHC00007I Previous message from function 'CTCI_Write' at ctc_ctci.c(933)
HHC01315I 0:0E20 CHAN: ccw 01240045 604D3CF8=>4FA5A000 4FA5A800 4FB54000 4FB54800 !v..!vy.!. .!...
HHC01302I 0:0E20 CHAN: idaw 4FA5A000, len 045: =>00450043 08000000 4500003D 00150000 ................
HHC01312I 0:0E20 CHAN: stat 0E00, count 0000
HHC01313I 0:0E20 CHAN: sense 10000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
HHC01314I 0:0E20 CHAN: sense EQC
HHC01315I 0:0E20 CHAN: ccw 01240002 604D3CF8=>4FA5                                !v
HHC01303I 0:0E20 CHAN: idaw 0000000000000000, len 0000:
HHC01312I 0:0E20 CHAN: stat 0C20, count 0002
HHC00910D 0:0E20 CTCI: Send packet of size 61 bytes to device tun0
HHC00979D CTCI: packet: +0000< 4500003D 00160000 4011F583 C0A801C8  E..=....@....... ........ .5c{y.H
HHC00979D CTCI: packet: +0010< C0A801FE 04030035 002932AC 10040100  .......5.)2..... {y..............
HHC00979D CTCI: packet: +0020< 00010000 00000000 04414443 44066861  .........ADCD.ha .............../
HHC00979D CTCI: packet: +0030< 636B6F62 036E6574 00000100 01        ckob.net.....    .,?..>.......
HHC00911E 0:0E20        
HHC00007I Previous message from function 'CTCI_Write' at ctc_ctci.c(933)
HHC01315I 0:0E20 CHAN: ccw 01240045 604D3CF8=>4FA5A000 4FA5A800 4FB54000 4FB54800 !v..!vy.!. .!...
HHC01302I 0:0E20 CHAN: idaw 4FA5A000, len 045: =>00450043 08000000 4500003D 00160000 ................
HHC01312I 0:0E20 CHAN: stat 0E00, count 0000
HHC01313I 0:0E20 CHAN: sense 10000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
HHC01314I 0:0E20 CHAN: sense EQC
HHC01315I 0:0E20 CHAN: ccw 01240045 604D3CF8=>4FA5A000 4FA5A800 4FB54000 4FB54800 !v..!vy.!. .!...
HHC01303I 0:0E20 CHAN: idaw 0000000000000000, len 0000:
HHC01312I 0:0E20 CHAN: stat 0C20, count 0045
ifconfig utun0
utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000
    inet6 fe80::bc0f:ab5a:3eb7:2ee9%utun0 prefixlen 64 scopeid 0xa
    nd6 options=201<PERFORMNUD,DAD>
Fish-Git commented 7 years ago

version?

Fish-Git commented 7 years ago

I have marked this issue "Invalid" and added the "Question" label until Ricardo (@hackob) responds with which version of Hyperion he is using (shown at the very beginning of the hercules log file, -or-, as displayed by the hercules 'version' command). (Why so many users fail to report which version of the product they are using when they file a problem report never ceases to amaze me. I guess they think we're all psychic mind readers?)

hackob commented 7 years ago
HHC01413I Hercules version 4.0.0.    8653-g9998029 (4.0.0.8653)
HHC01414I (C) Copyright 1999-2016 by Roger Bowler, Jan Jaeger, and others
HHC01415I Build date: Oct 24 2016 at 18:37:37
HHC01417I Built with: Apple Clang 8.0.0 (clang-800.0.38)
HHC01417I Build type: Mac OS X x86_64 host architecture build
HHC01417I Modes: S/370 ESA/390 z/Arch
HHC01417I Max CPU Engines: 8
Fish-Git commented 7 years ago

Thank you, Ricardo! I'm sure @herc4mac (Enrico) will very likely now be able to help you with this issue. (He's our Apple/Mac expert)

hackob commented 7 years ago

False alarm. This issue is not an issue. After reviewing this message I discovered the problem was that the directory where hercifc existed was not in the PATH variable.

HHC00136E Error in function execlp(): No such file or directory
HHC00007I Previous message from function 'IFC_IOCtl' at tuntap.c(1050)

Thanks !

Fish-Git commented 7 years ago

Thank you for finding and reporting back to us with that, Ricardo. Much appreciated.

You should know of course that such is usually why we ask people to include a complete copy of their hercules log file with their problem reports -- from beginning to end -- and not just a tiny snippet of it. ;-)

In any case I'm very happy you found it. Well done and thank you!