by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Francois Armand
    @fanf
    @necarnot patch? You mean like in the screenshot in above PR ?
    image.png
    necarnot
    @necarnot
    No I wasn't using a custom technique, but i was trying to use the packageManagement directive
    Francois Armand
    @fanf
    perhaps the pythons files get resetted at each update, you need to change them on the server
    necarnot
    @necarnot
    I also created another custom technique just like in the screenshot, cleared the cache, and so far, nothing new. Maybe I have to wait the 240 minutes timeout?
    @fanf on the server, what is the location of those python files you're speaking about?
    Francois Armand
    @fanf
    @necarnot sorry, I never remember their place
    but if the custom technique doesn't work either, it seems to be unlikly to be the pb
    Francois Armand
    @fanf
    (i'm trying to reproduce)
    Francois Armand
    @fanf
    image.png
    OK, I reproduce: -^
    Francois Armand
    @fanf
    there must be a pb with the option. I will look to it this night, I need to go now @necarnot
    necarnot
    @necarnot
    @fanf François, you're working too late!
    Francois Armand
    @fanf
    @necarnot I found the problem, but correcting it will be above my expertise
    necarnot
    @necarnot
    According to what you pointed at in the issue tracker, you look very close
    Francois Armand
    @fanf
    yes, but I don't get why adding the option in the python script lead to an error "
    while it works in command line
    and apt+python is a bit too much for me
    necarnot
    @necarnot
    I don't know in what timezone you're living, but for myself, this is a very good track I'll be happy to follow tomorow
    Francois Armand
    @fanf
    :)
    bye, good night!
    Francois Armand
    @fanf
    @necarnot update: a master shell/python (@peckpeck) is starting to believe farming goats in Larzac is an appealing live style
    necarnot
    @necarnot
    @fanf I couldn't agree more
    Nicolas Charles
    @ncharles
    could be that you need a tty?
    the < /dev/null seems to indicate that
    Alexis Mousset
    @amousset
    A simple workaround is to install the new dependencies (jq for 6.0) as part of the Rudder upgrade policy
    necarnot
    @necarnot
    Ohh come on, yet another issue, when trying to add 'jq' in my custom rudder-upgrade dierctive :
    
    Policy update process was stopped due to an error:
    ⇨ Policy update error for process '3815' at 2020-07-09 13:03:45 
    ⇨  Cannot write nodes configuration 
    ⇨  Accumulated: Unexpected: Error when trying to open template 'TechniqueResourceIdByPath(List(techniques, ncf_techniques, sit___upgrade_rudder_agent__debian_like_, 1.0, resources, shared-files),sit-rudder)'. Check that the file exists with a .st extension and is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open template 'TechniqueResourceIdByPath(List(techniques, ncf_techniques, sit___upgrade_rudder_agent__debian_like_, 1.0, resources, shared-files),sit-rudder)'. Check that the file exists with a .st extension and is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open template 'TechniqueResourceIdByPath(List(techniques, ncf_techniques, sit___upgrade_rudder_agent__debian_like_, 1.0, resources, shared-files),sit-rudder)'. Check that the file exists with a .st extension and is correctly commited in Git, or that the metadata for the technique are corrects.
    Francois Armand
    @fanf
    that's strange, it seems to search for a resources in shared-files under the technique
    can you share the technique (screenshot ? or export it ?) cc @VinceMacBuche ?
    necarnot
    @necarnot
    last week, you advised me to store the hooks and files I wanted to share from the server into :
    myserver:/var/rudder/configuration-repository/shared-files/my_custom_folder
    This folder is itself a git clone.
    When upgrading, the upgrade script warned me about the fact that this content won't get included in the rudder's git management, that was perfectly correct to me.
    About the error above : when returning into the technique editor, I got a warning about an unsaved config (though there were none) and the 'my_custom_folder' mentioned above.
    I suddenly feel the urge to ask if this place really was the best choice, if it can cause troubles?
    necarnot
    @necarnot
    is there someplace I have to add shared-files/my_custom_folder in a .gitignore?
    Francois Armand
    @fanf
    in any case, I don't understand why the editor is looking for that in that place... We had a problem with (1) resources parth in categories and other about (2) the checks about unsaved/modified parameters in editor. It looks like it is in the same code domain
    I'm not sure how/why git share would impact that
    cc @VinceMacBuche who would perhaps know
    Vincent Membré
    @VinceMacBuche

    techniques resources are different from /var/rudder/configuration-repository/shared-files/my_custom_folder, and you cannot use a git repository as resource from a technique (but from shared files yes)

    Do you have files in /var/rudder/configuration-repository/techniques/ ncf_techniques/sit___upgrade_rudder_agent__debian_like_/1.0/resources/shared-files ?

    Do you have resources defined for technique sit___upgrade_rudder_agent__debian_like_ in the web interface ?
    Did you used to have some resources and moved them to the /var/rudder/configuration-repository/shared-file without deleting them ?
    necarnot
    @necarnot
    Ok, so I'm only using /var/rudder/configuration-repository/shared-files/sit-rudder (which was cloned from our own git repo) to share files with the "File download (Rudder server)" directive.
    Following your advice, I also created a cron that regularly does a git pull, so yes, things are moving there.
    In /var/rudder/configuration-repository/techniques/ncf_techniques/sit_upgrade_rudder_agentdebianlike/1.0, I only have : metadata.xml technique.cf technique.json technique.ps1
    Yes, I have a Directive that is using the sit_upgrade_rudder_agentdebianlike technique (if this was your question, about ressource?)
    Before knowing how to manage my own git repo, yes, I had two files directly in /var/rudder/configuration-repository/shared-file, but I have deleted them. They are now in /var/rudder/configuration-repository/shared-files/sit-rudder
    Vincent Membré
    @VinceMacBuche
    So you never define techniques resources from the technique editor ? (tab resources) on this technique ? Can you share your metadata.xml file ?
    necarnot
    @necarnot
    @VinceMacBuche No, I haven't used this feature yet.
    update : in /var/rudder/configuration-repository, I've had a look at 'git status', and I saw that shared-files/sit-rudder was unmanaged by git.
    At first, I thought that I didn't want to disturb the inner Rudder mecanism, so I added shared-files/sit-rudder in /var/rudder/configuration-repository/.gitignore, and commited.
    But when later trying to modify some custom techniques, I saw that Rudder was blocked (I think) by this .gitignore addition.
    I removed it, then I tried to ADD shared-files/sit-rudder in git management. And commited.
    At this point, everything began to work : I was able to regenerate the policies, I had no error in the technique editor.
    necarnot
    @necarnot
    My desktop is full of sweat, this is production!
    necarnot
    @necarnot

    A simple workaround is to install the new dependencies (jq for 6.0) as part of the Rudder upgrade policy

    In the technique I made to upgrade the rudder-agent package, I also added another 'Package present' method with the jq package. I see that jq has been installed, but rudder-agent has not been upgraded. This workaround is not working.

    Vincent Membré
    @VinceMacBuche
    @necarnot Can you send me the metadata.xml and the technique.json file of the technique sit___upgrade_rudder_agent__debian_like_ ? you can send them by mail vincent@rudder.io
    necarnot
    @necarnot
    @VinceMacBuche done
    I don't understand how comes I don't get banned out of this chat? ;)
    Vincent Membré
    @VinceMacBuche
    ok so from what i read, the problem is not from this technique, do you try to share file sit-rudder in a directive ? certainly in a "File download (Rudder server)" directive ? what would be the path of this file in the directive form ?
    Rudder_-_Directives_Management_-_2020-07-09_15.26.26.png