urbit / bitcoin-wallet

Repository for issue triaging and (eventually) the bitcoin wallet code
MIT License
4 stars 1 forks source link

Can't start btc-wallet after doze and fade #25

Closed finned-palmer closed 3 years ago

finned-palmer commented 3 years ago

Hi,

I had %btc-wallet running but decided to |doze %btc-wallet (to put it to sleep) and then later decided to |fade %btc-wallet because I wanted to "uninstall" it and start from scratch (I had inputted a bunch of xpubs that I no longer wanted to have in the wallet, thought it best to start fresh).

After doing this, I couldn't start the wallet again. I got this output when trying to run |start %btc-wallet:

gall: loading %btc-wallet
>   '%btc-wallet initialized'
poke failed from %btc-wallet on wire /btc-wallet-server
/app/file-server/hoon:<[127 72].[127 74]>
"url already bound to [content=[%clay path=/app/btc-wallet] public=%.n single-page=%.y]"
/app/file-server/hoon:<[127 9].[127 75]>
/app/file-server/hoon:<[126 7].[132 9]>
/app/file-server/hoon:<[125 7].[132 9]>
/app/file-server/hoon:<[123 5].[156 7]>
/app/file-server/hoon:<[122 5].[162 7]>
/app/file-server/hoon:<[121 5].[162 7]>
/app/file-server/hoon:<[111 28].[111 68]>
/app/file-server/hoon:<[110 3].[117 5]>
/app/file-server/hoon:<[109 3].[117 5]>
/app/file-server/hoon:<[108 3].[305 5]>
/app/file-server/hoon:<[107 3].[305 5]>
/sys/vane/gall/hoon:<[1.371 9].[1.371 37]>
poke failed from %btc-wallet on wire /btc-wallet-tile
/app/launch/hoon:<[153 7].[158 9]>
/app/launch/hoon:<[151 5].[184 7]>
/app/launch/hoon:<[150 5].[184 7]>
/app/launch/hoon:<[144 25].[144 60]>
/app/launch/hoon:<[143 5].[145 7]>
/app/launch/hoon:<[142 3].[146 15]>
/app/launch/hoon:<[141 3].[146 15]>
/app/launch/hoon:<[140 3].[190 5]>
/app/launch/hoon:<[139 3].[190 5]>
/sys/vane/gall/hoon:<[1.371 9].[1.371 37]>
crud: %belt event failed
[%poke %belt]
wire=/clear-huck
  bar-stack
