Skip to content
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

proxy support for mordred #642

Open
AnishaM7 opened this issue Mar 21, 2024 · 1 comment
Open

proxy support for mordred #642

AnishaM7 opened this issue Mar 21, 2024 · 1 comment

Comments

@AnishaM7
Copy link

AnishaM7 commented Mar 21, 2024

Hi Team,

We are trying to setup GrimoireLab using docker compose.
we are getting the below error in grimoirelab logs

2024-03-21 09:10:44,932 - sirmordred.task_projects - INFO - Reading projects data from  /home/grimoire/conf/projects.json
2024-03-21 09:10:45,159 - grimoire_elk.elastic - INFO - Created index http://elasticsearch:9200/git_demo_raw
2024-03-21 09:10:45,228 - grimoire_elk.elastic - INFO - Alias {'alias': 'git-raw', 'index': 'git_demo_raw'} created on http://elasticsearch:9200/git_demo_raw.
2024-03-21 09:10:45,245 - grimoire_elk.raw.elastic - INFO - [git] Incremental from: None until None for https://github.com/chaoss/grimoirelab-perceval
2024-03-21 09:10:45,317 - grimoire_elk.elk - ERROR - Error feeding raw from git (https://github.com/chaoss/grimoirelab-perceval): git command - Cloning into bare repository '/home/grimoire/.perceval/repositories/https://github.com/chaoss/grimoirelab-perceval-git'...
fatal: unable to access 'https://github.com/chaoss/grimoirelab-perceval/': Could not resolve host: github.com
Traceback (most recent call last):

is there any way to pass proxy for grimoirelab (mordred)

We are also passing proxy as environment variable for mordred

environment:
        - HTTPS_PROXY=proxy-name:3128
        - no_proxy=

Thanks,
Anisha

@sduenas
Copy link
Member

sduenas commented Mar 22, 2024

That env variable should be the way. There's an old issue here: chaoss/grimoirelab-perceval#388 (comment) that it's related to it. The docker images are not the same (there's no full tag anymore) but the idea is the same.

Try with the ideas of that comment. Also, try to open a terminal in the container with docker exec -it <container_name> /bin/bash and check if the environment variable has the parameter you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants