Hi all,
I'm encountering a strange failure when trying to setup globusconnectpersonal (3.2.0) with a `--setup-key` under somewhat complex circumstances. Here are relevant details:
1. The setup command is run via Python (3.8) subprocess with a command that looks like:
```
import subprocess as sp
result = sp.run( ['/opt/globusconnectpersonal/globusconnectpersonal', '-setup', '--debug', '--setup-key', f'{setup_key_that_was_obtained_via_globus_sdk}'], shell=False, capture_output=True)
```
This can be run successfully with something like:
> docker build -t test-globusconnectpersonal-setup-image .
> docker run -it --rm -e GLOBUS_SETUP_KEY=${YOUR_GLOBUS_SETUP_KEY}
test-globusconnectpersonal-setup-image
3. To add to the complexity, this Dockerfile is run on an EC2 instance via AWS Batch.
- I've confirmed that there does not appear to be any problems with network settings (VPCs, Security Groups, etc...) as I can run `telnet relay.globusonline.org 2223` when I `docker exec` into the running container on the EC2 instance and get no problems.
Anyways, here is the detailed debug logs that are emitted:
[DEBUG] cli.py::52 [_setup_logging] logging setup done. logfile=/home/data_transfer_user/.globusonline/lta/register.log\n
[INFO] cli.py::190 [main] got --setup-key, skip endpoint creation...\n
[INFO] cli.py::196 [main] starting relaytool setup\n
[DEBUG] relaytool.py::37 [_get_etc_dir] checking if dir(/opt/globusconnectpersonal/gt_amd64/bin/etc) exists\n
[DEBUG] relaytool.py::37 [_get_etc_dir] checking if dir(/opt/globusconnectpersonal/gt_amd64/etc) exists\n
[DEBUG] relaytool.py::37 [_get_etc_dir] checking if dir(/opt/globusconnectpersonal/etc) exists\n
[DEBUG] relaytool.py::109 [setup_relaytool_environment] env setup done; installing GCP to GCP_CONFIG_DIR=/home/data_transfer_user/.globusonline/lta\n
[WARNING] relaytool.py::136 [invoke_relaytool] relaytool setup exit with status 1, indicating failure. use debug mode for full output\n
[DEBUG] relaytool.py::140 [invoke_relaytool] relaytool stdout:\n-----\n\n-----\n
[DEBUG] relaytool.py::144 [invoke_relaytool] relaytool stderr:\n-----\n\n-----\n
[INFO] cli.py::200 [main] relaytool stdout:\n-----\n(\'\',)-----\n
[INFO] cli.py::201 [main] relaytool stderr:\n-----\n(\'\',)\n-----\n
[INFO] cli.py::202 [main] full trace of relaytool failure\nTraceback (most recent call last):\n File "lib/cli.py", line 198, in main\n File "lib/relaytool.py", line 151, in run_relaytool_setup\n File "lib/relaytool.py", line 146, in invoke_relaytool\nlib.relaytool.RelayToolFailureError: (\'relaytool setup failed\', CompletedProcess(args=\'/opt/globusconnectpersonal/gt_amd64/bin/relaytool\', returncode=1, stdout=b\'\', stderr=b\'\'))\n
[ERROR] cli.py::203 [main] relaytool failed, full error info available in register.log\nPyInstaller/loader/pyimod03_importers.py:495: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.\n\n
Setup did not complete successfully.\nYou may want to check /home/data_transfer_user/.globusonline/lta/register.log for more information\n'
Unfortunately the log messages are extremely unhelpful especially the call to the `relaytool` which returns:
CompletedProcess(args=\'/opt/globusconnectpersonal/gt_amd64/bin/relaytool\', returncode=1, stdout=b\'\', stderr=b\'\'))
Is there anywhere that I could see the source of the relaytool to try to get a bit more insight into what is going wrong? Any assistance would be greatly appreciated!!
Best,
Nick