-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem uploading reports to docker-based single-instance codecov install #378
Comments
Is Since it's a local docker name, and you are uploading from GitHub, I'm guessing it is not. |
If it is supposed to be reachable from the outside, it's not something I saw mentioned in the docs. I literally just cloned the https://github.com/codecov/self-hosted repo and then followed the Self-Hosted Configuration Guide and nothing there mentioned minio. I was under the impression that the codecov API uses minio locally as the storage backend API, but I guess I am mistaken? |
Minio uses whatever the host is set for the storage service https://github.com/codecov/codecov-api/blob/main/services/storage.py#L26 The value needs to be reachable both in the container and externally, as the report is uploaded directed to storage, bypassing Codecov. |
I got it running by opening up port 9000 in the firewall and configuring minio host to be the same as the main codecov one. But can |
I'm also receiving the same error. Is there any solution or work around?
|
I solved this by placing nginx in front (of docker compose resources) and serving minio on a separate subdomain. |
Thanks for sharing your solution , @jonas-brauer ! Are you also using SSL? |
@drazisil-codecov Yes we are. services:
minio:
host: your.host.name
port: 443
verify_ssl: true |
@andreiz Please see if the instructions above help you. |
I will give it a shot |
This didn't work for me. For minio SSL I've added the following:
I'm using |
@jonas-brauer thanks for your response. Thanks. |
@rohit5roy I'm not sure I can boil down nginx into a small snippet, but this link should be a good place to start to learn about reverse proxy if it's new to you 😃 |
Just ran into the same issue, it seems like the gateway was once set up to proxy requests to |
Thank you @derklaro for the contribution, we'll review and move discussion there. In the meantime I'll close this and direct any further discussion to the PR itself: codecov/codecov-gateway#97 |
Describe the bug
I am running codecov self-hosted on a single EC2 instance using docker-compose.yml. Logged in via Github and set up the test repo per tutorial. However, trying to upload reports fails.
Environment (please complete the following information):)
CI log
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: