-
Notifications
You must be signed in to change notification settings - Fork 3
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
Cannot write to /var/solr as 8983:8983 - dp-solr log #13
Comments
Hi @jonwolds , |
Many thanks for that. I'm still getting errors in dp-front and dp-back "gunicorn.errors.HaltServer: <HaltServer 'Worker failed to book.' 3>, Also, the Cannot write to /var/solr as 8983:8983 persists. I could edit the permissions of /var/solr by exec-ing in, but the container stops as soon as it starts, so I'd have to create a new container, I suppose, but then I'm not sure about how to link that back up with docker-compose. Any ideas? |
Answering my own question, this worked: I hadn’t realised what the dp-solr container was when I first asked the question. |
Awesome! |
localhost:5000 page fires up fine, but I guess I need to do a lot of configuration work. Basically, I just want to load up a couple of the manufactured corpora from paracrawl.eu for my own personal use, so I’ve no need for the authentication system, and I don’t think I’m able to install the Google app because I don’t have access to Google Workspace. Any tips on the best order to do things in would be very welcome. Many thanks in advance! |
I'm still struggling to get the set up working. The login process appears to work fine, but I then get sent to localhost:5000/search where I get a 500 - Internal Server Error. The log produced (from dp-front) is below 2023-01-26 19:25:53 +0000] [15] [INFO] Booting worker with pid: 15 I guess that's related to the set-up of the solr collection, which is where I'm struggling to follow the deployment instructions. I copied the solr.xml to the directory referenced by docker-composer.yaml and changed the permissions, but the dp-solr log still says: 2023-01-26 19:25:56.480 INFO (main) [] o.a.s.s.CoreContainerProvider Solr Home: /var/solr/data (source: system property: solr.solr.home) I put a core.properties file there, too, but it references a schema.xml and a solrconfig.xml, which I do not know how to set up (no instructions in the deployment guide). Also, the deployment section (I may be jumping the gun here) says "Go to the web interface of your Solr instance", but localhost:5000 is the only port open, so I don't really understand what this means. Any ideas? Jon |
Hi again Jon! Regarding the missing |
Thanks for following up, Marta. It's much appreciated! Here's my progress so far (I won't be working on this for the next week). I got into the solr web interface by adding In the end, I created the new core using: I had to exec in to the dp-solr container to do this as my efforts via the web interface were not successful in creating a solrconfig.xml file. This new core then shows up in the solr web interface correctly. It probably needs adjusting using the schema.xml file from the corset directory, too. Changing the permissions (chown 8983:8983) is always necessary, too I'm still getting an internal server error at localhost:5000/search, but hopefully once I load some data into the core I've created things might improve. |
This is the error message I'm getting from dp-front
I've tried to upload some data using tmxutils, but that hasn't been successful yet |
Hi again! |
Hi again, My configuration is most likely wrong, but the information provided is not quite enough to get it working. The specific error I'm getting in the gunicorn-error.log is:
http://localhost:5000/search/ produces a 500 Internal Server Error. Any ideas? Cheers, |
I got to the next stage and finally managed to get the /search/ page to appear properly by using an INSERT SQL command tailored to the solr collection I had created based on the model in the greyed-out part of the dpdb_initdb.sql file. Unfortunately, the search function still doesn't find anything. I'm guessing there's more configuration to do with the dpdb tables in postgres. |
This is the error message in the gunicorn-error.log (dp-front)
|
Hi Jon, Some hints:
|
Hi again Marta, This is what I have in the basecorpora table:
Can you see anything obviously wrontg? tmxcore is the name of the solr core. Thanks again for your help! Jon |
I can see that the search terms (e.g. charter here) are making it from dp-front to dp-solr, but no hits are displayed.
|
OK, I think by reversing the order of the languages, so English is first (source) and French the second (target), that initial error is averted. However, the following error is now showing up in the gunicorn-api-error.log in dp-back:
|
Hi! Yes, I think that having English first is mandatory. As for the last error, I had never seen that. I see that, in the error, "flask_login" is mentioned. As mentioned above, you were not using google login. How are you managing authorization and users? Login is needed in search requests (https://github.com/paracrawl/corset/blob/master/back/api/resources/search.py#L18) |
Yes, it's a weird error. I don't think it's linked to login, because that is now working perfectly, My earlier comment was incorrect! |
Hi,
I created the docker containers using docker-compose.yaml and got many of the same issues as stated in the now closed issue. There are errors in the dp-front and dp-back logs as well (gunicorn-error.log isn't writable, redis.log -> can't open the log file: No such file or directory). The dp-solr container doesn't actually seem to start up though.
Any help much appreciated.
Jon
The text was updated successfully, but these errors were encountered: