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

failed to get output distribution #3581

Closed
m9ra opened this issue Apr 7, 2018 · 15 comments
Closed

failed to get output distribution #3581

m9ra opened this issue Apr 7, 2018 · 15 comments
Labels

Comments

@m9ra
Copy link

m9ra commented Apr 7, 2018

After upgrading my monero tools to reflect PoW change, I'm getting the following errors anytime I try to make a transfer through monero-wallet-rpc.

<Response [200]>
{
    "jsonrpc": "2.0",
    "id": "0",
    "error": {
        "message": "failed to get output distribution",
        "code": -4
    }
}

and in the wallet I can see this:

2018-04-07 22:36:54.664 [RPC0] ERROR wallet.wallet2 src/wallet/wallet2.cpp:5836 segregation_fork_height - d.start_height >= d.distribution.size(). THROW EXCEPTION: error::get_output_distribution
2018-04-07 22:36:54.664 [RPC0] WARN net.http src/wallet/wallet_errors.h:794 /root/monero_v2/monero/src/wallet/wallet2.cpp:5836:N5tools5error23get_output_distributionE: failed to get output distribution, request = Distribution size too small

I tried to renew blockchain (deleting ~/.bitmonero and importing it from scratch) and the same error remains.

/opt/monero/monero-wallet-rpc --version
Monero 'Lithium Luna' (v0.12.0.0-master-8361d60)

@kotehok
Copy link

kotehok commented Apr 8, 2018

I have the same error after hard fork. Completely impossible to send any transaction. Please help.

@moneromooo-monero
Copy link
Collaborator

Try #3584

@m9ra
Copy link
Author

m9ra commented Apr 9, 2018

Thank you, I accepted the pull request locally and after recompilation, the transfers are working.

@egonson
Copy link

egonson commented Apr 10, 2018

I have the same error too. ("failed to get output distribution")
Is #3584 the official solution?
If someone does not fetch is the error normal?
Why is that code commited to master branch?

@moneromooo-monero
Copy link
Collaborator

It is a good solution. We have no offices. I don't understand the third question. It is not committed to master yet.

@BKdilse
Copy link

BKdilse commented Apr 13, 2018

I'm also getting this today, on my 1st block. Do we have an official solution? Or and ETA on release?

@moneromooo-monero
Copy link
Collaborator

Did you try 3584, and did it work ?

@BKdilse
Copy link

BKdilse commented Apr 13, 2018

Not really good with these merges and pulls, still learning. Do I have to manually make the change to the file on my server, or just do a fresh download?

EDIT: Can see, it's not in the latest master, have downloaded it, edited, compiling.

@BKdilse
Copy link

BKdilse commented Apr 13, 2018

Can confirm this change fixes my issue too.

@moneromooo-monero
Copy link
Collaborator

Great, thanks for testing.

@shnetinka
Copy link

How can I get the build this is in? I can't send anything from my wallet. I have the release build v12 on Ubuntu 16.04. I am not sure how to use git to just pull in this PR

@scoobybejesus
Copy link
Contributor

@shnetinka I just did this. In the monero dir, git pull origin pull/3584/head. Then make.

@moneromooo-monero I had this problem (with monero-wallet-cli 2 hours ago (while it tried to communicate with my local node, on the same box, no less), and after building with #3584 I no longer have the problem.

@BKdilse
Copy link

BKdilse commented Apr 18, 2018

This may or may not be related, but I wanted to mention it in case this change caused the issue I had. Full details in: Snipa22/nodejs-pool#397

1st block paid out fine, after I made this manual change (adding * 1000) to the timeout.
2nd block paid out, but would not update the tables in SQL.

I did increase limits in Ubuntu and MySQL which could have resolved it, but I saw everything working once I updated to the latest Daemon, which does not have this manual fix in (which I initially tested working).

Please let me know your thoughts.

@shnetinka
Copy link

@scoobybejesus thanks. That worked. I thought that was how to do it but I think I had a master in the path somewhere which was obviously wrong.

@moneromooo-monero - updated yesterday and the wallet appears to be working well. Thanks!

@moneromooo-monero
Copy link
Collaborator

+resolved

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

No branches or pull requests

8 participants