https://flyte.org logo
s

Slackbot

07/15/2022, 5:23 PM
This message was deleted.
k

Ketan (kumare3)

07/15/2022, 5:38 PM
i think you do not have the right endpoint configured
please configure the right endpoint in the ~/.flyte/config.yaml
👍 1
a

austin

07/15/2022, 7:15 PM
i also get that error:
Copy code
<_InactiveRpcError of RPC that terminated with:\n\tstatus = StatusCode.UNAVAILABLE\n\tdetails = \"failed to connect to all addresses\"\n\tdebug_error_string = \"
etc…. even when the script has [at least initially] connected to the right endpoint. Not sure exactly the source of flakiness. For @Taeef Najib, I agree ensuring config is correct is the good place to start.
👍 1
n

Niels Bantilan

07/15/2022, 8:08 PM
can you
cat ~/.flyte/config.yaml
and copy-paste it here?
👍 1
a

austin

07/15/2022, 8:14 PM
To hijack Taeef’s thread … https://github.com/flyteorg/flyte/actions/runs/2678784708 … see the artifact ‘config.yaml’ … this one failed ( after a short bit ). When I ran fewer tests: https://github.com/flyteorg/flyte/runs/7363730667 ( it was successful ).
my current thinking is that it is also possible to get that error from resource constraints-or-maybe-misbehaving-workflows/executions [ haven’t isolated specific issue ], but doesn’t seem to be the
config.yaml
y

Yee

07/15/2022, 9:21 PM
yeah the error is a generic connection error, can happen for a number of reasons
the most common reason i feel like we’ve seen is the wrong address, or not adding
dns:///
in front of the domain, or using/not using insecure
a

austin

07/15/2022, 9:31 PM
sure … but wonder what cases we could put messaging in place to debug that — ex: when first parsing the config file ex: “ERROR: the proper format of
endpoint
field is ’dns://<DNS_OF_SERVICE> … ‘dns://’ is missing”…. [ but I’m not sure if you could address with just IP, and in that case, dns:// might not be required ]. Or other things like that….
I think tests will start in a couple minutes…. Will see whether they fail [ I believe VERY likely to fail ]. https://github.com/flyteorg/flyte/runs/7365263197?check_suite_focus=true
t

Taeef Najib

07/17/2022, 1:36 AM
Thank you all for all the suggestions. However, I might have made some mistake in installing flyte and getting it to work on my mac. I tried a Windows laptop to make sure that it’s not the hardware problem. On windows, I get the same error. I’d like to mention that I didn’t install flytectl on my machines. I tried to install it on windows with the following command: First
bash
and then
curl -sL <https://ctl.flyte.org/install>
but no luck. I see a file called
flytectl
in the bin folder. But that is not editable or readable on vs code. I am very inexperienced into this, but how do I find
config.yaml
for flyte on my windows machine? or how do I correctly install it using cmd (on vs code)?
a

austin

07/17/2022, 4:21 AM
@Taeef Najib flytectl likely would be a binary, so I wouldn’t expect it to be editable/readable with VSCode.
👍 1
unfortunately, I can’t help you with windows 😕, but maybe someone else can
👍 1
k

Ketan (kumare3)

07/17/2022, 5:59 AM
It is a golang binary and should work on windows, but I don't have a windows machine
👍 1
t

Taeef Najib

07/17/2022, 12:09 PM
Under the bin folder, there’s just one binary file called flytectl. Am I not supposed to have a folder where I can find config.yaml? @austin and @Ketan (kumare3)
k

Ketan (kumare3)

07/17/2022, 2:57 PM
You have to do flytectl config init - check the docs https://docs.flyte.org/projects/flytectl/en/latest/index.html
👍 1
t

Taeef Najib

07/17/2022, 6:47 PM
Thanks @Ketan (kumare3) 🙏
a

austin

07/17/2022, 7:25 PM
@Taeef Najib — those docs solved things for you? Anything else that could be better highlighted/documented?
👍 1
t

Taeef Najib

07/17/2022, 9:00 PM
@austin even after installing flytectl using my vs code terminal (cmd) I can’t upgrade or check the version of flytectl. Under the bin folder, I can see the flytectl file, but terminal returns this error:
Copy code
'flytectl' is not recognized as an internal or external command
That’s where I’m stuck. Do you have any suggestions? 😞 When I use
Copy code
curl -sL <https://ctl.flyte.org/install> | bash
I get this:
Copy code
flyteorg/flytectl info checking GitHub for latest tag
flyteorg/flytectl info found version: 0.6.4 for v0.6.4/Linux/x86_64
flyteorg/flytectl info installed ./bin/flytectl
10 Views