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
Create sync users #73
Comments
Ok, it seems that
did the trick. Now I'm getting |
Trying to create a remote user fails with 404:
fails with:
The error message should be more specific and should provide more information to the cause of the error. |
I'm running DataGate 3.0.0 in Docker. |
I changed the port from 9090 to 8080 and now it seems to be doing sync. Unfortunately it fails with timeout exception:
It seems as if the DataGate closed the connection. How can I configure the timeout to be bigger please? |
Sorry for the inconvenience. Have you looked into the doc https://www.dizitart.org/nitrite-datagate.html |
@anidotnet no problem, thank you very much for all of your work! Please ignore the user-related issues - I have solved them all out, so it is only enough to focus on the |
It means the copy of the |
For socket timeout check what is the port you have set for datagate server in dockerfile. Configure that port in The relevant portion you need to look into dockerfile is below
|
Thanks! The port setting is ok - the sync client is apparently able to connect to DataGate and retrieve the information which documents have been synced. It apparently sees that there are no documents and starts sending all of local documents to the DataGate. However, it seems there are lots of local documents (100k) and it tries to upload them in one go and the whole process probably timeouts. |
Currently I am traveling and commenting from my mobile. Once I get hold of my desktop, I'll look into the code and give you some insight. Meanwhile if possible share me the log file for datagate and nitrite. |
Please try with setting larger read timeout in |
Any progress on it yet? |
Thank you @anidotnet and sorry for the delay. That setting indeed helped 👍 Now the client syncs with the DataGate properly. Yet it seems to be doing so at very low speed, estimating one record per second. In my testing database there is 10,000 records so I guess it will take some time :) |
How heavy is your document? What is the network lag involved? During sync, nitrite will send all documents in one go. |
The document is really tiny, just one mapping from "animal" to "cat26"; it's just a testing database with 10000 of such tiny documents like |
I am closing this issue now as the Socket timeout issue is resolved. Feel free to open another if you face any other issue. |
Of course. Thank you very much for your tip with the |
Hi! Thank you very much for your awesome work. The DataGate is up and running, but I do not know how I can create sync users. I tried the following in the mongo console:
Also I tried to create the users via the DataGate client moderation page, but the sync code still fails with
Could you please paste an example how to create an user in DataGate, so that the sync client will work?
Also, what does the
remote-collection@userId
parameter mean?The text was updated successfully, but these errors were encountered: