February 15, 2023

SAP Commerce Public Cloud 2211 Local Setup | SAP Hybris 2211 Setup And License Installation

 Download the SAP Commerce Cloud from SAP, once the download is complete unzip the file using 7zip software.

In this youtube video - 


https://www.youtube.com/watch?v=rTmXfHWNMfA&t=373s the in detail explanation is provided also if you want to download the SAP Commerce Cloud 2211 you can put your email id in the comment box, the concerned person will provide you the access.

You should have Java 17 installed, and the environment path should be set for it.

Step For Local Installation and Server Up ->

1. Open the command prompt, from the platform folder.

2. If the java home path is not set,  then set JAVA_HOME=<your drive>:\{Directory}\jdk-17.0

3. Install the node js latest version from hear https://nodejs.org/en/download/

4. set path=<your drive>:\{Directory}\jdk-17.0.5\bin;<your drive>:\{Directory}\nodejs

5. Setup platform using command ->install.bat -r cx setup -A initAdminPassword=[password]

6. Initialize the platform using the command -> install.bat -r cx initialize -A initAdminPassword=[password]

7. Start the server from the command line tool -> install.bat -r cx start

The server will get started in 18-20 mins depends on machine performance.

Once the server is up and running - you can hit the following URL -

To Access Storefront - >

 https://localhost:9002/yacceleratorstorefront/electronics/en/?site=electronics

 https://powertools.local:9002/yb2bacceleratorstorefront/powertools/en/USD/login

Backoffice -> https://localhost:9002/backoffice/

HAC -> https://localhost:9002/hac


Local SAP Commerce 2211 | SAP Hybris Licence Installation - 

Run this command -> 

 1.             license.bat -help  -->for Windows systems

                 license.sh -help    -->for Linux systems

Once this command gets executed you will have the list of options available, for license setup.

SAP license key administration toolkit for Java environment

Usage: license.sh <Option(s)>

-help  -> Display this help
-version  -> Display the tool version
-get  -> Display info about the system
-number -> Same as -get
-install <filename>  -> Install license keys from a file
-show   ->  Display license keys
-temp <Product> -> Create a temporary license key
-temppossible <Product>  -> Check whether a temporary license key may be installed
-delete <System Id> <Hardware Key> <Product> Delete license key(s)
For each of the parameters after "-delete" you can use "*" as a wildcard.

2.                license.bat -show

This command will help to see the local license installed -

The following license keys were found:

System. . . . . : CPS

Hardware Key. . : Y4989890650

SW product. . . : CPS_SQL

SW product Limit: Unlimited

Begin date. . . : 13/Dec/2021

Expiration date : 31/Dec/9999

License key type: Permanent

Installation No.: 0090534474

System No.. . . : 000000000800678864

Validity. . . . : valid

3. license.bat -install <your-drive>:\<directory>\path where the licence.txt file is kept

 (if you need from me, I can share the license file, and post your email id in the comments)

SAP Commerce Public Cloud 2211 Backoffice Solr Indexer Configuration Indexing Action Button Exception

After doing upgrade, I was getting following exception when going into to facet search configuration from back office as action operation was not defined -

NFO  [BackofficeLO-14] [Slf4jAuditableActionHandler] session user changed
WARN  [hybrisHTTP6] [Action] could not find action definition for code [de.hybris.platform.solrfacetsearchbackoffice.action.indexeroperations]
WARN  [hybrisHTTP6] [Action] could not find action definition for code [de.hybris.platform.solrfacetsearchbackoffice.action.indexerhotupdate]
WARN  [hybrisHTTP6] [Action] could not find action definition for code [de.hybris.platform.solrfacetsearchbackoffice.action.indexeroperations]
WARN  [hybrisHTTP6] [Action] could not find action definition for code [de.hybris.platform.solrfacetsearchbackoffice.action.indexerhotupdate]

        ... 208 more
INFO  [BackofficeLO-3] [Slf4jAuditableActionHandler] session user changed
ERROR [hybrisHTTP26] [BackofficeSolrFieldSearchFacadeStrategy] Facet search has failed
de.hybris.platform.solrfacetsearch.search.FacetSearchException: de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: Active index not found: {indexedType=SolrIndexedTypeModel (8796093057183@2), active=true, facetSearchConfig=SolrFacetSearchConfigModel (8796093057176@1)}
        at de.hybris.platform.solrfacetsearch.search.impl.DefaultFacetSearchStrategy.search(DefaultFacetSearchStrategy.java:173) ~[solrfacetsearchserver.jar:?]
        at de.hybris.platform.solrfacetsearch.search.impl.DefaultFacetSearchService.search(DefaultFacetSearchService.java:82) ~[solrfacetsearchserver.jar:?]
        at de.hybris.platform.solrfacetsearch.search.impl.DefaultFacetSearchService.search(DefaultFacetSearchService.java:71) ~[solrfacetsearchserver.jar:?]
        at com.hybris.backoffice.solrsearch.dataaccess.facades.BackofficeSolrFieldSearchFacadeStrategy$BackofficeSolrSearchPageable.getResults(BackofficeSolrFieldSearchFacadeStrategy.java:118) ~[?:?]
        at com.hybris.backoffice.search.dataaccess.facades.AbstractBackofficeSearchPageable.getCurrentNotEmptyPage(AbstractBackofficeSearchPageable.java:68) ~[classes/:?]


Solution Proposed -> when we are upgrading the Ccv2 deployment hybris version to the commerce 2211 version - we mostly copy the custom and config folder in the new setup custom goes to /bin directory and config folder goes to /hybris directory, now basicaly what we miss is in config folder we have solr folder, which was created based on previous version example 2005, it contain old solr .xmlf file and configuration, hence when you get the new commerce suite, first unzip it do the ootb setup, and only copy the localextension.xml and properties file from existing workspace to new upgraded workspace.

followed by - ant clean all & hybrisserver.bat for windows machine