-
Notifications
You must be signed in to change notification settings - Fork 119
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
Zebra validation can be very slow on macOS, and cause very slow syncs #3042
Comments
Thank you for the report. Could you provide the logs for a longer time period? (e.g. longer than one hour). It's also possible to make the log more verbose by adding something like this to the config file:
|
How long is enough? 3-4 hours or should I leave it to run overnight? |
3-4 hours sounds good! |
Log is huge -> https://www.dropbox.com/s/bhjx3v0xd6k36t0/debug.log.zip?dl=0 Enjoy :) |
In these logs, the tip isn't actually stuck. But syncing is very slow:
We can also see that syncing is slow because the logs have repeated timeout errors:
So you might not have enough CPU, RAM, or bandwidth to run Zebra in debug mode, with the default configuration. @rex4539 can you try: Release buildCan you rebuild Zebra in release mode? The README has instructions for installing a release build of Zebra: Since you're using a custom build command:
Reduce Zebra resource usageIf that doesn't work, or you want to run a [sync]
max_concurrent_block_requests = 25
lookahead_limit = 800 Note for Zebra developersWe should add these instructions to the README or a troubleshooting doc. |
FYI
|
@rex4539 please use I've edited my comment above. |
We really do recommend you use a release build. It's the build we support and document in the README. |
Also, enabling debug logging will slow down Zebra, and make it harder for it to sync. So please turn off debug logging when you're not using it. |
Hey team! Please add your planning poker estimate with ZenHub @conradoplg @dconnolly @jvff @oxarbitrage @teor2345 @upbqdn |
Just to note than none of the suggestions helped. The sync is as slow as before. I'm still unable to sync. I don't understand why it's so hard to sync with zebra. zcashd syncs fast for me. |
When you were using the debug build, the logs showed that your machine was verifying blocks really slowly. That's not surprising, because debug builds are not optimised. Here are some more things you can try:
In [sync]
max_concurrent_block_requests = 1
lookahead_limit = 800
|
We think this will be solved by upcoming fixes, or configuration changes, or a more powerful machine or network. |
Bug Report
version: 1.0.0-beta.0+26.g62bfa15
Zcash network: Mainnet
state version: 10
branch: main
git commit: 62bfa15
commit timestamp: 2021-11-08T22:33:12+00:00
target triple: x86_64-apple-darwin
build profile: debug
It appears the sync is stuck and has entered in a loop. I have tried leaving it sync overnight and still nothing, same loop.
The text was updated successfully, but these errors were encountered: