- Newest
- Most votes
- Most comments
This issue appears to be related to the auto-mounting of an Amazon EFS volume in SageMaker Studio. When SageMaker encounters problems during the auto-mounting process, it typically creates an error file instead of mounting the EFS folder.
To troubleshoot this issue, consider the following steps:
-
Check if the EFS file system exists and is properly tagged. The permissions on the AWSServiceRoleForAmazonSageMakerNotebooks role are conditional on the presence of a "ManagedByAmazonSageMakerResource" tag. Ensure this tag is present on the EFS file system.
-
Verify that the EFS file system is in the same AWS region and VPC as your SageMaker domain.
-
Ensure that the necessary VPC endpoints are set up correctly for EFS access.
-
Check if there are any VPC security group issues preventing access to the EFS file system.
-
Verify that the EFS file system's root directory has the correct ownership and permissions set. If these are not specified, EFS will not create the root directory, causing mount attempts to fail.
-
If the issue persists, you may want to consider opting out of EFS auto-mounting for troubleshooting purposes. You can do this by updating the domain or user profile settings to disable auto-mounting.
-
Review the full contents of the error.txt file created by SageMaker in the user-default-efs folder within the $HOME directory of the application. This file should contain more detailed error information and potential resolution steps.
If after trying these steps the issue continues, you may need to contact AWS Support for further assistance, as the AWSServiceRoleForAmazonSageMakerNotebooks is a service-linked role and cannot be directly modified.
Sources
Amazon EFS auto-mounting in Studio - Amazon SageMaker AI
Troubleshooting mount issues - Amazon Elastic File System
Opt out of Amazon EFS auto-mounting - Amazon SageMaker AI
UserSettings - Amazon SageMaker
Broadly as the bot said, but to be a bit more specific, I would:
- Check that your domain's EFS filesystem still exists at all in EFS console, and maybe raise a support case if not... I tentatively think there might be no "nice" way to fully recover your SM Domain if the filesystem got deleted - but you should be able to UpdateDomain to set your users'
AutoMountHomeEFSsetting toDisabled- if you just want to be able to open your spaces without the EFS failure preventing access. - Check if the filesystem got accidentally un-tagged even if it exists. You should usually see an
ManagedByAmazonSageMakerResourcetag whose value should be the SageMaker domain's ARN - Possibly double-check if some organization or account-level restriction has been set up to deny all access to EFS service? E.g. SCPs or so on... As shown by the policy you pulled out - the service role should generally be able to create the mount point as long as the filesystem exists with correct tagging, unless some other control somewhere is preventing it.
Thanks to you all!
Sorry to say this, but the issue was actually with us - we somehow managed to delete the EFS by accident. Luckily, we did not yet store any meaningful data on it.
Relevant content
- AWS OFFICIALUpdated 5 months ago
