Hi all, Im trying to run an `ImageSpec` example us...
# ask-the-community
a
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
that doc is outdated. could you try localhost:30000 instead
a
ok trying now
k
the new demo cluster exposes a port of registry by default.
a
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
you don’t need envd bootstrap --registry localhost:30000 --use-http
a
so just kill the envc_buildkitd?
k
yes, just use default one
a
hmm now getting
dial tcp 127.0.0.1:30000: connect: connection refused\n'
k
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
You can use
envd context ls
to check if your setting is correct.
a
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
Can you give me the screen shot of Envd context last?
envd context ls
d
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