- Newest
- Most votes
- Most comments
The issue you're experiencing is likely related to how AppStream 2.0 manages user profiles and persistent storage. In AppStream 2.0, the D: drive is typically used for persistent storage, but it may not be available or configured correctly in your current session.
Here are a few steps you can try to resolve this issue:
-
First, verify that you're using the AppStream 2.0 client and not accessing the environment through a web browser. The AppStream 2.0 client provides better support for persistent storage.
-
Check if the D: drive is actually present in your session. You can do this by opening File Explorer and looking for the D: drive.
-
If the D: drive is not present, it's possible that the persistent storage feature is not enabled for your AppStream 2.0 fleet. You may need to contact your AWS administrator to ensure that persistent storage is properly configured.
-
If the D: drive is present but the PhotonUser folder is missing, you might need to create it manually. Try creating the folder structure manually using these commands:
mkdir D:\PhotonUser mkdir D:\PhotonUser\Workshop mkdir D:\PhotonUser\Workshop\postgresql-data
-
After creating the directory structure, try running the pg_ctl initdb command again.
-
If you're still encountering issues, you might need to modify the %WORKSHOP_POSTGRESQL_DATA_HOME% environment variable to point to a location that definitely exists, such as C:\Users\PhotonUser\Workshop\postgresql-data. You can do this with the following command:
setx WORKSHOP_POSTGRESQL_DATA_HOME C:\Users\PhotonUser\Workshop\postgresql-data
After changing the environment variable, close and restart your command prompt before trying the pg_ctl initdb command again.
If these steps don't resolve the issue, you may need to reach out to your AWS administrator or AWS support for further assistance, as there might be specific configurations or limitations in your AppStream 2.0 environment that are causing this problem.
Sources
Local File Access - Amazon AppStream 2.0
General Troubleshooting - Amazon AppStream 2.0
Another option is to mount the database on an SMB file share such as Amazon FSX for Windows.
answered 2 years ago
