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 Guys, I Had Several Times Now The Following Errors Poping In Agents While Executing A Task:

Hi Guys, I had several times now the following errors poping in agents while executing a task:
trains_agent: ERROR: Failed applying git diff:
I attached the log with the full error. Note that I can simply commit and push to bypass the error for now, but I think it's worth raising because it happened several times randomly (most likely something wrong with the way the diff are processed/applied)

  
  
Posted 4 years ago
Votes Newest

Answers 18


Sure, where can I find this file?

  
  
Posted 4 years ago

No space at the end of the diff file:
` diff --git a/configs/2.2.2_from_scratch.yaml b/configs/2.2.2_from_scratch.yaml
index 9fece48..5816f78 100644
--- a/configs/2.2.2_from_scratch.yaml
+++ b/configs/2.2.2_from_scratch.yaml
@@ -136,7 +136,7 @@ data_processing:
optimizer:
type: 'RMSprop'
args:

  • lr: 2.5e-4
  • lr: 1.5e-5
    momentum: 0
    weight_decay: 0 `
  
  
Posted 4 years ago

No space, I will add and test 🙂

  
  
Posted 4 years ago

With the same error?

  
  
Posted 4 years ago

line 13 is empty 🤔

  
  
Posted 4 years ago

Could be, but not sure -> from 0.16.2 to 0.16.3

  
  
Posted 4 years ago

Is this the only empty line in the file?

  
  
Posted 4 years ago

It failed as well

  
  
Posted 4 years ago

Hi JitteryCoyote63 ,
Did you change your Trains or Trains Agent version before this started to happen?

  
  
Posted 4 years ago

👍

So the diff header doesn’t related to line 13 but the error is, can you try adding space to this line or even delete it if you don’t need it? (just for checking)

  
  
Posted 4 years ago

yes, here is the error (the space at the end of the line is there)
` Applying uncommitted changes
Executing: ('git', 'apply'): b'error: corrupt patch at line 13\n'
Failed applying diff
trains_agent: ERROR: Failed applying git diff:
diff --git a/configs/2.2.2_from_scratch.yaml b/configs/2.2.2_from_scratch.yaml
index 9fece48..5816f78 100644
--- a/configs/2.2.2_from_scratch.yaml
+++ b/configs/2.2.2_from_scratch.yaml
@@ -136,7 +136,7 @@ data_processing:
optimizer:
type: 'RMSprop'
args:

  • lr: 2.5e-4
  • lr: 1.5e-5
    momentum: 0
    weight_decay: 0
    ERROR! Failed applying git diff, see diff above. `
  
  
Posted 4 years ago

From the UI, clone the task you have, and after hit the edit in the uncommitted changes section (if you can send this file it could be great 🙂 )

  
  
Posted 4 years ago

Can you check you have space at the end of the diff file?

  
  
Posted 4 years ago

Hi JitteryCoyote63 , Did you edit the diff part?

  
  
Posted 4 years ago

Do you have space at the end of the - line? Can you try editing it and adding space to the - line if it doesn’t have one?

  
  
Posted 4 years ago

No 🙂

  
  
Posted 4 years ago

I cannot share the file itself, but here are some potential helpful points:
Multiple lines empty One line is empty but has spaces (6 to be exact) The last line of the file is empty

  
  
Posted 4 years ago

can you share configs/2.2.2_from_scratch.yaml file with me? The error point to line 13, anything special in this line?

  
  
Posted 4 years ago
964 Views
18 Answers
4 years ago
one year ago
Tags