RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Bill Unruh



William G. Unruh __| Canadian Institute for| Tel: +1(604)822-3273
Physics _|___ Advanced Research _| Fax: +1(604)822-5324
UBC, Vancouver,BC _|_ Program in Cosmology | un...@physics.ubc.ca
Canada V6T 1Z1 | and Gravity __|_ www.theory.physics.ubc.ca/

On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:



The only thing I can think right now is that there’s something up with the 
network
card or interface name. Somehow chronyc isn’t seeing that there’s a network to 
query.
I am grasping at straws though.


But chronyc would not go through the network anyway.

RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Wilkinson, Matthew
should have thought of that. I didn’t see any logs about it, but sure enough, I 
rebooted the server into permissive mode and did an autorelabel and chronyc 
works now.


--Matthew Wilkinson

From: Parker, Michael D. [mailto:michael.d.par...@ga.com]
Sent: Thursday, April 19, 2018 14:33
To: chrony-users@chrony.tuxfamily.org
Subject: RE: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

Have any of you tried setting SELinux into permissive mode?

Does chronyc run as root ok?  But not as a normal user?

* * *
Michael D. Parker
General Atomics – ElectroMagnetics Systems Group (EMS)
michael.d.par...@ga.com<mailto:michael.d.par...@ga.com>  <<<<< NOTE: Remember 
to include my middle initial >>>>>

*
The information contained in this electronic message is intended only for the 
use of the individual or entity to
which it is addressed and may contain information that is privileged, 
confidential and exempt from disclosure
under applicable law. This message may also contain technical data, export of 
which is restricted by the
International Traffic in Arms Regulations (ITAR). Disclosure to foreign persons 
without prior U.S. Government
approval is prohibited. Violations of these export laws and regulations are 
subject to severe civil and criminal
penalties.

This message may include Company Sensitive and/or Proprietary Information.  If 
the reader
of this message is not the intended recipient, you are informed that any 
dissemination, copying or disclosure of
the material contained herein, in whole or in part, is strictly prohibited. If 
you received this message in error,
please notify the sender by reply e-mail and delete all copies of this message.
**

From: Wilkinson, Matthew 
<matthewwilkin...@alliantenergy.com<mailto:matthewwilkin...@alliantenergy.com>>
Sent: Thursday, April 19, 2018 12:19
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: -EXT-RE: [chrony-users] chronyc always exits 0 without any output

tried stopping firewalld and then running chronyc sources but it just exits 
with 0 like always. dang.

--Matthew Wilkinson

From: Burton, John [mailto:jbur...@mteq.com]
Sent: Thursday, April 19, 2018 14:17
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

I had an issue something like that with a different distribution of Linux, but 
I recall it taking longer to return - like it was timing out on something. Try 
temporarily disabling the firewall on the computer and see if that changes the 
behavior. If that works, then maybe you need to open the port in the firewall?

John

On Thu, Apr 19, 2018 at 2:57 PM, Wilkinson, Matthew 
<matthewwilkin...@alliantenergy.com<mailto:matthewwilkin...@alliantenergy.com>> 
wrote:
This bit is interesting:

from strace:

unlink("/var/run/chrony/chronyc.11490.sock") = -1 ENOENT (No such file or 
directory)
bind(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyc.11490.sock"}, 
110) = 0
chmod("/var/run/chrony/chronyc.11490.sock", 0666) = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyd.sock"}, 110) 
= 0
fstat(0, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(0, TCGETS, 0x7fffeb781dc0)= -1 ENOTTY (Inappropriate ioctl for 
device)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f7f8cca7000
read(0, "", 4096)   = 0
getsockname(3, {sa_family=AF_LOCAL, 
sun_path="/var/run/chrony/chronyc.11490.sock"}, [37]) = 0


--Matthew Wilkinson


-Original Message-
From: Bill Unruh [mailto:un...@physics.ubc.ca<mailto:un...@physics.ubc.ca>]
Sent: Thursday, April 19, 2018 13:34
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**

On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:

>
> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The
> chronyd will start up, read the config, and synchronize just fine (according 
> to the syslogs).

Is chronyd actually running?
ps auxww|grep chronyd |grep -v grep

>
>
>
> However, when I run chronyc, no matter what options I give it (even
> -d) and even if I give it no options, i

RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Parker, Michael D.
Have any of you tried setting SELinux into permissive mode?

Does chronyc run as root ok?  But not as a normal user?

* * *
Michael D. Parker
General Atomics – ElectroMagnetics Systems Group (EMS)
michael.d.par...@ga.com<mailto:michael.d.par...@ga.com>  <<<<< NOTE: Remember 
to include my middle initial >>>>>

*
The information contained in this electronic message is intended only for the 
use of the individual or entity to
which it is addressed and may contain information that is privileged, 
confidential and exempt from disclosure
under applicable law. This message may also contain technical data, export of 
which is restricted by the
International Traffic in Arms Regulations (ITAR). Disclosure to foreign persons 
without prior U.S. Government
approval is prohibited. Violations of these export laws and regulations are 
subject to severe civil and criminal
penalties.

This message may include Company Sensitive and/or Proprietary Information.  If 
the reader
of this message is not the intended recipient, you are informed that any 
dissemination, copying or disclosure of
the material contained herein, in whole or in part, is strictly prohibited. If 
you received this message in error,
please notify the sender by reply e-mail and delete all copies of this message.
**

From: Wilkinson, Matthew <matthewwilkin...@alliantenergy.com>
Sent: Thursday, April 19, 2018 12:19
To: chrony-users@chrony.tuxfamily.org
Subject: -EXT-RE: [chrony-users] chronyc always exits 0 without any output

tried stopping firewalld and then running chronyc sources but it just exits 
with 0 like always. dang.

--Matthew Wilkinson

From: Burton, John [mailto:jbur...@mteq.com]
Sent: Thursday, April 19, 2018 14:17
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

I had an issue something like that with a different distribution of Linux, but 
I recall it taking longer to return - like it was timing out on something. Try 
temporarily disabling the firewall on the computer and see if that changes the 
behavior. If that works, then maybe you need to open the port in the firewall?

John

On Thu, Apr 19, 2018 at 2:57 PM, Wilkinson, Matthew 
<matthewwilkin...@alliantenergy.com<mailto:matthewwilkin...@alliantenergy.com>> 
wrote:
This bit is interesting:

from strace:

unlink("/var/run/chrony/chronyc.11490.sock") = -1 ENOENT (No such file or 
directory)
bind(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyc.11490.sock"}, 
110) = 0
chmod("/var/run/chrony/chronyc.11490.sock", 0666) = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyd.sock"}, 110) 
= 0
fstat(0, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(0, TCGETS, 0x7fffeb781dc0)= -1 ENOTTY (Inappropriate ioctl for 
device)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f7f8cca7000
read(0, "", 4096)   = 0
getsockname(3, {sa_family=AF_LOCAL, 
sun_path="/var/run/chrony/chronyc.11490.sock"}, [37]) = 0


--Matthew Wilkinson


-Original Message-
From: Bill Unruh [mailto:un...@physics.ubc.ca<mailto:un...@physics.ubc.ca>]
Sent: Thursday, April 19, 2018 13:34
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**

On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:

>
> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The
> chronyd will start up, read the config, and synchronize just fine (according 
> to the syslogs).

Is chronyd actually running?
ps auxww|grep chronyd |grep -v grep

>
>
>
> However, when I run chronyc, no matter what options I give it (even
> -d) and even if I give it no options, it just exits with return 0 and no 
> output.


That is very strange. Even if chronyd is not running it should start up.

>
>
> Anyone run into this before or know of a way I can find out why it’s
> doing this? I’ve ran an strace on it, and it just quickly runs through some 
> calls and exits 0.

"some calls" is a bit vague.
Does
chronyc -d
give you any hints?


>
>
>
> Thanks,
>
>
>
> Matthew Wilkinson
>
>
>
>
>

--
To unsubscribe email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfa

RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Wilkinson, Matthew
tried stopping firewalld and then running chronyc sources but it just exits 
with 0 like always. dang.

--Matthew Wilkinson

From: Burton, John [mailto:jbur...@mteq.com]
Sent: Thursday, April 19, 2018 14:17
To: chrony-users@chrony.tuxfamily.org
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

I had an issue something like that with a different distribution of Linux, but 
I recall it taking longer to return - like it was timing out on something. Try 
temporarily disabling the firewall on the computer and see if that changes the 
behavior. If that works, then maybe you need to open the port in the firewall?

John

On Thu, Apr 19, 2018 at 2:57 PM, Wilkinson, Matthew 
<matthewwilkin...@alliantenergy.com<mailto:matthewwilkin...@alliantenergy.com>> 
wrote:
This bit is interesting:

from strace:

unlink("/var/run/chrony/chronyc.11490.sock") = -1 ENOENT (No such file or 
directory)
bind(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyc.11490.sock"}, 
110) = 0
chmod("/var/run/chrony/chronyc.11490.sock", 0666) = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyd.sock"}, 110) 
= 0
fstat(0, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(0, TCGETS, 0x7fffeb781dc0)= -1 ENOTTY (Inappropriate ioctl for 
device)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f7f8cca7000
read(0, "", 4096)   = 0
getsockname(3, {sa_family=AF_LOCAL, 
sun_path="/var/run/chrony/chronyc.11490.sock"}, [37]) = 0


--Matthew Wilkinson


-Original Message-
From: Bill Unruh [mailto:un...@physics.ubc.ca<mailto:un...@physics.ubc.ca>]
Sent: Thursday, April 19, 2018 13:34
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**

On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:

>
> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The
> chronyd will start up, read the config, and synchronize just fine (according 
> to the syslogs).

Is chronyd actually running?
ps auxww|grep chronyd |grep -v grep

>
>
>
> However, when I run chronyc, no matter what options I give it (even
> -d) and even if I give it no options, it just exits with return 0 and no 
> output.


That is very strange. Even if chronyd is not running it should start up.

>
>
> Anyone run into this before or know of a way I can find out why it’s
> doing this? I’ve ran an strace on it, and it just quickly runs through some 
> calls and exits 0.

"some calls" is a bit vague.
Does
chronyc -d
give you any hints?


>
>
>
> Thanks,
>
>
>
> Matthew Wilkinson
>
>
>
>
>

--
To unsubscribe email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "help" in the subject.
Trouble?  Email 
listmas...@chrony.tuxfamily.org<mailto:listmas...@chrony.tuxfamily.org>.



--

John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204Office:   540-658-2720 x1407
Lorton, VA 22079-2630  Mobile: 757-508-6208
jbur...@mteq.com<mailto:jbur...@mteq.com>Fax: 
540-288-2515



Please note that the contents of this email including all attachments may be 
privileged or confidential in nature and are intended solely for the named 
recipients.  If you have received this message in error, please contact the 
sender immediately and be aware that the use, copying, or dissemination of this 
information is prohibited.




Re: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Burton, John
I had an issue something like that with a different distribution of Linux,
but I recall it taking longer to return - like it was timing out on
something. Try temporarily disabling the firewall on the computer and see
if that changes the behavior. If that works, then maybe you need to open
the port in the firewall?

John

On Thu, Apr 19, 2018 at 2:57 PM, Wilkinson, Matthew <
matthewwilkin...@alliantenergy.com> wrote:

> This bit is interesting:
>
> from strace:
>
> unlink("/var/run/chrony/chronyc.11490.sock") = -1 ENOENT (No such file or
> directory)
> bind(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyc.11490.sock"},
> 110) = 0
> chmod("/var/run/chrony/chronyc.11490.sock", 0666) = 0
> connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyd.sock"},
> 110) = 0
> fstat(0, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
> ioctl(0, TCGETS, 0x7fffeb781dc0)= -1 ENOTTY (Inappropriate ioctl
> for device)
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0x7f7f8cca7000
> read(0, "", 4096)   = 0
> getsockname(3, {sa_family=AF_LOCAL, 
> sun_path="/var/run/chrony/chronyc.11490.sock"},
> [37]) = 0
>
>
> --Matthew Wilkinson
>
>
> -Original Message-----
> From: Bill Unruh [mailto:un...@physics.ubc.ca]
> Sent: Thursday, April 19, 2018 13:34
> To: chrony-users@chrony.tuxfamily.org
> Subject: Re: [chrony-users] chronyc always exits 0 without any output
>
> [This is an external email. Be cautious with links, attachments and
> responses.]
>
> **
>
> On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:
>
> >
> > I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The
> > chronyd will start up, read the config, and synchronize just fine
> (according to the syslogs).
>
> Is chronyd actually running?
> ps auxww|grep chronyd |grep -v grep
>
> >
> >
> >
> > However, when I run chronyc, no matter what options I give it (even
> > -d) and even if I give it no options, it just exits with return 0 and no
> output.
>
>
> That is very strange. Even if chronyd is not running it should start up.
>
> >
> >
> > Anyone run into this before or know of a way I can find out why it’s
> > doing this? I’ve ran an strace on it, and it just quickly runs through
> some calls and exits 0.
>
> "some calls" is a bit vague.
> Does
> chronyc -d
> give you any hints?
>
>
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Matthew Wilkinson
> >
> >
> >
> >
> >
>
> --
> To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org
> with "unsubscribe" in the subject.
> For help email chrony-users-requ...@chrony.tuxfamily.org
> with "help" in the subject.
> Trouble?  Email listmas...@chrony.tuxfamily.org.
>
>


-- 

*John Burton, Ph.D.*
*MTEQ, Inc.*

10440 Furnace Rd., Suite 204Office:   540-658-2720 x1407
Lorton, VA 22079-2630  Mobile: 757-508-6208
jbur...@mteq.comFax: 540-288-2515



*Please note that the contents of this email including all attachments may
be privileged or confidential in nature and are intended solely for the
named recipients.  If you have received this message in error, please
contact the sender immediately and be aware that the use, copying, or
dissemination of this information is prohibited.*


RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Wilkinson, Matthew
The only thing I can think right now is that there’s something up with the 
network card or interface name. Somehow chronyc isn’t seeing that there’s a 
network to query. I am grasping at straws though.

--Matthew Wilkinson

From: Burton, John [mailto:jbur...@mteq.com]
Sent: Thursday, April 19, 2018 13:59
To: chrony-users@chrony.tuxfamily.org
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

Does chronyc return immediately or does it take a few seconds to return?


On Thu, Apr 19, 2018 at 2:50 PM, Wilkinson, Matthew 
<matthewwilkin...@alliantenergy.com<mailto:matthewwilkin...@alliantenergy.com>> 
wrote:
ntp shows up in /etc/services yep

--Matthew Wilkinson


-Original Message-
From: Stuart Maclean 
[mailto:stu...@apl.washington.edu<mailto:stu...@apl.washington.edu>]
Sent: Thursday, April 19, 2018 13:40
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**
This is a long shot, since chrony may not work in the same way as ntp, but when 
I had similar issues with ntpq exiting unexpectedly, turns out I didn't have 
these lines

ntp 123/udp

ntp 123/tcp

in /etc/services

If you re-run chronyc unders trace, do you see it trying to open that file?

I think the idea is to have a level of indirection, using that file, so that 
ports don't have to be hard coded in the sources.  Seems like overkill to me.

Stuart


On 04/19/2018 11:34 AM, Bill Unruh wrote:
>
> On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:
>
>>
>> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The
>> chronyd will start up, read the config, and synchronize just fine
>> (according to the syslogs).
>
> Is chronyd actually running? ps auxww|grep chronyd |grep -v grep
>
>>
>>
>>
>> However, when I run chronyc, no matter what options I give it (even
>> -d) and even if I
>> give it no options, it just exits with return 0 and no output.
>
>
> That is very strange. Even if chronyd is not running it should start up.
>
>>
>>
>> Anyone run into this before or know of a way I can find out why it’s
>> doing this? I’ve ran an strace on it, and it just quickly runs
>> through some calls and exits 0.
>
> "some calls" is a bit vague.
> Does chronyc -d give you any hints?
>
>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Matthew Wilkinson
>>
>>
>>
>>
>>


--
To unsubscribe email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "help" in the subject.
Trouble?  Email 
listmas...@chrony.tuxfamily.org<mailto:listmas...@chrony.tuxfamily.org>.


--
To unsubscribe email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "help" in the subject.
Trouble?  Email 
listmas...@chrony.tuxfamily.org<mailto:listmas...@chrony.tuxfamily.org>.



--

John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204Office:   540-658-2720 x1407
Lorton, VA 22079-2630  Mobile: 757-508-6208
jbur...@mteq.com<mailto:jbur...@mteq.com>Fax: 
540-288-2515



Please note that the contents of this email including all attachments may be 
privileged or confidential in nature and are intended solely for the named 
recipients.  If you have received this message in error, please contact the 
sender immediately and be aware that the use, copying, or dissemination of this 
information is prohibited.




RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Wilkinson, Matthew
Also I have tried downgrading the package, and removing and reinstall the 
package to no avail.

--Matthew Wilkinson

From: Burton, John [mailto:jbur...@mteq.com]
Sent: Thursday, April 19, 2018 13:59
To: chrony-users@chrony.tuxfamily.org
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

Does chronyc return immediately or does it take a few seconds to return?


On Thu, Apr 19, 2018 at 2:50 PM, Wilkinson, Matthew 
<matthewwilkin...@alliantenergy.com<mailto:matthewwilkin...@alliantenergy.com>> 
wrote:
ntp shows up in /etc/services yep

--Matthew Wilkinson


-Original Message-
From: Stuart Maclean 
[mailto:stu...@apl.washington.edu<mailto:stu...@apl.washington.edu>]
Sent: Thursday, April 19, 2018 13:40
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**
This is a long shot, since chrony may not work in the same way as ntp, but when 
I had similar issues with ntpq exiting unexpectedly, turns out I didn't have 
these lines

ntp 123/udp

ntp 123/tcp

in /etc/services

If you re-run chronyc unders trace, do you see it trying to open that file?

I think the idea is to have a level of indirection, using that file, so that 
ports don't have to be hard coded in the sources.  Seems like overkill to me.

Stuart


On 04/19/2018 11:34 AM, Bill Unruh wrote:
>
> On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:
>
>>
>> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The
>> chronyd will start up, read the config, and synchronize just fine
>> (according to the syslogs).
>
> Is chronyd actually running? ps auxww|grep chronyd |grep -v grep
>
>>
>>
>>
>> However, when I run chronyc, no matter what options I give it (even
>> -d) and even if I
>> give it no options, it just exits with return 0 and no output.
>
>
> That is very strange. Even if chronyd is not running it should start up.
>
>>
>>
>> Anyone run into this before or know of a way I can find out why it’s
>> doing this? I’ve ran an strace on it, and it just quickly runs
>> through some calls and exits 0.
>
> "some calls" is a bit vague.
> Does chronyc -d give you any hints?
>
>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Matthew Wilkinson
>>
>>
>>
>>
>>


--
To unsubscribe email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "help" in the subject.
Trouble?  Email 
listmas...@chrony.tuxfamily.org<mailto:listmas...@chrony.tuxfamily.org>.


--
To unsubscribe email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "help" in the subject.
Trouble?  Email 
listmas...@chrony.tuxfamily.org<mailto:listmas...@chrony.tuxfamily.org>.



--

John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204Office:   540-658-2720 x1407
Lorton, VA 22079-2630  Mobile: 757-508-6208
jbur...@mteq.com<mailto:jbur...@mteq.com>Fax: 
540-288-2515



Please note that the contents of this email including all attachments may be 
privileged or confidential in nature and are intended solely for the named 
recipients.  If you have received this message in error, please contact the 
sender immediately and be aware that the use, copying, or dissemination of this 
information is prohibited.




RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Wilkinson, Matthew
It returns immediately no matter what option I give it. Exit code is always 0.

--Matthew Wilkinson

From: Burton, John [mailto:jbur...@mteq.com]
Sent: Thursday, April 19, 2018 13:59
To: chrony-users@chrony.tuxfamily.org
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

Does chronyc return immediately or does it take a few seconds to return?


On Thu, Apr 19, 2018 at 2:50 PM, Wilkinson, Matthew 
<matthewwilkin...@alliantenergy.com<mailto:matthewwilkin...@alliantenergy.com>> 
wrote:
ntp shows up in /etc/services yep

--Matthew Wilkinson


-Original Message-
From: Stuart Maclean 
[mailto:stu...@apl.washington.edu<mailto:stu...@apl.washington.edu>]
Sent: Thursday, April 19, 2018 13:40
To: chrony-users@chrony.tuxfamily.org<mailto:chrony-users@chrony.tuxfamily.org>
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**
This is a long shot, since chrony may not work in the same way as ntp, but when 
I had similar issues with ntpq exiting unexpectedly, turns out I didn't have 
these lines

ntp 123/udp

ntp 123/tcp

in /etc/services

If you re-run chronyc unders trace, do you see it trying to open that file?

I think the idea is to have a level of indirection, using that file, so that 
ports don't have to be hard coded in the sources.  Seems like overkill to me.

Stuart


On 04/19/2018 11:34 AM, Bill Unruh wrote:
>
> On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:
>
>>
>> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The
>> chronyd will start up, read the config, and synchronize just fine
>> (according to the syslogs).
>
> Is chronyd actually running? ps auxww|grep chronyd |grep -v grep
>
>>
>>
>>
>> However, when I run chronyc, no matter what options I give it (even
>> -d) and even if I
>> give it no options, it just exits with return 0 and no output.
>
>
> That is very strange. Even if chronyd is not running it should start up.
>
>>
>>
>> Anyone run into this before or know of a way I can find out why it’s
>> doing this? I’ve ran an strace on it, and it just quickly runs
>> through some calls and exits 0.
>
> "some calls" is a bit vague.
> Does chronyc -d give you any hints?
>
>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Matthew Wilkinson
>>
>>
>>
>>
>>


--
To unsubscribe email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "help" in the subject.
Trouble?  Email 
listmas...@chrony.tuxfamily.org<mailto:listmas...@chrony.tuxfamily.org>.


--
To unsubscribe email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email 
chrony-users-requ...@chrony.tuxfamily.org<mailto:chrony-users-requ...@chrony.tuxfamily.org>
with "help" in the subject.
Trouble?  Email 
listmas...@chrony.tuxfamily.org<mailto:listmas...@chrony.tuxfamily.org>.



--

John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204Office:   540-658-2720 x1407
Lorton, VA 22079-2630  Mobile: 757-508-6208
jbur...@mteq.com<mailto:jbur...@mteq.com>Fax: 
540-288-2515



Please note that the contents of this email including all attachments may be 
privileged or confidential in nature and are intended solely for the named 
recipients.  If you have received this message in error, please contact the 
sender immediately and be aware that the use, copying, or dissemination of this 
information is prohibited.




Re: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Burton, John
Does chronyc return immediately or does it take a few seconds to return?


On Thu, Apr 19, 2018 at 2:50 PM, Wilkinson, Matthew <
matthewwilkin...@alliantenergy.com> wrote:

> ntp shows up in /etc/services yep
>
> --Matthew Wilkinson
>
>
> -Original Message-
> From: Stuart Maclean [mailto:stu...@apl.washington.edu]
> Sent: Thursday, April 19, 2018 13:40
> To: chrony-users@chrony.tuxfamily.org
> Subject: Re: [chrony-users] chronyc always exits 0 without any output
>
> [This is an external email. Be cautious with links, attachments and
> responses.]
>
> **
> This is a long shot, since chrony may not work in the same way as ntp, but
> when I had similar issues with ntpq exiting unexpectedly, turns out I
> didn't have these lines
>
> ntp 123/udp
>
> ntp 123/tcp
>
> in /etc/services
>
> If you re-run chronyc unders trace, do you see it trying to open that file?
>
> I think the idea is to have a level of indirection, using that file, so
> that ports don't have to be hard coded in the sources.  Seems like overkill
> to me.
>
> Stuart
>
>
> On 04/19/2018 11:34 AM, Bill Unruh wrote:
> >
> > On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:
> >
> >>
> >> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The
> >> chronyd will start up, read the config, and synchronize just fine
> >> (according to the syslogs).
> >
> > Is chronyd actually running? ps auxww|grep chronyd |grep -v grep
> >
> >>
> >>
> >>
> >> However, when I run chronyc, no matter what options I give it (even
> >> -d) and even if I
> >> give it no options, it just exits with return 0 and no output.
> >
> >
> > That is very strange. Even if chronyd is not running it should start up.
> >
> >>
> >>
> >> Anyone run into this before or know of a way I can find out why it’s
> >> doing this? I’ve ran an strace on it, and it just quickly runs
> >> through some calls and exits 0.
> >
> > "some calls" is a bit vague.
> > Does chronyc -d give you any hints?
> >
> >
> >>
> >>
> >>
> >> Thanks,
> >>
> >>
> >>
> >> Matthew Wilkinson
> >>
> >>
> >>
> >>
> >>
>
>
> --
> To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org
> with "unsubscribe" in the subject.
> For help email chrony-users-requ...@chrony.tuxfamily.org
> with "help" in the subject.
> Trouble?  Email listmas...@chrony.tuxfamily.org.
>
>
> --
> To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org
> with "unsubscribe" in the subject.
> For help email chrony-users-requ...@chrony.tuxfamily.org
> with "help" in the subject.
> Trouble?  Email listmas...@chrony.tuxfamily.org.
>
>


-- 

*John Burton, Ph.D.*
*MTEQ, Inc.*

10440 Furnace Rd., Suite 204Office:   540-658-2720 x1407
Lorton, VA 22079-2630  Mobile: 757-508-6208
jbur...@mteq.comFax: 540-288-2515



*Please note that the contents of this email including all attachments may
be privileged or confidential in nature and are intended solely for the
named recipients.  If you have received this message in error, please
contact the sender immediately and be aware that the use, copying, or
dissemination of this information is prohibited.*


RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Wilkinson, Matthew
This bit is interesting:

from strace:

unlink("/var/run/chrony/chronyc.11490.sock") = -1 ENOENT (No such file or 
directory)
bind(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyc.11490.sock"}, 
110) = 0
chmod("/var/run/chrony/chronyc.11490.sock", 0666) = 0
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/chrony/chronyd.sock"}, 110) 
= 0
fstat(0, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(0, TCGETS, 0x7fffeb781dc0)= -1 ENOTTY (Inappropriate ioctl for 
device)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f7f8cca7000
read(0, "", 4096)   = 0
getsockname(3, {sa_family=AF_LOCAL, 
sun_path="/var/run/chrony/chronyc.11490.sock"}, [37]) = 0


--Matthew Wilkinson


-Original Message-
From: Bill Unruh [mailto:un...@physics.ubc.ca] 
Sent: Thursday, April 19, 2018 13:34
To: chrony-users@chrony.tuxfamily.org
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**

On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:

> 
> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The 
> chronyd will start up, read the config, and synchronize just fine (according 
> to the syslogs).

Is chronyd actually running? 
ps auxww|grep chronyd |grep -v grep

> 
>  
> 
> However, when I run chronyc, no matter what options I give it (even 
> -d) and even if I give it no options, it just exits with return 0 and no 
> output.


That is very strange. Even if chronyd is not running it should start up.

> 
> 
> Anyone run into this before or know of a way I can find out why it’s 
> doing this? I’ve ran an strace on it, and it just quickly runs through some 
> calls and exits 0.

"some calls" is a bit vague.
Does
chronyc -d
give you any hints?


> 
>  
> 
> Thanks,
> 
>  
> 
> Matthew Wilkinson
> 
>  
> 
> 
>

--
To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-requ...@chrony.tuxfamily.org
with "help" in the subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.



RE: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Wilkinson, Matthew
ntp shows up in /etc/services yep

--Matthew Wilkinson


-Original Message-
From: Stuart Maclean [mailto:stu...@apl.washington.edu] 
Sent: Thursday, April 19, 2018 13:40
To: chrony-users@chrony.tuxfamily.org
Subject: Re: [chrony-users] chronyc always exits 0 without any output

[This is an external email. Be cautious with links, attachments and responses.]

**
This is a long shot, since chrony may not work in the same way as ntp, but when 
I had similar issues with ntpq exiting unexpectedly, turns out I didn't have 
these lines

ntp 123/udp

ntp 123/tcp

in /etc/services

If you re-run chronyc unders trace, do you see it trying to open that file?

I think the idea is to have a level of indirection, using that file, so that 
ports don't have to be hard coded in the sources.  Seems like overkill to me.

Stuart


On 04/19/2018 11:34 AM, Bill Unruh wrote:
>
> On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:
>
>>
>> I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The 
>> chronyd will start up, read the config, and synchronize just fine 
>> (according to the syslogs).
>
> Is chronyd actually running? ps auxww|grep chronyd |grep -v grep
>
>>
>>
>>
>> However, when I run chronyc, no matter what options I give it (even
>> -d) and even if I
>> give it no options, it just exits with return 0 and no output.
>
>
> That is very strange. Even if chronyd is not running it should start up.
>
>>
>>
>> Anyone run into this before or know of a way I can find out why it’s 
>> doing this? I’ve ran an strace on it, and it just quickly runs 
>> through some calls and exits 0.
>
> "some calls" is a bit vague.
> Does chronyc -d give you any hints?
>
>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Matthew Wilkinson
>>
>>
>>
>>
>>


--
To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-requ...@chrony.tuxfamily.org
with "help" in the subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.


--
To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-requ...@chrony.tuxfamily.org
with "help" in the subject.
Trouble?  Email listmas...@chrony.tuxfamily.org.



Re: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Stuart Maclean
This is a long shot, since chrony may not work in the same way as ntp, 
but when I had similar issues with ntpq exiting unexpectedly, turns out 
I didn't have these lines


ntp 123/udp

ntp 123/tcp

in /etc/services

If you re-run chronyc unders trace, do you see it trying to open that file?

I think the idea is to have a level of indirection, using that file, so 
that ports don't have to be hard coded in the sources.  Seems like 
overkill to me.


Stuart


On 04/19/2018 11:34 AM, Bill Unruh wrote:


On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:



I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The 
chronyd will
start up, read the config, and synchronize just fine (according to 
the syslogs).


Is chronyd actually running? ps auxww|grep chronyd |grep -v grep





However, when I run chronyc, no matter what options I give it (even 
-d) and even if I

give it no options, it just exits with return 0 and no output.



That is very strange. Even if chronyd is not running it should start up.




Anyone run into this before or know of a way I can find out why it’s 
doing this? I’ve
ran an strace on it, and it just quickly runs through some calls and 
exits 0.


"some calls" is a bit vague.
Does chronyc -d give you any hints?






Thanks,



Matthew Wilkinson








--
To unsubscribe email chrony-users-requ...@chrony.tuxfamily.org 
with "unsubscribe" in the subject.
For help email chrony-users-requ...@chrony.tuxfamily.org 
with "help" in the subject.

Trouble?  Email listmas...@chrony.tuxfamily.org.



Re: [chrony-users] chronyc always exits 0 without any output

2018-04-19 Thread Bill Unruh


On Thu, 19 Apr 2018, Wilkinson, Matthew wrote:



I recently installed an Oracle Linux 7.5 servers with Chrony 3.2. The chronyd 
will
start up, read the config, and synchronize just fine (according to the syslogs).


Is chronyd actually running? 
ps auxww|grep chronyd |grep -v grep




 

However, when I run chronyc, no matter what options I give it (even -d) and 
even if I
give it no options, it just exits with return 0 and no output.



That is very strange. Even if chronyd is not running it should start up.




Anyone run into this before or know of a way I can find out why it’s doing 
this? I’ve
ran an strace on it, and it just quickly runs through some calls and exits 0.


"some calls" is a bit vague.
Does 
chronyc -d 
give you any hints?





 

Thanks,

 

Matthew Wilkinson