Troubleshooting Guide: Sitecore XM Cloud Local Setup and JSS Errors
Table of Contents
- Error 1: Access Issue for Files Under the Project Folder
- Error 2: Network Not Found
- Error 3: Could Not Resolve Host
- Error 4: Port 8984 Already in Use
- Error 5: Traefik Port Conflict
- Error 6: hcsshim::ExpandScratchSize
- Error 7 & 8: Unhealthy Containers
- Error 9: Invalid Rewrites Found
- Error 10: Files are Blocked
- Error 11: CM Session Timeout
- Error 12: Container Compatibility
- Error 13: Errors During Initial Setup
- Error 14: Outdated JSS Dev Tools
- Error: Virtualization Not Enabled in BIOS
- Error: Container Mode Conflict (Linux vs Windows)
- Error: Outdated Sitecore JSS Dev Tools in package.json
- Docker Startup Issues
=====Errors and steps to resolve=========
Error 1: Access issue for the files under the project folder
Solution:
dir -Path . -Recurse | Unblock-File
Then run the up.ps1 script again to proceed with the setup.
Error 2: Error Response from daemon: network xxxxxx not found
Solution:
cd "C:\Program Files\Docker\Docker" .\DockerCli.exe -SwitchDaemon .\DockerCli.exe -SwitchDaemon
Then run the up.ps1 script again.
Error 3: Curl: (6) Could not resolve host: nodejs.org
Cause: DNS resolution issue inside Docker.
Solution: Add the following to Docker Daemon configuration:
"dns": ["8.8.8.8"]
Then restart Docker and run the up.ps1 script again.
Error 4: Error response from daemon: failed to create endpoint xxxxx-solr-1 on network xxxxxx_default: failed during hnsCallRawResponse: hnsCall failed in Win32: The process cannot access the file because it is being used by another process. (0x20)
Cause: SOLR service conflict.
Solution: Stop the SOLR services using port 8984 and run the up.ps1 script again.
Error 5: Error response from daemon: failed to create endpoint xxxxx—traefil-1 on network xxxxxx_default: failed during hnsCallRawResponse: hnsCall failed in Win32: The process cannot access the file because it is being used by another process. (0x20)
Solution:
- Stop IIS, , it might be due the port usage and Run the up script again.
- If the issue persists, Run the following commands:
Stop-Service docker Stop-service hns Start-service hns Start-Service docker
Then rerun the up.ps1 script.
Error 6: hcsshim::ExpandScratchSize issue
Solution:
- Delete all containers, images, and networks in Docker.
- Uninstall Docker Desktop.
- Delete all files from:
- Reinstall Docker Desktop.
- Follow the Sitecore setup guide again.
- Run the up.ps1 script.
Error 7: Dependency failed to start: Containers "xxx-cm-1" is unhealthy
Error 8: Error: for traefik Containers "xxxxxx" is unhealthy
Solution: for error 7 & 8
docker-compose stop docker-compose down iisreset /stop docker-compose up -d
Then rerun the up.ps1 script.
Error 9: Invalid Rewrites Found
Solution: Create a deploy folder inside the Docker directory:
C:\projects\xxyx\code\docker\deploy\platform
Error 10: Files are Blocked
Solution: Right-click the file, select "Properties", and check the "Unblock" checkbox at the bottom.
Error 11: CM Session Timeout / Not Loading
Solution:
- Try opening CM in Incognito mode:
https://xxyx.xmcloudcm.localhost/sitecore/shell/sitecore/client/Applications/Launchpad
- If that fails, try:
.\down.ps1 docker network prune .\up.ps1
Or:
docker-compose stop docker-compose down docker-compose up -d
Error 12: Container Compatibility
Solution: Switch the Docker container from Linux to Windows mode.
Error 13: Errors During Initial Setup
Solution:
- Restart your system.
- Run the following and delete all contents:
%temp% temp
Error14: Virtualization Not Enabled in BIOS
Solution:
- Access your system BIOS settings and enable the virtualization feature.
Error15: Container Mode Conflict (Linux vs Windows)
Solution:
- Ensure Docker is set to Windows containers, not Linux.
Error 16: Outdated Sitecore JSS Dev Tools in package.json
Solution: Ensure package.json is not modified before running npm commands. Update to the correct versions as per Sitecore’s recommendations.
Error 17: Docker Startup Issues After Reboot
Solution:
- Remove the two Docker-related files causing conflict (paths not specified).
- Clear all related background tasks via Task Manager (Run as Admin).
- Restart your system and check Docker again.
Note: Some importable command that need to be helpful:
.\down.ps1 docker compose stop cd docker ./clean.ps1 cd.. Stop-Service docker Stop-service hns Start-service hns Start-Service docker docker network prune .\init.ps1 -InitEnv -LicenseXmlPath C:\Project\xxx\\license.xml -AdminPassword b .\up.ps1 ------------- npm run build dotnet sitecore cloud login dotnet sitecore ser push x --------------- dotnet sitecore itemres cleanup -n "environment" --path "/sitecore/content/xxx" --force --what-if
Comments
Post a Comment