-
Notifications
You must be signed in to change notification settings - Fork 992
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
grin-wallet to node communication error because of wrongly created paths in grin-wallet.toml when using the Top Level Directory option. #3803
Comments
Beware phishing attempt above, deleted and reported |
Can you provide the build steps so we can try to get the logs too? |
This is not a specific build, just the normal Windows release. Just to be certain I retried any combination of local builds of grin node and grin-wallet and created a new wallet directory to be certain there was no form of corruption. |
Ok, just noticed I did something stupid, I had Grin++ running in the back and it interferes with the IP binding.
Still getting some errors, but at least a balance is shown. Will restart my machine to start clean from there |
Ok, this after making sure I am not running multiple instances or Grin++ which interfers since it uses the same IP and ports and grin node. Still getting errors and failing to verify against the chain:
When I look at node log, there is nothing much interesting there, the wallet log basically repeats the errors it reported back via the TUI:
|
Does your node is running and up to date ? |
Yes, the node is fully synced and running (status is running). At moment I am using both wallet and node software build specifically on/for my machine. Everything is clean, no changes to any of the default settings, antivirus turned of to also rule out that option, |
Ok, I did run it again setting log level to "Trace" for both node and wallet, perhaps the output is useful for you.
|
Open |
Did the http server started in log section of your grin-node ? You should see something like this :
|
@aglkm the path to the API secret appears to be correct: @martinthonon The HTTP node listerner is started like normal
|
Are you sure that the API secrets files are really exists in "C:\grin\contract_branch/wallet4_main" directory? I don't know what is the default location on Windows, but on Linux that's home directory: "/home/user/.grin/main/" |
I tried again today using the default wallet directory, so not specifying the top level directory for the wallet using Therefore I specifically looked at what happened when I did set the top level directory, since there must be a mistake there and indeed there is. It has to do with directories and slashes. When using the command
When I would for example specify the directory as
Using longer paths obviously also creates wrong settings:
Solution: I will update the description of the error to match the problem. What surprised me is that the path is correctly used to create the wallet directory when running for example |
The root cause of the issue is not slashes, Windows should understand both types correctly. The reason is that your API secrets are located in the default node's path, but when you are creating a wallet in non default location it will also point non-default paths to the secrets. I opened an issue some time ago, when encountered the same: mimblewimble/grin-wallet#728 |
Actually, a new secret is created correctly where you would expect it when using th In both cases it will create the wallet directory So I think the issue is that rust can handle both forward and backward slashes, but not mixed case. Also in the toml file it will use double slashes for whatever reason. So the solution is to just substitute and use only one kind of slashes, '/' '' should be replaced with "\ " and triple slashes "\ \ " that might be created by such a replacement can again be again substituted to "\ ". In that way no matter what the user tries, it will work and it will be uniform use of slashes UPDATE: @aglkm I get what you means |
I reopened the issue, since it is not solved, only the problem identified. |
There are two thing I can do:
I am inclined to go for option 2) to keep the dependencies minimal, what do you think @yeastplume as well as others who have an opinion on this |
Running latest node (5.4.0. alpha) and wallet (5.4.0 alpha1). I setup a wallet for both testnet or mainnet, results when running 'info' command.
grin-wallet.exe -t wallet1/ info
See log below, results are the same for testnet and mainnet wallets. I always had issues with grin node and wallet on Windows although this is on a new clean machine. I will test if it also happens on Linux.
The text was updated successfully, but these errors were encountered: