locked
2007 to 2012 Migration failing on some sequenced applications RRS feed

  • Question

  • Morning all

    Got a strange one with about 24 of our Sequenced applications not migrating in from our 2007 environment. Log files show the following:

                                                                    [Worker]: Migrating object ...	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Migrating object  ControlTechniques_UniSoft_343_EN_01_W7_S 2  with ID: SMS_Package.PackageID='ABF005D1' ...	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Set the status of the job entity  ControlTechniques_UniSoft_343_EN_01_W7_S 2  to Running.	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Migrating AppV package ControlTechniques_UniSoft_343_EN_01_W7_S (SMS_Package.PackageID=ABF005D1)	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Impersonation is about to start ...	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Impersonation succeed, current user identity is: BSG\SVC-SSC-SCCM2K7_Migr	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Successfully connected to share \\pagbssc1cmp001\Repository$\AppVirt Source Win7 (DO NOT EDIT)\ControlTechniques_UniSoft_343_EN_01_W7_S	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Successfully disconnected from share \\pagbssc1cmp001\Repository$\AppVirt Source Win7 (DO NOT EDIT)\ControlTechniques_UniSoft_343_EN_01_W7_S	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Impersonation is reverted.	SMS_MIGRATION_MANAGER	29/08/2014 00:00:04	3232 (0x0CA0)
                                                                    [Worker]: Impersonation is about to start ...	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    [Worker]: Impersonation succeed, current user identity is: BSG\SVC-SSC-SCCM2K7_Migr	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    [Worker]: Successfully connected to share \\pagbssc1cmp001\Repository$\AppVirt Source Win7 (DO NOT EDIT)\ControlTechniques_UniSoft_343_EN_01_W7_S	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    [Worker]: Successfully disconnected from share \\pagbssc1cmp001\Repository$\AppVirt Source Win7 (DO NOT EDIT)\ControlTechniques_UniSoft_343_EN_01_W7_S	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    [Worker]: Impersonation is reverted.	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    [Worker]: Trying to create SMS_Application ControlTechniques_UniSoft_343_EN_01_W7_S	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    ERROR: [Worker]: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.     at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)     at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.Modeling.DynamicLibraryType.InvokeMethod(MethodInfo method, Object obj, Object[] parameters)  |__Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.LibraryException: Provider Exception: Access denied when attempting to retreive configuration item.    |__System.Management.ManagementException: Generic failure   System.Management.ManagementException: Generic failure      at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)     at System.Management.ManagementObject.Put(PutOptions options)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.Adapters.WmiPropertyManager.SaveInstance(LibraryContext context, Boolean displayOnly, String newHash)  Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.LibraryException: Provider Exception: Access denied when attempting to retreive configuration item.     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.Adapters.WmiPropertyManager.SaveInstance(LibraryContext context, Boolean displayOnly, String newHash)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.ConfigMgr.DynamicSMS_Application.Save(LibraryContext )	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    ERROR: [Worker]: Exception while creating SMS_Application: Provider Exception: Access denied when attempting to retreive configuration item.	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    [Worker]: SDMPackageXML:  <AppMgmtDigest xmlns="http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <Application AuthoringScopeId="ScopeId_476D8796-7E54-45CC-9864-D0555EB1E7E7" LogicalName="Application_9abc82a5-78b4-45ba-bd08-3cadb6eb0a7b" Version="1">      <DisplayInfo DefaultLanguage="en-GB">        <Info Language="en-GB">          <Title>ControlTechniques_UniSoft_343_EN_01_W7_S</Title>          <Description></Description>          <Publisher></Publisher>          <Version>2</Version>        </Info>      </DisplayInfo>      <DeploymentTypes>        <DeploymentType AuthoringScopeId="ScopeId_476D8796-7E54-45CC-9864-D0555EB1E7E7" LogicalName="DeploymentType_82ea8560-9869-4458-b398-99dfe1f58a00" Version="1" />      </DeploymentTypes>      <Title ResourceId="Res_543074854">ControlTechniques_UniSoft_343_EN_01_W7_S</Title>      <Description ResourceId="Res_64436795"></Description>      <Publisher ResourceId="Res_1969223435"></Publisher>      <SoftwareVersion ResourceId="Res_1809625659">2</SoftwareVersion>    </Application>    <DeploymentType AuthoringScopeId="ScopeId_476D8796-7E54-45CC-9864-D0555EB1E7E7" LogicalName="DeploymentType_82ea8560-9869-4458-b398-99dfe1f58a00" Version="1">      <Title ResourceId="Res_1768735006">ControlTechniques_UniSoft_343_EN_01_W7_S</Title>      <Requirements>        <Rule id="OSRule" Severity="Critical" NonCompliantWhenSettingIsNotFound="false" xmlns="http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/06/14/Rules">          <OperatingSystemExpression>            <Operator>OneOf</Operator>            <Operands>              <RuleExpression RuleId="Windows/All_x86_Windows_XP" />              <RuleExpression RuleId="Windows/All_x86_Windows_7_Client" />              <RuleExpression RuleId="Windows/All_x64_Windows_7_Client" />            </Operands>          </OperatingSystemExpression>        </Rule>      </Requirements>      <DeploymentTechnology>GLOBAL/AppVDeploymentTechnology</DeploymentTechnology>      <Technology>AppV</Technology>      <Hosting>AppV</Hosting>      <Installer Technology="AppV">        <Contents>          <Content ContentId="Content_891e3286-55ac-4a18-953e-1800e1bd7d5b" Version="1">            <File Name="ControlTechniques_UniSoft_343_EN_01_W7_S_manifest.xml" Size="2274" />            <File Name="ABF005D1_2.sft" Size="2274" />            <File Name="CTWW.osd" Size="2274" />            <File Name="ControlTechniques_UniSoft_343_EN_01_W7_S Icons\CTWW.ico" Size="2274" />            <File Name="UNIDRIVE.osd" Size="2274" />            <File Name="ControlTechniques_UniSoft_343_EN_01_W7_S Icons\UNIDRIVE.ico" Size="2274" />            <File Name="UNIREAD.osd" Size="2274" />            <File Name="ControlTechniques_UniSoft_343_EN_01_W7_S Icons\UNIREAD.ico" Size="2274" />            <File Name="UNISOFT HELP.osd" Size="2274" />            <File Name="ControlTechniques_UniSoft_343_EN_01_W7_S Icons\UNISOFT HELP.ico" Size="2274" />            <File Name="UNISOFT.osd" Size="2274" />            <File Name="ControlTechniques_UniSoft_343_EN_01_W7_S Icons\UNISOFT.ico" Size="2274" />            <Location>\\pagbssc1cmp001\Repository$\AppVirt Source Win7 (DO NOT EDIT)\ControlTechniques_UniSoft_343_EN_01_W7_S</Location>            <PeerCache>true</PeerCache>            <FallbackToUnprotectedDP>true</FallbackToUnprotectedDP>            <OnFastNetwork>Download</OnFastNetwork>            <OnSlowNetwork>Download</OnSlowNetwork>          </Content>        </Contents>        <DetectAction>          <Provider>APPV</Provider>          <Args>            <Arg Name="PackageGUID" Type="String">{9DF1C637-6D12-4392-8404-AD9E67BE7CA7}</Arg>            <Arg Name="VersionGUID" Type="String">{04EC5DC6-2A7F-43DA-B2FB-8A91104F3B2B}</Arg>            <Arg Name="PublishComponents" Type="String[]">              <Item>CTWW 1.0</Item>              <Item>UNIDRIVE 1.0</Item>              <Item>UNIREAD 1.0</Item>              <Item>UNISOFT HELP 1.0</Item>	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    [Worker]: Set the status of the entity  ControlTechniques_UniSoft_343_EN_01_W7_S 2  to Failed.	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    [Worker]: Set the status of the job entity  ControlTechniques_UniSoft_343_EN_01_W7_S 2  to Failed.	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)
                                                                    ERROR: [Worker]: Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.LibraryException: Provider Exception: Access denied when attempting to retreive configuration item. ---> Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.LibraryException: Provider Exception: Access denied when attempting to retreive configuration item. ---> System.Management.ManagementException: Generic failure      at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)     at System.Management.ManagementObject.Put(PutOptions options)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.Adapters.WmiPropertyManager.SaveInstance(LibraryContext context, Boolean displayOnly, String newHash)     --- End of inner exception stack trace ---     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.Adapters.WmiPropertyManager.SaveInstance(LibraryContext context, Boolean displayOnly, String newHash)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.ConfigMgr.DynamicSMS_Application.Save(LibraryContext )     --- End of inner exception stack trace ---     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.LibraryException.Escalate()     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.Modeling.DynamicLibraryType.InvokeMethod(MethodInfo method, Object obj, Object[] parameters)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.Modeling.DynamicLibraryType.PutInstance(Object instance, LibraryContext context)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.ConfigMgr.ConfigMgr10.PutInstance(ILibraryObject instance, LibraryContext context)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.Adapters.ObjectManagerBase.PutInstance(ILibraryObject instance, LibraryContext context)     at Microsoft.ConfigurationManagement.SoftwareLibrary.ObjectSerialization.ChangeTracker.SubmitChanges(ObjectManager objMgr, LibraryContext context)     at Microsoft.ConfigurationManagement.MigrationManager.AppVMigrator.MigrateAppVPackages(String objectPath, String contentDest)     at Microsoft.ConfigurationManagement.MigrationManager.AppVMigrator.MigrateObject(MIG_Entity entity)     at Microsoft.ConfigurationManagement.MigrationManager.Migrator.<get_ExecutionPlan>d__0.MoveNext()	SMS_MIGRATION_MANAGER	29/08/2014 00:00:05	3232 (0x0CA0)


    The error is the same for all 24 of them. All these apps are fully functional in 2007 and I've checked the permissions over the objects in SCCM as well as the NTFS permissions on the repository and everything seems fine. Bit of a loss!

    Thanks

    Oliver

    Friday, August 29, 2014 9:25 AM

All replies

  • Thanks for getting back to me.

    I've been through the SMSProv.log and found these lines

    CExtUserContext::EnterThread : User=NT AUTHORITY\SYSTEM Sid=0x010100000000000512000000 Caching IWbemContextPtr=00000034E6463D60 in Process 0x3624 (13860)	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    Context: SECURED_CATEGORY=(SMS00UNA  ,)	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    Context: __ClientPreferredLanguages=en-US,en	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    Context: __CorrelationId={0D6E5724-9D0E-0001-5943-140E0E9DCF01}	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    Context: __GroupOperationId=2345846	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    CExtUserContext : Set ThreadLocaleID OK to: 2057	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    CSspClassManager::PreCallAction, dbname=CM_SSC	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    PutInstanceAsync SMS_Application	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    CExtProviderClassObject::DoPutInstanceInstance	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    ERROR: Failed to initialize from Model document (0x80004005)	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    *~*~e:\qfe\nts\sms\siteserver\sdk_provider\smsprov\sspconfigurationitem.cpp(2130) : Access denied when attempting to retreive configuration item.~*~*	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    *~*~Access denied when attempting to retreive configuration item. ~*~*	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    Auditing: User NT AUTHORITY\SYSTEM called an audited method of an instance of class SMS_Application.	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    CExtUserContext::LeaveThread : Releasing IWbemContextPtr=-431604384	SMS Provider	01/09/2014 09:09:27	14592 (0x3900)
    

    It's referencing a location on the E drive that doesn't appear to exist on any of our site servers (2007 or 2012) so not sure if this is the cause? But I have no idea where to start looking for this file or why it's looking for it there?

    Thanks

    Oliver

    Monday, September 1, 2014 8:31 AM
  • Hi,

    According to the link below, I suspect that SCCM have no rights to retrieve configuration item.

    Users who have sufficient instance rights cannot delete a collection in System Center Configuration Manager

    http://support.microsoft.com/kb/949025

    Also, is there any SQL Server error log?


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

    Monday, September 1, 2014 9:37 AM
  • This is very strange behaviour.

    There were a few other packages that failed to migrate for other reasons (missing source files, corrupt OSD's etc). Once I'd remedied most of them, some of the "Access denied" packages migrated successfully.

    It would appear that if a sequenced app fails to migrate, the app directly after it in the queue also fails to migrate with this "Access denied" error.

    I'm down to 6 failed apps now, 3 of them have spurious errors that need fixing and the other 3 have these access denied errors, so I'm keeping my fingers crossed once the other 3 are fixed it will also fix the other 3.

    I'll report back shortly. 

    Monday, September 1, 2014 10:24 AM