With a standalone Solr 8.11.1 instance with SSL enabled on an Arch Linux 
system, 

[victoria@victoria solr-8.11.1]$ solr status

  Found 1 Solr nodes: 

  Solr process 3380449 running on port 8983
  INFO  - 2022-04-25 20:55:03.283; 
org.apache.solr.util.configuration.SSLConfigurations; Setting 
javax.net.ssl.keyStorePassword
  INFO  - 2022-04-25 20:55:03.286; 
org.apache.solr.util.configuration.SSLConfigurations; Setting 
javax.net.ssl.trustStorePassword
  {
    "solr_home":"/mnt/Vancouver/apps/solr/solr-8.11.1/server/solr",
    "version":"8.11.1 0b002b11819df70783e83ef36b42ed1223c14b50 - janhoy - 
2021-12-14 13:50:55",
    "startTime":"2022-04-26T03:52:16.715Z",
    "uptime":"0 days, 0 hours, 2 minutes, 47 seconds",
    "memory":"89.3 MB (%4.4) of 2 GB"}

[victoria@victoria solr-8.11.1]$ 

... how can I post documents on the command line?

Do I need to provide my Solr admin username:password ( -u user;pass)?

Here I show the output without a username:password, but I got the identical
output using it.

[victoria@victoria solr-8.11.1]$ post -c pg-solr 
/mnt/Vancouver/apps/solr/solr-8.11.1/server/solr/virginia_lamp_thomas.html

/usr/lib/jvm/java-18-openjdk//bin/java -classpath 
/mnt/Vancouver/apps/solr/solr-8.11.1/dist/solr-core-8.11.1.jar -Dauto=yes 
-Dc=pg-solr -Ddata=files org.apache.solr.util.SimplePostTool 
/mnt/Vancouver/apps/solr/solr-8.11.1/server/solr/virginia_lamp_thomas.html
SimplePostTool version 5.0.0
Posting files to [base] url http://localhost:8983/solr/pg-solr/update...
Entering auto mode. File endings considered are 
xml,json,jsonl,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log
POSTing file virginia_lamp_thomas.html (text/html) to [base]/extract
SimplePostTool: FATAL: IOException while posting data: java.io.IOException: 
Error writing request body to server

[victoria@victoria solr-8.11.1]$ 

If I disable SSL I can index my documents; it's a SSL issue of some type.

From the Solr Admin UI:

Core
  startTime: 13 minutes ago
  instanceDir: /mnt/Vancouver/apps/solr/solr-8.11.1/server/solr/pg-solr
  dataDir: /mnt/Vancouver/apps/solr/solr-8.11.1/server/solr/pg-solr/data/
  directory: 
org.apache.lucene.store.NRTCachingDirectory:NRTCachingDirectory(MMapDirectory@/mnt/Vancouver/apps/solr/solr-8.11.1/server/solr/pg-solr/data/index
 lockFactory=org.apache.lucene.store.NativeFSLockFactory@5a7d594d; 
maxCacheMB=48.0 maxMergeSizeMB=4.0)

Args
  -DSTOP.KEY=solrrocks
  -DSTOP.PORT=7983
  -Dbasicauth=***   ## username:password ; user with full admin privileges ...
  
-Djavax.net.ssl.keyStore=/mnt/Vancouver/apps/solr/solr-8.11.1/server/etc/solr-ssl.keystore.p12
  -Djavax.net.ssl.keyStoreType=PKCS12
  
-Djavax.net.ssl.trustStore=/mnt/Vancouver/apps/solr/solr-8.11.1/server/etc/solr-ssl.keystore.p12
  -Djavax.net.ssl.trustStoreType=PKCS12
  -Djetty.home=/mnt/Vancouver/apps/solr/solr-8.11.1/server
  -Djetty.port=8983
  -Dsolr.data.home=
  
-Dsolr.default.confdir=/mnt/Vancouver/apps/solr/solr-8.11.1/server/solr/configsets/_default/conf
  
-Dsolr.httpclient.builder.factory=org.apache.solr.client.solrj.impl.PreemptiveBasicAuthClientBuilderFactory
  -Dsolr.install.dir=/mnt/Vancouver/apps/solr/solr-8.11.1
  -Dsolr.jetty.https.port=8983
  -Dsolr.jetty.inetaccess.excludes=
  -Dsolr.jetty.inetaccess.includes=
  -Dsolr.jetty.keystore.type=PKCS12
  
-Dsolr.jetty.keystore=/mnt/Vancouver/apps/solr/solr-8.11.1/server/etc/solr-ssl.keystore.p12
  -Dsolr.jetty.ssl.needClientAuth=false
  -Dsolr.jetty.ssl.wantClientAuth=false
  -Dsolr.jetty.truststore.type=PKCS12
  
-Dsolr.jetty.truststore=/mnt/Vancouver/apps/solr/solr-8.11.1/server/etc/solr-ssl.keystore.p12
  -Dsolr.log.dir=/mnt/Vancouver/apps/solr/solr-8.11.1/server/logs
  -Dsolr.log.muteconsole
  -Dsolr.solr.home=/mnt/Vancouver/apps/solr/solr-8.11.1/server/solr
  -Dsolr.ssl.checkPeerName=true
  -Duser.timezone=UTC
  -XX:+AlwaysPreTouch
  -XX:+ExplicitGCInvokesConcurrent
  -XX:+ParallelRefProcEnabled
  -XX:+PerfDisableSharedMem
  -XX:+UseG1GC
  -XX:+UseLargePages
  -XX:-OmitStackTraceInFastThrow
  -XX:MaxGCPauseMillis=250
  -XX:OnOutOfMemoryError=/mnt/Vancouver/apps/solr/solr-8.11.1/bin/oom_solr.sh 
8983 /mnt/Vancouver/apps/solr/solr-8.11.1/server/logs
  
-Xlog:gc*:file=/mnt/Vancouver/apps/solr/solr-8.11.1/server/logs/solr_gc.log:time,uptime:filecount=9,filesize=20M
  -Xms2048m
  -Xmx2048m
  -Xss256k

==============================================================================

Reply via email to