zecwallet icon indicating copy to clipboard operation
zecwallet copied to clipboard

Zecwallet full node 1.8.0-beta 2 Disconnected with error: "account 0 has not been generated by z_getnewaccount"

Open Flint911jr opened this issue 2 years ago • 19 comments

I downloaded the new version of the program for Windows "Zecwallet.Fullnode.1.8.0-beta2.msi" and ran it. Then, as indicated in the instructions, I first launched zcashd.exe with administrator rights, waited for full synchronization and launched Zecwallet Fullnode.exe with administrator rights. At the same time, Zecwallet Fullnode does not fully synchronize with zcasd and gives an error, no matter how many times I run Zecwallet Fullnode.exe. Synchronization always stays at 99.9%. image image image The wallet is not working, I can't use it. What am I doing wrong? Can I use the old version of Zecwallet.Fullnode.1.7.8.msi? Will she work or not?

Flint911jr avatar Jul 07 '22 03:07 Flint911jr

You can use an older version of Zecwallet Fullnode, no problem.

The issue you're having is that since zcashd v5.0.0, you also need to run the `zcashd-wallet-tool.exe" first to create and backup your seed phrase, which I think you have not yet done. This is included in the distribution. Once you run this, it will create your wallet and Zecwallet will work normally.

I'll work on improving the error messages

adityapk00 avatar Jul 07 '22 14:07 adityapk00

I unfortunately can't reproduce this. Can you give me any more information?

  • What is the error you are getting?
  • Can you run ./zcash-cli.exe and get results? Like ./zcash-cli.exe z_listunspent?
  • Are there any clues in the debug.log or Javascript console?

adityapk00 avatar Jul 08 '22 03:07 adityapk00

Now I'm running the old version of Zecwallet.Fullnode.1.7.8. I set rescan=1 in the .conf configuration file. After the process has ended, synchronization remains at 99.9%. That is, the old wallet does not work. Maybe I have something with the wallet, so the beta version does not work either?

I'll try installing the beta and running ./zcash-cli.exe z_listunspent tomorrow. I will follow all your other instructions as well. It's a pity the time spent on synchronization in version 1.7.8.

Zecwallet Fullnode 1 7 8

Version 1.7.8 has been in this state for several hours now. If you close it now, then the synchronization will start from 99.5%, that is, the downloaded blocks, as it were, are not taken into account.

Flint911jr avatar Jul 08 '22 10:07 Flint911jr

Is it possible that your wallet file is corrupted? Maybe try backing up your current wallet, creating a new one, and see if that works?

adityapk00 avatar Jul 08 '22 14:07 adityapk00

How to backup your wallet? Just copy the wallet.dat file? How to make a new wallet?

Flint911jr avatar Jul 08 '22 17:07 Flint911jr

I am not sure if it's the same topic, but I can interact with the wallet using zcash-cli.exe while using ZecWallet I get No accounts. Please run 'zcashd-wallet-tool' to create your wallet first....

I have run zcashd-wallet-tool.exe with

migration=1 exportdir=:<some_dir>

I can't see anything peculiar in debug.log. I don't remember if there were something extra I could switch on to get more information. I'm can try "stuff", of course, to test if someone has a hypothesis. Running ZCashd from a command line is a bit cumbersome. :)

Example of interaction:

zcash-cli.exe getwalletinfo { "walletversion": 60000, "balance": x.xx, "unconfirmed_balance": x.xx, "immature_balance": x.xx, "shielded_balance": "x.xx", "shielded_unconfirmed_balance": "x.xx",
...

As an aside there's

Error: Error invoking remote method 'readfile_IPC': Error: ENOENT: no such file or directory, open 'C:\Users<userdata>\AppData\Roaming\Zcash\AddressBook.json'

as an error message in the WebView console.

veikkoeeva avatar Jul 12 '22 11:07 veikkoeeva

@veikkoeeva You need to run the zcashd-wallet-tool.exe first, to initialize the wallet and seed phrase. It is included in the distribution

@Flint911jr You can backup your wallet either by copying the wallet.dat file or saving the seed phrase.

adityapk00 avatar Jul 12 '22 14:07 adityapk00

@adityapk00 I did run the supplied zcashd-wallet-tool.exe, I also wrote that. :) Those parameters I quoted were supplied to zcashd which i started before I ran zcashd-wallet-tool.exe .

veikkoeeva avatar Jul 12 '22 15:07 veikkoeeva

Did zcashd-wallet-tool.exe complete? It will confirm your seed phrase if it finishes.

You can confirm this by running zcash-cli.exe z_listaccounts

adityapk00 avatar Jul 12 '22 15:07 adityapk00

@adityapk00 It did run to completion and queried some selected words from the seed list. Now that I run zcash-cli.exe z_listaccounts I get []. So maybe there's something fishy here now.

veikkoeeva avatar Jul 12 '22 15:07 veikkoeeva

@Flint911jr You can backup your wallet either by copying the wallet.dat file or saving the seed phrase.

Yes, I did. I took the previously copied wallet.dat (it definitely works correctly) and ran version 1.7.8. Synchronization in progress.

Flint911jr avatar Jul 12 '22 16:07 Flint911jr

When launching the wallet zcash fullnode "This wallet operation is disabled while reindexing" version 1.8.1. What is it and how can I fix it? The phrase export is ready, where should it be entered to restore the wallet?

alex138038 avatar Jul 12 '22 23:07 alex138038

Little more poking (sorry, on holiday so a bit sporadic) that I get a bunch of accounts with zcash-cli listaddresses.

It may be the problem is that none of my addresses have originally been created using z_getnewaccount.

My addresses (that I use) are in categories sprout, legacy_hdseed -> sapling. I do get a bunch of addresses and information using zcash-cli walletinfo, zcash-cli z_gettotalbalance, zcashc-cli z_getbalance <address> and so on.

I just created an address using zcash-cli z_getnewaccount and it's in category mnemonic_seed -> unified when listed by zcash-cli listaddresses results. It does not have any addresses when using listaddresses.

It may be this explains some of the issues with the Wallet client.

veikkoeeva avatar Jul 13 '22 08:07 veikkoeeva

Synchronization has been going on for the third day. It's very, very slow. Version 1.7.8. image Currently block height is 1,736,075. That is, synchronization is slower than new blocks appear.

I'm afraid I won't be able to verify why the wallet was corrupted in version 1.8.0-beta2, because the sync doesn't keep up with the new blocks on the network.

I have a rather old wallet address. Could this be the issue? Problem with old addresses?

Flint911jr avatar Jul 13 '22 11:07 Flint911jr

The wallet never synced. Version 1.7.8. Yesterday was like this (last block 1736258, difference -1582) image Today it became like this: (last block 1736733, difference -1404) image Obviously, the problem is not in my wallet. In this case, Zecwallet Fullnode will sync for a week or more. How can I use my funds?

Flint911jr avatar Jul 14 '22 01:07 Flint911jr

@Flint911jr I used a first generation Intel Core i7 (on Windows 10, quite old set up) and could synchronize. This successful synchronization was/is shown in the UI (it tells "Connected" where you have that "Syncing"). (Very early on, years ago, the Windows builds had performance problems, due to cache alignment if I remember. I record here if someone is lurking there and having the same problem and thinking to explore further.)

A bit problematic is that I used zcash-cli to create a new account and an address to it and can check it using zcash-cli z_getaddressforaccount 0 but the user interface does not report anything. I have not yet checked the source code to see what's up with that.

veikkoeeva avatar Jul 14 '22 07:07 veikkoeeva

I want to share the results of my attempts to restore the wallet.

There is a fairly old computer with the following characteristics:

  1. Intel(R) Core(TM)2 Quad CPU Q9650 @ 3.00GHz
  2. RAM 8 GB
  3. SSD hard disk (on which 'datadir' is located), more than 128GB free
  4. Windows 10 Pro 21H2 with latest updates
  5. Wired Internet connection 100 Mbps
  6. Version Zecwallet Fullnode 1.8.1 (zcashd 5.1.0)

The wallet was not processed by the zcashd-wallet-tool.exe utility. The zcashd.exe process, launched using the command prompt with administrator rights, takes up about 320 MB of RAM and 25% of the CPU time.

This version 1.8.1 has been in sync for a very long time. And I assume that there will never be full synchronization. There is no reason why a good Internet connection does not synchronize, because the processor is only partially busy.

Here's an example of a process at one point in time. Here the difference is -8484. image

And here is the next day. Here the difference is -6694. image Still no sync.

Then there is a more modern computer with the following characteristics:

  1. AMD Ryzen 7 3700X 8-Core Processor 3.59 GHz
  2. 64GB RAM
  3. High speed SSD hard disk (on which 'datadir' is located), more than 128GB free
  4. Windows 10 Pro 21H2 with latest updates
  5. Wireless 4G internet connection 25Mbps
  6. Version Zecwallet Fullnode 1.8.1 (zcashd 5.1.0)

The wallet was not processed by the zcashd-wallet-tool.exe utility. The zcashd.exe process, launched through the command line with administrator rights, occupies 3521 MB of RAM and about 1% of the processor time. On this computer, zcashd synced in about 2 days with a rather poor internet connection. The figure does not show how long the synchronization took place, because. the zcashd process has been restarted. image

I could be wrong, but I think that on an old computer, zcashd simply does not work properly.

Flint911jr avatar Jul 21 '22 16:07 Flint911jr

Zecwallet Fullnode version 1.8.1 cannot be run without the zcashd process running. As it turns out, Zecwallet Fullnode 1.8.1 cannot be run with zcashd running unless there is a full sync. Otherwise, error messages appear.

Next, after waiting for synchronization on the computer (with an AMD processor), following the instructions, I tried to run zcashd.exe with the '-exportdir' parameter. And what exactly to prescribe in the parameter is a little unclear. I did this: .\zcashd.exe -exportdir=C:\Zcashd\backup. Next, zcashd-wallet-tool.exe was launched, the default file name was export20220721. Then I wrote down 24 secret phrases. A file with no extension was created in the specified directory. image

Then zcashd was restarted without the '-exportdir' option. When launched, the Zecwallet Fullnode application gives a status of "synchronized" and immediately gives an error that the account has not been created. Next was this: image As you can see, the account and wallet have been created.

When running the Fullnode app, I get a blank screen with no wallet. image

It looks like nothing else is going on here other than synchronization. image

How to work with a wallet?

Flint911jr avatar Jul 21 '22 17:07 Flint911jr

Is this the developer version of the wallet? Ordinary users can't use it? After all, you need to know certain commands to work with the command line, and the Zecwallet Fullnode GUI does not work.

Flint911jr avatar Jul 22 '22 02:07 Flint911jr