https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Alykhan Tejani

01/02/2024, 7:38 PM
Hi all, Im trying to run an
ImageSpec
example using the
flytectl demo start
cluster and the local docker registry. When I try to build my image I'm getting the following error:
Copy code
http: server gave HTTP response to HTTPS client\n'
I was following steps here https://github.com/flyteorg/flytesnacks/pull/1001/files#diff-561282794975e27f309bfc7785042fff3c3861109b31b1e4385cb7d18e0b95b6 to start buildkitd and set envd to use the local registryr. Has anyone had this issue before?
my ImageSpec is defined as
Copy code
pandas_image_spec = ImageSpec(
    base_image="<http://ghcr.io/flyteorg/flytekit:py3.8-1.6.0|ghcr.io/flyteorg/flytekit:py3.8-1.6.0>",
    packages=["pandas", "numpy"],
    registry="172.17.0.3:30000")
k

Kevin Su

01/02/2024, 7:47 PM
that doc is outdated. could you try localhost:30000 instead
a

Alykhan Tejani

01/02/2024, 7:48 PM
ok trying now
k

Kevin Su

01/02/2024, 7:48 PM
the new demo cluster exposes a port of registry by default.
a

Alykhan Tejani

01/02/2024, 7:50 PM
now I get
dial tcp 127.0.0.1:30000: connect: connection refused\n
I changed my ImageSpec Registry to
localhost:30000
as well as the
envd bootstrap --registry localhost:30000 --use-http
command
is this correct?
k

Kevin Su

01/02/2024, 8:43 PM
you don’t need envd bootstrap --registry localhost:30000 --use-http
a

Alykhan Tejani

01/02/2024, 9:56 PM
so just kill the envc_buildkitd?
k

Kevin Su

01/02/2024, 9:58 PM
yes, just use default one
a

Alykhan Tejani

01/02/2024, 10:00 PM
hmm now getting
dial tcp 127.0.0.1:30000: connect: connection refused\n'
k

Kevin Su

01/02/2024, 10:04 PM
cc @L godlike IIRC, you ran into the same issue before
could you try to create local envd context? and then push an image again
Copy code
envd context create --name flyte-sandbox --builder tcp --builder-address localhost:30003 --use
l

L godlike

01/02/2024, 10:41 PM
You can use
envd context ls
to check if your setting is correct.
a

Alykhan Tejani

01/03/2024, 8:32 AM
here are mine
getting this error now:
Copy code
Failed with Unknown Exception <class 'Exception'> Reason: failed to run command envd build --path /tmp/flyte-96a_n1vh/sandbox/local_flytekit/cf34c3c907fdbc269aff15229d3bd6c4  --platform linux/amd64 --output type=image,name=localhost:30003/flytekit:d24uVLQEr2GwW_vG9HrMAA..,push=true with error b'error: failed to push localhost:30003/flytekit:d24uVLQEr2GwW_vG9HrMAA..: failed to do request: Head "<http://localhost:30003/v2/flytekit/blobs/sha256:00168748a4c817f49bf47994065927cc5aea59397938da1cd8538b63b57997ff>": net/http: HTTP/1.x transport connection broken: malformed HTTP response "\\x00\\x00\\x06\\x04\\x00\\x00\\x00\\x00\\x00\\x00\\x05\\x00\\x00@\\x00"\n'
l

L godlike

01/03/2024, 9:30 AM
Can you give me the screen shot of Envd context last?
envd context ls
d

Dre Olgiati

01/10/2024, 2:39 PM
Same problem here.
Copy code
➜  flows envd context ls
CONTEXT                	BUILDER         	BUILDER ADDR                     	RUNNER	RUNNER ADDR
default                	docker-container	docker-container://envd_buildkitd	docker
flyte-sandbox (current)	tcp             	tcp://localhost:30003            	docker
I have seen a number of errors
Copy code
http: server gave HTTP response to HTTPS client\n'
or
Copy code
tls: first record does not look like a TLS handshake
9 Views