Skip to content

Commit 12157d6

Browse files
anapericmarkgoddard
authored andcommitted
chronyd crash loop if Debian server is rebooted
This patch fixes the constant chrony container crash loop after (Debian 10) server is rebooted, as described in Bug-ID: #1915528. Due to permissions issue, before this fix is applied chronyd process will be exiting with root cause error message: Fatal error : Could not open configuration file /etc/chrony/chrony.conf : Permission denied This has to do with priviledges we configured for chrony. Relaxing them fixes the issue. Tested on top of stable/victoria and Debian 10 Buster. Not tested on CentOS/RHEL. If this does not work well on RHEL/CentOS we can maybe parametrise the owner and make it configurable (just one idea). Closes-Bug: #1915528 Change-Id: I71f45ba5b9d1d2227c95633d3de51e2ccd42a467 (cherry picked from commit 21ccae1)
1 parent 6870d56 commit 12157d6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ansible/roles/chrony/templates/chrony.json.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{
55
"source": "{{ container_config_directory }}/chrony.conf",
66
"dest": "/etc/chrony/chrony.conf",
7-
"owner": "chrony",
8-
"perm": "0600"
7+
"owner": "root",
8+
"perm": "0644"
99
}
1010
],
1111
"permissions": [
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
chronyd crash loop if server is rebooted (Debian)
5+
`LP#1915528 <https://launchpad.net/bugs/1915528>`__

0 commit comments

Comments
 (0)