mopfel-winrux / urbit-umbrel

Urbit Wrapper for Umbrel
20 stars 8 forks source link

Urbit fails to start after Umbrel upgrade #10

Closed docter-tirrud closed 1 year ago

docter-tirrud commented 2 years ago

I updated Umbrel to 0.4.16 yesterday, but forgot to reboot my ship. When I did so this morning Urbit did not start up and allow me access to Landscape. I logged in to the Umbrel and issued docker logs urbit_manager_1 Which resulted in:

boot: home is /data/piers/docter-tirrud
loom: mapped 2048MB
lite: arvo formula 27e494c5
lite: core 7b144622
lite: final state 7b144622
loom: mapped 2048MB
boot: protected loom
live: loaded: MB/907.673.600
Assertion '!"loom: corrupt"' failed in noun/allocate.c:138
home: bailing out
pier: serf unexpectedly shut down
mopfel-winrux commented 2 years ago

This looks like an Urbit error and not one with the app. I'm asking around to see what the solution could be and I'll post a step by step here.

I found: https://github.com/urbit/urbit/issues/5352 but there's a specific way to do it through the umbrel app.

mopfel-winrux commented 2 years ago

Ok @docter-tirrud I talked to ~master-morzod and it looks like you need to replay your event log. to do so please run the following on your umbrel:

sudo rm home/umbrel/umbrel/app-data/urbit/piers/doctor-tirred/.urb/chk/*.bin

This will delete the snapshot of your log but not your actual log. After its deleted reboot your ship, it will take a while because you have to replay all the events. Give this a good while.

Let me know if you have questions

docter-tirrud commented 2 years ago

I corrected the spellings and used: sudo rm home/umbrel/umbrel/app-data/urbit/piers/docter-tirrud/.urb/chk/*.bin but receive: No such file or directory I tried to cd into docter-tirrud/ but was told: cd: docter-tirrud/: Permission denied [sorry to be a bother guys]

mopfel-winrux commented 2 years ago

thats my fault I had a typo try running:

sudo rm /home/umbrel/umbrel/app-data/urbit/piers/docter-tirrud/.urb/chk/*.bin

docter-tirrud commented 2 years ago

Same. No such file or directory. I found a copy of the directory on my Mac to look at the folder structure. I deleted two files, north.bin and south.bin explicitly (no wildcard), and succeeded. Will reboot Urbit now.

Now:

---------------- playback starting ----------------
pier: replaying events 1-264829
1-b
1-c (compiling compiler, wait a few minutes)
ride: parsing
ride: compiling
mopfel-winrux commented 2 years ago

awesome just let it run for a while it may take a minute

docter-tirrud commented 2 years ago

Sorry for the gap. Frustrated. Walked away. I am not able to access my Urbit on Umbrel. It's running but I can't get to Landscape. The Umbrel app shows it's running with a link to my Urbit site. I see

You can access your currently running pier by clicking the link below:

Clicking the link results in a 404 error.

In Dojo, the playback did complete

---------------- playback complete ----------------
vere: checking version compatibility
ames: live on 34343
~docter-tirrud:dojo> http: web interface live on http://localhost:80
http: loopback live on http://localhost:12321
pier (921727): live

The last few lines of Dojo with Urbit running are:

~docter-tirrud:dojo> ; ~dirdev not responding still trying
~docter-tirrud:dojo> ; ~dirdev is ok
~docter-tirrud:dojo> ; ~dirdev not responding still trying
~docter-tirrud:dojo> ; ~dirdev is ok
~docter-tirrud:dojo> [%e %authenticated-without-cookie]
127.0.0.1 - - [04/Apr/2022 19:47:23] "GET / HTTP/1.0" 200 -
127.0.0.1 - - [04/Apr/2022 19:47:23] "GET //static/logo.png HTTP/1.0" 200 -
; ~dev not responding still trying
~docter-tirrud:dojo> ; ~dev is ok

When I use the Umbrel interface to stop my Urbit, the dojo shows:

127.0.0.1 - - [04/Apr/2022 20:09:28] "POST //stop_urbit HTTP/1.0" 302 -
Terminated

recover: dig: term
crud: %request-local event failed
~docter-tirrud:dojo> [%poke %request-local]
~docter-tirrud:dojo>   wire
~docter-tirrud:dojo> / use
~docter-tirrud:dojo>   dojo
~docter-tirrud:dojo>   0w3.~S5Fm
~docter-tirrud:dojo>   ~docter-tirrud
~docter-tirrud:dojo>   ~.eyre_0v7.9fh98.1qn4r.4abhh.ngvkp.osesm
~docter-tirrud:dojo>   hand
~docter-tirrud:dojo>   gen
~docter-tirrud:dojo>   code
~docter-tirrud:dojo>   bar-stack
~docter-tirrud:dojo> ~[
~docter-tirrud:dojo>   ~[/dill //term/1]
~docter-tirrud:dojo>   ~[
~docter-tirrud:dojo>     / gall
~docter-tirrud:dojo>       use
~docter-tirrud:dojo>       dojo
~docter-tirrud:dojo>       0w3.~S5Fm
~docter-tirrud:dojo>       ~docter-tirrud
~docter-tirrud:dojo>       ~.eyre_0v7.9fh98.1qn4r.4abhh.ngvkp.osesm
~docter-tirrud:dojo>       hand
~docter-tirrud:dojo>       gen
~docter-tirrud:dojo>       code
~docter-tirrud:dojo>     /dill
~docter-tirrud:dojo>     //term/1
~docter-tirrud:dojo>   ]
~docter-tirrud:dojo>   ~[/gall/use/lens/0w3.~S5Fm/out/~docter-tirrud/dojo/sole /dill //term/1]
~docter-tirrud:dojo>   ~[/dill //term/1]
~docter-tirrud:dojo>   ~[/gall/use/lens/0w3.~S5Fm/out/~docter-tirrud/dojo/sole /dill //term/1]
~docter-tirrud:dojo>   ~[
~docter-tirrud:dojo>     /eyre/run-app-request/~.eyre_0v7.9fh98.1qn4r.4abhh.ngvkp.osesm
~docter-tirrud:dojo>     //http-server/0vb.ibt72/8/1
~docter-tirrud:dojo>   ]
~docter-tirrud:dojo>   ~[//http-server/0vb.ibt72/8/1]
~docter-tirrud:dojo> ]
~docter-tirrud:dojo> take: failed
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.833 3].[1.849 5]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.834 3].[1.849 5]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.836 3].[1.849 5]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.838 3].[1.849 5]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.842 3].[1.849 5]>
~docter-tirrud:dojo> [ %gall-take-failed
~docter-tirrud:dojo>   / use
~docter-tirrud:dojo>     dojo
~docter-tirrud:dojo>     0w3.~S5Fm
~docter-tirrud:dojo>     ~docter-tirrud
~docter-tirrud:dojo>     ~.eyre_0v7.9fh98.1qn4r.4abhh.ngvkp.osesm
~docter-tirrud:dojo>     hand
~docter-tirrud:dojo>     gen
~docter-tirrud:dojo>     code
~docter-tirrud:dojo> ]
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.843 3].[1.849 5]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.844 3].[1.849 5]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.845 3].[1.849 5]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[730 5].[773 16]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[732 5].[773 16]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[736 5].[773 16]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[737 5].[773 16]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[738 5].[773 16]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[741 5].[773 16]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[744 5].[773 16]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[745 7].[754 18]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[748 7].[754 18]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[753 7].[754 18]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[753 16].[753 58]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.389 7].[1.395 14]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.390 7].[1.395 14]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.391 9].[1.392 47]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.594 7].[1.613 27]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.595 7].[1.613 27]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.595 19].[1.595 32]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.569 7].[1.575 9]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.570 7].[1.575 9]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.570 16].[1.570 51]>
~docter-tirrud:dojo> /sys/vane/gall/hoon:<[1.392 9].[1.392 47]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.669 3].[1.678 20]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.670 3].[1.678 20]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.671 3].[1.678 20]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.672 3].[1.678 20]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.673 5].[1.677 7]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.674 5].[1.677 7]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.675 25].[1.675 62]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.074 5].[1.083 7]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.075 5].[1.083 7]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.076 5].[1.083 7]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.077 5].[1.083 7]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.079 7].[1.082 60]>
~docter-tirrud:dojo> /app/dojo/hoon:<[1.082 7].[1.082 60]>
~docter-tirrud:dojo> /app/dojo/hoon:<[488 7].[490 67]>
~docter-tirrud:dojo> /app/dojo/hoon:<[489 7].[490 67]>
~docter-tirrud:dojo> /app/dojo/hoon:<[490 7].[490 67]>
~docter-tirrud:dojo> /app/dojo/hoon:<[985 7].[991 46]>
~docter-tirrud:dojo> /app/dojo/hoon:<[986 7].[991 46]>
~docter-tirrud:dojo> /app/dojo/hoon:<[987 7].[991 46]>
~docter-tirrud:dojo> /app/dojo/hoon:<[989 7].[991 46]>
~docter-tirrud:dojo> /app/dojo/hoon:<[991 7].[991 46]>
~docter-tirrud:dojo> /app/dojo/hoon:<[895 7].[939 9]>
~docter-tirrud:dojo> /app/dojo/hoon:<[896 7].[939 9]>
~docter-tirrud:dojo> /app/dojo/hoon:<[897 7].[939 9]>
~docter-tirrud:dojo> /app/dojo/hoon:<[898 7].[939 9]>
~docter-tirrud:dojo> /app/dojo/hoon:<[903 16].[903 62]>
~docter-tirrud:dojo> -find..

And startup looks like this:

~docter-tirrud:dojo> Urbit detected a Pier named /data/piers/docter-tirrud/
127.0.0.1 - - [04/Apr/2022 20:13:19] "POST //boot HTTP/1.0" 302 -
~
127.0.0.1 - - [04/Apr/2022 20:13:19] "GET / HTTP/1.0" 200 -
127.0.0.1 - - [04/Apr/2022 20:13:19] "GET //static/logo.png HTTP/1.0" 304 -
urbit 1.8
boot: home is /data/piers/docter-tirrud
loom: mapped 2048MB
lite: arvo formula 27e494c5
lite: core 7b144622
lite: final state 7b144622
loom: mapped 2048MB
boot: protected loom
live: loaded: MB/929.529.856
boot: installed 348 jets
vere: checking version compatibility
ames: live on 34343
~docter-tirrud:dojo> http: web interface live on http://localhost:80
http: loopback live on http://localhost:12321
pier (963983): live
ames: czar dev.urbit.org: ip .35.227.173.38
ames: czar zod.urbit.org: ip .35.247.119.159
ames: czar ten.urbit.org: ip .104.196.239.18
ames: czar bus.urbit.org: ip .35.247.126.229
ames: czar pub.urbit.org: ip .35.230.48.78
ames: czar wet.urbit.org: ip .34.121.77.1
ames: czar lur.urbit.org: ip .35.233.250.88
ames: czar def.urbit.org: ip .35.230.109.40
ames: czar rel.urbit.org: ip .34.83.230.207
ames: czar rys.urbit.org: ip .23.239.12.212
ames: czar feb.urbit.org: ip .34.82.25.47
ames: czar rep.urbit.org: ip .198.199.121.116
[%e %authenticated-without-cookie]
127.0.0.1 - - [04/Apr/2022 20:15:11] "GET / HTTP/1.0" 200 -
127.0.0.1 - - [04/Apr/2022 20:15:12] "GET //static/logo.png HTTP/1.0" 304 -
[%e %authenticated-without-cookie]
127.0.0.1 - - [04/Apr/2022 20:15:38] "GET / HTTP/1.0" 200 -
127.0.0.1 - - [04/Apr/2022 20:15:38] "GET //static/logo.png HTTP/1.0" 200 -
mopfel-winrux commented 2 years ago

hmm did you happen to install any new urbit apps?

docter-tirrud commented 2 years ago

Yes. I was exploring. Pals and Studio, at least.

mopfel-winrux commented 2 years ago

So i found a bug present with %ucal where it overwrites the / route. Try navigating to:

http://umbrel.local:8090/apps/grid/ and see if that works.

docter-tirrud commented 2 years ago

Blank html page. Source shows just html, head, and body tags. Not a 404.

mopfel-winrux commented 1 year ago

Is this still an issue?

docter-tirrud commented 1 year ago

Honestly have not looked at it in the past year.