Scheduled Task runs but does nothing


Author
Message
Mike_Barker
Mike_Barker
New Member
New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)
Group: Forum Members
Posts: 9, Visits: 39
I run a scheduled full backup every Sunday at 23:30.   This task has failed to produce a backup for the last couple of weeks.  Running the task from the Task Scheduler with History enabled show that the task starts and then completes a few seconds later, no Macrium log file is produced and no backup is performed.

Examination of the Windows 'System' event log shows the following event at around 23:30 on Sunday when the scheduled event should have run:-
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">- <System>  <Provider Name="Win32k" />   <EventID Qualifiers="32768">243</EventID>   <Level>3</Level>   <Task>0</Task>   <Keywords>0x80000000000000</Keywords>   <TimeCreated SystemTime="2017-08-13T22:30:26.143872200Z" />   <EventRecordID>4512</EventRecordID>   <Channel>System</Channel>   <Computer>MBSPECIALIST</Computer>   <Security />   </System>- <EventData>  <Data />   <Binary>000000000100000000000000F3000080000000000000000000000000000000000000000000000000</Binary>   </EventData>  </Event>

Searching on-line indicates that the heap has been exhausted, this is a global resource for the Winstation running the System Account under which the Task Scheduler runs.  The only solution seems to be re-booting the machine.  It seems that once the heap is full lots of other scheduled tasks that use the SYSTEM account fail to run, including Windows Update.

I have two machines exhibiting this problem, both running Windows 10 1703, OS Build 15063.502, one machine is Windows 10 Home, one Windows 10 Pro.

An idle thought - does reflect.exe register window handles etc. even when running in a non-windowed environment?





jphughan
jphughan
Most Valuable Professional
Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)
Group: Forum Members
Posts: 2.8K, Visits: 19K
Under the Scheduled Backups tab in Reflect, what does the "Last Result" column show for your job?

Mike_Barker
Mike_Barker
New Member
New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)
Group: Forum Members
Posts: 9, Visits: 39
It says 0x00.
jphughan
jphughan
Most Valuable Professional
Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)Most Valuable Professional (3.9K reputation)
Group: Forum Members
Posts: 2.8K, Visits: 19K
Hmm, that's a Success code.  Any chance you've moved or renamed your definition file?  Can you try deleting your existing schedule entries, clicking OK so that Reflect removes the corresponding Scheduled Tasks, and then re-adding your schedule entries?  You'll be able to test whether it works right away by going to the Scheduled Backups tab, right-clicking it, and selecting Run Now.  Note that this is different from the "Run Now" under the Backup Definition files tab, which runs as the logged-on user and does not call the scheduled task, whereas the option under Scheduled Backups actually calls the Windows task and runs as the user configured for scheduled tasks.

Mike_Barker
Mike_Barker
New Member
New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)
Group: Forum Members
Posts: 9, Visits: 39
I have done exactly what you suggest a couple of times.  If the backup has done nothing and the machine has not been rebooted then nothing will make the scheduled task work.  Reboot the machine and everything works as it should.
I have also noticed that this behaviour is not restricted to my full backup on a Sunday, I also run a daily incremental on the other days of the week and these can also fail with the same symptoms.
Detailed examination of the event log shows that no other process seems to generate a Win32K Event 243 except reflect.exe, but once that message appears in the log then other scheduled tasks running on the SYSTEM account also do nothing but return success codes! Windows Update for example.
Whatever is causing the heap overflow does not appear to be releasing resources even on process exit, its only by rebooting that things get sorted out.



Nick
Nick
Macrium Representative
Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)
Group: Administrators
Posts: 1.4K, Visits: 7.6K
Hi Mike

Detailed examination of the event log shows that no other process seems to generate a Win32K Event 243 except reflect.exe


Reflect.exe is a stub that uses no Windows resources. Can you post up where you are seeing that Event 243 is linked to Reflect? Thanks

Kind Regards

Nick - Macrium Support

Mike_Barker
Mike_Barker
New Member
New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)
Group: Forum Members
Posts: 9, Visits: 39
Hi Nick,

The only link between the event and reflect.exe is the timing. On both machines the Win32k Event 243 time is a few seconds after the scheduled start of the backup, when the Event occurs which it does not on all occasions.
Is there any additional logging I could turn on that would help diagnose the problem?

Kind regards,

Mike




 
Nick
Nick
Macrium Representative
Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)Macrium Representative (2.5K reputation)
Group: Administrators
Posts: 1.4K, Visits: 7.6K
Hi Mike

This is very strange, has ever been reported before and does seem unique to your system. All SYSTEM Windows tasks returning '0' without running seems like a problem with the Task Scheduler not actually launching tasks and the return code is bogus. 

After rebooting, can you right click on your scheduled task in the 'Scheduled Backups' tab in Reflect and select 'Run Now'. This will immediately run the backup using the tasks scheduler in exactly the same way as if it had been time triggered. Does the same problem occur?

You can also change the user account running your backup tasks to any admin user account. Take 'Other Tasks' > 'Edit Defaults' >  'Schedule'.

Kind Regards

Nick - Macrium Support

Edited 16 August 2017 8:25 PM by Nick
Mike_Barker
Mike_Barker
New Member
New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)
Group: Forum Members
Posts: 9, Visits: 39
Hi Nick,
The daily scheduled backup did 'nothing' four days after the last reboot on both machines, the first three days backups worked successfully.  There is definitely a Desktop Heap issue - but I can't see how to tie it to Macrium Reflect except by the timing of the Win32K heap error.  I have changed the user from SYSTEM to an administrators group account in all scheduled tasks and rebooted both machines.  I guess it will take another four days before I can tell if that makes any difference.
Kind Regards,
Mike




Mike_Barker
Mike_Barker
New Member
New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)New Member (13 reputation)
Group: Forum Members
Posts: 9, Visits: 39
Further information:

1) After moving the scheduled backups out of the SYSTEM account to an account in the Administrators group they all run correctly- for more than the previous three days.
2) After FIVE days a Win32K 243 event popped up in the Event Log.  Following this event Windows Update checks fail to run and there are loads of errors related to DCOM in the Event Log.

I conclude that this is a Windows 10 problem since there are no non Microsoft processes or scheduled tasks running in the SYSTEM account on either machine.

HOWEVER is seems using the (default) SYSTEM account to run Scheduled Backups is NOT a good idea!!

Regards,

Mike Barker
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search