Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error preparing volume for app attach #118

Closed
apbaseball opened this issue Jun 10, 2021 · 9 comments
Closed

Error preparing volume for app attach #118

apbaseball opened this issue Jun 10, 2021 · 9 comments

Comments

@apbaseball
Copy link

Trying to create a volume for app attach throws an error:
"MSIX Hero - Error
Successfully started the Shell Hardware Detection Service"

image

@marcinotorowski
Copy link
Owner

Most likely this is an issue with parsing of the error returned by Microsoft tool msixmgr.exe. I did a test commit in which the parsing logs some more information (and tries to exclude this line). Additionally, it is now possible to show detailed logs which may help with troubleshooting.

Get the test build (digitally signed) from
https://msixhero.net/alfa/msix-hero-2.2.7.0.msix

Go to settings and in the tab OTHER activate verbose logs (this is new in 2.2.7, you will not find this setting in the last official release build)
image

In the software list, right click MSIX Hero and press Open user folder
image

This will open Explorer with the default log location.

Now repeat the app attach stuff, and observe which logs are written. You can also send them here for analysis. The relevant part will be probably in the log for UAC helper.

@LukePly
Copy link

LukePly commented Sep 6, 2021

Hello Marcin,
attaching my log I have exactly the same..
20210906-031621_msixhero-uac_Trace.log
Access Denied when formatting vhd - but why?

@marcinotorowski
Copy link
Owner

This may be only a best guess, as the log from msixmgr does not contain anything more specific than the denial of access. Could this be that an antivirus kicked in and locked the file, preventing the VHD from being formatted? Is this happening on a physical device, or also in a virtual / sandbox environment?

@LukePly
Copy link

LukePly commented Sep 7, 2021

It's not antivirus this is clean virtual msix environment - (hyperV).
Any other suggestion?

@LukePly
Copy link

LukePly commented Sep 8, 2021

Command without msix hero is working good - but it seems like window with error info from your app is breaking creation of vhd process.
image

@marcinotorowski
Copy link
Owner

The window just grabs the output of msixmgr in case of a non-zero exit code which is considered to be a failed exit code. Could you send a new log or is it the same issue for which has been already provided (Formatting the disk failed with error code: 3)?

marcinotorowski added a commit that referenced this issue Sep 9, 2021
@marcinotorowski
Copy link
Owner

I found the issue, msixmgr cannot be run from MSIX, because its working directory is read-only. The change is in the following commit 121b441.

Try out the following build: http://msixhero.net/msix-hero-2.2.24.0.msix

This version is not yet public.

@LukePly
Copy link

LukePly commented Sep 10, 2021

Hi Marcin,
I can confirm that the latest version is working as should. Thanks!

@marcinotorowski
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants