cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with Solr indexing not working on fresh install of OSX

arthurjs2
Participant
0 Likes
1,764

Steps I followed to arrive at the problem:

1) Fresh OSX install. I tried Sierra, now High Sierra, both gave the same problem.

2) Java JDK installation and setting the JAVA_HOME Path variables.

3) Unzip the Hybris 6.6 zip, again set all necessary Path variables for Hybris to be able to run, and set the ant environment.

4) Follow the Hybris Accelerator instructions from help.hybris

cd $HYBRIS_HOME_DIR/installer; ./install.sh -r b2b_acc setup;

./install.sh -r b2b_acc initialize;

./install.sh -r b2b_acc start;

5) Setting hosts and browse to https://powertools.local:9002/backoffice/

In the backoffice, when I go to Products > Catalog it tells me the index needs to be initialized.

When clicking the "Initialize Index here", I receive the following error. I do not get any option to let Solr index anything at all, it just gives me the "No converter registered for model class class java.lang.String"

When going to facet settings in Backoffice and trying to index anything, clicking on "Index" or "Hot Update Index ", nothing happens.

So like I said, all I've done is install OSX, unzip hybris and set necessary prerequisites, and try to initialize an accelerator through a recipe. I hope someone recognizes this problem on OSX and knows what I could to do to fix it, without Solr I cannot access the Product cockpit and configure much at all.

Thank you for any help provided.

Accepted Solutions (1)

Accepted Solutions (1)

0 Likes

Dear ,

I was trying to recreate the problem that you are talking about, but everything worked fine for me. Please check if versions match and path variables are ok.

My MacOS version: 10.13.4

Hybris version: 6.6.0.3

  1. I unziped fresh hybris-commerce-suite-6.6.0.3.zip
    cd /opt
    unzip hybris-commerce-suite-6.6.0.3.zip -d HYBRIS6.6.0.3


  2. I updated my path variables (in my case its .zshrc file)
    export HYBRIS_HOME_DIR=/opt/HYBRIS6.6.0.3 export ANT_HOME=${HYBRIS_HOME_DIR}/hybris/bin/platform/apache-ant-1.9.1
    export JAVA_HOME=$(/usr/libexec/java_home)
    JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home
    export JAVA_HOME;
    export PATH=${PATH}:${ANT_HOME}/bin:${JAVA_HOME}

  3. I set up and started Hybris
    cd /opt/HYBRIS6.6.0.3/installer; ./install.sh -r b2b_acc setup;
    ./install.sh -r b2b_acc initialize;
    ./install.sh -r b2b_acc start;

  4. After opening backoffice, the same pop-up window appeared

5 . After selecting "full" as the operation value I pressed "START" and products appeared.

Please, let me know if it helps

Regards

Answers (2)

Answers (2)

arthurjs2
Participant
0 Likes

I got it to work. My previous projects has a dash in the name

"project-demo" "project-test" and now it doesn't, I'm not sure that really made the difference though.

These are my working PATH variables (which I adapted to your working ones in your example,

 JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_162.jdk/Contents/Home
 
 export JAVA_HOME;
 
 export PROJECT=DEV
 export HYBRIS_HOME_DIR=/Users/sercka/Documents/${PROJECT}
 export HYBRIS_OPT_CONFIG_DIR=/${HYBRIS_HOME_DIR}/hybris/config
 export ANT_HOME=${HYBRIS_HOME_DIR}/hybris/bin/platform/apache-ant-1.9.1
 export PATH=${PATH}:${ANT_HOME}/bin:${JAVA_HOME}
 export PLATFORM_HOME=${HYBRIS_HOME_DIR}/hybris/bin/platform
 
 export DEV=${HYBRIS_HOME_DIR}/hybris/bin/platform

(project folder simply is called DEV right now)

Thanks again!

arthurjs2
Participant
0 Likes

Hello, and thank you for your reply/test!

The steps you followed are the exact same, with the difference that my hybris 6.6 zip is: HYBRISCOMM6600P_0-70003031 (6.6.0.0?)

I never get the screen at your step 5. and I really don't know why, but I'll try 6.6.0.3 and see if it changes anything.

Thanks again

0 Likes

Have you checked terminal output during initialization? Maybe there were some errors

arthurjs2
Participant
0 Likes

Hi, no terminal errors whatsoever. Solr also starts as normal, "Happy searching" start message.

When I browse to https://localhost:8983/solr/ it asks me for a login/password.

0 Likes

Have you tried to reinitialize?

arthurjs2
Participant
0 Likes

I have (several times), so far I have never got the embedded solr to work with hybris, always errors when I try to initialize the index in Backoffice.