I am encountering an issue during the XMCloud SXA setup, specifically when trying to sync the CLI content. The error message I receive is:
CM host is incorrect: https://xmcloudcm.localhost/sitecore/api/management.
Please login with the right cm hostname or manually fix the user.json file
However, my instance seems to be working fine, and I can access the Sitecore client using the https://xmcloudcm.localhost
URL.
Here is my user.json file -
{
"endpoints": {
"xmCloud": {
"allowWrite": false,
"host": "https://xmclouddeploy-api.sitecorecloud.io/",
"authority": "https://auth.sitecorecloud.io/",
"accessToken": "########",
"refreshToken": "########",
"refreshTokenParameters": {
"organization": "#####"
},
"clientId": "########",
"variables": {
"xmCloudMonitoringHost": "https://xmcloud-monitoring-api.sitecorecloud.io/"
},
"audience": "https://api.sitecorecloud.io"
},
"default": {
"ref": "xmcloud",
"allowWrite": true,
"host": "https://xmcloudcm.localhost",
"variables": {}
},
"local": {
"ref": "xmcloud",
"allowWrite": true,
"host": "https://xmcloudcm.localhost",
"variables": {}
}
},
"$schema": "./schemas/UserConfiguration.schema.json"
}
When I attempt to access https://xmcloudcm.localhost/sitecore/api/management
, I receive the error message: {"errors":[{"message":"Authentication required."}]}
. To bypass this authentication issue, I also tried setting <requireAuthentication> to false
as well.
I encountered this error when running the up.ps1
file and also when using commands like dotnet sitecore ser push
and dotnet Sitecore index schema-populate
.
I've attempted various troubleshooting steps, including:
- Running docker down followed by docker up.
- Deleting all images and starting from scratch.
- Deleting the user.json file to allow it to be auto-generated.
- Restarting the system.
- Repeating the setup process from the beginning, but the issue persists.
Any insights or guidance on how to resolve this issue would be greatly appreciated. Thank you!