-
Notifications
You must be signed in to change notification settings - Fork 39
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
cli_wallet: 0 Exception: unspecified - "Timer Expired" #194
Comments
Does it happen all the time even after decentd restart? |
yes everytime |
Can you telnet to localhost port 8090? To see it is daemon problem or wallet problem... |
ader@HP-15-Notebook-PC:~/coins/DECENT/build/artifacts/prefix/bin$ netstat -an |grep 8090
ader@HP-15-Notebook-PC:~/coins/DECENT/build/artifacts/prefix/bin$ telnet localhost 8090
|
ader@HP-15-Notebook-PC:~/coins/DECENT/build/artifacts/prefix/bin$ nmap -p 8090 localhost
seems to be binding correctly to the port, not sure why it's timing out when connecting with telnet, as well as with the cli_wallet |
I think this is the problem:
Local and Foreign Address should be the same on 127.0.0.1, or both separately, as it is with:
I was able to successfully telnet to port 5297 of the daemon, just not 8090 |
5297 is the p2p port, not json-rpc one. Very strange, and I can't reproduce. Can you compile the binary (Linux?) with debug info and send it to me please? |
Compiled it with this command: download decentd: https://mega.nz/#!19on3DYC!ygHICQZNV3vdwcJ-oSKXwU3KXlBNJDRPoCUXWLomTvw What extra files/etc(please specify) do you need besides the binary? |
are you able to test your 127.0.0.1 interface with two netcat instances? |
@ejossev any luck finding the cause of the timeout ? I would like to be able to run the wallet and try the mining and seeding functionality soon. |
Sorry, after a while I'm spending the day with my family... It's on my tomorrow's todo list. |
Just for shits'n giggles I changed the rpc-endpoint in the config.ini to 0.0.0.0, however this was to of no avail 👎 |
Hmm, works on my virtual box with your binary. Sorry, there is no way how I can reproduce... |
could send me copy of your binaries (both decentd and cli_wallet) |
The decentd is from you... Instead of cli_wallet you can use e.g. wscat or even telnet to port 8090... |
But you can check my binaries as well: https://uloz.to/!5SQSpGgEQDuO/decent-tbz |
I just tested your binaries and they're working 👍 I have no idea why, I actually did a fresh install of Ubuntu today, and it's all good ! Maybe mine aren't compiling right ? |
In regards to using the cli_wallet, a more detailed instructional guide would be nice, as I'm not sure what is the necessary information needed for example the parameter , or how to use commands such as get_miner, or any other for that matter. I'm not having much success atm with doing the import_key method, just getting parsing errors, so I'm not sure what is the right information I'm supposed to provide. |
"gethelp" is useful. |
This is the result of doing import_key, is this correct output, doesn't seem so? as I'm not sure what the |
The Timeout Error has returned again, however I believe I may have found what might be causing this, which is Ubuntu's Firewall, I'm just not sure entirely why it is. As soon as I enabled the firewall, I couldn't connect the cli_wallet with the daemon again. even after disabling and resetting the firewall and iptables. I ran |
I had to actually reboot the OS after resetting / disabling the firewall/iptables, and the cli_wallet was able to connect again. Gonna have to investigate into this, as to why and/how it's being denied with default firewall settings. |
@ejossev it seems someone has come across a temporary solution for connecting to the daemon on the localhost port 8090, by using a loopback socket connection through decentgo.com
However I'm not so sure how secure it is to be connecting with the daemon in this manner as that may not be a secure pathway. Could you please elaborate on this. |
Over this channel you only read from database (which has exactly the same data as anyone's local database running decentd) and send signed operations (which will appear in the blockchain sooner or later). Only sensitive part is "what queries do you run over the DB", not the content of the queries itself. E.g. anyone can see that the account kingX has 1.2345 DCTs, but the fact that you're pulling it every now and then indicates your interest in that account. |
The resolution to this issue has been found thanks to slack user @roelandp: I will make a PR for this, and you can decide if to merge or wait for them to release 0.8 WebsocketPP |
@D3m0nKingx I am not only slack user @roelandp but also here on Github and also FYI the -s above is not working, you need somehow to omit the space to connect to define a custom websocket server:
It might also be of interest to read the discussion about this issue on the Websocket++ Github: Note this will only be caused on Linux Kernels > 4.4 so if you have the error first check that your kernel is > 4.4 with |
Fix is working, compiled and tested on Ubuntu 16.04.2 LTS x64, I have issued a PR for the fix: Again thank you @roelandp ! Happy to finally have my firewall up and running 💯 |
Issue fixed in 4ebb31a |
After initiating the decentd (daemon) running on linux ubuntu 16.04 (64-bit), I started the cli_wallet, which produced the following output:
Logging RPC to file: /home/ader/.decent/logs/rpc/rpc.log Logging transfers to file: /home/ader/.decent/logs/transfer.log
Starting a new wallet with chain ID 0000000000000000000000000000000000000000000000000000000000000000 (empty one)
0 exception: unspecified
Timer Expired
{"message":"Timer Expired"}
asio websocket.cpp:656 operator()
{"uri":"ws://localhost:8090"}
th_a websocket.cpp:906 connect
Furthermore, the rpc folder and log file do not exist, and the transfer.log file is empty
The text was updated successfully, but these errors were encountered: