SOLR

Solr server error : Document contains at least one immense term in field=exacttext whose UTF8 encoding is longer than the max length 32766

Error:

Drupal\search_api_solr\SearchApiSolrException while maintaining Solr server Solr Server: Solr endpoint http://localhost:8983/ internal Solr server error (code: 500, body: { "error":{ "msg":"Document contains at least one immense term in field=\"exacttext\" (whose UTF8 encoding is longer than the max length 32766),

 

Drupal Search API / Apache Solr : Clear Index & Re-Index (via Drush & Cronjob)

Shell script :

#!/bin/bash
cd /var/www/vhosts/example.com/httpdocs 
drush="php -c /var/www/vhosts/example.com/httpdocs/drush.ini /var/www/vhosts/example.com/httpdocs/vendor/drush/drush/drush"
$drush sapi-c
$drush sapi-i --batch-size=500
$drush ws
$drush status


drush.ini:

safe_mode =
open_basedir =
max_execution_time = 3600
max_file_uploads = 20
max_input_time = 3600
memory_limit = 8G

Cronjob (++)

Apache Solr Install & Update

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 )

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)

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

 

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

*** [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

Suche

Neueste Kommentare

  • 3 days ago
    Bootstrap 5 subtheme is not properly configured. This may be caused by a problem with file or directory permissions.
  • 1 week 5 days ago
    Site URI : http://default (Drupal, how2 update config?)

    Add this line to drupalroot/vendor/drush/drush/drush.yml

    
    options:
         uri: 'https://www.example.com/'
    

     

    drush.yml looks like:

  • 1 month 2 weeks ago
    Webserver CPU Performance Test mit PHP

    Time: 0,19 

    CPU: AMD Ryzen 7 PRO 3700 8-Core Processor

  • 3 months ago
    TypeError: Cannot assign null to property Drupal \ views \ Plugin \ views \ argument \ ArgumentPluginBase::$operator of type string

    Line 63, 99 :

     -    $this->operator = $break->operator;
     +    if($break->operator){
     +        $this->operator = $break->operator;
     +    }

     

  • 4 months ago
    Drupal + Basic_Auth Problem : You do not have permission to access this page (Sie haben keine Zugriffsberechtigung für diese Seite. )

    My problem was:

  • 4 months ago
    Drupal Upgrade (Drupal 9 » Drupal 10)

    I had this exact issue and your site was the only place I found the fix.

    It'd be nice if the module developer applied your fix though.

    Good work! Much appreciated!

  • 5 months ago
    The datasource with ID 'elstut--entity:node' could not be retrieved for index (Drupal, Solr)

    Hier ist die Lösung. (/admin/config/search/search-api/server/solr_server/edit)

    Multisite-Kompatibilität
     + Nur Ergebnisse von dieser Seite beziehen
     

  • 5 months 1 week ago
    PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock

     

    Ich bekomme diese Fehlermeldung:

  • 6 months ago
    Install APCu (PHP 8.1, Plesk)

    PHP 8.2

    apt update
    apt install plesk-php81-dev zlib1g-dev
    /opt/plesk/php/8.2/bin/pecl install apcu
    echo "extension=apcu.so" > /opt/plesk/php/8.2/etc/php.d/apcu.ini
    

     

  • 6 months 3 weeks ago
    BadRequestHttpException: The theme must be passed as a query argument in Drupal \ system \ Controller \ AssetControllerBase->deliver()

    Anfragen werden für veraltete CSS-/JS-URLs empfangen (Cache). Die Lösung wäre JavaScript und CSS-Aggregation erneut aktivieren.