cryptonotefoundation / cryptonote

CryptoNote protocol implementation. This is the reference repository for starting a new CryptoNote currency. See /src/cryptonote_config.h
https://cryptonote.org/
991 stars 6.1k forks source link

Connection error #138

Open RulerOfTheWorld opened 6 years ago

RulerOfTheWorld commented 6 years ago

Hi, Wallet doesnt sync from daemon. I get a connection error perhaps, wallet doesnt sync with daemon i think. Do i have to have some wallet daemon to connect coind<->walletd<->wallet perhaps?

not running the demon and wallet at the same time gives me "Error: wallet failed to connect to daemon (http://localhost:18667)", so since I dont get that error when doing it, they should be connecting on the port just fine?

First 100 nodes were mined with the daemon to that address if it matters. (used difficulty set to 1 since i am not a patient man, if that matters also, maybe they are all orphans or something)

Seednodes look like this (same machine) const std::initializer_list<const char*> SEED_NODES = {};


testcoind: bengt@bengt-VirtualBox:~/Desktop/CryptoNote/build/release/src$ ./testcoind 11:24:47.559003 INFO testcoin v1.1.1.1(0.1-unknown) 11:24:47.559236 INFO Module folder: ./testcoind 11:24:47.560065 INFO Initializing p2p server... 11:24:47.560154 INFO Binding on 0.0.0.0:18666 11:24:47.560218 INFO Net service binded on 0.0.0.0:18666 11:24:47.560261 INFO Attempting to add IGD port mapping. 11:24:51.563051 INFO No IGD was found. 11:24:51.563120 INFO P2p server initialized OK 11:24:51.563141 INFO Initializing core... 11:24:51.563209 INFO Loading blockchain... 11:24:51.563268 INFO - loading block index... 11:24:51.563300 INFO - loading transaction map... 11:24:51.563331 INFO - loading spent keys... 11:24:51.563349 INFO - loading outputs... 11:24:51.563368 INFO - loading multi-signature outputs... 11:24:51.563385 INFO Serialization time: 0ms 11:24:51.563402 INFO Loading blockchain indices for BlockchainExplorer... 11:24:51.563432 INFO - loading paymentID index... 11:24:51.563458 INFO - loading timestamp index... 11:24:51.563504 INFO - loading generated transactions index... 11:24:51.563796 INFO Blockchain initialized. last block: 106, d0.h0.m7.s41 time ago, current difficulty: 379 11:24:51.563823 INFO Core initialized OK 11:24:51.563887 INFO Starting core rpc server on address 127.0.0.1:18667 11:24:51.563935 INFO Core rpc server started ok 11:24:51.563960 INFO Starting p2p net loop... 11:24:51.563983 INFO Starting node_server 11:24:51.564015 INFO 11:24:51.564015 INFO ** 11:24:51.564015 INFO The daemon will start synchronizing with the network. It may take up to several hours. 11:24:51.564015 INFO 11:24:51.564015 INFO You can set the level of process detailization through "set_log " command, where is between 0 (no details) and 4 (very verbose). 11:24:51.564015 INFO 11:24:51.564015 INFO Use "help" command to see the list of available commands. 11:24:51.564015 INFO 11:24:51.564015 INFO Note: in case you need to interrupt the process, use "exit" command. Otherwise, the current progress won't be saved. 11:24:51.564015 INFO **


bengt@bengt-VirtualBox:~/Desktop/CryptoNote/build/release/src$ ./walletd Configuration error: Both container-file and container-password parameters are required


bengt@bengt-VirtualBox:~/Desktop/CryptoNote/build/release/src$ ./simplewallet testcoin wallet v1.1.1.1(0.1-unknown) Nor 'generate-new-wallet' neither 'wallet-file' argument was specified. What do you want to do? [O]pen existing wallet, [G]enerate new wallet file or [E]xit. o Specify wallet file name (e.g., wallet.bin). Wallet file name: test1 password: ***** Loading wallet... Opened wallet: F7WX7v7aJ2hMiTPmUV199W3SULrj28VcE5EbckNJB8yHaL4JUGmTR3z8i3UEzvBYUPbymSbMd3Z1D6Hqk2EbmBppDeuuTZT


Use "help" command to see the list of available commands.


available balance: 0.00000000, locked amount: 0.00000000

0

Error: Failed to invoke rpc method: HTTP status: 2 wallet F7WX7v:

SoraKohaku commented 6 years ago

try open port for mining...

On Jan 12, 2018 7:39 PM, "RulerOfTheWorld" notifications@github.com wrote:

Hi, I get a connection error perhaps, wallet doesnt sync with daemon i think. Do i have to have some wallet daemon to connect coind<->walletd<->wallet perhaps? not running the demon and wallet at the same time gives me "Error: wallet failed to connect to daemon (http://localhost:18667)", so since I dont get that error when doing it, they should be connecting on the port just fine(?)

testcoind: bengt@bengt-VirtualBox:~/Desktop/CryptoNote/build/release/src$ ./testcoind 11:24:47.559003 INFO testcoin v1.1.1.1(0.1-unknown) 11:24:47.559236 INFO Module folder: ./testcoind 11:24:47.560065 INFO Initializing p2p server... 11:24:47.560154 INFO Binding on 0.0.0.0:18666 11:24:47.560218 INFO Net service binded on 0.0.0.0:18666 11:24:47.560261 INFO Attempting to add IGD port mapping. 11:24:51.563051 INFO No IGD was found. 11:24:51.563120 INFO P2p server initialized OK 11:24:51.563141 INFO Initializing core... 11:24:51.563209 INFO Loading blockchain... 11:24:51.563268 INFO - loading block index... 11:24:51.563300 INFO - loading transaction map... 11:24:51.563331 INFO - loading spent keys... 11:24:51.563349 INFO - loading outputs... 11:24:51.563368 INFO - loading multi-signature outputs... 11:24:51.563385 INFO Serialization time: 0ms 11:24:51.563402 INFO Loading blockchain indices for BlockchainExplorer... 11:24:51.563432 INFO - loading paymentID index... 11:24:51.563458 INFO - loading timestamp index... 11:24:51.563504 INFO - loading generated transactions index... 11:24:51.563796 INFO Blockchain initialized. last block: 106, d0.h0.m7.s41 time ago, current difficulty: 379 11:24:51.563823 INFO Core initialized OK 11:24:51.563887 INFO Starting core rpc server on address 127.0.0.1:18667 11:24:51.563935 INFO Core rpc server started ok 11:24:51.563960 INFO Starting p2p net loop... 11:24:51.563983 INFO Starting node_server 11:24:51.564015 INFO 11:24:51.564015 INFO **


11:24:51.564015 INFO The daemon will start synchronizing with the network. It may take up to several hours. 11:24:51.564015 INFO 11:24:51.564015 INFO You can set the level of process detailization through "set_log " command, where is between 0 (no details) and 4 (very verbose). 11:24:51.564015 INFO 11:24:51.564015 INFO Use "help" command to see the list of available commands. 11:24:51.564015 INFO 11:24:51.564015 INFO Note: in case you need to interrupt the process, use "exit" command. Otherwise, the current progress won't be saved. 11:24:51.564015 INFO **



bengt@bengt-VirtualBox:~/Desktop/CryptoNote/build/release/src$ ./walletd Configuration error: Both container-file and container-password parameters are required

bengt@bengt-VirtualBox:~/Desktop/CryptoNote/build/release/src$ ./simplewallet testcoin wallet v1.1.1.1(0.1-unknown) Nor 'generate-new-wallet' neither 'wallet-file' argument was specified. What do you want to do? [O]pen existing wallet, [G]enerate new wallet file or [E]xit. o Specify wallet file name (e.g., wallet.bin). Wallet file name: test1 password: ***** Loading wallet... Opened wallet: F7WX7v7aJ2hMiTPmUV199W3SULrj28VcE5EbckNJB8yHaL4JUGmTR3z8i3UE zvBYUPbymSbMd3Z1D6Hqk2EbmBppDeuuTZT

Use "help" command to see the list of available commands.

available balance: 0.00000000, locked amount: 0.00000000 wallet F7WX7v http://balance: bc_height 0 wallet F7WX7v http://balance: start_mining Error: Failed to invoke rpc method: HTTP status: 2 wallet F7WX7v http://balance:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/138, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tU1EFyqe1fqgE0w1iMyZuyqJmsJNks5tJzZZgaJpZM4RcHAP .

RulerOfTheWorld commented 6 years ago

Sounds like a good idea. What does that mean and how do i open the port for mining? :)

SoraKohaku commented 6 years ago

netstat -l or something about net in terminal

On Jan 14, 2018 5:11 AM, "RulerOfTheWorld" notifications@github.com wrote:

Sounds like a good idea. What does that mean and how do i open the port for mining?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/138#issuecomment-357463997, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tQayADtZC_CafyX0xH0tl4q9zg2tks5tKQ34gaJpZM4RcHAP .

BengtGoran commented 6 years ago

It says that the port is not previously used, starting the wallets adds two 127.0.0.1:myp2p-port Still how do i open the port then? Kinda feels like the firewall wont block local connections

SoraKohaku commented 6 years ago

are you open port. did you have router open?

On Jan 16, 2018 7:29 PM, "BengtGoran" notifications@github.com wrote:

It says that the port is not previously used, starting the wallets adds two 127.0.0.1:myp2p-port Still how do i open the port then? Kinda feels like the firewall wont block local connections

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/138#issuecomment-357918190, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tWlpM7VH_0ojXbKPp3K8WECxIUASks5tLHoDgaJpZM4RcHAP .

BengtGoran commented 6 years ago

i found the error, it was my amazon machine that has an outer as well as inner firewall, and i just open the ports in the outer. how fucking necessary to have 2. well, i guess you pay for the cpu usage on the inner one. good source of hidden income. and i am to much of a girl to shut off the inner one, "it might be usefull" :) thanks for the help

SoraKohaku commented 6 years ago

that why. i still ask why dev put 2 seed lol. 1 server not cheap today~

On Jan 16, 2018 11:41 PM, "BengtGoran" notifications@github.com wrote:

i found the error, it was my amazon machine that has an outer as well as inner firewall, and i just open the ports in the outer. how fucking necessary to have 2. well, i guess you pay for the cpu usage on the inner one. good source of hidden income. and i am to much of a girl to shut off the inner one, "it might be usefull" :) thanks for the help

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/138#issuecomment-357980966, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tXwjjcYY7zW7xdOEd9PoZjPw-wHxks5tLLU1gaJpZM4RcHAP .

BengtGoran commented 6 years ago

i thought the CryptoNote framework required connection to at least 2 seeds to function? Hmm.. i guess your local daemon counts as one. Well, its sort of free on amazon unless you use it alot, so for debugging atleast it would be free.

SoraKohaku commented 6 years ago

i will check too about gcc7/arch problem. stuck on blockexplorer.h when free time i will fixed it~

On Jan 17, 2018 10:23 PM, "BengtGoran" notifications@github.com wrote:

i thought the CryptoNote framework required connection to at least 2 seeds to function? Hmm.. i guess your local daemon counts as one. Well, its sort of free on amazon unless you use it alot, so for debugging atleast it would be free.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/138#issuecomment-358302767, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51te1rE7jAhFi1ZzGO94V2SqhdBwQFks5tLfRQgaJpZM4RcHAP .

BengtGoran commented 6 years ago

are you good at unix? I am having a hard problem with my cryptonote, on ubuntu (with boost 1.58 as os dependency, 1.55 installed) it creates releases for me with a os-ref to 1.58. On my deployment servers i have ubuntu with os dependencies (which i cant change) on boost 1.6+ or something, with 1.55 installed. After deploying it of course cant find the 1.58 ref. I can imagine this is one of the most common issues, and i am not skilled enough with opensource/unix to create snaps and so on to go around it. Right now i had to do the ugly solution of building on unix with cross-compilation to windows, deploying them on windows servers, and making sure it cant find boost1.55 and forcing it to use a later version. Anyway, it looks like it works, but i dont trust it yet. Yes, my question was if you know how to fix this sort of issues? :) Boost is an asshole to compile, thank god i choose to become a .net programmer and dont have to deal with these sort of issues at working hours atleast :)

SoraKohaku commented 6 years ago

fixed on my repo used 1.55, 1.58 still on build since that need change some. later try on debian strecth

On Jan 18, 2018 8:39 PM, "BengtGoran" notifications@github.com wrote:

are you good at unix? I am having a hard problem with my cryptonote, on ubuntu (with boost 1.58 as os dependency, 1.55 installed) it creates releases for me with a os-ref to 1.58. On my deployment servers i have ubuntu with os dependencies (which i cant change) on boost 1.6+ or something, with 1.55 installed. After deploying it of course cant find the 1.58 ref. I can imagine this is one of the most common issues, and i am not skilled enough with opensource/unix to create snaps and so on to go around it. Right now i had to do the ugly solution of building on unix with cross-compilation to windows, deploying them on windows servers, and making sure it cant find boost1.55 and forcing it to use a later version. Anyway, it looks like it works, but i dont trust it yet. Yes, my question was if you know how to fix this sort of issues? :) Boost is an asshole to compile, thank god i choose to become a .net programmer and dont have to deal with these sort of issues at working hours atleast :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptonotefoundation/cryptonote/issues/138#issuecomment-358621743, or mute the thread https://github.com/notifications/unsubscribe-auth/AK51tZwhnp3gNihJSIgW9OuMf4lyf7mLks5tLy1igaJpZM4RcHAP .

jaidetura55 commented 4 years ago

Error: Failed to invoke rpc method: HTTP status: 2 I use pkstat on node sever and detect incoming connection from my laptop user wallet.User wallet need to specify --seed-node but in /src already stated p2p & rpc port and ip. Cannot mining form local laptop and on node server

04:45:45.335164 INFO Blockchain initialized. last block: 0, d2823.h3.m45.s45 time ago, current difficulty: 1 04:49:10.087405 INFO xadocoin v1.1.1.1() 04:49:10.087562 INFO Module folder: ./xadocoind 04:49:10.088134 INFO Initializing p2p server... 04:49:10.088295 INFO Binding on 0.0.0.0:17302 04:49:10.088373 INFO Net service binded on 0.0.0.0:17302 04:49:10.088428 INFO Attempting to add IGD port mapping. 04:49:14.092524 INFO No IGD was found. 04:49:14.092693 INFO P2p server initialized OK 04:49:14.092874 INFO Initializing core... 04:49:14.093038 INFO Loading blockchain... 04:49:14.093154 INFO - loading block index... 04:49:14.093207 INFO - loading transaction map... 04:49:14.093260 INFO - loading spent keys... 04:49:14.093300 INFO - loading outputs... 04:49:14.093343 INFO - loading multi-signature outputs... 04:49:14.093382 INFO Serialization time: 0ms 04:49:14.093428 INFO Loading blockchain indices for BlockchainExplorer... 04:49:14.093495 INFO - loading paymentID index... 04:49:14.093538 INFO - loading timestamp index... 04:49:14.093578 INFO - loading generated transactions index... 04:49:14.093646 INFO Blockchain initialized. last block: 0, d2823.h3.m49.s14 time ago, current difficulty: 1 04:49:14.093693 INFO Core initialized OK 04:49:14.093804 INFO Starting core rpc server on address 127.0.0.1:17303 04:49:14.093890 INFO Core rpc server started ok 04:49:14.093939 INFO Starting p2p net loop... 04:49:14.093979 INFO Starting node_server 04:49:25.958871 INFO 04:49:25.958871 INFO ** 04:49:25.958871 INFO The daemon will start synchronizing with the network. It may take up to several hours. 04:49:25.958871 INFO 04:49:25.958871 INFO You can set the level of process detailization through "set_log " command, where is between 0 (no details) and 4 (very verbose). 04:49:25.958871 INFO 04:49:25.958871 INFO Use "help" command to see the list of available commands. 04:49:25.958871 INFO 04:49:25.958871 INFO Note: in case you need to interrupt the process, use "exit" command. Otherwise, the current progress won't be saved. 04:49:25.958871 INFO **

My gui wallet also the same result after open walllet.bin I mining on node server using local host 127.0.0.1:17302 and produce coin and on gui wallet shown connected to peers.After send few amount of coin to my laptop user account nothing transfer. Do anyone can help me