Solr as service - not running

Author Message

Lo' F.

Friday 18 March 2011 11:50:04 am

Hi guys,

I am experiencing problems making solr server run as service...

- Here I set the SOLR_HOME=/var/www/vhosts/xxxxxxxx.net/httpdocs/extension/ezfind/java in /extension/ezfind/bin/scripts/rhel/solr file

- and then copied the red hat solr file in the /etc/init.d directory..

[root@xx ~]# cp /var/www/vhosts/xxxxxx.net/httpdocs/extension/ezfind/bin/scripts/rhel/solr /etc/init.d

- Set the solr file permission to be executable..

[root@xx ~]# chmod +x /etc/init.d/solr

- Manually set the virtual links..

[root@xx ~]# cd /etc/rc3.d
[root@xx rc3.d]# ln -s ../init.d/solr S70solr
[root@xx rc3.d]# ln -s ../init.d/solr K70solr
[root@xx rc3.d]# cd /etc/rc5.d
[root@xx rc5.d]# ln -s ../init.d/solr S70solr
[root@xx rc5.d]# ln -s ../init.d/solr K70solr

When starting solr..

[root@xx ~]# /etc/init.d/solr start

..it seems to go fine as it responds this way..

/etc/init.d/solr: line 24: /var/www/vhosts/xxxx.net/httpdocs/extension/ezfind/java: is a directory
 * Starting Solr indexing server (solr)
   ...done.

..but when checking the status..

[root@xx ~]# /etc/init.d/solr status

.. it echoes solr's not running ...

/etc/init.d/solr: line 24: /var/www/vhosts/xxxxxx.net/httpdocs/extension/ezfind/java: is a directory
 * Solr indexing server (solr) is not running

What can this depend on? Any idea?

I really look forward to your helpful reply. Thanks!

loredanaebook.it

Lo' F.

Friday 18 March 2011 1:24:08 pm

Well.. silly but the 'trouble' came from having just set the JAVA_HOME leaving a space before the java path ;P

JAVA_HOME= /var/www/vhosts/xxxxxxxx.net/httpdocs/extension/ezfind/java

Fixed by simply removing the bloody space!

JAVA_HOME=/var/www/vhosts/xxxxxxx.net/httpdocs/extension/ezfind/java

Never mind ;)

And here it works...

[root@62 ~]# /etc/init.d/solr start
 * Starting Solr indexing server (solr)
   ...done.
[root@62 ~]# /etc/init.d/solr status
 * Solr indexing server (solr) is running

loredanaebook.it

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:06:51
Script start
Timing: Jan 18 2025 05:06:51
Module start 'layout'
Timing: Jan 18 2025 05:06:51
Module start 'content'
Timing: Jan 18 2025 05:06:52
Module end 'content'
Timing: Jan 18 2025 05:06:52
Script end

Main resources:

Total runtime0.4640 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.3906152.6250
Module start 'layout' 0.00700.0061 742.015639.4531
Module start 'content' 0.01310.4492 781.4688502.6328
Module end 'content' 0.46230.0016 1,284.101612.1563
Script end 0.4639  1,296.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.7931160.0002
Check MTime0.00140.2943160.0001
Mysql Total
Database connection0.00140.309010.0014
Mysqli_queries0.402686.7675540.0075
Looping result0.00050.1101520.0000
Template Total0.421390.820.2107
Template load0.00200.427220.0010
Template processing0.419390.373220.2097
Template load and register function0.00010.023710.0001
states
state_id_array0.00130.275010.0013
state_identifier_array0.00190.409520.0009
Override
Cache load0.00160.3457320.0001
Sytem overhead
Fetch class attribute can translate value0.00080.182510.0008
Fetch class attribute name0.00220.463730.0007
XML
Image XML parsing0.00060.130010.0006
class_abstraction
Instantiating content class attribute0.00000.002540.0000
General
dbfile0.00090.1925160.0001
String conversion0.00000.002840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs