Skip to content
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

Deprecated version? #6944

Open
sourcesolver opened this issue Sep 4, 2024 · 12 comments
Open

Deprecated version? #6944

sourcesolver opened this issue Sep 4, 2024 · 12 comments

Comments

@sourcesolver
Copy link

I followed these instructions:

https://zcash.readthedocs.io/en/latest/rtd_pages/Linux-misc-build.html

After about a month, I think my zcash finally synced. I can't know for sure though because now, when I do 'zcash-cli getblockchaininfo' it does nothing. In the zcash log I get the following:

Error: This version has been deprecated as of block height 2606000. You should upgrade to the latest version of Zcash. to the latest version of Zcash. Error: This version has been deprecated as of block height 2606000. You should upgrade to the latest version of Zcash. libc++abi: terminating due to uncaught exception of type boost::filesystem::filesystem_error: boost::filesystem::remove: Permission denied [system:13]: "/usr/local/zcash/.zcash/database"

Suggestions?

@str4d
Copy link
Contributor

str4d commented Sep 6, 2024

You need to upgrade to the latest released version of zcashd, which is 5.10.0.

@metalworker2
Copy link

metalworker2 commented Sep 8, 2024

@str4d I followed the instructions here to install zcashd on Linux. The version that is installed is 5.9.0. When I run sudo apt-get update && sudo apt-get upgrade zcashd is still 5.9.0. How do I upgrade to 5.10.0?

Edit: I'm on debian bookworm

@y4ssi
Copy link
Collaborator

y4ssi commented Sep 8, 2024

@str4d I followed the instructions here to install zcashd on Linux. The version that is installed is 5.9.0. When I run sudo apt-get update && sudo apt-get upgrade zcashd is still 5.9.0. How do I upgrade to 5.10.0?

Edit: I'm on debian bookworm

@metalworker2 Could you please run: apt update and then apt show zcash and paste here the output of the last command ?

@sourcesolver
Copy link
Author

Hey, I just wanted to leave a comment and say that I got my lightwallet GUI to work. Once it finished syncing, which took ages, it now shows the number of zec that I have. Thanks for the help!

My new problem is how I can hook up a pricing service to the zcash/jightwallet wallet, to see the value in USD?? I have a USD label showing in the wallet, but there's no price next to it...

@bolexator
Copy link

bolexator commented Sep 20, 2024

@metalworker2 Could you please run: apt update and then apt show zcash and paste here the output of the last command ?

I am also trying to upgrade, but without success. The version still remains 5.8.0

Package: zcash
Version: 5.8.0
Status: install ok installed
Priority: optional
Section: utils
Maintainer: Electric Coin Company [email protected]
Installed-Size: 142 MB
Depends: libc6 (>= 2.28), libgcc1 (>= 1:4.2)
Homepage: https://z.cash
Download-Size: неизвестно
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: Zcash libraries and tools
Based on Bitcoin's code, it intends to offer a far higher standard
of privacy and anonymity through a sophisticiated zero-knowledge
proving scheme which preserves confidentiality of transaction metadata.
Think of it as HTTPS for money.
This package provides the daemon, zcashd, and the CLI tool,
zcash-cli, to interact with the daemon.

@metalworker2
Copy link

@y4ssi result of apt show zcash:

apt show zcash
Package: zcash
Version: 5.10.0
Priority: optional
Section: utils
Maintainer: Electric Coin Company <[email protected]>
Installed-Size: 141 MB
Depends: libc6 (>= 2.36), libgcc-s1 (>= 4.2)
Homepage: https://z.cash
Download-Size: 113 MB
APT-Manual-Installed: yes
APT-Sources: https://apt.z.cash bookworm/main amd64 Packages
Description: Zcash is HTTPS for money
 Initially based on Bitcoin's design, Zcash has been developed from
 the Zerocash protocol to offer a far higher standard of privacy and
 anonymity. It uses a sophisticated zero-knowledge proving scheme to
 preserve confidentiality and hide the connections between shielded
 transactions.
 This package provides the daemon, zcashd, and a CLI tool, zcash-cli,
 to interact with the daemon.

N: There are 2 additional records. Please use the '-a' switch to see them.

There is some strange behavior here. When I run sudo apt install --only-upgrade zcash it returns:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zcash is already the newest version (5.10.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Then when I run zcashd it still says:

Thank you for running a mainnet zcashd v5.9.0 node!
You're helping to strengthen the network and contributing to a social good :)

In order to ensure you are adequately protecting your privacy when using Zcash,
please see <https://z.cash/support/security/>.

Since starting this node 59 seconds ago:
- You have validated no transactions.

Messages:
- Error: This version has been deprecated as of block height 2606000. You should
  upgrade to the latest version of Zcash.

Do you know how I can get it to stop running 5.9.0 and run 5.10.0 instead?

@y4ssi
Copy link
Collaborator

y4ssi commented Sep 25, 2024

@y4ssi result of apt show zcash:

apt show zcash
Package: zcash
Version: 5.10.0
Priority: optional
Section: utils
Maintainer: Electric Coin Company <[email protected]>
Installed-Size: 141 MB
Depends: libc6 (>= 2.36), libgcc-s1 (>= 4.2)
Homepage: https://z.cash
Download-Size: 113 MB
APT-Manual-Installed: yes
APT-Sources: https://apt.z.cash bookworm/main amd64 Packages
Description: Zcash is HTTPS for money
 Initially based on Bitcoin's design, Zcash has been developed from
 the Zerocash protocol to offer a far higher standard of privacy and
 anonymity. It uses a sophisticated zero-knowledge proving scheme to
 preserve confidentiality and hide the connections between shielded
 transactions.
 This package provides the daemon, zcashd, and a CLI tool, zcash-cli,
 to interact with the daemon.

N: There are 2 additional records. Please use the '-a' switch to see them.

There is some strange behavior here. When I run sudo apt install --only-upgrade zcash it returns:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
zcash is already the newest version (5.10.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Then when I run zcashd it still says:

Thank you for running a mainnet zcashd v5.9.0 node!
You're helping to strengthen the network and contributing to a social good :)

In order to ensure you are adequately protecting your privacy when using Zcash,
please see <https://z.cash/support/security/>.

Since starting this node 59 seconds ago:
- You have validated no transactions.

Messages:
- Error: This version has been deprecated as of block height 2606000. You should
  upgrade to the latest version of Zcash.

Do you know how I can get it to stop running 5.9.0 and run 5.10.0 instead?

Try running this:

$ dpkg -L zcash

You should get something like this:

/.
/usr
/usr/bin
/usr/bin/zcash-cli
/usr/bin/zcash-fetch-params
/usr/bin/zcashd
/usr/bin/zcashd-wallet-tool
/usr/share
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/zcash-cli
/usr/share/bash-completion/completions/zcashd
/usr/share/doc
/usr/share/doc/zcash
/usr/share/doc/zcash/changelog.Debian.gz
/usr/share/doc/zcash/changelog.gz
/usr/share/doc/zcash/copyright
/usr/share/doc/zcash/examples
/usr/share/doc/zcash/examples/zcash.conf
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/zcash-cli.1.gz
/usr/share/man/man1/zcash-fetch-params.1.gz
/usr/share/man/man1/zcashd-wallet-tool.1.gz
/usr/share/man/man1/zcashd.1.gz

Then, identify the zcashd binary, in this example: /usr/bin/zcashd, and run this in your console:

/usr/bin/zcashd --version

It should say v5.10.0. If you want, paste the output here so we can continue debugging.

@y4ssi
Copy link
Collaborator

y4ssi commented Sep 25, 2024

@metalworker2 Could you please run: apt update and then apt show zcash and paste here the output of the last command ?

I am also trying to upgrade, but without success. The version still remains 5.8.0

Package: zcash Version: 5.8.0 Status: install ok installed Priority: optional Section: utils Maintainer: Electric Coin Company [email protected] Installed-Size: 142 MB Depends: libc6 (>= 2.28), libgcc1 (>= 1:4.2) Homepage: https://z.cash Download-Size: неизвестно APT-Manual-Installed: yes APT-Sources: /var/lib/dpkg/status Description: Zcash libraries and tools Based on Bitcoin's code, it intends to offer a far higher standard of privacy and anonymity through a sophisticiated zero-knowledge proving scheme which preserves confidentiality of transaction metadata. Think of it as HTTPS for money. This package provides the daemon, zcashd, and the CLI tool, zcash-cli, to interact with the daemon.

Here is the translation:


Try running this:

apt-cache policy

With that, you should see all the repositories configured on your system. If you're using Debian Bookworm, you should get something like this:

 500 https://apt.z.cash bookworm/main amd64 Packages
     release o=. bookworm,a=bookworm,n=bookworm,l=. bookworm,c=main,b=amd64

In the case of Bullseye:

 500 https://apt.z.cash bullseye/main amd64 Packages
     release o=. bullseye,a=bullseye,n=bullseye,l=. bullseye,c=main,b=amd64

If Buster appears, you should remove it because we deprecated it.

Once you manage to identify and fix the repositories (you can use this as a guide: https://zcash.readthedocs.io/en/latest/rtd_pages/install_debian_bin_packages.html),

you should run apt update and then apt upgrade zcash.

@daira
Copy link
Contributor

daira commented Sep 25, 2024

What are the outputs of the following two commands?

which zcashd
dpkg -S `which zcashd`

@bolexator
Copy link

bolexator commented Sep 26, 2024

Try running this:
apt-cache policy

I have Ubuntu, however, there is not a line about zcash. So, no repository is connected?

UPD: Everything worked. After fixing the repository, the zcash update came along with other OS updates. Thank you.

@metalworker2
Copy link

metalworker2 commented Oct 20, 2024

@y4ssi @daira

zcashd --version
Zcash Daemon version v5.9.0
/usr/bin/zcashd --version
Zcash Daemon version v5.10.0
which zcashd
/usr/local/bin/zcashd
dpkg -S `which zcashd`
dpkg-query: no path found matching pattern /usr/local/bin/zcashd
/usr/local/bin/zcashd --version
Zcash Daemon version v5.9.0

@y4ssi
Copy link
Collaborator

y4ssi commented Oct 20, 2024

@y4ssi @daira

zcashd --version
Zcash Daemon version v5.9.0
/usr/bin/zcashd --version
Zcash Daemon version v5.10.0
which zcashd
/usr/local/bin/zcashd
dpkg -S `which zcashd`
dpkg-query: no path found matching pattern /usr/local/bin/zcashd
/usr/local/bin/zcashd --version
Zcash Daemon version v5.9.0

The APT system is working fine on your system based on the outputs of your commands. What I can deduce is that you have a different installation of zcashd located in /usr/local/bin/zcashd. I'm not sure if you ever installed it from source code or how your system is configured, but your $PATH variable is likely pointing to /usr/local/bin first, and possibly also to /usr/bin. It's very common to have something like this:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

As a result, there's a priority in the order, and it's using the binary from /usr/local/bin/zcashd, which is not the one from the Debian package. That's where the issue lies—it's something in your environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants