Git Product home page Git Product logo

sitecore.habitathome.utilities's Introduction

Sitecore.HabitatHome.Utilities

About this Repository

This repository contains a collection of utilities and script examples to help with:

  • Installing Sitecore Experience Platform
  • Installing Sitecore Experience Commerce
  • Installing Sitecore Modules
  • Warming up a Sitecore Instance
  • Security Hardening a Sitecore Instance

These scripts are written in the context of the Habitat Home Demos. They can be modified to work with other solutions.

This repository only supports XP0 (XPSingle) installation. This means everything is on the same machine (SQL Server (or SQLExpress), Solr, etc).

The code, samples and/or solutions provided in this repository are unsupported by Sitecore Support Services. Support is provided on a best-effort basis via GitHub issues or Slack #habitathome

Contributions are appreciated and always welcome!

Installation Instructions

Installation Instructions

sitecore.habitathome.utilities's People

Contributors

ezlateva avatar jeanfrancoislarente avatar keith0123 avatar scottmulligan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sitecore.habitathome.utilities's Issues

install-singledeveloper.ps1 fails on Populating Managed Schema

I have ran my install a few times and it looks like it fails consistently on the last step of the SIF task to populate managed schema:

[---------------------------- SitecoreXP0_UpdateSolrSchema : SitecoreUrl ---------------------------------------------]
[SitecoreXP0_UpdateSolrSchema]:[Authenticating]
http://habitathome.dev.local/sitecore/admin/PopulateManagedSchema.aspx?indexes=all
Install-SitecoreConfiguration : Error requesting
http://habitathome.dev.local/sitecore/admin/PopulateManagedSchema.aspx?indexes=all: The operation has timed out.
At C:\Users\rrozinov\proj\sitecore\Sitecore.HabitatHome.Utilities\xp\install\install-singledeveloper.ps1:239 char:9
+         Install-SitecoreConfiguration @singleDeveloperParams   *>&1 | ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

[TIME] 00:12:35
Invoke-SitecoreUrlTask : Error requesting
http://habitathome.dev.local/sitecore/admin/PopulateManagedSchema.aspx?indexes=all: The operation has timed out.
At C:\Users\rrozinov\Documents\WindowsPowerShell\Modules\SitecoreInstallFramework\2.0.0\Public\Install-SitecoreConfigur
ation.ps1:641 char:25
+                         & $entry.Task.Command @paramSet | Out-Default
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-SitecoreUrlTask

My current workaround is to navigate to the url, login, then navigate to the URL and it works ok. Looks like SIF task fails to authenticate.

install-modules.ps1 fails to install modules eg. SPE

This is the error message I got when running XP\Install\install-modules.ps1. I have downloaded all the modules specified in XP\Install\assets.json and placed them in XP\install\assets\modules just in case.

[----- InstallSitecorePowershellExtensions_TurnOffProgress : Command -------------------------------------------------]
[Command]:[Path] C:\w\sc\Sitecore.HabitatHome.Utilities\Shared\assets\modules\Set-ProgressPreference.ps1
Install-SitecoreConfiguration : Unable to parse
[equal(variable('InstallSitecorePowershellExtensions_Skip.Download'),'True')] - Exception calling "Evaluate" with "2"
argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter
is set to Stop: Unable to parse [TestPath(variable('InstallSitecorePowershellExtensions_Module.OriginalFileName'))] -
Exception calling "Evaluate" with "2" argument(s): "The running command stopped because the preference variable
"ErrorActionPreference" or common parameter is set to Stop: Unable to parse [SelectObject(ExpandProperty:'fileName',Inp
utObject:variable('InstallSitecorePowershellExtensions_Module.Configuration'))] - Exception calling
"InvokeWithContext" with "2" argument(s): "The running command stopped because the preference variable
"ErrorActionPreference" or common parameter is set to Stop: Property "fileName" cannot be found."""
At C:\w\sc\Sitecore.HabitatHome.Utilities\xp\install\install-modules.ps1:160 char:5
+     Install-SitecoreConfiguration @params
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

[TIME] 00:00:06
GetConfigFunctionResult : Unable to parse
[equal(variable('InstallSitecorePowershellExtensions_Skip.Download'),'True')] - Exception calling "Evaluate" with "2"
argument(s): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter
is set to Stop: Unable to parse [TestPath(variable('InstallSitecorePowershellExtensions_Module.OriginalFileName'))] -
Exception calling "Evaluate" with "2" argument(s): "The running command stopped because the preference variable
"ErrorActionPreference" or common parameter is set to Stop: Unable to parse [SelectObject(ExpandProperty:'fileName',Inp
utObject:variable('InstallSitecorePowershellExtensions_Module.Configuration'))] - Exception calling
"InvokeWithContext" with "2" argument(s): "The running command stopped because the preference variable
"ErrorActionPreference" or common parameter is set to Stop: Property "fileName" cannot be found."""
At C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\2.1.0\Private\JsonConfiguration.ps1:226 char:20
+ ...      return GetConfigFunctionResult -FunctionText $InputObject -Param ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,GetConfigFunctionResult

Change warmup script to use SIF

Work started in SHA e14328a

Need to add a client to Identity Server Host XML

Can add the following to the Clients section (<identityserverroot>\Config\production\Sitecore.IdentityServer.Host.xml)

<PostmanClient> <ClientId>postman-api</ClientId> <ClientName>postman-api</ClientName> <AccessTokenType>0</AccessTokenType> <AllowOfflineAccess>true</AllowOfflineAccess> <AlwaysIncludeUserClaimsInIdToken>false</AlwaysIncludeUserClaimsInIdToken> <AccessTokenLifetimeInSeconds>3600</AccessTokenLifetimeInSeconds> <IdentityTokenLifetimeInSeconds>3600</IdentityTokenLifetimeInSeconds> <AllowAccessTokensViaBrowser>true</AllowAccessTokensViaBrowser> <RequireConsent>false</RequireConsent> <RequireClientSecret>true</RequireClientSecret> <AllowedGrantTypes> <AllowedGrantType1>password</AllowedGrantType1> </AllowedGrantTypes> <AllowedCorsOrigins> </AllowedCorsOrigins> <AllowedScopes> <AllowedScope1>openid</AllowedScope1> <AllowedScope2>sitecore.profile</AllowedScope2> <AllowedScope3>sitecore.profile.api</AllowedScope3> </AllowedScopes> <ClientSecrets> <ClientSecret1>ClientSecret</ClientSecret1> </ClientSecrets> <UpdateAccessTokenClaimsOnRefresh>false</UpdateAccessTokenClaimsOnRefresh> </PostmanClient>

Current issue is a 500 AntiForgery error when accessing /sitecore pages.

A claim of type ' http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier' or ' http://schemas.microsoft.com/accesscontrolservice/2010/07/claims/identityprovider' was not present on the provided ClaimsIdentity. To enable anti-forgery token support with claims-based authentication, please verify that the configured claims provider is providing both of these claims on the ClaimsIdentity instances it generates. If the configured claims provider instead uses a different claim type as a unique identifier, it can be configured by setting the static property AntiForgeryConfig.UniqueClaimTypeIdentifier.

Aha! Link: https://habitathome.aha.io/features/INSTALL-1

warmup.ps1 fails to login

Trying to use the warmup.ps1 script. But login fails with message username is required.

Invoke-WebRequest : Server Error in '/' Application. Empty strings are not allowed. Parameter name: username Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Empty strings are not allowed. Parameter name: username

Aha! Link: https://habitathome.aha.io/features/INSTALL-2

install-modules.ps1 fails when SQL Server instance is not default instance

Fails with the following error.

[----------------------------------------------------------------------------------------------------------- RemoveCoreUser_RemoveUser : InvokeSqlcmd ------------------------------------------------------------------------------------------------------------------------] Install-SitecoreConfiguration : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) At D:\Work\Sitecore\Sitecore 9.2\Sitecore.HabitatHome.Utilities-master\XP\install\install-modules.ps1:206 char:5 + Install-SitecoreConfiguration @params + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration [TIME] 00:00:17 Invoke-Sqlcmd : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) At C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\2.1.0\Public\Install-SitecoreConfiguration.ps1:642 char:25 + & $entry.Task.Command @paramSet | Out-Default + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Invoke-Sqlcmd], SqlException + FullyQualifiedErrorId : SqlExectionError,Microsoft.SqlServer.Management.PowerShell.GetScriptCommand

How to Install HabitatHome module after XP installation is completed?

Hi,

What is the reason of habitathome module is commended in install_modules.ps1?
I saw also that install_habitathome.ps1 file was renamed to install_habitathome.ps1.donotuse.
Is there a way to install habitathome module on a machine that has XP environment with other modules installed?

Thank you in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.