SOLR

Apache Solr Install & Update

Submitted by Gast (nicht überprüft) on Do, 12/16/2021 - 12:53

Um Apache Solr zu installieren bzw. zu aktualisieren (Update/Upgrade) :

wget https://dlcdn.apache.org/lucene/solr/8.11.1/solr-8.11.1.tgz

tar xzf solr-8.11.1.tgz solr-8.11.1/bin/install_solr_service.sh --strip-components=2

./install_solr_service.sh solr-8.11.1.tgz -f

/etc/init.d/solr restart
service solr restart


 

 

 

 

Log4J Sicherheitslücke beheben (CVE-2021-44228 / Log4Shell / Zero-Day / Remote Code Execution )

Submitted by Gast (nicht überprüft) on Di, 12/14/2021 - 11:55

Um die Sicherheitslücke für Apache Solr 8.x zu schließen:

1. Umgebungsvariable setzen

export LOG4J_FORMAT_MSG_NO_LOOKUPS=true

2. Dateien ersetzen

Alte Dateien (in /opt/solr/server/lib/ext)

log4j-1.2-api-2.14.1.jar
log4j-api-2.14.1.jar
log4j-core-2.14.1.jar
log4j-slf4j-impl-2.14.1.jar
log4j-web-2.14.1.jar

ersetzen durch neue Dateien:

Apache Solr - Nur Localhost erlauben, Remote Verbindungen blockieren (mit Ausnahme)

Submitted by Gast (nicht überprüft) on Di, 12/14/2021 - 11:43

Alles außer Localhost ignorieren

Alle Verbindungen, die nicht aus dem IP 127.0.0.1 kommen, werden ignoriert (Reihenfolge ist wichtig).


iptables -A INPUT -p tcp -s localhost --dport 8983 -j ACCEPT
iptables -A INPUT -p tcp --dport 8983 -j DROP

 

Alle Verbindungen ignorieren (Ausnahme: IP von Admin)


iptables -A INPUT -p tcp -s 11.22.33.44/16 --dport 8983 -j ACCEPT
iptables -A INPUT -p tcp -s localhost --dport 8983 -j ACCEPT
iptables -A INPUT -p tcp --dport 8983 -j DROP



 

Solr Error : Your open file limit is currently 1024. It should be set to 65000 to avoid operational disruption

Submitted by Gast (nicht überprüft) on Mi, 09/23/2020 - 18:12

*** [WARN] *** Your open file limit is currently 1024. It should be set to 65000 to avoid operational disruption.

If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh

Your config-set contains manually added customizations. Be aware that these will be lost when the config-set needs to be regenerated.

Submitted by Gast (nicht überprüft) on Sa, 06/06/2020 - 17:45

Error: Apache Solr (Solr-Server Version: 8.5.2) & Drupal 8.9 (search_api_solr: 3.9)

 

Your config-set contains manually added customizations. Be aware that these will be lost when the config-set needs to be regenerated.

Solarium 5.0.2 is too old and has known issues. In order to get composer to upgrade solarium to a recent version a core patch or a workaround is required. Have a look at this Core issue and this Search API Solr issue.

Submitted by Gast (nicht überprüft) on So, 12/22/2019 - 20:30

Problem:

Solarium 5.0.2 is too old and has known issues. In order to get composer to upgrade solarium to a recent version a core patch or a workaround is required. Have a look at this Core issue and this Search API Solr issue.

Lösung:

composer require symfony/event-dispatcher:"4.3.4 as 3.4.99" && composer update