Ntpd update running 100% on Pi3

Having issues with your DietPi installation, or, found a bug? Post it here.
gaffa
Posts: 18
Joined: Mon Jan 30, 2017 7:03 pm

Ntpd update running 100% on Pi3

Post by gaffa »

Hello,

Raspberry Pi 3

running 146 ntpd update is running for hours at 100%

see screenshot

any help would be appreciated

Garry
Attachments
Screenshot 2017-03-20 at 9.54.34 AM.png
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Ntpd update running 100% on Pi3

Post by Fourdee »

Hi Garry,

Thanks for the report, I believe there may be an issue with your configuration, I'd like to check your system and settings, please could you send us a bug report:
http://dietpi.com/phpbb/viewtopic.php?f=8&t=499#p2184

In the mean time, you can terminate those processes, at any time, with:

Code: Select all

killall -w grep
Note to self:
- locale en.GB?
- dietpi.txt var for ntpd_update_mode= exist?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
gaffa
Posts: 18
Joined: Mon Jan 30, 2017 7:03 pm

Re: Ntpd update running 100% on Pi3

Post by gaffa »

Hi,

code 145a6736-1570-4b55-a4c5-09896c6499b7-0

many thanks, Garry

Fourdee wrote:Hi Garry,

Thanks for the report, I believe there may be an issue with your configuration, I'd like to check your system and settings, please could you send us a bug report:
http://dietpi.com/phpbb/viewtopic.php?f=8&t=499#p2184

In the mean time, you can terminate those processes, at any time, with:

Code: Select all

killall -w grep
Note to self:
- locale en.GB?
- dietpi.txt var for ntpd_update_mode= exist?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Ntpd update running 100% on Pi3

Post by Fourdee »

gaffa wrote:Hi,

code 145a6736-1570-4b55-a4c5-09896c6499b7-0

many thanks, Garry
Hi Garry,

Thanks.

Everything appears to be in order, also ran a test of your dietpi configuration on a system here, unable to replicate the 100% grep process.

I think the cron.daily may be the issue here, lets update those scripts, please run the following commands:

Code: Select all

		cp /DietPi/dietpi/conf/cron.daily_dietpi /etc/cron.daily/dietpi
		chmod +x /etc/cron.daily/dietpi
		cp /DietPi/dietpi/conf/cron.hourly_dietpi /etc/cron.hourly/dietpi
		chmod +x /etc/cron.hourly/dietpi
Please give the system a reboot, then run the following command. Give it a few seconds, check htop and let us know if the 100% cpu returns:

Code: Select all

/DietPi/dietpi/conf/cron.daily_dietpi
For reference, you should see an entry as below (when NTPD is updating time):
Untitled.png
Untitled.png (4.64 KiB) Viewed 5621 times
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
gaffa
Posts: 18
Joined: Mon Jan 30, 2017 7:03 pm

Re: Ntpd update running 100% on Pi3

Post by gaffa »

Hi,

just did what you requested:

Processes are normal and there is a correct entry in /var/log/ntpd.log

Thank you! Any idea what went wrong?

Kind regards,

Garry


Fourdee wrote:
gaffa wrote:Hi,

code 145a6736-1570-4b55-a4c5-09896c6499b7-0

many thanks, Garry
Hi Garry,

Thanks.

Everything appears to be in order, also ran a test of your dietpi configuration on a system here, unable to replicate the 100% grep process.

I think the cron.daily may be the issue here, lets update those scripts, please run the following commands:

Code: Select all

		cp /DietPi/dietpi/conf/cron.daily_dietpi /etc/cron.daily/dietpi
		chmod +x /etc/cron.daily/dietpi
		cp /DietPi/dietpi/conf/cron.hourly_dietpi /etc/cron.hourly/dietpi
		chmod +x /etc/cron.hourly/dietpi
Please give the system a reboot, then run the following command. Give it a few seconds, check htop and let us know if the 100% cpu returns:

Code: Select all

/DietPi/dietpi/conf/cron.daily_dietpi
For reference, you should see an entry as below (when NTPD is updating time):
Untitled.png
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Ntpd update running 100% on Pi3

Post by Fourdee »

gaffa wrote:Thank you! Any idea what went wrong?
Excellent Gary,

Not 100%, but I believe the cron.daily file on your system may of been incorrect. We did patch this file a while back during update, it may not of successfully completed for an unknown reason.

Either way, keep an eye on it over the next few days, just encase it reoccurs, in which case we'll need to look at system stability and installed software as possible triggers.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
gaffa
Posts: 18
Joined: Mon Jan 30, 2017 7:03 pm

Re: Ntpd update running 100% on Pi3

Post by gaffa »

Hi,

unfortunately the problem has returned!

Any ideas, I really don't want to have to uninstall DietPi because of this!

Regards, Garry
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Ntpd update running 100% on Pi3

Post by Fourdee »

gaffa wrote:Hi,

unfortunately the problem has returned!

Any ideas, I really don't want to have to uninstall DietPi because of this!

Regards, Garry
Hi Garry,

Something is throwing this out, could be related to installed software, although, not sure what that is yet.

To your knowledge, have you made any manual adjustments to the system, outside of all DietPi programs?
eg:
- manually installing software through apt, if so, which?
- Modifying crontab
- Manually editing any config files on system?

Also:
- Which PSU used?
- Which SD used?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
gaffa
Posts: 18
Joined: Mon Jan 30, 2017 7:03 pm

Re: Ntpd update running 100% on Pi3

Post by gaffa »

Hi,

I have only installed Mariadb by hand, I installed node red using dietpi-software, I have an official Pi3 PSU and am running off a USB stick from Sandisk.

Regards, Garry

Fourdee wrote:
gaffa wrote:Hi,

unfortunately the problem has returned!

Any ideas, I really don't want to have to uninstall DietPi because of this!

Regards, Garry
Hi Garry,

Something is throwing this out, could be related to installed software, although, not sure what that is yet.

To your knowledge, have you made any manual adjustments to the system, outside of all DietPi programs?
eg:
- manually installing software through apt, if so, which?
- Modifying crontab
- Manually editing any config files on system?

Also:
- Which PSU used?
- Which SD used?
gaffa
Posts: 18
Joined: Mon Jan 30, 2017 7:03 pm

Re: Ntpd update running 100% on Pi3

Post by gaffa »

Hi,

I just tried:

ntpq -pn
ntpq: read: Connection refused

Any help?

Garry
Post Reply