none
使用Power Tools创建备份计划,Readiness Checks时报错 RRS feed

  • 问题

  • 刚安装了TFS power tools,TFS和VS2010都是中文的,备份文件夹选择了本机的backup文件夹,文件夹共享权限设置为Administrator,在account页面设置选择的是Administrator,其它都是默认选项,最后就绪检查时报错,Detailed Results如下:

    错误 [ Grant Backup Plan Permissions ] 任务计划程序服务没有运行。 (异常来自 HRESULT:0x80041315). Verification failed to create backup using the backup path specified. Please make sure you have permissions on the backup folder.
    错误 [ Backup Tasks Verifications ] 任务计划程序服务没有运行。 (异常来自 HRESULT:0x80041315). Verification failed to create backup using the backup path specified. Please make sure you have permissions on the backup folder.

    我的sql server配置管理器里面Wndows Iternal Database、SQL Server(SQLEXPRESS)和SQL Server Reporting Services(SQLEXPRESS)的登陆身份都是Administrator,并已经启动。

    下面是创建备份计划时的日志:

    [Info   @07:55:48.859]
    [Info   @07:55:48.859] +-+-+-+-+-| Starting Verification |+-+-+-+-+-
    [Info   @07:55:48.875]
    [Info   @07:55:48.875] +-+-+-+-+-| Review Settings |+-+-+-+-+-
    [Info   @07:55:48.875] Backup Plan Details
    [Info   @07:55:48.875]      Backup Path                  : \\Js-tfsserver\BACKUP
    [Info   @07:55:48.875]      Retention Days               : 30
    [Info   @07:55:48.875]      Full Backup Extension        : bak
    [Info   @07:55:48.875]      Transactional Extension      : trn
    [Info   @07:55:48.875]      SMTP Host                    : None
    [Info   @07:55:48.875] External Databases
    [Info   @07:55:48.875]      Include Reporting Databases  : False
    [Info   @07:55:48.875]      Include SharePoint Databases : False
    [Info   @07:55:48.875] Backup Plan Schedules
    [Info   @07:55:48.875]      Backup Plan Schedule         : Nightly Schedule
    [Info   @07:55:48.875] Account Information
    [Info   @07:55:48.875]      Account                      : administrator
    [Info   @07:55:48.875]
    [Info   @07:55:49.093] 验证: System Checks(VCONTAINER): 开始验证
    [Info   @07:55:49.093] A generic container node that does not contribute to results
    [Info   @07:55:49.093] "验证: System Checks(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.093] 验证: System Checks\Root(VCONTAINER): 开始验证
    [Info   @07:55:49.093] A generic container node that does not contribute to results
    [Info   @07:55:49.093] "验证: System Checks\Root(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.093] 验证: System Checks\Root\WmiWorks(VWMIWORKS): 开始验证
    [Info   @07:55:49.093] Wmi Works Verification
    [Info   @07:55:49.109] Verifying that WMI works on the local machine.
    [Info   @07:55:49.421] WMI working on local machine.
    [Info   @07:55:49.421] "验证: System Checks\Root\WmiWorks(VWMIWORKS): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.421] 验证: System Checks\Root\ASLoads(VASLOADS): 开始验证
    [Info   @07:55:49.421] Verifies whether the Analysis Services assembly can load
    [Info   @07:55:49.421] "验证: System Checks\Root\ASLoads(VASLOADS): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.421] !Verify Result!: 2 Completed, 0 Skipped: 2 Success, 0 Errors, 0 Warnings
    [Info   @07:55:49.421] 验证: Input Verifications(VCONTAINER): 开始验证
    [Info   @07:55:49.421] A generic container node that does not contribute to results
    [Info   @07:55:49.421] "验证: Input Verifications(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.421] 验证: Input Verifications\Root(VCONTAINER): 开始验证
    [Info   @07:55:49.421] A generic container node that does not contribute to results
    [Info   @07:55:49.421] "验证: Input Verifications\Root(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.421] 验证: Input Verifications\Root\VerifyBackupPath(BackupPath): 开始验证
    [Info   @07:55:49.421] Verifies that the backup path exists and the path is a network path
    [Info   @07:55:49.437] "验证: Input Verifications\Root\VerifyBackupPath(BackupPath): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.437] 验证: Input Verifications\Root\VerifyRetentionDays(RetentionDays): 开始验证
    [Info   @07:55:49.437] Verifies that the retention days is between 1 and 999 days
    [Info   @07:55:49.437] "验证: Input Verifications\Root\VerifyRetentionDays(RetentionDays): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.437] 验证: Input Verifications\Root\VerifyBackupFileExtension(BackupFileExtension): 开始验证
    [Info   @07:55:49.437] Verifies backup file extensions
    [Info   @07:55:49.437] "验证: Input Verifications\Root\VerifyBackupFileExtension(BackupFileExtension): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.437] 验证: Input Verifications\Root\VerifyTaskSchedulerAccount(VerifyTaskSchedulerAccount): 开始验证
    [Info   @07:55:49.437] Verify Task Scheduler Account
    [Info   @07:55:49.437] "验证: Input Verifications\Root\VerifyTaskSchedulerAccount(VerifyTaskSchedulerAccount): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.437] 验证: Input Verifications\Root\VerifyScheduleTimesAreSynchronized(VerifyScheduleTimesAreSynchronized): 开始验证
    [Info   @07:55:49.437] Verify Schedule Times Are Synchronized
    [Info   @07:55:49.437] "验证: Input Verifications\Root\VerifyScheduleTimesAreSynchronized(VerifyScheduleTimesAreSynchronized): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.437] 验证: Input Verifications\Root\VerifySupportedTaskSchedulerVersion(VerifySupportedTaskSchedulerVersion): 开始验证
    [Info   @07:55:49.437] Verify Supported Task Scheduler Version
    [Info   @07:55:49.437] "验证: Input Verifications\Root\VerifySupportedTaskSchedulerVersion(VerifySupportedTaskSchedulerVersion): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.437] !Verify Result!: 6 Completed, 0 Skipped: 6 Success, 0 Errors, 0 Warnings
    [Info   @07:55:49.437] 验证: Database Inspection Verifications(VCONTAINER): 开始验证
    [Info   @07:55:49.437] A generic container node that does not contribute to results
    [Info   @07:55:49.437] "验证: Database Inspection Verifications(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.437] 验证: Database Inspection Verifications\Root(VCONTAINER): 开始验证
    [Info   @07:55:49.437] A generic container node that does not contribute to results
    [Info   @07:55:49.437] "验证: Database Inspection Verifications\Root(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.437] 验证: Database Inspection Verifications\Root\VerifySuccessfullCollectionDataBasesInspection(DatabaseAccess): 开始验证
    [Info   @07:55:49.437] Verify successfull database inspection.
    [Info   @07:55:49.484] Found collection database WorkCollection
    [Info   @07:55:49.484] Found collection database DefaultCollection
    [Info   @07:55:49.484] Found collection database work0Collection
    [Info   @07:55:49.484] "验证: Database Inspection Verifications\Root\VerifySuccessfullCollectionDataBasesInspection(DatabaseAccess): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.484] 验证: Database Inspection Verifications\Root\VerifySuccessfullReportingDataBasesInspection(DataBaseAccess): 开始验证
    [Info   @07:55:49.484] Verify successfull database inspection.
    [Info   @07:55:49.484] "验证: Database Inspection Verifications\Root\VerifySuccessfullReportingDataBasesInspection(DataBaseAccess): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.484] !Verify Result!: 2 Completed, 0 Skipped: 2 Success, 0 Errors, 0 Warnings
    [Info   @07:55:49.484] 验证: Backup Plan Verifications(VCONTAINER): 开始验证
    [Info   @07:55:49.484] A generic container node that does not contribute to results
    [Info   @07:55:49.484] "验证: Backup Plan Verifications(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.484] 验证: Backup Plan Verifications\Root(VCONTAINER): 开始验证
    [Info   @07:55:49.484] A generic container node that does not contribute to results
    [Info   @07:55:49.484] "验证: Backup Plan Verifications\Root(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.484] 验证: Backup Plan Verifications\Root\VerifyConfigIsNotBeingServiced(VerifyConfigIsNotBeingServiced): 开始验证
    [Info   @07:55:49.484] Verify configuration is not currently being serviced
    [Info   @07:55:49.500] "验证: Backup Plan Verifications\Root\VerifyConfigIsNotBeingServiced(VerifyConfigIsNotBeingServiced): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.500] 验证: Backup Plan Verifications\Root\OnePlanPerConfiguration(OnePlanPerConfiguration): 开始验证
    [Info   @07:55:49.500] One Plan Per Configuration
    [Info   @07:55:49.500] "验证: Backup Plan Verifications\Root\OnePlanPerConfiguration(OnePlanPerConfiguration): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.500] 验证: Backup Plan Verifications\Root\VerifyNoTasksAlreadyExist(VerifyNoTasksAlreadyExist): 开始验证
    [Info   @07:55:49.500] Verify No Tasks Already Exist
    [Info   @07:55:49.515] "验证: Backup Plan Verifications\Root\VerifyNoTasksAlreadyExist(VerifyNoTasksAlreadyExist): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.515] 验证: Backup Plan Verifications\Root\VerifySqlServiceAccountCanBeGrantedPermission(VerifySqlServiceAccountCanBeGrantedPermission): 开始验证
    [Info   @07:55:49.515] Verify Sql Service Account Can be Granted Permission
    [Info   @07:55:49.750] comparing JS\Administrator to NT AUTHORITY\SYSTEM, NT AUTHORITY\LOCAL SERVICE and LocalSystem
    [Info   @07:55:49.750] "验证: Backup Plan Verifications\Root\VerifySqlServiceAccountCanBeGrantedPermission(VerifySqlServiceAccountCanBeGrantedPermission): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:49.750] !Verify Result!: 4 Completed, 0 Skipped: 4 Success, 0 Errors, 0 Warnings
    [Info   @07:55:49.765] 验证: Grant Backup Plan Permissions(VCONTAINER): 开始验证
    [Info   @07:55:49.765] A generic container node that does not contribute to results
    [Info   @07:55:49.765] "验证: Grant Backup Plan Permissions(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.765] 验证: Grant Backup Plan Permissions\Root(VCONTAINER): 开始验证
    [Info   @07:55:49.765] A generic container node that does not contribute to results
    [Info   @07:55:49.765] "验证: Grant Backup Plan Permissions\Root(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:49.765] 验证: Grant Backup Plan Permissions\Root\VerifyLogOnAsBatchJobPermissionGrantedSuccessfully(VerifyLogOnAsBatchJobPermissionGrantedSuccessfully): 开始验证
    [Info   @07:55:49.765] Verify Logon as batch job Permission Granted Successfully
    [Info   @07:55:50.015] "验证: Grant Backup Plan Permissions\Root\VerifyLogOnAsBatchJobPermissionGrantedSuccessfully(VerifyLogOnAsBatchJobPermissionGrantedSuccessfully): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:50.015] 验证: Grant Backup Plan Permissions\Root\VerifySqlServerPermissionsGrantedSuccessfully(VerifySqlServerPermissionsGrantedSuccessfully): 开始验证
    [Info   @07:55:50.015] Verify Sql server Permissions Granted Successfully
    [Info   @07:55:50.078] Granting account JS\Administrator permissions on server js-tfsserver\sqlexpress
    [Info   @07:55:50.093] "验证: Grant Backup Plan Permissions\Root\VerifySqlServerPermissionsGrantedSuccessfully(VerifySqlServerPermissionsGrantedSuccessfully): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:50.093] 验证: Grant Backup Plan Permissions\Root\VerifySqlDatabasesPermissionsGrantedSuccessfully(VerifySqlDatabasesPermissionsGrantedSuccessfully): 开始验证
    [Info   @07:55:50.093] Verify Sql databases Permissions Granted Successfully
    [Info   @07:55:50.218] ModifyExecRole: Add:JS\Administrator
    [Info   @07:55:50.218] result: Skipped
    [Info   @07:55:50.234] ModifyExecRole: Add:JS\Administrator
    [Info   @07:55:50.234] result: Skipped
    [Info   @07:55:50.250] ModifyExecRole: Add:JS\Administrator
    [Info   @07:55:50.250] result: Skipped
    [Info   @07:55:50.265] ModifyExecRole: Add:JS\Administrator
    [Info   @07:55:50.265] result: Skipped
    [Info   @07:55:50.265] "验证: Grant Backup Plan Permissions\Root\VerifySqlDatabasesPermissionsGrantedSuccessfully(VerifySqlDatabasesPermissionsGrantedSuccessfully): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:50.265] 验证: Grant Backup Plan Permissions\Root\VerifyBackupPathPermissionsGrantedSuccessfully(VerifyBackupPathPermissionsGrantedSuccessfully): 开始验证
    [Info   @07:55:50.265] Verify backup path Permissions Granted Successfully
    [Info   @07:55:50.296] Granting account JS\Administrator permission on folder \\Js-tfsserver\BACKUP
    [Info   @07:55:50.296] Granting account JS\Administrator permission on folder \\Js-tfsserver\BACKUP
    [Info   @07:55:50.296] Granting the account JS\Administrator permission on the logs path C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Server Configuration
    [Info   @07:55:50.296] Granting account JS\Administrator permission on folder C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Server Configuration
    [Info   @07:55:50.328] "验证: Grant Backup Plan Permissions\Root\VerifyBackupPathPermissionsGrantedSuccessfully(VerifyBackupPathPermissionsGrantedSuccessfully): 退出验证(状态为 Completed,结果为 Success)"
    [Info   @07:55:50.328] 验证: Grant Backup Plan Permissions\Root\VerifyDummyBackupCreation(VerifyTestBackupCreatedSuccessfully): 开始验证
    [Info   @07:55:50.328] Verify Test Backup Created Successfully
    [Info   @07:55:50.343] Starting creating backup test validation
    [Info   @07:55:53.234] System.Runtime.InteropServices.COMException (0x80041315): 任务计划程序服务没有运行。 (异常来自 HRESULT:0x80041315)
       在 System.Runtime.InteropServices.ComTypes.IPersistFile.Save(String pszFileName, Boolean fRemember)
       在 Microsoft.Win32.TaskScheduler.TaskDefinition.V1Save(String newName)
       在 Microsoft.Win32.TaskScheduler.TaskFolder.RegisterTaskDefinition(String Path, TaskDefinition definition, TaskCreation createType, String UserId, String password, TaskLogonType LogonType, String sddl)
       在 Microsoft.TeamFoundation.PowerTools.Admin.Helpers.ScheduledTaskHelper.CreateDummyBackupValidationTask(GenericAccountInfo accountInfo, String path)
       在 Microsoft.TeamFoundation.PowerTools.Admin.Verify.VerifyDummyBackupCreatedSuccessfully.Verify()
    [Error  @07:55:53.234] !Verify Error!: 任务计划程序服务没有运行。 (异常来自 HRESULT:0x80041315). Verification failed to create backup using the backup path specified. Please make sure you have permissions on the backup folder.
    [Info   @07:55:53.234] "验证: Grant Backup Plan Permissions\Root\VerifyDummyBackupCreation(VerifyTestBackupCreatedSuccessfully): 退出验证(状态为 Completed,结果为 Error)"
    [Info   @07:55:53.234] !Verify Result!: 5 Completed, 0 Skipped: 4 Success, 1 Errors, 0 Warnings
    [Info   @07:55:53.234] 验证: Backup Tasks Verifications(VCONTAINER): 开始验证
    [Info   @07:55:53.234] A generic container node that does not contribute to results
    [Info   @07:55:53.234] "验证: Backup Tasks Verifications(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:53.234] 验证: Backup Tasks Verifications\Root(VCONTAINER): 开始验证
    [Info   @07:55:53.234] A generic container node that does not contribute to results
    [Info   @07:55:53.234] "验证: Backup Tasks Verifications\Root(VCONTAINER): 退出验证(状态为 Ignore,结果为 Ignore)"
    [Info   @07:55:53.234] 验证: Backup Tasks Verifications\Root\VerifyDummyBackupCreation(VerifyTestBackupCreatedSuccessfully): 开始验证
    [Info   @07:55:53.234] Verify Test Backup Created Successfully
    [Info   @07:55:53.234] Starting creating backup test validation
    [Info   @07:55:56.062] System.Runtime.InteropServices.COMException (0x80041315): 任务计划程序服务没有运行。 (异常来自 HRESULT:0x80041315)
       在 System.Runtime.InteropServices.ComTypes.IPersistFile.Save(String pszFileName, Boolean fRemember)
       在 Microsoft.Win32.TaskScheduler.TaskDefinition.V1Save(String newName)
       在 Microsoft.Win32.TaskScheduler.TaskFolder.RegisterTaskDefinition(String Path, TaskDefinition definition, TaskCreation createType, String UserId, String password, TaskLogonType LogonType, String sddl)
       在 Microsoft.TeamFoundation.PowerTools.Admin.Helpers.ScheduledTaskHelper.CreateDummyBackupValidationTask(GenericAccountInfo accountInfo, String path)
       在 Microsoft.TeamFoundation.PowerTools.Admin.Verify.VerifyDummyBackupCreatedSuccessfully.Verify()
    [Error  @07:55:56.062] !Verify Error!: 任务计划程序服务没有运行。 (异常来自 HRESULT:0x80041315). Verification failed to create backup using the backup path specified. Please make sure you have permissions on the backup folder.
    [Info   @07:55:56.062] "验证: Backup Tasks Verifications\Root\VerifyDummyBackupCreation(VerifyTestBackupCreatedSuccessfully): 退出验证(状态为 Completed,结果为 Error)"
    [Info   @07:55:56.062] !Verify Result!: 1 Completed, 0 Skipped: 0 Success, 1 Errors, 0 Warnings
    [Info   @07:55:56.078]
    [Info   @07:55:56.078] -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    [Info   @07:55:56.078] Verify Summary
    [Info   @07:55:56.078] -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    [Info   @07:55:56.078] 2 errors, 0 warnings, 0 skipped, 0 informational
    [Info   @07:55:56.078]
    [Info   @07:55:56.078] +-+-+-+-+-| Verify Complete. |+-+-+-+-+-

    问题出在哪儿呢?望高手指点,谢谢!

    2011年4月13日 8:03

答案

  • 你好,XPE关注中

    我看到“任务计划程序服务没有运行。 (异常来自 HRESULT:0x80041315). Verification failed to create backup using the backup path specified. Please make sure you have permissions on the backup folder.”

    我认为首先可看看是否这个是问题的主要原因-没有备份目录的相关权限,

    可以试试,在数据库服务器(或试试TFS应用层)上面用\\访问一下你的备份服务器的备份文件夹( \\Js-tfsserver\BACKUP),并尝试写入文件。

    一般来说,第一次成功登陆并写入后应该就不会再权限上出问题了

     

    希望有帮助

    谢谢


    Come back...... Welcome to my blog www.cnblogs.com/elvis0123
    2011年4月14日 2:48