Skip to content

Instantly share code, notes, and snippets.

@liam-fitzgerald
Created September 25, 2020 02:24
Show Gist options
  • Save liam-fitzgerald/27be85274318a660f7692347f3a08fcf to your computer and use it in GitHub Desktop.
Save liam-fitzgerald/27be85274318a660f7692347f3a08fcf to your computer and use it in GitHub Desktop.

Sadly due to the nature of the migration from links to graph store, it was not technically feasible to do a seamless migration. Instead, the latest OTA has moved all the link collections into graph-store, as archived graphs. As links now uses a client-server topology, groups should decide amongst themselves who should host the link collections, in order to prevent everybody hosting a different copy. If you would like to host a publically accessible link collection that you were in prior to the OTA, then you must do the following.

Work out what your resource identifier is

In the dojo, run

:graph-store +dbug [%state '~(key by archive)']
> {[entity=~nus name=%posts-853] [entity=~nus name=%music-384]}

Look for the collection that you wish to host and make a note of its identifier. In this example I will use [~nus %music-384]

Work out what your groups identifier is

In the dojo, run

:group-store +dbug [%state '~(key by groups)'] 

{[entity=~bitbet-bolbel %urbit-community]}

Run the restore thread

Next, run the restore thread in the dojo with the resource and groups identifier

-graph-restore [~nus %music-384] 'title' 'description' [~bitbet-bolbel %urbit-community] 'link'
@jalehman
Copy link

jalehman commented Oct 1, 2020

I'm getting the following when trying to run this:

/app/spider/hoon:<[196 5].[208 17]>
/app/spider/hoon:<[197 5].[208 17]>
/app/spider/hoon:<[199 5].[208 17]>
/app/spider/hoon:<[200 7].[207 9]>
/app/spider/hoon:<[202 24].[202 68]>
/app/spider/hoon:<[332 3].[356 19]>
/app/spider/hoon:<[333 3].[356 19]>
/app/spider/hoon:<[337 3].[356 19]>
/app/spider/hoon:<[338 3].[356 19]>
/app/spider/hoon:<[340 3].[356 19]>
/app/spider/hoon:<[343 3].[356 19]>
/app/spider/hoon:<[347 3].[356 19]>
/app/spider/hoon:<[350 3].[356 19]>
/app/spider/hoon:<[351 5].[352 60]>
[%no-file-for-thread %graph-store]
/app/spider/hoon:<[352 5].[352 60]>
dojo: thread poke failed

Any idea what's going on?

@ngzax
Copy link

ngzax commented Oct 7, 2020

Unfortunately, that didn't work for me. No errors in dojo:

> -graph-restore [entity=~winter-paches name=%philly-syzygy-links-8964] 'title' 'description' [entity=~winter-paches name=%the-philly-urbit-syzygy] 'link'
~

And it looks like the group thinks it's there now:

image

But when trying to open:

image

@ngzax
Copy link

ngzax commented Oct 7, 2020

Update... that did eventually work and the link collection became available. I can see it now.

Is there a way to remove from the archive collections you know are dead?

@ngzax
Copy link

ngzax commented Oct 7, 2020

and sorry... another problem... i have a collection that looks like so:

[entity=winter-paches name=%-snow--flake-news-7547] 

dojo won't let me type anything after the %-. help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment