locked
App-V 5 packages don't get published to the user - error 040000002C RRS feed

  • Question

  • We use SCCM 2012 R2 to push App-V packages to our Windows 7 environment. This generally works well, but occasionally there is an issue where a virtual application is installed in the Software Center, but cannot be started by the user.

    I've spent quite a bit of time trying to debug this issue and have found out the following things:

    - Normally if a virtual application gets installed by SCCM, it gets published both globally and to the user
    - The affected application is only published globally, not to the user
    - If I try to manually publish the application without the "-global" switch I get the error 040000002C
    - Googling that error mostly shows suggestions that have to do with write permissions to the AppV VFS folders, however the user does have write rights on his directory. In fact, most AppV 5 applications do work, it is only a single one that doesn't
    - The affected application is completely random. One week it's user A with app X (but Y works), next week it's user B with app Y (but X works)
    - Recreating the user profile does not help, the newly created profile still has the same problem
    - Trying to load the application from a local copy does not work either. Add-AppvClientPackage works, but Publish-AppvClientPackage errors out with the same error.

    I activated the debug logs and got the following log entries

    2015-Jun-09 11:21:27.825 - Orchestrator: [1744].[4820]: INFO: RunningActivities::Remove() - Activity PublishPackage #152 for (entity 8f11854b-2ab8-4a82-857b-86dbbbdf232d, version 91fd42c7-65eb-4f15-ae56-0d0002b6afe0) is no longer coordinated with other running activity instances.
    2015-Jun-09 11:21:27.825 - Orchestrator: [1744].[4820]: ERROR: ActivityManagerImpl::RequestActivity() - PublishPackage activity #152 failed with error code 1435503874-1281.
    2015-Jun-09 11:21:27.813 - VEMgrDrv: [1744].[4820]: INFO: VEManagerDispatch() - IOCTL -1500938224 processes with result 0.</Data>
    2015-Jun-09 11:21:27.813 - VEMgrDrv: [1744].[4820]: INFO: VEManagerDispatch() - IOCTL -1500938224 received.</Data>
    2015-Jun-09 11:21:27.813 - Orchestrator: [1744].[4820]: ERROR: PublishPackageActivity::PostComponent() - PublishPackage activity #152 was failed by component VirtualizationManager (error: 0x55900d02-0x501), initiating a PublishPackageUndo.
    2015-Jun-09 11:21:27.813 - Orchestrator: [1744].[4820]: ERROR: ClientActivity::ExecuteActivity() - Activity PublishPackage #152 failed on component VirtualizationManager (error: 1338016772-44).
    2015-Jun-09 11:21:27.805 - PackageConfig: [1744].[4820]: INFO: PackageConfigManagerImpl::add_user_package_config() - AddUserPackage called for package: 8f11854b-2ab8-4a82-857b-86dbbbdf232d, version: 91fd42c7-65eb-4f15-ae56-0d0002b6afe0, group: 00000000-0000-0000-0000-000000000000, version 00000000-0000-0000-0000-000000000000, and user: S-1-5-21-2726595128-1908630092-2997379723-26012
    2015-Jun-09 11:21:27.805 - PackageConfig: [1744].[4820]: DEBUG: PackageConfigManagerImpl::add_user_package_config() - AddUserPackage derived values: package moniker '8F11854B-2AB8-4A82-857B-86DBBBDF232D_91FD42C7-65EB-4F15-AE56-0D0002B6AFE0', group moniker ''
    2015-Jun-09 11:21:27.804 - Catalog: [1744].[4820]: SCOPE: --&gt; MachineCatalogImpl::GetDynamicPackageGroups()
    2015-Jun-09 11:21:27.804 - Catalog: [1744].[4820]: DEBUG: AppV::Client::Catalog::MachineCatalogImpl::GetDynamicPackageGroups(), 195: Found 0 connection groups that contain package {8F11854B-2AB8-4A82-857B-86DBBBDF232D} - {91FD42C7-65EB-4F15-AE56-0D0002B6AFE0}.
    2015-Jun-09 11:21:27.804 - Orchestrator: [1744].[4820]: INFO: AppV::Client::Orchestration::Activities::PublishPackageActivity::InitializePackageGroupIntegrationSettings(), 1002: Getting, for package {8F11854B-2AB8-4A82-857B-86DBBBDF232D} - {91FD42C7-65EB-4F15-AE56-0D0002B6AFE0}, the integration settings for each package group that it belongs to.
    2015-Jun-09 11:21:27.804 - Catalog: [1744].[4820]: SCOPE: --&gt; CatalogManager::GetDynamicPackageGroupIdentityList()
    2015-Jun-09 11:21:27.804 - Catalog: [1744].[4820]: SCOPE: &lt;-- CatalogManager::GetDynamicPackageGroupIdentityList()^~^0
    2015-Jun-09 11:21:27.804 - Catalog: [1744].[4820]: INFO: AppV::Client::Catalog::UserCatalogImpl::GetPackage(), 513: Package {8F11854B-2AB8-4A82-857B-86DBBBDF232D} - {91FD42C7-65EB-4F15-AE56-0D0002B6AFE0} was not found in the 2 Catalog.
    2015-Jun-09 11:21:27.804 - Catalog: [1744].[4820]: SCOPE: &lt;-- MachineCatalogImpl::GetDynamicPackageGroups()^~^0
    2015-Jun-09 11:21:27.804 - Catalog: [1744].[4820]: DEBUG: AppV::Client::Catalog::CatalogManager::GetDynamicPackageGroupTemplateList(), 930: Found 0 dynamic package groups.
    2015-Jun-09 11:21:27.803 - Orchestrator: [1744].[4820]: INFO: RunningActivities::Add() - New activity PublishPackage #152 for (entity 8f11854b-2ab8-4a82-857b-86dbbbdf232d, version 91fd42c7-65eb-4f15-ae56-0d0002b6afe0) has been coordinated with other running activity instances.
    2015-Jun-09 11:21:27.803 - Orchestrator: [1744].[4820]: INFO: PendingActivities::Add() - New activity PublishPackage #152 for (entity 8f11854b-2ab8-4a82-857b-86dbbbdf232d, version 91fd42c7-65eb-4f15-ae56-0d0002b6afe0) is pending coordination with other running activity instances.
    2015-Jun-09 11:21:27.803 - Catalog: [1744].[4820]: INFO: AppV::Client::Catalog::UserCatalogImpl::GetPackage(), 513: Package {8F11854B-2AB8-4A82-857B-86DBBBDF232D} - {91FD42C7-65EB-4F15-AE56-0D0002B6AFE0} was not found in the 2 Catalog.
    2015-Jun-09 11:21:27.803 - Orchestrator: [1744].[4820]: INFO: PendingActivities::Remove() - New activity PublishPackage #152 for (entity 8f11854b-2ab8-4a82-857b-86dbbbdf232d, version 91fd42c7-65eb-4f15-ae56-0d0002b6afe0) is no longer pending coordination with other running activity instances.
    2015-Jun-09 11:21:27.802 - Orchestrator: [1744].[4820]: INFO: ActivityManagerImpl::RequestActivity() - Starting activity PublishPackage #152.
    2015-Jun-09 11:21:27.802 - Catalog: [1744].[4820]: INFO: AppV::Client::Catalog::MachineCatalogImpl::GetPackageGroup(), 264: Package group {8F11854B-2AB8-4A82-857B-86DBBBDF232D} - {91FD42C7-65EB-4F15-AE56-0D0002B6AFE0} was not found in the 1 catalog.
    2015-Jun-09 11:21:27.796 - Catalog: [1744].[4820]: INFO: AppV::Client::Catalog::UserCatalogImpl::GetPackage(), 513: Package {8F11854B-2AB8-4A82-857B-86DBBBDF232D} - {91FD42C7-65EB-4F15-AE56-0D0002B6AFE0} was not found in the 2 Catalog.
    2015-Jun-09 11:21:25.754 - Client: [1744].[1748]: DEBUG: ClientServiceT::ServiceControlHandlerEx() - Service Control: 4

    However I don't see anything immediately useful in these log entries. None of the error codes above are googleable. Does anyone know a source for further debugging, such as documentation for these error codes?

    So far we simply reimage the affected PCs but that's obviously not long term solution.

    Wednesday, June 10, 2015 2:11 PM

Answers

  • Ok, its seems from the output above the package is Published Globally, is that correct? So do all users see th shortcuts?

    There are some registry entries in the HKLM portion i.e. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\MAV\Configuration\Packages that have references to user SID's. You might try and see there is anything in them related to this user.

    You aren't using mandatory profiles? and the profiles aren't being loaded with temp profile?

    Tuesday, June 16, 2015 2:01 PM

All replies

  • Hi athmanb,

    Can you confirm if you manually tried the Publish-AppvClientPackage with the -Global ? Its not entirely obvious from the description above.

    What do the App-V Client event logs say?

    What happens is you remove the package using

    Unpublish-AppvClientPackage <packagename> -Global | Remove-AppvClientPackage

    the try manually adding and publishing again?

    What results get returned when you run

    Get-AppvClientPackage <packagename>

    On a machine that's failed does it have any other App-V applications that are working or is this the first one that's been published?

    Have the failing packages be upgraded and are being now being deployed using SCCM?

    Sorry - more questions than answers but I'm just trying to gather some more information.

    Wednesday, June 10, 2015 4:32 PM
  • Nah, questions are great they help point people in the correct direction.

    Unpublishing/Removing works correctly. I can also add the package manually, but publishing fails.

    Get-AppvClientPackage returns

    PackageId            : 41b461ec-0a29-459c-b5ed-679a9bda1898
    VersionId            : 491d875d-ebe9-43bf-811a-cb648e351f79
    Name                 : PaintNet_4.0.1_MUI_x64
    Version              : 0.0.0.3
    Path                 : C:\temp\PaintNet_4.0.1_MUI_x64\PaintNet_4.0.1_MUI_x64_2_3.appv
    IsPublishedToUser    : False
    UserPending          : False
    IsPublishedGlobally  : True
    GlobalPending        : False
    InUse                : False
    InUseByCurrentUser   : False
    PackageSize          : 130953433
    PercentLoaded        : 100
    IsLoading            : False
    HasAssetIntelligence : True
    

    In the case I'm looking at right now, no App-V 5 application works under that user account on that PC. I can correctly publish and start the App-V 5 applications under another user on that PC, and I can do the same with the affected user on another PC.

    What is really confusing me is that deleting the local user profile (properly, using the Control Panel) and creating it again will not fix the issue, as I would think that anything that might create these particular symptoms should be contained in the user profile and be reset by a deletion.

    Thursday, June 11, 2015 9:15 AM
  • Ok, its seems from the output above the package is Published Globally, is that correct? So do all users see th shortcuts?

    There are some registry entries in the HKLM portion i.e. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AppV\MAV\Configuration\Packages that have references to user SID's. You might try and see there is anything in them related to this user.

    You aren't using mandatory profiles? and the profiles aren't being loaded with temp profile?

    Tuesday, June 16, 2015 2:01 PM