Wind River Support Network

HomeDefectsOVP-1459
Fixed

OVP-1459 : ntp can't create its frequency temp file

Created: Dec 18, 2013    Updated: Mar 11, 2016
Resolved Date: Dec 30, 2013
Found In Version: 5.0.1.10
Fix Version: 5.0.1.11
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Userspace

Description

Ntpd wants to create its frequency temp file in the same directory as its drift file.  If the drift file is in {{/etc}}, then ntpd fails to create the temp file and logs an error:
{noformat}
/var/log/daemon.log

Dec 17 15:37:28 donn-trout-creek ntpd[3354]: Listen normally on 7 virbr0 192.168.122.1 UDP 123
Dec 17 15:37:28 donn-trout-creek ntpd[3354]: peers refreshed
Dec 17 17:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 17 20:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 17 21:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 17 22:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 17 23:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 00:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 01:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 02:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 03:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 04:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 05:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 06:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 07:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 08:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 09:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 10:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 11:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 12:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
Dec 18 13:37:20 donn-trout-creek ntpd[3354]: frequency file /etc/ntp.drift.TEMP: Permission denied
{noformat}
On Fedora, the drift file is {{/var/lib/ntp/drift}} by default, so there is no issue with writing to {{/etc}}.

Workaround

I assume that you can work around the problem by editing /etc/ntp.conf, but I haven't tried it.

Steps to Reproduce

.../configure --enable-board=intel-atom-64 --enable-kernel=preempt-rt --enable-rootfs=ovp-ovirt-engine+gdb+nfsd --enable-addons=wr-ovp ...
make all
make usb-image
[boot the image]
[check daemon.log after a couple of hours]

Other Downloads


Live chat
Online