Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Norberto Aquino
    @norbertoaquino
    @pmg7557_twitter What is your time zone and how is timezonectl configured and database timezone too?
    François Armand
    @fanf
    @pmg7557_twitter what version of rudder?
    (before 6.0, there was a bug in node list, and the fact that date was UTC was not displayed)
    pmg
    @pmg7557_twitter
    @fanf 6.02
    @norbertoaquino ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime
    François Armand
    @fanf
    @pmg7557_twitter just to be sure I understand correctly the pb: it's on node list, "last seen" column, you have an UTC date in place of a correctly time-zoned one like in that screenshot:
    image.png
    François Armand
    @fanf
    can you check in /var/log/rudder/webapp/2020_... for property: INFO application - registered property: user.timezone= ?
    pmg
    @pmg7557_twitter
    @fanf Yes, like (12h01) like your screeshot
    @fanf cat /var/log/rudder/webapp/2020_10_01.stderrout.log | grep user.ti
    [2020-10-01 07:10:51+0000] INFO application - registered property: user.timezone="Etc/UTC"
    Norberto Aquino
    @norbertoaquino
    @pmg7557_twitter if you adjust the timezone now it's necessary restart the service rudder-jetty
    pmg
    @pmg7557_twitter
    @norbertoaquino I did it, and, since it did not work, I rebooted my server! ... But last msg to @fan the registered time zone seems to be bad, but I don't know how to change it.
    François Armand
    @fanf
    @pmg7557_twitter ok, there is a pb with the timezone seen by Java/JVM. IIRC, there is something specific with it, I will have to dig it
    pmg
    @pmg7557_twitter
    @fanf ok. What about backup, reinstall & restore the server. I never did it, it can be a good exercise. Me server runs in a lxc container, I have backup anyway.
    François Armand
    @fanf
    @pmg7557_twitter don't you want to try the workaroun in the issue?
    Edit /etc/default/rudder-jetty and add:
    
    JAVA_OPTIONS="-Duser.timezone=Europe/Paris"
    pmg
    @pmg7557_twitter
    @fanf I didn't understand it was the solution. Done and Ok , Thanks :-) Don't you have a forum or a wiki to store these infos?
    François Armand
    @fanf
    we tried several things and nothing worked well. We would like to have a "tips and tricks / how to" section in doc (with easy contrib via github), do you think it would be ok?
    (it was on reference manual but not discoverable enought, quite obviously)
    (cc @amousset for the tip & tricks part in doc, or other idea for that user need)
    pmg
    @pmg7557_twitter
    @fanf Personnaly I prefer "discource forum with wiki inside" (see debian-fr.org with litle use of wiki)
    th333boo
    @th333boo
    hello people
    I'm wonder how to uninstall pacakge directive from the wrong group
    If anyone could help me out on that
    Alexis Mousset
    @amousset
    il you want to cancel a directive effect the usual way is to apply a new directive that undoes what the other did
    th333boo
    @th333boo
    will it purge
    let me check
    you've mentioned directive not technique right ?
    pmg
    @pmg7557_twitter
    Good morning All, I have often and randomly(?) the error : "Status Missing red" for some node(s) , most of the time for directive "Job schdeduled" (opening time 0-23) but sometime for others (inventory for instance)
    It'is ennnoying because, it arrived on nodes which shloud be 100% ok and this alert me on false pb.
    What should be the cause? How can we analyse this random problem?
    Rudder version : 6.02 - Protocol : Https
    François Armand
    @fanf
    @pmg7557_twitter standard analysis process:
    • check report protocol used (in settings > General > [Reporting protocol]). Old syslog-based, wih UDP, will sometime loose reports because of random network problems (but UDP is necessary vs TCP to avoid global syslog contention). If possible, use new "HTTPS only" based reporting - but need all node in Rudder 6.0 at least;
    • if already in "HTTPS only", we will need a case by case analysis. So eatch time it happens, we need to look at the report leading to error (technical log for the faulty run). Most of the time, missing can be related to a bug in the technique (a missing report on some code path).
    pmg
    @pmg7557_twitter
    @fanf Https only (last line of my post), in the technilcal logs, there is no value "Error" or "Missing" ! Strange?
    François Armand
    @fanf
    oh sorry, missed that line
    @pmg7557_twitter ok, strange. Can you screenshot the error message ?
    pmg
    @pmg7557_twitter
    I"ll do it, but I saw also that my logs are full with such lines "Need to insert line ..." concerning ssh directive in audit mode, so the other logs lines can be over 1000?
    @fanf I did not see how to link a file (screenshot)?
    pmg
    @pmg7557_twitter
    On the compliance report I see :
    For the node / inventory pb : None Message : empty Status in red : Missing
    For the node / Job scheduled pb : /sys_maj/Commun/tmp_check Message ; [Missing report #0] Status in red : Missing
    @fanf I must leave, can you tell me in what log I can see more that 1000 lines, I'll check it later. Thanks in advance
    François Armand
    @fanf
    for screenshot, I just copy & paste them here, and gitter do some magic
    cc @ncharles @amousset @peckpeck for the missing reports
    Nicolas Charles
    @ncharles
    @pmg7557_twitter could it be possible to add a touch in your script, to check if it is effectively not run when in missing status?
    could you add comment to https://issues.rudder.io/issues/18203 saying that it also happens when schedule is 0 - 23?
    On one of the nodes having missing reports, do grep "jobSchedule" /var/rudder/cfengine-community/outputs show that command was executed this night?
    pmg
    @pmg7557_twitter
    x-special/nautilus-clipboard
    copy
    file:///home/philippe/Bureau/Capture%20d%E2%80%99%C3%A9cran%20du%202020-10-05%2015-29-07.png
    touch : done , let's wait tomorrow to see the result
    Nicolas Charles
    @ncharles
    the image didn't do anyhing
    pmg
    @pmg7557_twitter
    grep "jobSchedule" /var/rudder/cfengine-community/outputs/previous
    2020-10-05T12:06:59+00:00 R: @@jobScheduler@@log_info@@32377fd7-02fd-43d0-aab7-28460a91347b@@44cd6dc6-d863-456c-92b8-95619a978d61@@0@@None@@_sys_maj_Commun_sauve_bd2_3_0_44cd6dc6_d863_456c_92b8_95619a978d61@@2020-10-05 12:06:53+00:00##83766f80-4627-4d1c-af94-888246a2173c@#Scheduling _sys_maj_Commun_sauve_bd2_3_0_44cd6dc6_d863_456c_92b8_95619a978d61 was correct
    2020-10-05T12:06:59+00:00 R: @@jobScheduler@@log_info@@32377fd7-02fd-43d0-aab7-28460a91347b@@44cd6dc6-d863-456c-92b8-95619a978d61@@0@@None@@_sys_maj_Commun_tmp_check_3_0_44cd6dc6_d863_456c_92b8_95619a978d61@@2020-10-05 12:06:53+00:00##83766f80-4627-4d1c-af94-888246a2173c@#Scheduling _sys_maj_Commun_tmp_check_3_0_44cd6dc6_d863_456c_92b8_95619a978d61 was correct
    2020-10-05T12:06:59+00:00 R: @@jobScheduler@@log_info@@32377fd7-02fd-43d0-aab7-28460a91347b@@44cd6dc6-d863-456c-92b8-95619a978d61@@0@@Job@@/sys_maj/Commun/sauve_bd2@@2020-10-05 12:06:53+00:00##83766f80-4627-4d1c-af94-888246a2173c@#The command will be run at a random time after 00:00 on this node
    2020-10-05T12:06:59+00:00 R: @@jobScheduler@@log_info@@32377fd7-02fd-43d0-aab7-28460a91347b@@44cd6dc6-d863-456c-92b8-95619a978d61@@0@@Job@@/sys_maj/Commun/tmp_check@@2020-10-05 12:06:53+00:00##83766f80-4627-4d1c-af94-888246a2173c@#The command will be run at a random time after 00:00 on this node
    The 2 commands seems correct but both have Missing Status
    @ncharles Magic is gone?
    Nicolas Charles
    @ncharles
    there's only log_info logs and not execution
    "previous" file is only the last run