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 hangs forever #18

Closed chiptus closed 5 years ago

chiptus commented 5 years ago

After fixing the yaml and revealing our public key, now the client hangs forever without sending any rewards.

cwgoes commented 5 years ago

Which command did you run - have you checked that tezos-client can sign & send transactions?

chiptus commented 5 years ago

yes, just did a tezos-client transfer and it worked. backerei shows Running "tezos-client ... sign bytes ... for bakepay" in a pty, but stays there forever

cwgoes commented 5 years ago

Try running the command manually and see if tezos-client signs the transaction successfully.

chiptus commented 5 years ago

i tried and it did sign it successfully, no errors from tezos-client

chiptus commented 5 years ago

it signs successfully, but when I try to decode it on https://kukai.app/offline-signing it didn't work. I guess there's something wrong with the bytes it tries to sign. where can we chat so I can send you the exact output without exposing it to public? are you on obisidian's bakers slack?

issie81 commented 5 years ago

i think i have the same running no-dry run gives me

xx@payment:~/tezos$ backerei payout --no-dry-run Enter source account password: Total payouts: 0.191056, payout account balance: xx For cycle 64 delegator xx should be paid 0.191056 XTZ Running '/home/xx/tezos/tezos-client -c /home/xx/.tezos-client/config sign bytes 0x031e3cf235638312719aff8222a1835e3629656642896b3f213a4ac0f168c2247e080000571bd249326124a9b101eb101b39515e8b356fdb009f8f35f85500d0d40b01fe0be860211931133e81111a25ed21a82a9d09c90000 for xx' in a pty

here it stays forever what to do?

UPDATE: running it manual signs the transaction Also fee in yaml file is set like fee:

do i need to place like a 0?

cwgoes commented 5 years ago

@chiptus Did you test running the sign command manually? backerei just produces whatever signature output tezos-client would produce. You shouldn't need to show me the exact output.

@issie81 I answered here - https://github.com/cryptiumlabs/backerei/issues/27#issuecomment-457960275.

issie81 commented 5 years ago

chiptus are you running vanity address? is there a pass set.. i did have same did (had account without pass, vanity) made a new address (normal) and with pass after that all went good

chiptus commented 5 years ago

running the sign command manually produces a string successfully. But trying to decode it using something like https://kukai.app/offline-signing failed.

cwgoes commented 5 years ago

Hmm, the Tezos client & that webapp might pad the signed string differently.

I'm pretty sure the signature produced by backerei is correct for the purpose of signing transactions. Signature format is probably not related to backerei hanging - is that still happening? The terminal code used to call tezos-client might be a bit finicky - are you running on Linux in a standard terminal?

chiptus commented 5 years ago

osx, terminal

cwgoes commented 5 years ago

Possibly the code which backerei uses to interact with tezos-client through a virtual pty isn't OSX compatible.

Can you possibly try on Linux?

Otherwise you could play around with the sign function at the bottom of app/Payout.hs.

chiptus commented 5 years ago

Thanks for the answer, I will have a look at both.

cwgoes commented 5 years ago

Any luck?

cwgoes commented 5 years ago

Closing, but reopen if you still need help debugging.

emilnygaard commented 5 years ago

I'm seeing the same thing. Sometime last week, backerei just stopped doing the automatic transactions, and when trying to restart it, I see that it's stuck on Running '/home/tezos/tezos/tezos-client -c /home/tezos/.tezos-client/config sign bytes ** for **' in a pty

When running the command manually it runs, and says "Signature: ***" but the transactions are never completed.

Any ideas? :)

Update: Running on Linux

cwgoes commented 5 years ago

Are you using a remote signer, or did you change your configuration at all prior to the issue?

emilnygaard commented 5 years ago

Nothing changed before this stopped, and I don't think I'm using a remote signer. Everything is running on the node :)

emilnygaard commented 5 years ago

I've tried updating the entire node now, inlcuding backerei, and it still get's stuck on running xxx sign bytes..

cwgoes commented 5 years ago

Hmm, strange, unfortunately I don't really know where to start to help you.

Are you familiar with Haskell? Try modifying the code at the bottom of app/Payout.hs which handles signing (the sign function).