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.

Setup issue: proxy not forwarding headers properly when trying to use artifacts with local wandb

See original GitHub issue

ERROR Thread-34 :1030531 [internal_api.py:upload_file():1212] upload_file exception 400 Client Error: Bad Request for url:

upon debugging for actual response body, I got :

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Code>BadDigest</Code>
    <Message>The Content-Md5 you specified did not match what we received.</Message>
    <Key>rajdeep/dsviz-demo-colab/wandb_artifacts/3/12/a477b63ffd858368c31e10f5def86715</Key>
    <BucketName>local-files</BucketName>
    <Resource>/local-files/rajdeep/dsviz-demo-colab/wandb_artifacts/3/12/a477b63ffd858368c31e10f5def86715</Resource>
    <Region>wandb-local</Region>
    <RequestId>164A6E783DFD7FE9</RequestId>
    <HostId>e3c2fe3d-5ef3-4c3b-bce0-ae64555a0eff</HostId>
</Error>
  • response status code: 400

by the way this is a kubernetes install where the requests are proxied via a standalone (non-k8s) nginx load balancer, (nginx server sits infront of k8s cluster, forwarding requests to nodeports as the cloud provider doesnot support ingress load balancer provisioning)

Thanks 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cvphelpscommented, Dec 4, 2020

Hey there, we don’t have bandwidth to support custom configuration questions for free installs of W&B local. Closing this for now.

0reactions
vanpeltcommented, Nov 26, 2020

We’re actually running nginx inside of the docker container so we know it works when properly configured. I would try copying the example here:

https://docs.min.io/docs/setup-nginx-proxy-with-minio.html

You can also check your nginx access or error logs to see if it’s truncating the post bodies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup issue: proxy not forwarding headers properly ... - GitHub
Hey @rjdp this is indicating your proxy is not forwarding all of the headers to our container. In production settings we would connect...
Read more >
On Prem / Baremetal - Documentation - Weights & Biases
Our recommendation is to set the value to 33554432(32MiB) in order for the database to efficiently work with the wandb application.
Read more >
Advanced Configuration - Documentation - Weights & Biases
Go to Settings > CORS > Blob service, and enter the IP of your wandb server as an allowed origin, with allowed methods...
Read more >
On Prem / Baremetal - Documentation - Weights & Biases
The following is an example configuration using nginx as a reverse proxy.
Read more >
wandb artifact put - Documentation
If you have existing tfevents files stored locally and you would like to import them into W&B, you can run wandb.
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