cancel
Showing results for 
Search instead for 
Did you mean: 

Update 3.4 > 4.2 Nightly Solr wont start

iljas
Champ in-the-making
Champ in-the-making
Hi guys,

currently I am trying to Upgrade from 3.4 to version 4.2 Nightly on a LINUX system.

Unfortunately Solr wont start because a path configuration error.

My installation directory is /data/alf40
I am using the latest Nightly build of linux installer x64.
The Installation is currently configured to run standard lucene for the upgrade to work.
Despite that Solr should start in background to let it index the repository and switch indexing systems when it's done.

When I start up the system I get a SEVERE Error that tells me that Solr home is configured to

core1: /data/alf40/alf_data/solr/workspaces-SpacesStor\
core2: /data/alf40/alf_Data/sorl/Archives-SpacesStor\

Note the BACKslash at the end of the path!

In the next step Solr core tries to load solrconfig.xml from
/data/alf40/alf_data/solr/workspaces-SpacesStor\conf/solrconfig.xml

And fails because the backslash is a escape character on a linux system.

Question 1:
Can someone tell my where the BACKslash is coming from?
I can only find where to configure solr.home.dir but it is only /data/alf40/alf_data/solr.

Question 2:
Is there a variable similar to solr.home.dir or something like solr.conf.dir to override the worng configpath?

Question 3:
Can you think of an workaround? I can place solrconfig.xml in the class path so that tomcat can find it but won't solve the problem that the system will try to refer to the rest of the config files (like solrcore.properties) using the worng path.

Thank a lot for your Time.

IljaS
5 REPLIES 5

iljas
Champ in-the-making
Champ in-the-making
Just tried linking the native solrconfig.xml to tomcat/lib and tomcat/webapps/solr/WEB-INF/lib.
Still no luck.
Also tried resetting solr home path via JAVA_OPTS…same as above.

The exact messages I get are

INFO: Solr home set to '/data/alf40/alf_data/solr/workspace-SpacesStore\'
SEVERE: java.lang.RuntimeException: Can't find resource 'solrconfig.xml' in classpath or '/data/alf40/alf_data/solr/workspace-SpacesStore\conf/',

+ corresponding message for second solr core indexing the Archive SpacesStore.

Please Advise

iljas
Champ in-the-making
Champ in-the-making
Ok Guys I Got it.

Don't know who it was but some guy edited solr.home/solr.xml to look like that

<?xml version='1.0' encoding='UTF-8'?><solr sharedLib="lib" persistent="true">
<cores adminPath="/admin/cores" adminHandler="org.alfresco.solr.AlfrescoCoreAdminHandler">
  <core name="archive" instanceDir="archive-SpacesStore\"/>
  <core name="alfresco" instanceDir="workspace-SpacesStore\"/>
</cores>
</solr>

Note the Backslash.

Remove it and it will work.

Question to alfresco devs….are you really testing the builds on windows?

mrogers
Star Contributor
Star Contributor
Alfresco is tested on a variety of platforms, windows included.

sglover
Champ in-the-making
Champ in-the-making
That does look incorrect. I've raised a bug: https://issues.alfresco.com/jira/browse/ALF-14631

iljas
Champ in-the-making
Champ in-the-making
Thanks for raising the bug in JIRA. (which is indeed very humerous)
I'm going to test the fix against the latest HEAD build right away.