Hi teams How to disable the s3 when i don't have ...
# flyte-support
s
Hi teams How to disable the s3 when i don't have a s3 service. I follow hard way of onprem cluster with core to allow flytectl in order to interact with onprem k8s cluster in 1.30.2.
Copy code
│ Traceback (most recent call last):                                                                                                                                                                             │
│   File "/usr/local/bin/pyflyte-fast-execute", line 8, in <module>                                                                                                                                              │
│     sys.exit(fast_execute_task_cmd())                                                                                                                                                                          │
│   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__                                                                                                                         │
│     return self.main(*args, **kwargs)                                                                                                                                                                          │
│   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1078, in main                                                                                                                             │
│     rv = self.invoke(ctx)                                                                                                                                                                                      │
│   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke                                                                                                                           │
│     return ctx.invoke(self.callback, **ctx.params)                                                                                                                                                             │
│   File "/usr/local/lib/python3.10/site-packages/click/core.py", line 783, in invoke                                                                                                                            │
│     return __callback(*args, **kwargs)                                                                                                                                                                         │
│   File "/usr/local/lib/python3.10/site-packages/flytekit/bin/entrypoint.py", line 534, in fast_execute_task_cmd                                                                                                │
│     _download_distribution(additional_distribution, dest_dir)                                                                                                                                                  │
│   File "/usr/local/lib/python3.10/site-packages/flytekit/core/utils.py", line 306, in wrapper                                                                                                                  │
│     return func(*args, **kwargs)                                                                                                                                                                               │
│   File "/usr/local/lib/python3.10/site-packages/flytekit/tools/fast_registration.py", line 144, in download_distribution                                                                                       │
│     FlyteContextManager.current_context().file_access.get_data(additional_distribution, os.path.join(destination, ""))                                                                                         │
│   File "/usr/local/lib/python3.10/site-packages/flytekit/core/data_persistence.py", line 529, in get_data                                                                                                      │
│     raise FlyteAssertion(                                                                                                                                                                                      │
│ flytekit.exceptions.user.FlyteAssertion: USER:AssertionError: error=Failed to get data from <s3://flyte/flytesnacks/development/WBA2M5HMNI2H72BDVM56ALRSKQ======/script_mode.tar.gz> to ./ (recursive=False).    │
│                                                                                                                                                                                                                │
│ Original exception: Unable to locate credentials                                                                                                                                                               │
│ Stream closed EOF for flytesnacks-development/f0a93fef32f4345f8b5a-n0-0 (f0a93fef32f4345f8b5a-n0-0)
f
Set the —output-prefix on the project or the default one globally to be non s3
a
@swift-scooter-38934 the tutorial guides you to deploy minio, which exposes an S3-compliant bucket for Flyte to use and the Helm values file adds environment variables with the credentials to it. From the error it seems like the Pod is not able to find them and I know why, sorry. I just pushed a fix as the section in the values file was misplaced. Please fetch the contents of the repo and try again
s
Thanks, i will try it later,