~[
  ~[/dill //term/1]
  ~[/gall/clear-huck /dill //term/1]
  ~[/gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/sys/cor/btc-wallet/~finned-palmer/home/~2021.6.4..10.25.03..cd70
    /gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet
    /dill
    //term/1
  ]
  ~[/gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/use/dojo/0w1.qdI6P/out/~finned-palmer/hood/drum_~finned-palmer/poke
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[
    / gall
      use
      dojo
      0w1.qdI6P
      ~finned-palmer
      drum_~finned-palmer
      hand
      gen
      hood
      start
    /dill
    //term/1
  ]
  ~[
    / gall
      use
      hood
      0w1.qdI6P
      out
      ~finned-palmer
      dojo
      drum
      phat
      ~finned-palmer
      dojo
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[//term/1]
]
take: failed
/sys/vane/gall/hoon:<[1.782 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.783 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.785 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.788 3].[1.795 5]>
[%gall-take-failed /clear-huck]
/sys/vane/gall/hoon:<[1.789 3].[1.795 5]>

Someone in the UC Help channel suggested that I run :file-server &file-server-action [%unserve-dir /app/btc-wallet], but this produced the same response.

Someone suggested these commands: :file-server &file-server-action [%unserve-dir /'~btc'] :file-server &file-server-action [%unserve-dir /'~btc/js/bundle'] :file-server &file-server-action [%unserve-dir /'~btc'/js/bundle]

I ran these, then got this when trying to |start again:

gall: loading %btc-wallet
'%btc-wallet initialized'
poke failed from %btc-wallet on wire /btc-wallet-tile
/app/launch/hoon:<[153 7].[158 9]>
/app/launch/hoon:<[151 5].[184 7]>
/app/launch/hoon:<[150 5].[184 7]>
/app/launch/hoon:<[144 25].[144 60]>
/app/launch/hoon:<[143 5].[145 7]>
/app/launch/hoon:<[142 3].[146 15]>
/app/launch/hoon:<[141 3].[146 15]>
/app/launch/hoon:<[140 3].[190 5]>
/app/launch/hoon:<[139 3].[190 5]>
/sys/vane/gall/hoon:<[1.371 9].[1.371 37]>
crud: %request event failed
[%poke %request]
wire=/clear-huck
  bar-stack
~[
  ~[/dill //term/1]
  ~[/gall/clear-huck /dill //term/1]
  ~[/gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/sys/cor/btc-wallet/~finned-palmer/home/~2021.6.6..14.20.41..16c0
    /gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet
    /dill
    //term/1
  ]
  ~[/gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/use/dojo/0w1.qdI6P/out/~finned-palmer/hood/drum_~finned-palmer/poke
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[
    / gall
      use
      dojo
      0w1.qdI6P
      ~finned-palmer
      drum_~finned-palmer
      hand
      gen
      hood
      start
    /dill
    //term/1
  ]
  ~[
    / gall
      use
      hood
      0w1.qdI6P
      out
      ~finned-palmer
      dojo
      drum
      phat
      ~finned-palmer
      dojo
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[/gall/use/herm/0w1.qdI6P/~finned-palmer/belt/ /dill //term/1]
  ~[/eyre/channel/poke/1622989218162-8cd36a/27 //http-server/0vn.jsqdd/7.212/27]
  ~[//http-server/0vn.jsqdd/7.212/27]
]
take: failed
/sys/vane/gall/hoon:<[1.782 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.783 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.785 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.788 3].[1.795 5]>
[%gall-take-failed /clear-huck]
/sys/vane/gall/hoon:<[1.789 3].[1.795 5]>

Someone then suggested I run this (to remove the btc-wallet tile): :launch &launch-action [%remove %btc-wallet]

Now when I try to |start I get this response:

gall: loading %btc-wallet
'%btc-wallet initialized'
crud: %request event failed
[%poke %request]
wire=/clear-huck
  bar-stack
~[
  ~[/dill //term/1]
  ~[/gall/clear-huck /dill //term/1]
  ~[/gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/sys/cor/btc-wallet/~finned-palmer/home/~2021.6.6..19.49.49..6eb6
    /gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet
    /dill
    //term/1
  ]
  ~[/gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/use/dojo/0w1.qdI6P/out/~finned-palmer/hood/drum_~finned-palmer/poke
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[
    / gall
      use
      dojo
      0w1.qdI6P
      ~finned-palmer
      drum_~finned-palmer
      hand
      gen
      hood
      start
    /dill
    //term/1
  ]
  ~[
    / gall
      use
      hood
      0w1.qdI6P
      out
      ~finned-palmer
      dojo
      drum
      phat
      ~finned-palmer
      dojo
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[/gall/use/herm/0w1.qdI6P/~finned-palmer/belt/ /dill //term/1]
  ~[/eyre/channel/poke/1623008962065-da1b93/31 //http-server/0vn.jsqdd/7.332/31]
  ~[//http-server/0vn.jsqdd/7.332/31]
]
take: failed
/sys/vane/gall/hoon:<[1.782 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.783 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.785 3].[1.795 5]>
/sys/vane/gall/hoon:<[1.788 3].[1.795 5]>
[%gall-take-failed /clear-huck]
/sys/vane/gall/hoon:<[1.789 3].[1.795 5]>

I'm still a big time hoon noob, so I'm not really sure what I'm looking at here. Somebody suggested in UC help that I post a GH issue so that we can better track suggestions and the eventual solution.

Any help is greatly appreciated, thank you!

enriqueHAS commented 3 years ago

ran a similar sequence of doze, wake, and then fade. now start fails


gall: loading %btc-wallet
'%btc-wallet initialized'
poke failed from %btc-wallet on wire /btc-wallet-server
/app/file-server/hoon:<[127 72].[127 74]>
"url already bound to [content=[%clay path=/app/btc-wallet] public=%.n single-page=%.y]"
/app/file-server/hoon:<[127 9].[127 75]>
/app/file-server/hoon:<[126 7].[132 9]>
/app/file-server/hoon:<[125 7].[132 9]>
/app/file-server/hoon:<[123 5].[156 7]>
/app/file-server/hoon:<[122 5].[162 7]>
/app/file-server/hoon:<[121 5].[162 7]>
/app/file-server/hoon:<[111 28].[111 68]>
/app/file-server/hoon:<[110 3].[117 5]>
/app/file-server/hoon:<[109 3].[117 5]>
/app/file-server/hoon:<[108 3].[305 5]>
/app/file-server/hoon:<[107 3].[305 5]>
/sys/vane/gall/hoon:<[1.374 9].[1.374 37]>
poke failed from %btc-wallet on wire /btc-wallet-tile
/app/launch/hoon:<[153 7].[158 9]>
/app/launch/hoon:<[151 5].[184 7]>
/app/launch/hoon:<[150 5].[184 7]>
/app/launch/hoon:<[144 25].[144 60]>
/app/launch/hoon:<[143 5].[145 7]>
/app/launch/hoon:<[142 3].[146 15]>
/app/launch/hoon:<[141 3].[146 15]>
/app/launch/hoon:<[140 3].[190 5]>
/app/launch/hoon:<[139 3].[190 5]>
/sys/vane/gall/hoon:<[1.374 9].[1.374 37]>
crud: %belt event failed
[%poke %belt]
wire=/clear-huck
  bar-stack
~[
  ~[/dill //term/1]
  ~[/gall/clear-huck /dill //term/1]
  ~[/gall/use/hood/0w2.CYtG-/~doctyd-dolrun/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/sys/cor/btc-wallet/~doctyd-dolrun/home/~2021.6.29..12.55.57..a055.f464
    /gall/use/hood/0w2.CYtG-/~doctyd-dolrun/drum/home/btc-wallet
    /dill
    //term/1
  ]
  ~[/gall/use/hood/0w2.CYtG-/~doctyd-dolrun/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/use/dojo/0w2.CYtG-/out/~doctyd-dolrun/hood/drum_~doctyd-dolrun/poke
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[
    / gall
      use
      dojo
      0w2.CYtG-
      ~doctyd-dolrun
      drum_~doctyd-dolrun
      hand
      gen
      hood
      start
    /dill
    //term/1
  ]
  ~[
    / gall
      use
      hood
      0w2.CYtG-
      out
      ~doctyd-dolrun
      dojo
      drum
      phat
      ~doctyd-dolrun
      dojo
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[//term/1]
]
take: failed
/sys/vane/gall/hoon:<[1.785 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.786 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.788 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.791 3].[1.798 5]>
[%gall-take-failed /clear-huck]
/sys/vane/gall/hoon:<[1.792 3].[1.798 5]>
gall: %btc-wallet dead, got %unto
enriqueHAS commented 3 years ago

and want to add that i am on latest OTA e76ql dojo also shows stream of gall: %btc-wallet dead, got %unto

finned-palmer commented 3 years ago

FYI, the on-init changes don't seem to fix the issue I'm seeing.

ixv commented 3 years ago

If not even the stack trace changes, I would begin to doubt that you have the latest code.

finned-palmer commented 3 years ago

I'm on pc1i3, here's the strack trace:

gall: loading %btc-wallet
'%btc-wallet initialized'
crud: %request event failed
[%poke %request]
wire=/clear-huck
  bar-stack
~[
  ~[/dill //term/1]
  ~[/gall/clear-huck /dill //term/1]
  ~[/gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/sys/cor/btc-wallet/~finned-palmer/home/~2021.7.7..18.56.36..8ba2
    /gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet
    /dill
    //term/1
  ]
  ~[/gall/use/hood/0w1.qdI6P/~finned-palmer/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/use/dojo/0w1.qdI6P/out/~finned-palmer/hood/drum_~finned-palmer/poke
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[
    / gall
      use
      dojo
      0w1.qdI6P
      ~finned-palmer
      drum_~finned-palmer
      hand
      gen
      hood
      start
    /dill
    //term/1
  ]
  ~[
    / gall
      use
      hood
      0w1.qdI6P
      out
      ~finned-palmer
      dojo
      drum
      phat
      ~finned-palmer
      dojo
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[/gall/use/herm/0w1.qdI6P/~finned-palmer/belt/ /dill //term/1]
  ~[/eyre/channel/poke/1625684194885-41ff4e/2 //http-server/0v1i.gjmgc/19.744/2]
  ~[//http-server/0v1i.gjmgc/19.744/2]
]
take: failed
/sys/vane/gall/hoon:<[1.785 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.786 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.788 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.791 3].[1.798 5]>
[%gall-take-failed /clear-huck]
/sys/vane/gall/hoon:<[1.792 3].[1.798 5]>
enriqueHAS commented 3 years ago

Latest OTA

[ [%base-hash ~[0v1k.uu5i1.hg68h.8055b.1ab7j.292pl.s1dve.341rt.e590m.igadf.aig08]]
  [%sour-hash 0v1k.uu5i1.hg68h.8055b.1ab7j.292pl.s1dve.341rt.e590m.igadf.aig08]
  [%home-hash 0v1k.uu5i1.hg68h.8055b.1ab7j.292pl.s1dve.341rt.e590m.igadf.aig08]
  [%kids-hash 0v1k.uu5i1.hg68h.8055b.1ab7j.292pl.s1dve.341rt.e590m.igadf.aig08]
  [ %glob-hash
    ~[
      [/~btc/js/bundle 0v7.v4dng.o33qi.kc497.5jc02.ke5es %done]
      [/~landscape/js/bundle 0v1qbab.k47iv.q3fmj.is15l.a1r81 %done]
    ]
  ]
  [%our ship=~doctyd-dolrun point='2164457890' life=[~ 1] rift=[~ 0]]
  [%sponsor ship=~narnem point='16797' life=[~ 2] rift=[~ 1]]
  [%dopzod ship=~dopzod point='4608' life=[~ 3] rift=[~ 2]]
  "Compare lifes and rifts to values here:"
  "https://etherscan.io/address/azimuth.eth#readContract"
  "  life - getKeyRevisionNumber"
  "  rift - getContinuityNumber"
  ~
]

Error on |start %btc-wallet

gall: loading %btc-wallet
'%btc-wallet initialized'
crud: %belt event failed
[%poke %belt]
wire=/clear-huck
  bar-stack
~[
  ~[/dill //term/1]
  ~[/gall/clear-huck /dill //term/1]
  ~[/gall/use/hood/0w2.CYtG-/~doctyd-dolrun/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/sys/cor/btc-wallet/~doctyd-dolrun/home/~2021.7.8..12.17.03..dedb.1854
    /gall/use/hood/0w2.CYtG-/~doctyd-dolrun/drum/home/btc-wallet
    /dill
    //term/1
  ]
  ~[/gall/use/hood/0w2.CYtG-/~doctyd-dolrun/drum/home/btc-wallet /dill //term/1]
  ~[
    /gall/use/dojo/0w2.CYtG-/out/~doctyd-dolrun/hood/drum_~doctyd-dolrun/poke
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[
    / gall
      use
      dojo
      0w2.CYtG-
      ~doctyd-dolrun
      drum_~doctyd-dolrun
      hand
      gen
      hood
      start
    /dill
    //term/1
  ]
  ~[
    / gall
      use
      hood
      0w2.CYtG-
      out
      ~doctyd-dolrun
      dojo
      drum
      phat
      ~doctyd-dolrun
      dojo
    /dill
    //term/1
  ]
  ~[/dill //term/1]
  ~[//term/1]
]
take: failed
/sys/vane/gall/hoon:<[1.785 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.786 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.788 3].[1.798 5]>
/sys/vane/gall/hoon:<[1.791 3].[1.798 5]>
[%gall-take-failed /clear-huck]
/sys/vane/gall/hoon:<[1.792 3].[1.798 5]>
~doctyd-dolrun:dojo> |start %btc-wallet
enriqueHAS commented 3 years ago

the latest release fbv3h has fixed my issues. wallet function has been restored. finned-palmer any luck with you?

finned-palmer commented 3 years ago

Yep, all fixed.