Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, Does Anyone Have Some Issues With Cloning Git Repos Within Alegro? I Always Got Some Error Massage: Fatal: Unable To Access '

Hi, does anyone have some issues with cloning git repos within alegro? I always got some error massage: fatal: unable to access ' http://X ....' Could not resolve host: ...

  
  
Posted 4 years ago
Votes Newest

Answers 24


thanks i will try it

  
  
Posted 4 years ago

is it on purpes that ther is two times /etc/hosts?

  
  
Posted 4 years ago

so the docker didnt use the dns of the host?

  
  
Posted 4 years ago

the host can resolve the name rz-s-git

  
  
Posted 4 years ago

it working. thx a lot.

  
  
Posted 4 years ago

thx

  
  
Posted 4 years ago

Okay, make sure that in your trains.conf on all the trains-agent machine you add the following:
agent.extra_docker_arguments: ["-v", "/etc/hosts:/etc/hosts",]

From here:
https://github.com/allegroai/trains-agent/blob/216b3e21790659467007957d26172698fd74e075/docs/trains.conf#L121

  
  
Posted 4 years ago

Yes, the left side is the location of the file on the host machine, the right side is the location of the file inside the docker. in our case it is the same location

  
  
Posted 4 years ago

SuperiorDucks36 , is the domain name "rz-s-git" this does not seem like a valid domain?

EDIT:
Is it a local domain on your network?

  
  
Posted 4 years ago

what do you have in the trains-agent machine in "/etc/host"

  
  
Posted 4 years ago

This will mount the trains-agent machine's hosts file into the docker

  
  
Posted 4 years ago

Is trains-agent using docker-mode or virtual-env ?

  
  
Posted 4 years ago

i also checked the commit id and the credentials

  
  
Posted 4 years ago

Docker-mode

  
  
Posted 4 years ago

Hi SuperiorDucks36
Could you post the entire log?
(could not resolve host seems to be coming from the "git clone" call).
Are you able to manually clone the repository on the machine running trains-agent

  
  
Posted 4 years ago

Yes, i am abel to clone it via terminal. with the exact same url that is posted in the log.

  
  
Posted 4 years ago

Please attach the log 🙂

  
  
Posted 4 years ago

so the docker didnt use the dns of the host?

I'm assuming it is not configured on your DNS, otherwise it would have been resolved...

  
  
Posted 4 years ago

it is a name for a local server in the network and al users can resolve the right ip on the terminal

  
  
Posted 4 years ago

and there is also the entry in /etc/hosts

  
  
Posted 4 years ago

cloning: http://.../allegro.git
fatal: unable to access ' http://<user> :<pw>@rz-s-git/c.huber/allegro.git/': Could not resolve host: XXX
Repository cloning failed: Command '['clone', ' http:// .../allegro.git', '/root/.trains/vcs-cache/allegro.git.5fe0bfd1aead3fbac0f62bb78ff1f685/allegro.git', '--quiet', '--recursive']' returned non-zero exit status 128.
trains_agent: ERROR: Failed cloning repository.

  1. Make sure you pushed the requested commit:
    (repository=' http://.../allegro.git ', branch='master', commit_id='91470e19bb1dbbcbf73d69af33a7324e8c15fecb', tag='', entry_point='allegro.py', working_dir='.')
  2. Check if remote-worker has valid credentials [see worker configuration file]
  
  
Posted 4 years ago

Okay, this seems to be the problem

  
  
Posted 4 years ago

The dokcer itself does not have the host configured.

  
  
Posted 4 years ago

there is the entry prsent

  
  
Posted 4 years ago
963 Views
24 Answers
4 years ago
one year ago
Tags