question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Credentials are set, but tracking server lacks permission to list artifacts under the current s3 artifact directory

See original GitHub issue

Willingness to contribute

Yes. I would be willing to contribute a fix for this bug with guidance from the MLflow community.

MLflow version

1.29

System information

Linux Ubuntu MLFlow v1.29.0

Describe the problem

Unable to list artifacts stored under s3://my-s3-bucket/1/5e295e5a735949a98588637cc3735ac4/artifacts for the current run. Please contact your tracking server administrator to notify them of this error, which can happen when the tracking server lacks permission to list artifacts under the current run’s root artifact directory.

But the notebook says:

Registered model 'model-v' already exists. Creating a new version of this model...
2022/09/25 21:24:54 INFO mlflow.tracking._model_registry.client: Waiting up to 300 seconds for model version to finish creation.                     Model name: model-v, version 9 Created version '9' of model 'adept_model-v'.

Tracking information

helm install mlflow /helm_charts/mlflow --kubeconfig=my_kubeconfig --set backendStore.filepath=sqlite:///mnt/mlflow.db --set AWS_DEFAULT_REGION=us-east-1 --set AWS_SECRET_ACCESS_KEY=XXXX --set AWS_ACCESS_KEY_ID=XXXX --set defaultArtifactRoot=s3://my-s3-bucket

Code to reproduce issue

there is no code its a helm chart and the config isnt connecting to s3

Stack trace

helm install mlflow /helm_charts/mlflow --kubeconfig=my_kubeconfig --set backendStore.filepath=sqlite:///mnt/mlflow.db --set AWS_DEFAULT_REGION=us-east-1 --set AWS_SECRET_ACCESS_KEY=XXXX --set AWS_ACCESS_KEY_ID=XXXX --set defaultArtifactRoot=s3://my-s3-bucket

Other info / logs

helm install mlflow /helm_charts/mlflow --kubeconfig=my_kubeconfig --set backendStore.filepath=sqlite:///mnt/mlflow.db --set AWS_DEFAULT_REGION=us-east-1 --set AWS_SECRET_ACCESS_KEY=XXXX --set AWS_ACCESS_KEY_ID=XXXX --set defaultArtifactRoot=s3://my-s3-bucket

What component(s) does this bug affect?

  • area/artifacts: Artifact stores and artifact logging
  • area/build: Build and test infrastructure for MLflow
  • area/docs: MLflow documentation pages
  • area/examples: Example code
  • area/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registry
  • area/models: MLmodel format, model serialization/deserialization, flavors
  • area/pipelines: Pipelines, Pipeline APIs, Pipeline configs, Pipeline Templates
  • area/projects: MLproject format, project running backends
  • area/scoring: MLflow Model server, model deployment tools, Spark UDFs
  • area/server-infra: MLflow Tracking server backend
  • area/tracking: Tracking Service, tracking client APIs, autologging

What interface(s) does this bug affect?

  • area/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev server
  • area/docker: Docker use across MLflow’s components, such as MLflow Projects and MLflow Models
  • area/sqlalchemy: Use of SQLAlchemy in the Tracking Service or Model Registry
  • area/windows: Windows support

What language(s) does this bug affect?

  • language/r: R APIs and clients
  • language/java: Java APIs and clients
  • language/new: Proposals for new client languages

What integration(s) does this bug affect?

  • integrations/azure: Azure and Azure ML integrations
  • integrations/sagemaker: SageMaker integrations
  • integrations/databricks: Databricks integrations

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
salinaaaaaacommented, Oct 3, 2022

im working on a helm chart you guys can take and refactor – coming soon, sit tight!!

On Sun, Oct 2, 2022 at 7:28 PM mlflow-automation @.***> wrote:

@BenWilson2 https://github.com/BenWilson2 @dbczumar https://github.com/dbczumar @harupy https://github.com/harupy @WeichenXu123 https://github.com/WeichenXu123 Please assign a maintainer and start triaging this issue.

— Reply to this email directly, view it on GitHub https://github.com/mlflow/mlflow/issues/6882#issuecomment-1264777340, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHVQHCRTDELQSSGUUJSBRLWBISD3ANCNFSM6AAAAAAQVIEKFU . You are receiving this because you authored the thread.Message ID: @.***>

0reactions
mlflow-automationcommented, Nov 16, 2022

@BenWilson2 Please reply to comments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MLflow Artifacts Storing But Not Listing In UI - Stack Overflow
Instead, the artifact section of the UI shows: Loading Artifacts Failed Unable to list artifacts stored under <s3-location> for the current run.
Read more >
Resolve "Unable to locate credentials" error in Amazon S3
An "Unable to locate credentials" error indicates that Amazon S3 can't find the credentials to authenticate AWS API calls. To resolve this issue ......
Read more >
Field Reference - The workflow engine for Kubernetes
recurseMode, boolean, If mode is set, apply the permission recursively into the artifact if it is a folder. s3, S3Artifact, S3 contains S3...
Read more >
Hadoop-AWS module: Integration with Amazon Web Services
S3A does not really enforce any authorization checks on these stub permissions. Users authenticate to an S3 bucket using AWS credentials.
Read more >
Task | ClearML
The term “main execution Task” refers to the Task context for current running experiment. ... Delete a list of artifacts, by artifact name,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found