Git Product home page Git Product logo

Comments (7)

zerodayz avatar zerodayz commented on June 12, 2024

out=$(chronyc tracking)
offset=$(awk '/RMS offset/ {print $4}' <<<"$out")
echo "clock offset is $offset" >&2

from risu.

zerodayz avatar zerodayz commented on June 12, 2024

Are you executing it with bash/sh? What is the reproducer?

from risu.

iranzo avatar iranzo commented on June 12, 2024

PM with cc, executing inside citellus

from risu.

iranzo avatar iranzo commented on June 12, 2024
 sh -x /home/remote/piranzo/citellus/citellus/plugins/system/clock-1-chrony.sh
+ : 1
+ [[ 0 = 0 ]]
+ '[' '!' -f ./sos_commands/systemd/systemctl_list-units_--all ']'
+ grep -q 'chronyd.*active' ./sos_commands/systemd/systemctl_list-units_--all
+ '[' '!' -f ./sos_commands/chrony/chronyc_tracking ']'
+ grep -q 'Not synchronised' ./sos_commands/chrony/chronyc_tracking
++ awk '/RMS offset/ {print $4}' ./sos_commands/chrony/chronyc_tracking
+ offset=
+ echo 'clock offset is '
clock offset is 
++ echo '<1 &&     >-1'
++ bc -l
(standard_in) 1: syntax error
+ (( 
    
     ))

from risu.

iranzo avatar iranzo commented on June 12, 2024

Contents of chronyc_tracking are:

cat sos_commands/chrony/chronyc_tracking 
506 Cannot talk to daemon

So hence, the var is not set and the error appears

from risu.

zerodayz avatar zerodayz commented on June 12, 2024

https://review.gerrithub.io/376756

from risu.

iranzo avatar iranzo commented on June 12, 2024

Verified:

INFO:citellus:using default plugin path
_________ .__  __         .__  .__                
\_   ___ \|__|/  |_  ____ |  | |  |  __ __  ______
/    \  \/|  \   __\/ __ \|  | |  | |  |  \/  ___/
\     \___|  ||  | \  ___/|  |_|  |_|  |  /\___ \ 
 \______  /__||__|  \___  >____/____/____//____  >
        \/              \/                     \/ 
found #1 tests at 
mode: fs snapshot .
# /home/remote/piranzo/citellus/citellus/plugins/system/clock-1-chrony.sh: failed
    clock is not synchronized

Closing

from risu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.