-
Notifications
You must be signed in to change notification settings - Fork 94
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
Ethereum bridge stops writing into tingodb after sometime #51
Comments
Hi @mandritac Can you share which flags you're running the ethereum-bridge with? Please add the |
Hi, node bridge -H ip:rpc_port --broadcast --instance oracle_instance_20180507T175817.json Using the above command and no I am neither using ganache/testrpc. I am directly connecting the ethereum-bridge to our private blockchain network. For testing I have used truffle. Thanks. |
Could you try the |
Hi, Thanks, |
Hi, No when I tried installing "2018_3_updates" it didn't work even once i.e; the Queries and callback files are not getting updated with any contents. I tried deleting the files, restarting the bridge but it didn't help. Thanks. |
can you try deleting node_modules folder, and install the dependencies using yarn instead, it should give you a more deterministic dep tree. |
Hi, No it is not working even after using yarn to install the dependencies. Strangely it did work when I had freshly installed ethereum bridge using npm only, but now it is not working at all. Can any other log be enabled to check why it is not writing anything in Queries and callback files under tingodb? I have attached some additional files/logs |
Also I am uploading the contract file used for testing the setup and I am using truffle to test with the following commands - var poe = TestOraclizeCall.at(TestOraclizeCall.address) Thanks. |
Thanks, we'll take a look |
I've just tested your code, and it works fine on my end, using the ethereum-bridge on npm. Added a res storage variable to save the result:
I followed the calls you used. The first call will fail to create a query, because using a gas limit greater than the default 200k, will not be free, and no value was sent. I haven't been able to pinpoint anything too unusual in your logs, except make sure that your node is sync'd and not syncing. It could be node issues. Best way to eliminate that as an issue is to try with ganache/testrpc. Here was the setup I used: The most important one to match is probably truffle, the other one's are quite stable comparatively. |
Hi, Thanks. |
First, ensure your node is fully sync'd to your network, should be possible with the following web3 call: https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethissyncing or direct RPC call. I understand if you can't use testrpc for this purpose, but can you at least do a test-run with it, that way we can eliminate it down to the node being the issue, as I can confirm all the parts should work, and your code as is, is fine. |
Hi, Thanks. |
Hi, Thanks. |
Hi, Currently on ethereum-bridge the query is posted and it is also sending the callback but the function _callback(..) is never called, so the contract is not receiving the callback result from Oraclize. Thanks. |
@mandritac Thanks for updating, but I'm unable to reproduce your issues. I have tried your code, and the callback did indeed work fine. How do you know the __callback is never called? I recommend adding a storage variable that gets written when it's called, and that way you can check if it indeed was or wasn't, as I had above. |
Hi, I can confirm that callback is not fired in the smart contract because from that method I have an event generated and that event is not emitted. However I must state here that it was working earlier prior to all these issues. But now even though ethereum-bridge is sending back the callback, the event is not getting generated from the _callback function. Will try using state variables as suggested by you. Thanks. |
Hi, This is my observation after several rounds of testing and making some modifications in contract code.
Thanks. |
Thanks for the update on this. |
Hi admin |
hi, my bridge was running well but suddenly it showed the following msgs and exited
|
Hi,
I have setup ethereum-bridge on a private network running on Node js 6.14.1 on Ubuntu machine 16.04.3 LTS. One peculiar thing I see is that after sometime the Queries and callback files residing under tingodb stops getting updated. As a result all my Oraclize queries fail at ethereum-bridge node. If I clear the tingodb and re-install ethereum-bridge then the thing starts working but I can see for one HTTP request multiple callbacks coming, however I can still get the query response. But after a few Oraclize queries again the issue starts occurring. Why is this issue occurring and can this be avoided?
Thanks.
The text was updated successfully, but these errors were encountered: