Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

503 Server Error When Indexing WikiData Using Solr #17

Open
LiuYuLOL opened this issue Apr 16, 2020 · 7 comments
Open

503 Server Error When Indexing WikiData Using Solr #17

LiuYuLOL opened this issue Apr 16, 2020 · 7 comments

Comments

@LiuYuLOL
Copy link

Hi, I tried to deploy tapioca on a server but I meet this HTTP Error.

requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: http://localhost:8983/solr/admin/collections?action=CREATE&name=test2_collection&collection.configName=tapioca&numShards=1

Solr is running with the status:

Found 1 Solr nodes:

Solr process 82765 running on port 8983
Picked up _JAVA_OPTIONS: -Djava.io.tmpdir=/home/uqyliu42/tmp
{
"solr_home":"/home/uqyliu42/tools/solr-7.7.2/server/solr",
"version":"7.7.2 d4c30fc2856154f2c1fefc589eb7cd070a415b94 - janhoy - 2019-05-28 23:37:48",
"startTime":"2020-04-16T01:54:22.302Z",
"uptime":"0 days, 0 hours, 8 minutes, 5 seconds",
"memory":"218.5 MB (%5.6) of 3.8 GB",
"cloud":{
"ZooKeeper":"localhost:9983",
"liveNodes":"1",
"collections":"1"}}

And I can create collections using bin/solr create -c <name>. Besides, the ports are available with

(base) [uqyliu42@deodar solr]$ lsof -i -P -n | grep LISTEN
java 82765 uqyliu42 48u IPv6 128497800 0t0 TCP 127.0.0.1:7983 (LISTEN)
java 82765 uqyliu42 128u IPv6 128497806 0t0 TCP *:9983 (LISTEN)
java 82765 uqyliu42 140u IPv6 128497810 0t0 TCP *:8983 (LISTEN)

@wetneb
Copy link
Member

wetneb commented Apr 16, 2020

This is an error that you can probably investigate by looking at Solr's logs, for instance via its web interface.

@dinani65
Copy link

dinani65 commented Mar 28, 2021

could u please tell how to address this error when I want to create a Solr collection?
command: "tapioca index-dump my_collection_name latest-all.json.bz2 --profile profiles/human_organization_place.json"
error: "requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:8983/solr/admin/collections?action=CREATE&name=col1top&collection.configName=tapioca&numShards=1"

@wetneb
Copy link
Member

wetneb commented Mar 30, 2021

This could be because you haven't uploaded the corresponding configset before. See the end of https://opentapioca.readthedocs.io/en/latest/install.html#installing-solr. If that was indeed the problem, perhaps we could add a pointer to this section from the one where we create the collection? Let me know if that helps.

@dinani65
Copy link

dinani65 commented Apr 4, 2021

I have followed the required steps according to https://opentapioca.readthedocs.io/en/latest/install.html.
Could u please explain more what I need to do?

@wetneb
Copy link
Member

wetneb commented Apr 4, 2021

Then I don't know! Have you looked at the solr logs to understand better why this 400 error is thrown? There should be more explanations there.

@dinani65
Copy link

dinani65 commented Apr 4, 2021

In order to run Solr in cloud mode, I run the following command:
service solr start -c -m 4g
but the logs shows:
org.apache.solr.common.SolrException: Solr instance is not running in SolrCloud mode.

@wetneb
Copy link
Member

wetneb commented Apr 4, 2021

It is probable that the syntax to start solr in Cloud mode is different when you use the service command. Perhaps you could find out what is the correct way to configure Solr when starting it with the service command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants