Ntpd update running 100% on Pi3

Having issues with your DietPi installation, or, found a bug? Post it here.

Ntpd update running 100% on Pi3

Postby gaffa » Mon Mar 20, 2017 9:58 am

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
gaffa
 
Posts: 18
Joined: Mon Jan 30, 2017 6:03 pm

Re: Ntpd update running 100% on Pi3

Postby Fourdee » Mon Mar 20, 2017 7:08 pm

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 and Bitcoin.
User avatar
Fourdee
Site Admin
 
Posts: 2398
Joined: Tue Feb 06, 2007 12:36 pm

Re: Ntpd update running 100% on Pi3

Postby gaffa » Mon Mar 20, 2017 9:56 pm

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?
gaffa
 
Posts: 18
Joined: Mon Jan 30, 2017 6:03 pm

Re: Ntpd update running 100% on Pi3

Postby Fourdee » Tue Mar 21, 2017 3:12 pm

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 538 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 and Bitcoin.
User avatar
Fourdee
Site Admin
 
Posts: 2398
Joined: Tue Feb 06, 2007 12:36 pm

Re: Ntpd update running 100% on Pi3

Postby gaffa » Tue Mar 21, 2017 3:31 pm

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
gaffa
 
Posts: 18
Joined: Mon Jan 30, 2017 6:03 pm

Re: Ntpd update running 100% on Pi3

Postby Fourdee » Tue Mar 21, 2017 3:34 pm

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 and Bitcoin.
User avatar
Fourdee
Site Admin
 
Posts: 2398
Joined: Tue Feb 06, 2007 12:36 pm

Re: Ntpd update running 100% on Pi3

Postby gaffa » Wed Mar 22, 2017 9:01 am

Hi,

unfortunately the problem has returned!

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

Regards, Garry
gaffa
 
Posts: 18
Joined: Mon Jan 30, 2017 6:03 pm

Re: Ntpd update running 100% on Pi3

Postby Fourdee » Wed Mar 22, 2017 10:46 am

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 and Bitcoin.
User avatar
Fourdee
Site Admin
 
Posts: 2398
Joined: Tue Feb 06, 2007 12:36 pm

Re: Ntpd update running 100% on Pi3

Postby gaffa » Wed Mar 22, 2017 11:31 am

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 6:03 pm

Re: Ntpd update running 100% on Pi3

Postby gaffa » Wed Mar 22, 2017 11:40 am

Hi,

I just tried:

ntpq -pn
ntpq: read: Connection refused

Any help?

Garry
gaffa
 
Posts: 18
Joined: Mon Jan 30, 2017 6:03 pm

Next

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 3 guests