Scheduled Task Shutdown not working

Language, region, time zone, power, navigation, notification and more.
User avatar
FredMutter
Posts: 89
Joined: 17 Jan 2025, 20:11
France

Re: Scheduled Task Shutdown not working

Post by FredMutter »

journalctl|grep cron
Feb 14 12:12:19 TNAS cron[3272]: (CRON) INFO (pidfile fd = 3)
Feb 14 12:12:19 TNAS cron[3272]: (*system*) INSECURE MODE (group/other writable) (/etc/crontab)
Feb 14 12:12:19 TNAS cron[3272]: (CRON) INFO (Running @reboot jobs)
Feb 14 12:12:29 TNAS sysinit[3948]: /etc/tos/scripts/powertimer: line 114: /etc/cron: No such file or directory
Feb 14 12:13:02 TNAS cron[3272]: (*system*) INSECURE MODE (group/other writable) (/etc/crontab)
fmutter@TNAS:/etc# more /etc/crontab
30 23 * * 0 fmutter /sbin/poweroff
30 23 * * 1 fmutter /sbin/poweroff
30 23 * * 2 fmutter /sbin/poweroff
30 23 * * 3 fmutter /sbin/poweroff
30 23 * * 4 fmutter /sbin/poweroff
30 23 * * 5 fmutter /sbin/poweroff
30 23 * * 6 fmutter /sbin/poweroff

as I wrote in one of my fist messages this line is very suspicious => /etc/tos/scripts/powertimer: line 114: /etc/cron:
Model: F2-424 with TOS 7.0.0777 Bios V08
you can discuss with me in French, German and English
User avatar
Gremlin
Gold Member
Posts: 1627
Joined: 02 Dec 2022, 22:31
Great Britain

Re: Scheduled Task Shutdown not working

Post by Gremlin »

Not that I am concerned, Just for giggles:
{Machine start-up @ 09:00 via > Hardware&Power > Power > Scheduled}

Code: Select all

Me@NAS-T2:/# journalctl | grep cron
Feb 14 09:02:08 NAS-T2 cron[2871]: (CRON) INFO (pidfile fd = 3)
Feb 14 09:02:08 NAS-T2 cron[2871]: /var/spool/cron: No such file or directory
Feb 14 09:02:08 NAS-T2 cron[2871]: /var/spool/cron: created
Feb 14 09:02:08 NAS-T2 cron[2871]: crontabs: No such file or directory
Feb 14 09:02:08 NAS-T2 cron[2871]: crontabs: created
Feb 14 09:02:08 NAS-T2 cron[2871]: crontabs: chowned
Feb 14 09:02:08 NAS-T2 cron[2871]: (CRON) INFO (Running @reboot jobs)
Feb 14 09:02:40 NAS-T2 sysinit[3998]: /etc/tos/scripts/powertimer: line 114: /etc/init.d/cron: No such file or directory
Feb 14 09:03:01 NAS-T2 cron[2871]: (*system*) RELOAD (/etc/crontab)
Me@NAS-T2:/#
F5-221 TOS7.0.0777 - 4x4TB (Ironwolf) Traid
F2-424 TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (HGST) Traid
F2-221 TOS7.0.0777 - 1x3TB Ext4, 1x4TB Btrfs
F2-425+ TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (EXOS) Traid
User avatar
FredMutter
Posts: 89
Joined: 17 Jan 2025, 20:11
France

Re: Scheduled Task Shutdown not working

Post by FredMutter »

Gremlin wrote: 14 Feb 2025, 20:32 Not that I am concerned, Just for giggles:
{Machine start-up @ 09:00 via > Hardware&Power > Power > Scheduled}
Nope I started my NAS manually at 9:00 :-)

It should start at 5:50
Image
Model: F2-424 with TOS 7.0.0777 Bios V08
you can discuss with me in French, German and English
User avatar
tc0566
Posts: 9
Joined: 20 Apr 2025, 09:03
United States of America

Re: Scheduled Task Shutdown not working

Post by tc0566 »

Ok So I have pretty much the same issue except mine doesn't power on sometimes. Does anyone have a solution? TOS 6.0.650
User avatar
TMLila
TM Product Manager
Posts: 90
Joined: 30 Apr 2024, 16:27
China

Re: Scheduled Task Shutdown not working

Post by TMLila »

FredMutter wrote: 03 Feb 2025, 19:12 >set the 'Scheduled task' setup within the GUI and it will work (all other things being equal).
This is my problem since 2 weeks it doesn't work: it was my first screenshot. And I really don't know why.

1. I analyzed cron and confirmed that it executes my own cron tasks correctly.
2. However, the GUI-scheduled shutdown task doesn’t work, even though the system crontab file exists (as shown in my second screenshot).
3. Docker isn’t the cause, since I manually shut it down, yet the GUI shutdown task still fails to execute.
4. I suppose cron is not running anymore as root and can therefore not read the system crontab file.

Because I have only one TOS I cannot compare my analysis with another installation
Thank you for your feedback. We have confirmed that the 'Scheduled Task ' feature currently has some issues. Our team is actively working on improvements, and a fixed version will be released in a future update.
User avatar
FredMutter
Posts: 89
Joined: 17 Jan 2025, 20:11
France

Re: Scheduled Task Shutdown not working

Post by FredMutter »

TMLila wrote: 20 Apr 2025, 10:56
FredMutter wrote: 03 Feb 2025, 19:12 >set the 'Scheduled task' setup within the GUI and it will work (all other things being equal).
This is my problem since 2 weeks it doesn't work: it was my first screenshot. And I really don't know why.

1. I analyzed cron and confirmed that it executes my own cron tasks correctly.
2. However, the GUI-scheduled shutdown task doesn’t work, even though the system crontab file exists (as shown in my second screenshot).
3. Docker isn’t the cause, since I manually shut it down, yet the GUI shutdown task still fails to execute.
4. I suppose cron is not running anymore as root and can therefore not read the system crontab file.

Because I have only one TOS I cannot compare my analysis with another installation
Thank you for your feedback. We have confirmed that the 'Scheduled Task ' feature currently has some issues. Our team is actively working on improvements, and a fixed version will be released in a future update.
I already applied the hotfix (wrong file rights on the crond file)
Model: F2-424 with TOS 7.0.0777 Bios V08
you can discuss with me in French, German and English
Post Reply

Return to “System Configuration”