Discussion:
[chrony-users] chronyc always exits 0 without any output
Wilkinson, Matthew
2018-04-19 17:48:13 UTC
Permalink
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).

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.

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.

Thanks,

Matthew Wilkinson
Bill Unruh
2018-04-19 18:34:05 UTC
Permalink
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
 
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
 
Thanks,
 
Matthew Wilkinson
 
Stuart Maclean
2018-04-19 18:39:54 UTC
Permalink
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
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Wilkinson, Matthew
2018-04-19 18:50:38 UTC
Permalink
ntp shows up in /etc/services yep

--Matthew Wilkinson


-----Original Message-----
From: Stuart Maclean [mailto:***@apl.washington.edu]
Sent: Thursday, April 19, 2018 13:40
To: chrony-***@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
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Burton, John
2018-04-19 18:58:55 UTC
Permalink
Does chronyc return immediately or does it take a few seconds to return?


On Thu, Apr 19, 2018 at 2:50 PM, Wilkinson, Matthew <
Post by Wilkinson, Matthew
ntp shows up in /etc/services yep
--Matthew Wilkinson
-----Original Message-----
Sent: Thursday, April 19, 2018 13:40
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
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
with "unsubscribe" in the subject.
with "help" in the subject.
--
with "unsubscribe" in the subject.
with "help" in the subject.
--
*John Burton, Ph.D.*
*MTEQ, Inc.*

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@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.*
Wilkinson, Matthew
2018-04-19 19:09:48 UTC
Permalink
It returns immediately no matter what option I give it. Exit code is always 0.

--Matthew Wilkinson

From: Burton, John [mailto:***@mteq.com]
Sent: Thursday, April 19, 2018 13:59
To: chrony-***@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 <***@alliantenergy.com<mailto:***@alliantenergy.com>> wrote:
ntp shows up in /etc/services yep

--Matthew Wilkinson


-----Original Message-----
From: Stuart Maclean [mailto:***@apl.washington.edu<mailto:***@apl.washington.edu>]
Sent: Thursday, April 19, 2018 13:40
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@mteq.com<mailto:***@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.
Wilkinson, Matthew
2018-04-19 19:11:08 UTC
Permalink
Also I have tried downgrading the package, and removing and reinstall the package to no avail.

--Matthew Wilkinson

From: Burton, John [mailto:***@mteq.com]
Sent: Thursday, April 19, 2018 13:59
To: chrony-***@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 <***@alliantenergy.com<mailto:***@alliantenergy.com>> wrote:
ntp shows up in /etc/services yep

--Matthew Wilkinson


-----Original Message-----
From: Stuart Maclean [mailto:***@apl.washington.edu<mailto:***@apl.washington.edu>]
Sent: Thursday, April 19, 2018 13:40
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@mteq.com<mailto:***@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.
Wilkinson, Matthew
2018-04-19 19:16:29 UTC
Permalink
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:***@mteq.com]
Sent: Thursday, April 19, 2018 13:59
To: chrony-***@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 <***@alliantenergy.com<mailto:***@alliantenergy.com>> wrote:
ntp shows up in /etc/services yep

--Matthew Wilkinson


-----Original Message-----
From: Stuart Maclean [mailto:***@apl.washington.edu<mailto:***@apl.washington.edu>]
Sent: Thursday, April 19, 2018 13:40
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@mteq.com<mailto:***@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.
Bill Unruh
2018-04-19 20:45:59 UTC
Permalink
William G. Unruh __| Canadian Institute for|____ Tel: +1(604)822-3273
Physics&Astronomy _|___ Advanced Research _|____ Fax: +1(604)822-5324
UBC, Vancouver,BC _|_ Program in Cosmology |____ ***@physics.ubc.ca
Canada V6T 1Z1 ____|____ and Gravity ______|_ www.theory.physics.ubc.ca/
Post by 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.
But chronyc would not go through the network anyway.

Wilkinson, Matthew
2018-04-19 18:49:12 UTC
Permalink
Yeah, it's very, very weird.

- chronyd is indeed running. I see the process and systemd sees it running.
- i'll try to get the strace off of it, but it's isolated
- chronyc -d doesn't do anything it just exits 0

--Matthew Wilkinson



-----Original Message-----
From: Bill Unruh [mailto:***@physics.ubc.ca]
Sent: Thursday, April 19, 2018 13:34
To: chrony-***@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.]

**********************************************************************
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
 
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
 
Thanks,
 
Matthew Wilkinson
 
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Wilkinson, Matthew
2018-04-19 18:57:44 UTC
Permalink
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:***@physics.ubc.ca]
Sent: Thursday, April 19, 2018 13:34
To: chrony-***@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.]

**********************************************************************
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
 
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
 
Thanks,
 
Matthew Wilkinson
 
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org.
Burton, John
2018-04-19 19:17:04 UTC
Permalink
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 <
Post by Wilkinson, Matthew
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-----
Sent: Thursday, April 19, 2018 13:34
Subject: Re: [chrony-users] chronyc always exits 0 without any output
[This is an external email. Be cautious with links, attachments and responses.]
**********************************************************************
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
with "unsubscribe" in the subject.
with "help" in the subject.
--
*John Burton, Ph.D.*
*MTEQ, Inc.*

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@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.*
Wilkinson, Matthew
2018-04-19 19:19:08 UTC
Permalink
tried stopping firewalld and then running chronyc sources but it just exits with 0 like always. dang.

--Matthew Wilkinson

From: Burton, John [mailto:***@mteq.com]
Sent: Thursday, April 19, 2018 14:17
To: chrony-***@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 <***@alliantenergy.com<mailto:***@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:***@physics.ubc.ca<mailto:***@physics.ubc.ca>]
Sent: Thursday, April 19, 2018 13:34
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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.]

**********************************************************************
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@mteq.com<mailto:***@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.
Parker, Michael D.
2018-04-19 19:33:17 UTC
Permalink
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)
***@ga.com<mailto:***@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 <***@alliantenergy.com>
Sent: Thursday, April 19, 2018 12:19
To: chrony-***@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:***@mteq.com]
Sent: Thursday, April 19, 2018 14:17
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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 <***@alliantenergy.com<mailto:***@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:***@physics.ubc.ca<mailto:***@physics.ubc.ca>]
Sent: Thursday, April 19, 2018 13:34
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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.]

**********************************************************************
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@mteq.com<mailto:***@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.
Wilkinson, Matthew
2018-04-19 19:38:42 UTC
Permalink
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:***@ga.com]
Sent: Thursday, April 19, 2018 14:33
To: chrony-***@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)
***@ga.com<mailto:***@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 <***@alliantenergy.com<mailto:***@alliantenergy.com>>
Sent: Thursday, April 19, 2018 12:19
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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:***@mteq.com]
Sent: Thursday, April 19, 2018 14:17
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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 <***@alliantenergy.com<mailto:***@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:***@physics.ubc.ca<mailto:***@physics.ubc.ca>]
Sent: Thursday, April 19, 2018 13:34
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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.]

**********************************************************************
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@mteq.com<mailto:***@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.
Wilkinson, Matthew
2018-04-19 19:46:27 UTC
Permalink
Interestingly enough, I tried to run sealert to see if I could find any errors and it throws an error itself:

policydb version 31 does not match my version range 15-30

So something is up with SELinux policy in OL 7.5...

--Matthew Wilkinson

From: Parker, Michael D. [mailto:***@ga.com]
Sent: Thursday, April 19, 2018 14:33
To: chrony-***@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)
***@ga.com<mailto:***@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 <***@alliantenergy.com<mailto:***@alliantenergy.com>>
Sent: Thursday, April 19, 2018 12:19
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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:***@mteq.com]
Sent: Thursday, April 19, 2018 14:17
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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 <***@alliantenergy.com<mailto:***@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:***@physics.ubc.ca<mailto:***@physics.ubc.ca>]
Sent: Thursday, April 19, 2018 13:34
To: chrony-***@chrony.tuxfamily.org<mailto:chrony-***@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.]

**********************************************************************
Post by Wilkinson, Matthew
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
Post by Wilkinson, Matthew
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.
Post by Wilkinson, Matthew
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?
Post by Wilkinson, Matthew
Thanks,
Matthew Wilkinson
--
To unsubscribe email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "unsubscribe" in the subject.
For help email chrony-users-***@chrony.tuxfamily.org<mailto:chrony-users-***@chrony.tuxfamily.org>
with "help" in the subject.
Trouble? Email ***@chrony.tuxfamily.org<mailto:***@chrony.tuxfamily.org>.
--
John Burton, Ph.D.
MTEQ, Inc.

10440 Furnace Rd., Suite 204 Office: 540-658-2720 x1407
Lorton, VA 22079-2630 Mobile: 757-508-6208
***@mteq.com<mailto:***@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.
Loading...