cryptiumlabs / backerei

Automated reward payment & account management for Tezos bakers.
https://cryptium.ch/networks/tezos
GNU General Public License v3.0
49 stars 11 forks source link

backerei: fdReadBuf: hardware fault (Input/output error) #35

Open jrhite opened 5 years ago

jrhite commented 5 years ago

backerei fails with the error below. Note that when I run the tezos-client command by hand it works fine. Very unfamiliar with the Haskell dev environment and not sure how to proceed.

This looks related to #18

Any guiding tips would be much appreciated. Thanks!

Running '/home/bakerei_payer/tezos/tezos-client -c /home/bakerei_payer/.tezos-client/config sign bytes 0x03906ce8371eecd855b6f01459f1a2d665590d5d68c41e430f48f14d0819db1e230801173789aca56db5ab1e1de3fba65c6d789ac9ad92008c0b03bc5000c691ac140161263367ed9379b4eb8c757d9c2fd2ff4e3d799f00000801173789aca56db5ab1e1de3fba65c6d789ac9ad92008c0b04bc5000ab6101a919c11272c753205af2f39920b2b521b36f72f20000 for bakerei_payer' in a pty
backerei: fdReadBuf: hardware fault (Input/output error)

Here's some system info if it helps:

OS:
    Ubuntu 18.04.2 LTS
    4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Stack Version 1.9.3

backerei: master d8c443876
dawsy8888 commented 5 years ago

Im getting the same error

cwgoes commented 5 years ago

Are you running with a local signer or a remote signer?

The signing code in backerei may not work with the latter, it's particular to a certain CLI interaction.

dawsy8888 commented 5 years ago

Hello

We use an unencrypted local account for payments and a remote signer for the baking account.

Cheers Steve

On Fri, 19 Apr. 2019, 8:03 am Christopher Goes, notifications@github.com wrote:

Are you running with a local signer or a remote signer?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cryptiumlabs/backerei/issues/35#issuecomment-484704871, or mute the thread https://github.com/notifications/unsubscribe-auth/AGYFMK4GYO6V7GGKHJ4ZHO3PRDV3TANCNFSM4HECQMKA .

jrhite commented 5 years ago

Yes, I'm running against a remote signer.

cwgoes commented 5 years ago

Ok, backerei probably needs a fix to work with remote signers. Try editing the code here, which is particular to the way tezos-client reads and writes from the terminal. Glad to accept a PR, perhaps add it as an option to the configuration file.

dawsy8888 commented 5 years ago

Thanks - not a coder myself and we are using a local address to sign. It appears that "' in a pty" is being appended to the sign operation, and this is causing the error. When I cut and paste without "' in a pty " the command is successfull

cwgoes commented 5 years ago

I don't think that is being appended, that's just what backerei prints.

Have you had any success? Unfortunately I can't test this easily locally.