Tracking Server not working as a proxy for localhost
See original GitHub issueWillingness to contribute
No. I cannot contribute a bug fix at this time.
MLflow version
1.25.1
System information
- localhost: GitBash
- Remote Host: Kubernetes POD
- Artifact Destination: AWS S3
- Python 3.7.2
Describe the problem
I am having similar issue to what was posted here: https://github.com/mlflow/mlflow/issues/5659 Unfortunately, the solution provided hasn’t worked for me. When running a modeling script on the Remote Host, the artifacts get stored in S3 properly. When I run from localhost, I get:
botocore.exceptions.NoCredentialsError: Unable to locate credentials
I have determined that it expects to use local creds when running on localhost instead of the ones on the Tracking Server. Hoping somebody has more suggestions of things to try or look for.
Tracking information
Tracking & Artifact uri look as expected. Not sharing for security reasons.
Code to reproduce issue
mlflow.set_tracking_uri("masked")
mlflow.set_experiment("masked")
with mlflow.start_run():
.
.
.
plt.savefig('plot.png')
print(mlflow.get_tracking_uri())
print(mlflow.get_artifact_uri())
mlflow.log_artifact("plot.png")
Other info / logs
botocore.exceptions.NoCredentialsError: Unable to locate credentials
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:
- Created a year ago
- Reactions:2
- Comments:68 (36 by maintainers)
Top Results From Across the Web
Node http-proxy-middleware not working with local servers as ...
Your proxied request is trying to access the local server using the original request path. Eg, when you request. http://localhost:3000/_api/hello.
Read more >Localhost traffic doesn't appear in Charles
The workaround is to connect to http://localhost.charlesproxy.com/ instead. This points to the IP address 127.0.0.1, so it should work identically to localhost, ...
Read more >I could not see any requests from my localhost server
Solution 2: Map localhost to the domain name in /etc/hosts · 1. Open etc/hosts file · 2. Add Domain Name with both IPv4...
Read more >No Traffic to Localhost - Fiddler Classic - Documentation
NET Framework are hardcoded not to send requests for Localhost through any proxies, and as a proxy, Fiddler Classic will not receive such...
Read more >Configuring a Reverse Proxy - Synapse
0.1'] so that the server only listens to traffic on localhost. (Do not change bind_addresses to 127.0.0.1 when using a containerized Synapse, as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@harupy
Yes, I deleted/recreated new experiments each time.
The key is apparently to not use the
--default-artifact-root
argument as you stated in a previous comment (I didn’t tried this before). This works for me, thanks.@harupy that solved it. thanks 👍