RE: No solr.log in solr cloud 7.3

2018-05-31 Thread msaunier
FYI -- having two zookeeper servers is actually LESS stable than only having 
one.  You need at least three.  Here are links to a couple of notes in the 
zookeeper documentation that discuss this requirement:

We have 9 server in production and 3 (2+1) in dev
So, this 2 are for the dev and it's on the dev the problem.

We have restore a save -10days and it work. Thanks.




-Message d'origine-
De : Shawn Heisey [mailto:apa...@elyograg.org] 
Envoyé : jeudi 31 mai 2018 17:19
À : solr-user@lucene.apache.org
Objet : Re: No solr.log in solr cloud 7.3

On 5/31/2018 7:04 AM, msaunier wrote:
> wget 
> http://apache.mirrors.ovh.net/ftp.apache.org/dist/lucene/solr/6.6.1/so
> lr-6.6.1.tgz
> tar -xzf solr-*.tgz
> /opt/solr-*/bin/install_solr_service.sh /opt/solr-*.tgz 
> /etc/init.d/solr stop rm -f solr-*.tgz

So you did use the service installer.

> 2.
> cat </etc/default/solr.in.sh
> ZK_HOST=srv-formation-solr.citya.local:2181,srv-formation-solr2.citya.
> local:2181
> SOLR_PID_DIR=/var/solr
> SOLR_HOME=/var/solr/data
> LOG4J_PROPS=/var/solr/log4j.properties
> SOLR_LOGS_DIR=/var/solr/logs
> SOLR_PORT=8983
> SOLR_HOST=$(ifconfig | grep 'inet 192\.168\.' | sed -e 
> 's/^[^0-9]*\(192[^ ]*\).*/\1/') SOLR_JAVA_MEM="-Xms4096m -Xmx4096m 
> -Denable.runtime.lib=true"
> EOF

Unless you have also edited the bin/solr script and/or log4j.properties, all 
your logs should be in /var/solr/logs.  If you have edited those files, then 
that might have changed the location, and we won't have any idea where you'll 
need to look.

FYI -- having two zookeeper servers is actually LESS stable than only having 
one.  You need at least three.  Here are links to a couple of notes in the 
zookeeper documentation that discuss this requirement:

http://zookeeper.apache.org/doc/r3.4.12/zookeeperStarted.html#sc_RunningReplicatedZooKeeper
http://zookeeper.apache.org/doc/r3.4.12/zookeeperAdmin.html#sc_zkMulitServerSetup

Thanks,
Shawn




Re: No solr.log in solr cloud 7.3

2018-05-31 Thread Shawn Heisey
On 5/31/2018 7:04 AM, msaunier wrote:
> wget 
> http://apache.mirrors.ovh.net/ftp.apache.org/dist/lucene/solr/6.6.1/solr-6.6.1.tgz
> tar -xzf solr-*.tgz
> /opt/solr-*/bin/install_solr_service.sh /opt/solr-*.tgz
> /etc/init.d/solr stop
> rm -f solr-*.tgz

So you did use the service installer.

> 2.
> cat  ZK_HOST=srv-formation-solr.citya.local:2181,srv-formation-solr2.citya.local:2181
> SOLR_PID_DIR=/var/solr
> SOLR_HOME=/var/solr/data
> LOG4J_PROPS=/var/solr/log4j.properties
> SOLR_LOGS_DIR=/var/solr/logs
> SOLR_PORT=8983
> SOLR_HOST=$(ifconfig | grep 'inet 192\.168\.' | sed -e 's/^[^0-9]*\(192[^ 
> ]*\).*/\1/')
> SOLR_JAVA_MEM="-Xms4096m -Xmx4096m -Denable.runtime.lib=true"
> EOF

Unless you have also edited the bin/solr script and/or log4j.properties,
all your logs should be in /var/solr/logs.  If you have edited those
files, then that might have changed the location, and we won't have any
idea where you'll need to look.

FYI -- having two zookeeper servers is actually LESS stable than only
having one.  You need at least three.  Here are links to a couple of
notes in the zookeeper documentation that discuss this requirement:

http://zookeeper.apache.org/doc/r3.4.12/zookeeperStarted.html#sc_RunningReplicatedZooKeeper
http://zookeeper.apache.org/doc/r3.4.12/zookeeperAdmin.html#sc_zkMulitServerSetup

Thanks,
Shawn



RE: No solr.log in solr cloud 7.3

2018-05-31 Thread msaunier
I start Solr with /etc/init.d/solr script:

#

#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

### BEGIN INIT INFO
# Provides: solr
# Required-Start:$remote_fs $syslog citya-zookeeper
# Required-Stop: $remote_fs $syslog citya-zookeeper
# Default-Start: 2 3 4 5
# Default-Stop:  0 1 6
# Description:   Controls Apache Solr as a Service
### END INIT INFO

# Example of a very simple *nix init script that delegates commands to the 
bin/solr script
# Typical usage is to do:
#
#   cp bin/init.d/solr /etc/init.d/solr
#   chmod 755 /etc/init.d/solr
#   chown root:root /etc/init.d/solr
#   update-rc.d solr defaults
#   update-rc.d solr enable

# Where you extracted the Solr distribution bundle
SOLR_INSTALL_DIR="/opt/solr"

if [ ! -d "$SOLR_INSTALL_DIR" ]; then
  echo "$SOLR_INSTALL_DIR not found! Please check the SOLR_INSTALL_DIR setting 
in your $0 script."
  exit 1
fi

# Path to an include file that defines environment specific settings to 
override default
# variables used by the bin/solr script. It's highly recommended to define this 
script so
# that you can keep the Solr binary files separated from live files (pid, logs, 
index data, etc)
# see bin/solr.in.sh for an example
SOLR_ENV="/etc/default/solr.in.sh"

if [ ! -f "$SOLR_ENV" ]; then
  echo "$SOLR_ENV not found! Please check the SOLR_ENV setting in your $0 
script."
  exit 1
fi

# Specify the user to run Solr as; if not set, then Solr will run as root.
# Running Solr as root is not recommended for production environments
RUNAS="solr"

# verify the specified run as user exists
runas_uid="`id -u "$RUNAS"`"
if [ $? -ne 0 ]; then
  echo "User $RUNAS not found! Please create the $RUNAS user before running 
this script."
  exit 1
fi

case "$1" in
  start|stop|restart|status)
SOLR_CMD="$1"
;;
  *)
echo "Usage: $0 {start|stop|restart|status}"
exit
esac

if [ -n "$RUNAS" ]; then
  su -c "SOLR_INCLUDE=\"$SOLR_ENV\" \"$SOLR_INSTALL_DIR/bin/solr\" $SOLR_CMD" - 
"$RUNAS"
else
  SOLR_INCLUDE="$SOLR_ENV" "$SOLR_INSTALL_DIR/bin/solr" "$SOLR_CMD"
Fi

#

Where is the solr.in.sh file that you edited?  
/etc/default/solr.in.sh

Solr Installation:
1.
cd /opt
wget 
http://apache.mirrors.ovh.net/ftp.apache.org/dist/lucene/solr/6.6.1/solr-6.6.1.tgz
tar -xzf solr-*.tgz
/opt/solr-*/bin/install_solr_service.sh /opt/solr-*.tgz
/etc/init.d/solr stop
rm -f solr-*.tgz

2.
cat </etc/default/solr.in.sh
ZK_HOST=srv-formation-solr.citya.local:2181,srv-formation-solr2.citya.local:2181
SOLR_PID_DIR=/var/solr
SOLR_HOME=/var/solr/data
LOG4J_PROPS=/var/solr/log4j.properties
SOLR_LOGS_DIR=/var/solr/logs
SOLR_PORT=8983
SOLR_HOST=$(ifconfig | grep 'inet 192\.168\.' | sed -e 's/^[^0-9]*\(192[^ 
]*\).*/\1/')
SOLR_JAVA_MEM="-Xms4096m -Xmx4096m -Denable.runtime.lib=true"
EOF

