Closed aheitzmann closed 1 month ago
Thanks so much for this @aheitzmann - we've got a fix in progress here and should have this working next week.
Got this out today, should be fixed in https://github.com/coherenceplatform/cnc/releases/tag/0.2.19
Got this out today, should be fixed in https://github.com/coherenceplatform/cnc/releases/tag/0.2.19
Confirmed that both
cnc toolbox start demo --service-name app
and
cnc toolbox start demo --service-name db --proxy-only
are working on my mac with the new cocnc version.
Description
cnc toolbox start
command loops indefinitely, printing out "Warning: issue starting port forwarding session for db (failed_attempts:Running the underlying
aws ssm
command directly successfully configures a port forward.Cause
Referring to the code in toolbox/main.sh.j2
Note that
/proc
does not exist on MacOS, therefore the testif ! test -d /proc/${SSM_PID_{{ loop.index }}:-$PID_FALLBACK}/ > /dev/null
will never return true.Repro Details
Machine: Apple M1 Pro OS: Sonoma 14.6.1 (23G93)
cnc.yml
environments.yml
Command:
cnc toolbox start demo --service-name db --proxy-only
Output:
A variant of the the same thing occurs when running
cnc toolbox start demo --service-name app
since the container needs to establish a connection to the database.