On some developer workstations there is a problem connecting to the REST or gRPC services after building and running images locally, resulting in the following error on the client:
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = “failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:8085: Socket closed”
debug_error_string = “UNKNOWN:failed to connect to all addresses; last error: UNAVAILABLE: ipv4:127.0.0.1:8085: Socket closed
2022-12-14T22:45:20.971419 [MODEL-MANAGR:INFO:140660459217152] <COM44739400I> Loading local models into Common Service...
2022-12-14T22:45:20.971707 [MODEL-LOADER:INFO:140660459217152] <COM89711114I> Loading model 'classification_ensemble-workflow_lang_en_tone-stock'
.
.
/run_with_gateway.sh: line 13: 10 Killed python3 -m watson_runtime.grpc_server
I see this issue with an Intel Mac (both Big Sur and Monterey) using Docker Desktop (which shows the container is running and bound to the expected port). It's been reported by another user on a Mac as well.