Open rahul-roy-glean opened 5 months ago
I am also seeing this issue. I've attached a video for reference.
https://github.com/codecov/self-hosted/assets/33237379/837e8639-e439-449f-b181-ba224537ab1c
Same than this one with gitlab : #34
This fixed the issue for me: https://github.com/codecov/self-hosted/pull/42 @rahul-roy-glean @tekkeitserktok Can you please test this on your end? @jason-ford-codecov Can you review the PR?
Hello @bert0RM, I use MY_IP.nip.io for codecov and gitlab.local domains for my local setup. Will it work ? Or do I need to change other parameters in my config ? I use "latest-calver" tag for docker images btw.
Thanks !
@tekkeitserktok The change works for the default docker compose setup. Im not sure how nip.io works but what did you set the cookies_domain to? and what host are you using for the self-hosted-frontend?
@bert0RM , here is my config for the frontend part:
`
frontend:
image: codecov/self-hosted-frontend:latest-calver
environment:
codecov
`
I tried "localhost" and "nip.io" for the cookie_domain config but it didn't work
Can you try 10.84.31.161
or 10.84.31.161.nip.io
for the cookie_domain?
I am also seeing this issue. I've attached a video for reference.
Screen.Recording.2024-06-30.at.11.29.01.PM.mov
Thanks for your efforts to fix the issue. I am testing the same flow using Docker Compose and ngrok but am still encountering the same issue. When I tried using an older version of codecov-api. This issue disappeared, but other issues arose. I have also tested your proposed solutions by setting cookie_domain, but it did not resolve the problem. any idea ?
Can you try
10.84.31.161
or10.84.31.161.nip.io
for the cookie_domain?
I tried, it didn't work :'(
I have the same problem I've tried @bert0RM method with "localhost" or my domain name but without success.
I've tried the latest-calver, latest-stable and 24.4.1
Also having this same issue with a self-hosted gitlab instance
@bert0RM 's PR fixed my issue! Thanks!
Hey! Same issue here. I have the docker containers behind nginx. I tried setting cookie_domain to both localhost and the ip of the server (no domain attached to it), but without success
Edit: Here are the relevant configs:
gateway:
image: codecov/self-hosted-gateway:latest-calver #note: this is for setup purposes only, be sure to pin to the latest release from our changelog: https://docs.codecov.io/changelog
volumes:
- ./config:/config
#- ${CODECOV_SSL_CERT-/cert/codecov.crt}:/etc/codecov/ssl/certs/cert.crt:ro # uncomment if using ssl
ports:
- "${CODECOV_PORT-8080}:8080"
#- "${CODECOV_SSL_PORT-8443}:8443" # uncomment if using ssl
environment:
- CODECOV_GATEWAY_MINIO_ENABLED=true
#- CODECOV_GATEWAY_SSL_ENABLED=true # uncomment if using ssl
networks:
- codecov
depends_on:
- api
- frontend
frontend:
image: codecov/self-hosted-frontend:latest-calver #note: this is for setup purposes only, be sure to pin to the latest release from our changelog: https://docs.codecov.io/changelog
environment:
- CODECOV_BASE_HOST=18.156.69.72
- CODECOV_API_HOST=18.156.69.72
- CODECOV_IA_HOST=18.156.69.72
- CODECOV_SCHEME=http
volumes:
- ./config:/config
ports:
- "8080"
networks:
- codecov
api:
image: codecov/self-hosted-api:latest-calver #note: this is for setup purposes only, be sure to pin to the latest release from our changelog: https://docs.codecov.io/changelog
volumes:
- ./config:/config
networks:
- codecov
depends_on:
- minio
- timescale
- postgres
- redis
setup:
codecov_url: "http://18.156.69.72"
enterprise_license: "<license>"
admins:
- service: github
username: "adiRandom"
http:
cookie_secret: "<secret>"
cookies_domain: localhost #also tried 18.156.69.72
timeseries:
enabled: true
@rahul-roy-glean @adiRandom and others using GitHub.com: In the GitHub App settings, ensure that the callback URL is example.com/login/gh, not example.com/login/ghe ghe = GitHub Enterprise
I'm trying out the self-hosted setup with Docker compose and trying to enable a login with GH. I have setup the GH app as mentioned in the guide and trying to login with the same. My docker compose looks like -
and my
codecov.yml
looks likeI haven't been able to perform a login with GH, in the worker logs i see something like -
Could someone please help here ?