VSCode AEM Sync: Issue with "path not under jcr_root folder" Error | Community
Skip to main content
New Participant
January 11, 2024
Solved

VSCode AEM Sync: Issue with "path not under jcr_root folder" Error

  • January 11, 2024
  • 2 replies
  • 2942 views

Hello everyone,

I am currently developing with Adobe Experience Manager (AEM) using the VSCode AEM Sync extension and have encountered the following error message:

path not under jcr_root folder: /home/aem_XXXX/ui.apps/src

 

This issue arises despite the fact that the specified path ”/home/aem_XXXX/ui.apps/src/main/content/jcr_root/apps/site/www/news-release/clientlibs/clientlib-site/” includes the jcr_root directory.

Environment

  • Running Docker containers on Windows using WSL
  • Using Ubuntu inside the container
  • AEM is running fine, and localhost:4502 is accessible

Additional Information

The output from VSCode AEM Sync is constantly showing "AEM Sync started... Searching for jcr_root" and it seems not to be detecting the jcr_root correctly.

Attempts to Resolve

  • Checked file paths and permissions inside the Docker container
  • Verified VSCode workspace settings (workspaceContains:**/jcr_root/**)

I would appreciate any advice or solutions to this issue, especially any tips on setting up paths when using VSCode AEM Sync in a Docker environment.

Thank you in advance.

 

Best answer by hnakamura

The issue was resolved by restarting the Docker container in this case. The problem reported occurs at a relatively low frequency.

2 replies

hnakamuraAuthor
New Participant
January 12, 2024

The issue occurs for any path I try to sync, not just a specific one. Also, there are no settings blocking access to the Docker image, such as a proxy configuration.

However, after asking the question, I was able to sync, but then the same issue occurred again. When I check the "aemsync" output, it shows the following status:

AEM Sync started... Searching for jcr_root Attempting to sync to AEM Attempting to sync to AEM Attempting to sync to AEM Attempting to sync to AEM Attempting to sync to AEM

When I select "Sync file to AEM" for a specific folder or file, more "Attempting to sync to AEM" messages are added.

hnakamuraAuthorAccepted solution
New Participant
January 22, 2024

The issue was resolved by restarting the Docker container in this case. The problem reported occurs at a relatively low frequency.

New Participant
January 15, 2025

It is not getting resolved by restarting the docker

EstebanBustamante
New Participant
January 11, 2024

Hi,

 

Is this issue specific to a particular path you are attempting to sync, or does it occur for any path? Could you please check whether Visual Studio has any configurations (such as a proxy) that might be blocking access to your Docker image?

Esteban Bustamante