docintelapp / DocIntel

Open Source Platform for storing, organizing, and searching documents related to cyber threats
https://docintel.org
Other
157 stars 25 forks source link

Error while initial deployment of the `SolR` service #2

Closed silvian-io closed 2 years ago

silvian-io commented 2 years ago

While running

docker run --name docintel-dev-solr \
  -v $datafolder/solr/:/var/solr \
  -d solr

the docker container fails with:

Cannot write to /var/solr as 8983:8983
drwxr-xr-x 2 root root 4096 Oct 18 08:13 /var/solr

Ran both root and non root.

johnk3r commented 2 years ago

I have the same problem.

ancailliau commented 2 years ago

Yes, indeed. Thanks for the report. I'm looking into a fix!

In the meantime, you can always chmod and chown the folders.

d4ms3c commented 2 years ago

You need to set right permission: sudo chown 8983:8983 ./data/solr Then you must delete docintel-dev-solr container and run again "run.sh".

It works for me!

ancailliau commented 2 years ago

Yes, exactly. I'm no expert in docker but docker will mount the volume while respecting the permission of the host.

Droogy commented 2 years ago

Now I'm getting a different error,

"Core 'document' already exists!" image

AntoninHL commented 2 years ago

Hi

Same here... Core document already exists...

📚 Configuring SolR
32645a692c6b19e85148924007a9b2e6b57bee047b7c9c9ad24b47a245d69b29
Wait for SolR to be up-and-running
WARNING: Using _default configset with data driven schema functionality. NOT RECOMMENDED for production use.
         To turn off: bin/solr config -c document -p 8983 -action set-user-property -property update.autoCreateFields -value false

ERROR: 
Core 'document' already exists!
Checked core existence using Core API command:
http://localhost:8983/solr/admin/cores?action=STATUS&core=document

And nothing listening on port 5005...