chaoss / grimoirelab

GrimoireLab: platform for software development analytics and insights
https://chaoss.github.io/grimoirelab/
GNU General Public License v3.0
500 stars 183 forks source link

proxy support for mordred #642

Open AnishaM7 opened 8 months ago

AnishaM7 commented 8 months ago

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 commented 8 months ago

That env variable should be the way. There's an old issue here: https://github.com/chaoss/grimoirelab-perceval/issues/388#issuecomment-395895364 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.