Project

General

Profile

Question #14286

error in agent run default:_log_v3.class_prefix contains reference to itself

Added by Tobias Ell 14 days ago. Updated 11 days ago.

Status:
New
Priority:
N/A
Assignee:
-
Category:
-
Target version:

Description

Hello,

my server is at rudder 5.0.6 and my agent as well.
Although this should be fixed in https://issues.rudder.io/issues/13202
I see "error: The value of variable 'default:_log_v3.class_prefix' contains a reference to itself, '${class_prefix}'" in output of
agent run.

I did upgrade-techniques -o, do I have to build my user techniques anew?

rudder_run.txt (338 KB) rudder_run.txt Tobias Ell, 2019-02-08 12:06

Related issues

Related to ncf - Bug #13202: error message in output of rudder 4.3 - 'default:_log_v3.class_prefix' contains a reference to itself, '${class_prefix}'Released

History

#1 Updated by Nicolas CHARLES 14 days ago

Hi - this issue should be gone, but it seems we missed something

Would it be possible to include the context of this errors (lines befores & after in the agent output) so that we can identify which generic method/technique still need to be corrected ?

Thank you

#2 Updated by Tobias Ell 14 days ago

Shall I run the agent in debug mode?

#3 Updated by Tobias Ell 14 days ago

I ran agent in debug, hope I got all output related to the technique.

#4 Updated by Nicolas CHARLES 14 days ago

thank you ! we'll investigate why the generic method does not behave as expected

#5 Updated by Nicolas CHARLES 14 days ago

  • Related to Bug #13202: error message in output of rudder 4.3 - 'default:_log_v3.class_prefix' contains a reference to itself, '${class_prefix}' added

#6 Updated by Nicolas CHARLES 14 days ago

  • Target version set to 4.3.10

#7 Updated by Nicolas CHARLES 11 days ago

Hi Tobias

Thank oyu very much for this report - it allowed us to understand the issue at stake here.
It's because there is a variable ${match.1} that only has meaning in the sense of string replacement using regexp - but we use the parameters of the generic method as unique identifier for reporting as well
since this variable only has meaning in the context of string replacement, during evaluation of the unique identifier, it is empty - and since cfengine 3.9 an empty variable makes the whole promise ignored. As it is ignored, the identifier doesn't exist - thus the error.

#8 Updated by Nicolas CHARLES 11 days ago

i tried to workaround the issue - without much success so far.
Please note that is it only cosmetic, and don't have impact on reporting, unless you are editing several time the same file with variables.

We are looking for a more long term solution

#9 Updated by Tobias Ell 11 days ago

OK - I just wanted to be sure that the error will not interfere with checking/reporting.
Thanks yor looking into the issue.

Also available in: Atom PDF