Openwhisk: Invoker fails to deploy on Mac Catalina

Created on 20 Nov 2019  路  4Comments  路  Source: apache/openwhisk

Having trouble deploying the invoker on Mac Catalina using Docker for Mac. During determine docker root dir, I get "stderr": "nc: invalid option -- U\nTry nc --help' for more information.". Seems the -U flag does not exist in the version of netcat that is installed.

$ nc --version
netcat (The GNU Netcat) 0.7.1
$ nc --help
GNU netcat 0.7.1, a rewrite of the famous networking tool.
Basic usages:
connect to somewhere:  nc [options] hostname port [port] ...
listen for inbound:    nc -l -p port [options] [hostname] [port] ...
tunnel to somewhere:   nc -L hostname:port -p port [options]

Mandatory arguments to long options are mandatory for short options too.
Options:
  -c, --close                close connection on EOF from stdin
  -e, --exec=PROGRAM         program to exec after connect
  -g, --gateway=LIST         source-routing hop point[s], up to 8
  -G, --pointer=NUM          source-routing pointer: 4, 8, 12, ...
  -h, --help                 display this help and exit
  -i, --interval=SECS        delay interval for lines sent, ports scanned
  -l, --listen               listen mode, for inbound connects
  -L, --tunnel=ADDRESS:PORT  forward local port to remote address
  -n, --dont-resolve         numeric-only IP addresses, no DNS
  -o, --output=FILE          output hexdump traffic to FILE (implies -x)
  -p, --local-port=NUM       local port number
  -r, --randomize            randomize local and remote ports
  -s, --source=ADDRESS       local source address (ip or hostname)
  -t, --tcp                  TCP mode (default)
  -T, --telnet               answer using TELNET negotiation
  -u, --udp                  UDP mode
  -v, --verbose              verbose (use twice to be more verbose)
  -V, --version              output version information and exit
  -x, --hexdump              hexdump incoming and outgoing traffic
  -w, --wait=SECS            timeout for connects and final net reads
  -z, --zero                 zero-I/O mode (used for scanning)

Remote port number can also be specified as range.  Example: '1-1024'
deployment

Most helpful comment

Figured out a workaround. I had to install the nmap version of ncat via brew install nmap. After that I had to change nc to ncat in the determine docker root dir task.

All 4 comments

Figured out a workaround. I had to install the nmap version of ncat via brew install nmap. After that I had to change nc to ncat in the determine docker root dir task.

Thanks @dubee. This is good to know.

can you pr this change?

I deployed with ansible on catalina without this workaround. Perhaps things have improved since this issue was opened.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

csantanapr picture csantanapr  路  4Comments

Daniel15 picture Daniel15  路  4Comments

csantanapr picture csantanapr  路  3Comments

csantanapr picture csantanapr  路  6Comments

jthomas picture jthomas  路  6Comments