(02-06-2025, 01:27 PM)chmichael Wrote: Sent, but i insist adding a "Service Shutdown initiated" log message in order to identify when it happens.
Thank you
Thanks for the log file. The log file shows that a scheduled backup job starts at 22:00:03 and you try to shut down the computer at 22:52:00, but the shutdown is blocked because the backup task is still running, so you terminate the service program at 23:26:24.
BackupService.log:
...
2025-02-04 22:00:03 T:0000361C .\CmdDeal.cpp 4541 nParamLen=16746
2025-02-04 22:00:03 T:0000361C .\ExecCmd.cpp 464 C:\Program Files\Hasleo\Hasleo Backup Suite\bin\BackupWorker.exe 2 1 E3FC2572-AF50-4F1C-AAE2-D63E3527982A // The backup task starts running
2025-02-04 22:00:05 T:000008A4 .\PipeWrapper.cpp 102 nRet=0x0065000600000002
...
2025-02-04 22:51:53 T:0000361C .\LicenseMgr.cpp 72 nRet=0x00AD001300000000
2025-02-04 22:52:00 T:00005080 .\BackupService.cpp 264 6 // The service program receives the shutdown event
2025-02-04 22:52:00 T:00005080 .\BackupService.cpp 272 0
...
2025-02-04 23:26:24 T:00000544 .\EnumNetworkCompuers.cpp 356 nRet=0x0163001500000102
2025-02-04 23:28:29 T:00001544 Log version: 1.0
2025-02-04 23:28:29 T:00001544 OS Name:Windows Server 2016 Essentials Version:6.3 Build 14393 Bits:64
...
BackupWorker.log:
...
2025-02-04 22:00:04 T:000010A4 Log version: 1.0
2025-02-04 22:00:04 T:000010A4 OS Name:Windows Server 2016 Essentials Version:6.3 Build 14393 Bits:64
2025-02-04 22:00:04 T:000010A4 Hasleo Backup Suite Version:5.0.2.2
...
2025-02-04 22:48:42 T:000010A4 .\DiskBackupWrapper.cpp 1582 nPos=73
2025-02-04 22:55:52 T:000010A4 .\DiskBackupWrapper.cpp 1582 nPos=74 // The backup operation had not completed when the shutdown event occurred
2025-02-04 23:00:27 T:000010A4 .\DiskBackupWrapper.cpp 1582 nPos=75
...
Therefore, the problem is caused by a shutdown message received before the backup operation is completed, which causes the shutdown to be blocked.