SIF 2.0.0 on SC 9.0.2 - “The operation is on user root store and UI is not allowed”
up vote
3
down vote
favorite
After the release of SIF 2.0.0, an automated SC 9.0.x script began failing with the error:
The operation is on user root store and UI is not allowed.
This error occurs during the execution of xconnect-createcert.json
, which is included in the SC On-Prem WDP package > Configuration Files zip.
After inspecting xconnect-createcert.json
, I noticed that it specifies CurrentUser
as the Store Location for the cert.
My script runs as the System
user account as part of the DSC (Desired State Configuration) execution on a VM created via an Azure ARM template.
If I explicitly request SIF 1.2.1, the certificate is installed properly. Strangely, with 1.2.1, the cert is installed in the LocalMachine
store. I suspect SIF 1.2.1 has some additional code to ensure this Store Location is used.
sitecore-install-framework
add a comment |
up vote
3
down vote
favorite
After the release of SIF 2.0.0, an automated SC 9.0.x script began failing with the error:
The operation is on user root store and UI is not allowed.
This error occurs during the execution of xconnect-createcert.json
, which is included in the SC On-Prem WDP package > Configuration Files zip.
After inspecting xconnect-createcert.json
, I noticed that it specifies CurrentUser
as the Store Location for the cert.
My script runs as the System
user account as part of the DSC (Desired State Configuration) execution on a VM created via an Azure ARM template.
If I explicitly request SIF 1.2.1, the certificate is installed properly. Strangely, with 1.2.1, the cert is installed in the LocalMachine
store. I suspect SIF 1.2.1 has some additional code to ensure this Store Location is used.
sitecore-install-framework
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
After the release of SIF 2.0.0, an automated SC 9.0.x script began failing with the error:
The operation is on user root store and UI is not allowed.
This error occurs during the execution of xconnect-createcert.json
, which is included in the SC On-Prem WDP package > Configuration Files zip.
After inspecting xconnect-createcert.json
, I noticed that it specifies CurrentUser
as the Store Location for the cert.
My script runs as the System
user account as part of the DSC (Desired State Configuration) execution on a VM created via an Azure ARM template.
If I explicitly request SIF 1.2.1, the certificate is installed properly. Strangely, with 1.2.1, the cert is installed in the LocalMachine
store. I suspect SIF 1.2.1 has some additional code to ensure this Store Location is used.
sitecore-install-framework
After the release of SIF 2.0.0, an automated SC 9.0.x script began failing with the error:
The operation is on user root store and UI is not allowed.
This error occurs during the execution of xconnect-createcert.json
, which is included in the SC On-Prem WDP package > Configuration Files zip.
After inspecting xconnect-createcert.json
, I noticed that it specifies CurrentUser
as the Store Location for the cert.
My script runs as the System
user account as part of the DSC (Desired State Configuration) execution on a VM created via an Azure ARM template.
If I explicitly request SIF 1.2.1, the certificate is installed properly. Strangely, with 1.2.1, the cert is installed in the LocalMachine
store. I suspect SIF 1.2.1 has some additional code to ensure this Store Location is used.
sitecore-install-framework
sitecore-install-framework
asked Dec 3 at 14:36
jrap
2,4251626
2,4251626
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
5
down vote
accepted
As discussed on the #sif Sitecore Slack channel, when using vanilla SC WDP configs the SIF version does have a dependency on the installed SC version.
- SIF 2.0.0 = SC 9.1
- SIF 1.2.1 = SC 9.0.x
There are two ways to solve the problem outlined above.
1) Define SIF Version Explicitly
If installing SIF for the first time via PowershellGallery:
Install-Module -Name SitecoreInstallFramework -Repository SitecoreGallery -RequiredVersion 1.2.1
If SIF 2.0.0 was previously installed, you will need to first uninstall then reinstall with the proper version:
Uninstall-Module -Name SitecoreInstallFramework
2) Modify Config Files Prior to Installation
To use SIF 2.0.0 to install SC 9.0.x...
Modify xconnect-createcert.json
- Find the
CreateRootCert
task - Change the
StoreLocation
fromCurrentUser
toLocalMachine
Modify xconnect-solr.json
and sitecore-solr.json
- Find the
CreateCores
task in each file - Change the
"Name"
attribute in Params > Action to lowercase"name"
Original Example
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "Name": "[variable('Core.Name')]" } },
Updated
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "name": "[variable('Core.Name')]" } },
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "664"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f15334%2fsif-2-0-0-on-sc-9-0-2-the-operation-is-on-user-root-store-and-ui-is-not-allow%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
As discussed on the #sif Sitecore Slack channel, when using vanilla SC WDP configs the SIF version does have a dependency on the installed SC version.
- SIF 2.0.0 = SC 9.1
- SIF 1.2.1 = SC 9.0.x
There are two ways to solve the problem outlined above.
1) Define SIF Version Explicitly
If installing SIF for the first time via PowershellGallery:
Install-Module -Name SitecoreInstallFramework -Repository SitecoreGallery -RequiredVersion 1.2.1
If SIF 2.0.0 was previously installed, you will need to first uninstall then reinstall with the proper version:
Uninstall-Module -Name SitecoreInstallFramework
2) Modify Config Files Prior to Installation
To use SIF 2.0.0 to install SC 9.0.x...
Modify xconnect-createcert.json
- Find the
CreateRootCert
task - Change the
StoreLocation
fromCurrentUser
toLocalMachine
Modify xconnect-solr.json
and sitecore-solr.json
- Find the
CreateCores
task in each file - Change the
"Name"
attribute in Params > Action to lowercase"name"
Original Example
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "Name": "[variable('Core.Name')]" } },
Updated
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "name": "[variable('Core.Name')]" } },
add a comment |
up vote
5
down vote
accepted
As discussed on the #sif Sitecore Slack channel, when using vanilla SC WDP configs the SIF version does have a dependency on the installed SC version.
- SIF 2.0.0 = SC 9.1
- SIF 1.2.1 = SC 9.0.x
There are two ways to solve the problem outlined above.
1) Define SIF Version Explicitly
If installing SIF for the first time via PowershellGallery:
Install-Module -Name SitecoreInstallFramework -Repository SitecoreGallery -RequiredVersion 1.2.1
If SIF 2.0.0 was previously installed, you will need to first uninstall then reinstall with the proper version:
Uninstall-Module -Name SitecoreInstallFramework
2) Modify Config Files Prior to Installation
To use SIF 2.0.0 to install SC 9.0.x...
Modify xconnect-createcert.json
- Find the
CreateRootCert
task - Change the
StoreLocation
fromCurrentUser
toLocalMachine
Modify xconnect-solr.json
and sitecore-solr.json
- Find the
CreateCores
task in each file - Change the
"Name"
attribute in Params > Action to lowercase"name"
Original Example
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "Name": "[variable('Core.Name')]" } },
Updated
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "name": "[variable('Core.Name')]" } },
add a comment |
up vote
5
down vote
accepted
up vote
5
down vote
accepted
As discussed on the #sif Sitecore Slack channel, when using vanilla SC WDP configs the SIF version does have a dependency on the installed SC version.
- SIF 2.0.0 = SC 9.1
- SIF 1.2.1 = SC 9.0.x
There are two ways to solve the problem outlined above.
1) Define SIF Version Explicitly
If installing SIF for the first time via PowershellGallery:
Install-Module -Name SitecoreInstallFramework -Repository SitecoreGallery -RequiredVersion 1.2.1
If SIF 2.0.0 was previously installed, you will need to first uninstall then reinstall with the proper version:
Uninstall-Module -Name SitecoreInstallFramework
2) Modify Config Files Prior to Installation
To use SIF 2.0.0 to install SC 9.0.x...
Modify xconnect-createcert.json
- Find the
CreateRootCert
task - Change the
StoreLocation
fromCurrentUser
toLocalMachine
Modify xconnect-solr.json
and sitecore-solr.json
- Find the
CreateCores
task in each file - Change the
"Name"
attribute in Params > Action to lowercase"name"
Original Example
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "Name": "[variable('Core.Name')]" } },
Updated
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "name": "[variable('Core.Name')]" } },
As discussed on the #sif Sitecore Slack channel, when using vanilla SC WDP configs the SIF version does have a dependency on the installed SC version.
- SIF 2.0.0 = SC 9.1
- SIF 1.2.1 = SC 9.0.x
There are two ways to solve the problem outlined above.
1) Define SIF Version Explicitly
If installing SIF for the first time via PowershellGallery:
Install-Module -Name SitecoreInstallFramework -Repository SitecoreGallery -RequiredVersion 1.2.1
If SIF 2.0.0 was previously installed, you will need to first uninstall then reinstall with the proper version:
Uninstall-Module -Name SitecoreInstallFramework
2) Modify Config Files Prior to Installation
To use SIF 2.0.0 to install SC 9.0.x...
Modify xconnect-createcert.json
- Find the
CreateRootCert
task - Change the
StoreLocation
fromCurrentUser
toLocalMachine
Modify xconnect-solr.json
and sitecore-solr.json
- Find the
CreateCores
task in each file - Change the
"Name"
attribute in Params > Action to lowercase"name"
Original Example
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "Name": "[variable('Core.Name')]" } },
Updated
{ "Action": "Create", "Address": "[parameter('SolrUrl')]", "Arguments": { "name": "[variable('Core.Name')]" } },
edited Dec 3 at 14:42
answered Dec 3 at 14:36
jrap
2,4251626
2,4251626
add a comment |
add a comment |
Thanks for contributing an answer to Sitecore Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f15334%2fsif-2-0-0-on-sc-9-0-2-the-operation-is-on-user-root-store-and-ui-is-not-allow%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown