Problem creating and loading AppBlock

0

We are currently trying to see if AppStream Elastic Fleet could be a good fit for us. Unfortunately we can't get our apps to work.

When trying to use AppBlock Builder there is an error when assistant it exporting the files to our S3 bucket. We are using permissions described here https://docs.aws.amazon.com/appstream2/latest/developerguide/s3-permissions.html

If we try to get apps working using custom AppBlocks, we are able to upload vhdx-file and setupscript (powershell script). We use "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" as setup script executable and "-ExecutionPolicy Bypass -file C:\AppStream\AppBlocks\myAppBlockName\mount-vhd.ps1" as setup executable arguments. The script provided is based on the example script found in here https://docs.aws.amazon.com/appstream2/latest/developerguide/create-setup-script.html We can create application from that custom appblock and associate it with Elastic Fleet. When starting a session with the fleet, it does not seem to attach the vhdx file or run the setup script. Also there is no C:\AppStream\ folder that should contain files loaded from s3, if I understand correctly.

What could be causing this sort of problem? Are there any logs or something like that we could look at to see what has gone wrong?

asked 8 months ago127 views
1 Answer
0

There are a few potential issues that could be causing the problems you're experiencing with AppStream 2.0 Elastic Fleet and app blocks. Let's address them one by one:

  1. AppBlock Builder Export Error: If you're encountering an error when the AppBlock Builder is exporting files to your S3 bucket, it's likely a permissions issue. Double-check that you've correctly applied the S3 bucket permissions as described in the AWS documentation. Ensure that the IAM role associated with your AppStream 2.0 resources has the necessary permissions to access and write to the S3 bucket.

  2. Custom AppBlock Issues: For the custom AppBlock approach, it seems you've followed the correct steps by uploading the VHDX file and setup script. However, there are a few things to check:

a. Verify that the S3 bucket containing your VHDX file and setup script is in the same region as your AppStream 2.0 fleet.

b. Ensure that the execution duration set for your setup script is sufficient. If the script takes longer to run than the specified duration, it may time out.

c. Check that the path in your setup script (C:\AppStream\AppBlocks\myAppBlockName\mount-vhdx.ps1) matches the actual location where AppStream 2.0 places the files.

  1. VHD Not Attaching / Setup Script Not Running: If the VHDX file isn't being attached or the setup script isn't running, it could be due to:

a. Incorrect permissions on the AppStream 2.0 fleet's IAM role to access the S3 bucket and execute the script.

b. Issues with the script itself, such as errors in the PowerShell code or incorrect paths.

  1. Missing C:\AppStream\ Folder: The absence of the C:\AppStream\ folder suggests that the app block isn't being properly downloaded or processed by the AppStream 2.0 instance.

To troubleshoot these issues:

  1. Review the CloudWatch logs for your AppStream 2.0 fleet. These logs can provide insights into any errors occurring during the instance launch or app block processing.

  2. Check the Windows Event Viewer on a streaming instance for any relevant error messages.

  3. Verify that your app block size is within the recommended limit (less than 1.5 GB for Elastic fleets).

  4. Try creating a simple test app block with a basic application to isolate whether the issue is with your specific app or the AppStream 2.0 configuration.

  5. Ensure that your applications are compatible with AppStream 2.0 and don't require any unsupported features.

If you continue to experience issues after checking these points, you may need to contact AWS Support for further assistance, as they can provide more detailed troubleshooting based on your specific account and configuration.
Sources
Create a Custom App Block - Amazon AppStream 2.0
Create an AppStream 2.0 App Block - Amazon AppStream 2.0
CreateAppBlock - Amazon AppStream 2.0
Create the VHD - Amazon AppStream 2.0
App Blocks - Amazon AppStream 2.0

profile picture
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions