Synology scheduler not working

After the last Synology update my tasks stopped running. I had no error messages in the log, and no output when I tried to see task output.

I ssh onto the box, and ran:

% /tmp/synoschedtask --get
[Line 387] dump task list failed. [0x0000 (null):0]

So assumed the sqlite database is corrupt. To recover I tried the following:

sqlite3 /usr/syno/etc/sched_status.sqlite
.mode insert
.output /tmp/sched_status_dump.sql
.dump
.exit
mv /usr/syno/etc/sched_status.sqlite{,.bak}
touch /usr/syno/etc/sched_status.sqlite
sqlite3 /usr/syno/etc/sched_status.sqlite
.read /tmp/sched_status_dump.sql
.exit

I actually got a bunch of errors on the read but rebooted and it’s all fixed!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s