Replies: 3 comments 4 replies
-
Hi @Physik310, I see you have 0 documents indexed, I suspected the index not being created in ElasticSearch. What do you see if you do |
Beta Was this translation helpful? Give feedback.
-
I tried using a completely fresh debian 11 system setup and tried the docker installation as described in https://icij.gitbook.io/datashare/linux/install-datashare-on-linux . After running the datashare.sh script, the server starts but throws the following error after starting: The output:
|
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hello Datashare-Community,
I am currently trying to run datashare in SERVER mode but after logging in with a newly created user I receive the following error message:
Using the documentation in https://github.com/ICIJ/datashare/wiki/Datashare-Server-Mode#more-settings I did the following:
root@localhost:~# redis-cli -h 127.0.0.1
127.0.0.1:6379> set foo '{"uid":"foo", "password":"fcde2b2edba56bf408601fb721fe9b5c338d10ee429ea04fae5511b68fbf8fb9", "datashare_projects":["local-datashare"]}'
I edited the config file /root/.local/share/datashare/dist/datashare.conf:
#Datashare properties
parserParallelism=1
cors=no-cors
dataDir=/root/Datashare/local-datashare
redisPoolSize=1
protectedUriPrefix=/api/
mode=EMBEDDED
busType=memory
defaultProject=local-datashare
scrollSize=1000
ocr=true
settings=./dist/datashare.conf
messageBusAddress=redis://127.0.0.1:6379
tcpListenPort=8080
pluginsDir=/root/.local/share/datashare/plugins
queueType=memory
browserOpenLink=true
parallelism=4
scrollSlices=1
elasticsearchDataPath=/root/.local/share/datashare/index
elasticsearchAddress=http://localhost:9200
clusterName=datashare
nlpParallelism=1
dataSourceUrl=jdbc:sqlite:file:/root/.local/share/datashare/dist/datashare.db
defaultUserName=local
extensionsDir=/root/.local/share/datashare/extensions
queueName=extract:queue
redisAddress=redis://127.0.0.1:6379
sessionTtlSeconds=43200
-Then I run the Scan, where I placed one text file into /root/Datashare/local-datashare:
datashare --mode CLI --stages SCAN -d /root/Datashare/local-datashare --defaultProject local-datashare --queueName q1
In the output log it says “...ScannerVisitor - Completed scan of: "/root/Datashare/local-datashare"
-Then I run the indexing:
datashare --mode CLI --stages INDEX --ocr false --defaultProject local-datashare --queueName q1
The output log says:
....,129 [main] INFO IndexTask - disable OCR
....,133 [pool-2-thread-1] INFO IndexTask - Processing up to 4 file(s) in parallel
....,135 [pool-5-thread-1] INFO DocumentQueueDrainer - Draining to consumer until stopped or interrupted.
....,135 [pool-5-thread-1] INFO DocumentQueueDrainer - Continuous draining stopped.
....,135 [pool-2-thread-1] INFO DocumentQueueDrainer - Shutting down.
....,136 [pool-2-thread-1] INFO DocumentQueueDrainer - Awaiting completion up to 10 SECONDS.
....,136 [pool-2-thread-1] INFO DocumentQueueDrainer - Terminated.
....,136 [pool-2-thread-1] INFO IndexTask - drained 0 documents. Waiting for consumer to shutdown
....,138 [pool-2-thread-1] INFO DocumentConsumer - Shutting down.
....,138 [pool-2-thread-1] INFO DocumentConsumer - Awaiting completion up to 30 MINUTES.
....,138 [pool-2-thread-1] INFO DocumentConsumer - Terminated.
....,138 [pool-2-thread-1] INFO IndexTask - exiting
....,142 [main] INFO Indexer - Closing Elasticsearch connections
....,144 [main] INFO Indexer - Elasticsearch connections closed
-Then I started the server:
datashare --mode SERVER --authFilter org.icij.datashare.session.BasicAuthAdaptorFilter
The output log says at the end “..Fluent - Server started on port 8080”
I the browser I am prompted for the login credentials. After logging in I receive:
Beta Was this translation helpful? Give feedback.
All reactions