3.
sed -e 's/  \$remote_fs \$syslog$/  $remote_fs $syslog citya-zookeeper/' -i 
/etc/init.d/solr
update-rc.d solr remove
update-rc.d solr defaults

Thanks

-Message d'origine-
De : Shawn Heisey [mailto:apa...@elyograg.org] 
Envoyé : jeudi 31 mai 2018 14:40
À : solr-user@lucene.apache.org
Objet : Re: No solr.log in solr cloud 7.3

On 5/31/2018 1:49 AM, SAUNIER Maxence wrote:
> What procedure did you follow to install Solr?
> The procedure on the documentation to install SolR Cloud

You're going to have to be a lot more specific.  The only documentation that I 
consider to be relevant for installing Solr is NOT on the SolrCloud part of the 
documentation.  It's here:

https://lucene.apache.org/solr/guide/7_3/taking-solr-to-production.html#run-the-solr-installation-script

Have you used the service installer script?  If so, what options did you give 
it?

> How was it started?
> I think 1 weeks, but I only realized it yesterday. Before, no problems.

Not WHEN. I asked HOW you started it.  What was the exact command that you 
typed?  Or was it

Re: No solr.log in solr cloud 7.3

2018-05-31 Thread Shawn Heisey

On 5/31/2018 1:49 AM, SAUNIER Maxence wrote:

What procedure did you follow to install Solr?
The procedure on the documentation to install SolR Cloud


You're going to have to be a lot more specific.  The only documentation 
that I consider to be relevant for installing Solr is NOT on the 
SolrCloud part of the documentation.  It's here:


https://lucene.apache.org/solr/guide/7_3/taking-solr-to-production.html#run-the-solr-installation-script

Have you used the service installer script?  If so, what options did you 
give it?



How was it started?
I think 1 weeks, but I only realized it yesterday. Before, no problems.


Not WHEN. I asked HOW you started it.  What was the exact command that 
you typed?  Or was it started as part of system boot?



Does you solr.in.sh have a reference to your log4j.properties file with the
proper path?


Where is the solr.in.sh file that you edited?  Whether that's the right 
one will depend on the answer to the first question I asked -- exactly 
how did you install Solr?  Have you edited any log4j.properties files?  
If so, where were they?



Side note:  Fault tolerant production zookeeper installs require at 
least three hosts.  Your ZK_HOST setting only lists one.


Thanks,
Shawn



RE: No solr.log in solr cloud 7.3

2018-05-30 Thread Leonard, Carl
Does you solr.in.sh have a reference to your log4j.properties file with the 
proper path?

-Original Message-
From: Shawn Heisey  
Sent: Wednesday, May 30, 2018 1:15 PM
To: solr-user@lucene.apache.org
Subject: Re: No solr.log in solr cloud 7.3

On 5/30/2018 8:40 AM, msaunier wrote:
> Today, I don’t understand why, but I don’t have solr.log file. I have just:
>
> drwxr-xr-x 1 solr solr 84 mai   30 16:19 archived
>
> -rw-r--r-- 1 solr solr 891352 mai   30 16:29 solr-8983-console.log
>
> -rw-r--r-- 1 solr solr  74068 mai   30 16:34 solr_gc.log.0.current


What procedure did you follow to install Solr?  How was it started? What 
version of Solr?  What OS flavor are you running on?  The answers to these 
questions will help determine where you should be looking.

Thanks,
Shawn



Re: No solr.log in solr cloud 7.3

2018-05-30 Thread Shawn Heisey
On 5/30/2018 8:40 AM, msaunier wrote:
> Today, I don’t understand why, but I don’t have solr.log file. I have just:
>
> drwxr-xr-x 1 solr solr 84 mai   30 16:19 archived
>
> -rw-r--r-- 1 solr solr 891352 mai   30 16:29 solr-8983-console.log
>
> -rw-r--r-- 1 solr solr  74068 mai   30 16:34 solr_gc.log.0.current


What procedure did you follow to install Solr?  How was it started? 
What version of Solr?  What OS flavor are you running on?  The answers
to these questions will help determine where you should be looking.

Thanks,
Shawn