Cron not working after upgrade to 15

Cron not working after upgrade to 15

Postby firwareslut » Sat Oct 12, 2013 10:04 am

I have checked the NAS time and that the cron service is started (it is) but I am not longer getting anything in the log file and my cron jobs are not doing anything.

Have rebooted the NAS as well as stopping and starting the service manually to no avail.
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Cron not working after upgrade to 15

Postby Jocko » Sat Oct 12, 2013 10:18 am

Are you sure ?

Dropbear sends nothing on the standard output and if no error is occured then there is no data appended in the cron log.

Check if a dropbear process is running with the custom post
Code: Select all
ps axf
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cron not working after upgrade to 15

Postby firwareslut » Sun Oct 13, 2013 7:58 am

I had powered down the NAS by pulling out the plug when I couldn't access anything after the upgrade. This had reset the clock.

Btw....i added NTP addresses but the webgui only allows IP addresses and not domain names, e.g no.pool.ntp.org, why is this?
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Cron not working after upgrade to 15

Postby Jocko » Sun Oct 13, 2013 8:52 am

hi firwareslut,

Currently the ntp client used by the firmware requires only IP address. It's not the standard daemon (for small NAS).

But we can change this by converting the domain before writing the conf file :whistle I will try to do a path...

And of course, by changing the daemon...
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cron not working after upgrade to 15

Postby firwareslut » Sun Oct 13, 2013 9:19 am

The NTP domain name stuff isn't essential but I have no idea if the IP addresses of the servers change often :D
firwareslut
Donator VIP
Donator VIP
 
Posts: 202
Joined: Thu Oct 06, 2011 11:53 am

Re: Cron not working after upgrade to 15

Postby Jocko » Sun Oct 13, 2013 11:44 am

Usually the ntp servers in stratum 2 or 3 don't change their public IP.

I do a patch to allow to use a domain name whereas an IP. When the ntp daemon starts, it find the current public address of the domain name.

See your pm
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Cron not working after upgrade to 15

Postby wd9895 » Tue Oct 15, 2013 6:45 am

I had the same issue. My NAS didn't shut down by cron.
Reason: wrong NAS time.

Solution new NTP server

See here. http://www.hullen.de/helmut/filebox/DCF77/ntpsrvr.html
wd9895
Donator Supporter
Donator Supporter
 
Posts: 255
Joined: Fri Jun 10, 2011 1:49 pm
Location: Hamburg, Germany

Re: Cron not working after upgrade to 15

Postby Jocko » Tue Oct 15, 2013 8:07 am

Thanks wd9895 for your suggestion.

But it's already done : in the next version, the firmware will use another ntp client.

In the same time, a ntp server will be available for synchronizing hosts with the NAS time.

Two others bugs are also fixed :
- if the ntp client is started whereas there is no Internet access, NAS time was never updated even if Internet access is restored.
- if no ntp server is set, there is a TZ offset after each rebooting
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 7 guests