-
Notifications
You must be signed in to change notification settings - Fork 11
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
Configuring data replication #580
Comments
Nothing else in the worker log? In general, during initial resync the percentages aren't always accurate at the moment. The important thing is that the replication advances. Unfortunately the only way to truly know that at the moment is through the database itself (or viewing the REST api the browser is using and the responses returned). Can you confirm the state remains exactly the same and not advancing at all? |
I couldn't see anything else that looked relevant in the worker log, but for completeness here are the log messages that appear while the replication is in progress:
(the replication task starts at 2019-10-28 19:04:32,948) Yes, the replication state remains the same for the entire replication attempt. I have looked at the Elasticsearch REST API, and the "backslash" index that should have been created for the test records does not exist. I tried creating that index manually, but no records are added to it. I also tried adding the default Elasticsearch REST API credentials to the replication setup, but the behaviour does not change. |
@vmalloc Please notice that the elastics-search version which @bpowell65536 uses is pretty old - Current (latest) version is 7.4.1. Can it be that the problem he is having is due to backwards incompatibility? We run replication successfully with version 6.2.2. |
Definitely - an old ES can absolutely cause issues with replication |
I tried ES 6.2.2, but the behaviour is still the same. Which versions are supported? Is it just 6.2.2? |
There is no clear statement as we didn't perform that many conformance tests, but I think >6 should be fine. I think the only option is to look into the specific installation you have to see how (if at all) it progresses. Are you familiar with how to open a connection to Backslash's internal DB? |
I can connect to the database, but I don't know much about Postgres so will have to figure it out as I go 😄. Are there any specific queries you want me to run?
|
Let's start with several |
PLEASE NOTE that the output would probably need to be sanitized by you prior to pasting as it could contain passwords |
Here are the contents of the
Is the There doesn't seem to be any progress, but no records have been replicated either. There are definitely sessions in the database:
I ran another test which pushed results to Backslash to see if that would change the replication status, and while the new test session appeared in the |
It looks like the replication hasn't even started... Is it possible your URL isn't reachable from within the worker container? |
The ES URL is reachable from the machine that the worker container is running on, using I tried running an ES Docker container on the same machine as the Backslash containers and replicating data to that, but the replication still doesn't start. |
This is really strange. May I suggest adding some debug information inside the container around backslash/flask_app/tasks/replications.py Line 335 in af49b00
|
I added some debug logging to the start of the
Creating and starting a new replication task now produces this log output from the worker container:
This explains why the task gets done so fast, and possibly explains why it looks like it hasn't started, but I don't understand why |
The |
Good catch! That doesn't seem like the behavior we want - it sounds like a bug... |
Thanks! Yeah, I was expecting that all the data would be replicated to a single "backslash" index if I left the index name field blank - is that the intended behaviour? |
This sounds like a bug in the frontend/UI. I am guessing the "new" route sends an empty string, and since the API now accepts the index name this ends up as empty/null. @maormarcus can you confirm? |
I have been trying to configure replication of a Backslash instance to an Elasticsearch instance, and the process seems straightforward, but I am having trouble getting it to work.
Backslash version: 2.17.2 (UI 2.17.2), running on Ubuntu 18.04.3, installed using the instructions at https://backslash.readthedocs.io/en/latest/installation.html
Elasticsearch version: 5.4.3, run in a Docker container on Ubuntu 18.04.3 using
docker run -p 9200:9200 -p 9300:9300 -e discovery.type=single-node docker.elastic.co/elasticsearch/elasticsearch:5.4.3
I have seen that replication doesn't support the latest version of Elasticsearch (#570), but I can't find any information about which versions of Elasticsearch should be supported.
Steps I took to reproduce this issue:
The only log messages I can find related to this are:
Are there some more detailed instructions for configuring Backslash replication that I can follow besides https://backslash.readthedocs.io/en/latest/server_configuration.html#data-replication?
The text was updated successfully, but these errors were encountered: