Home | ID | Search | Blog | Hub
? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

Kaffie's Blog

I apparently just write about my search engine. But I do more than that, honest!

Follow in NewsfeedFollowing

TOC by date
TOC by tag

Latest comments:

Add new post

Title

21 hours ago · 2 min read ·
3 comments

tag:
Body
Read more

Not found

How to change your ZeroMe Hub

on Aug 12, 2016 · 3 min read
tag: guide hubs zerome

So some people want to change hubs. Maybe they're a dirty red blue infinity user and have regretted their decision and want to join Kaffie's Hub. Well here's how to cleanly migrate hubs.


First things first is to seed the new hub you want to switch to. You're likely already seeding Red and Blue, but you'll need to seed the Kaffie hub or the infinity hub, if you want to switch to those.

Don't bother going to the create profile page. That's for suckers. It's nice to check which hubs you're seeding, but the create profile button just messes things up. Instead, go to your home hub (you can figure out what this is by hovering over your name and looking at the URL) and go into the /data/users/[your id]/ folder. You'll want to copy over this whole folder into the new hub's equivalent.

In the destination hub, open up content.json in a text editor (like sublime, so formatting doesn't get messed up). All you want to do is edit address to point to the new hub, instead of your old one.

Next, open up data.json in the destination hub. You'll see all your original hub data. Here's what we're going to do. Delete all of the entries under comments. These are comments relating to the hub they're in, so you don't need them migrated. You should still keep the array though, since that's where all your new hub comments will go.

Change the hub to the new hub you're migrating to. Just like you did in the content.json. This is a reference to say what your 'home hub' is. We'll eventually edit this in EVERY hub you're seeding or posted in, but one step at a time.

Change next_comment_id to 1. Since we deleted the comments, we need to reset the counter.

Here's where you get a choice. There's two options for your posts. Either you can migrate the data, which switches the name link on those posts (and hosts it in the new hub) but also unlink everyone's comments, or you can leave the posts in the old hub, and start fresh. If you start fresh, your old posts will still appear, but they'll link back to your old hub profile. So keep that in mind. I personally started fresh.

To start fresh, do the same thing to your posts as you did your comments. Delete all the entries and change the next_post_id to 1. Changing the next_post_id will cause a duplicate like bug. Leave it at wherever it is to avoid the bug.

Lastly, delete everything under post_like. Keep the array though.

That should set up your new hub account. Now we need to repoint your data on the other hubs. For each hub you've posted in, go into that hub's folder and find your user folder, like we did before.

On each one, open the data.json and simply edit the hub variable to point to your home hub. This is probably optional (as it repoints the comment links), but I went ahead and did it to reduce the amount of problems.

On your original hub, a couple more things need to be tweaked. Delete everything under 'follows'. Remove the variable entirely. Delete next_follow_id as well. Change hub to your new hub, as usual. And if you opted to migrate your posts, delete the entire posts section along with the next_post_id variable. If not, leave it. I didn't migrate, so I left the posts there.

Change the intro to something to notify people to switch the profile they follow. This is technically optional, and you can just delete it if you feel like it. Delete the avatar if you migrated posts (it's unneeded), but if you kept your posts there, then you'll want to keep it, as otherwise your old posts won't have an avatar (perhaps this is preferred?)

Finally, we save up and go to sign/publish our changes. Visit each hub site (the actual site down at the bottom of zerohello, not zerome). Then drag the sidebar open and select 'i own this site'. Put your user content.json in the bottom box (should look something like: data/users/[yourid]/content.json) and hit sign. It'll prompt for a privatekey. Use your ZeroID private key (found at the top of your zeronet's user.json file) and then click publish. Do this for every hub you've edited.


So now all of the changes are made and published. Everyone else should see everything just fine. But you might still be stuck logged into your old hub. So delete every hub but your destination hub. Then go into zerome and ensure you're logged in properly. Finally, redownload each hub and everything should be good to go!


Update: You may also have to edit and sign the content.json located in the 1UDbADib99KE9d3qZ87NqJF2QLTHmMkoV site in order to change your hub in the 'all users' listing.


Enjoy!

<3 Kaffie

46 Comments:

user_name1 day ago
Reply
Body
crazylimeon Aug 14, 2019
Reply

lol do you have a ZeroMo profile?

klu9on Feb 19, 2019
Reply

your [hub]/data/users/[yourid]/data.json

Thanks!

The problem still ends up with a matter of the owner being inactive...

No cure for that, I guess. Unless third parties become able to remove limits on zites they don't own, which would bring in a whole slew of problems of its own.

kaffieon Feb 19, 2019
Reply

klu9: @kaffie:OK thanks.

I wish there was a way for users to receive more space from a site as easy as the one they can give more space to a site. E.g. when a user hits their limit, the site owner is presented with a button "Set this user's limit to 200KB".

The problem still ends up with a matter of the owner being inactive, or there being way too many users to manage.

klu9: @kaffie:

ZeroTalk - Which specific files should I back up before changing ZeroMe hubs?Any suggestions?

You'll want to back up all of your [hub]/data/users/[yourid]/data.json files. Primarily the one that is your home hub.

klu9on Feb 18, 2019
Reply

@kaffie:

You may just want to make a backup of your files and use the unfuck zerome site to do the migration.

ZeroTalk - Which specific files should I back up before changing ZeroMe hubs?
Any suggestions?

klu9on Feb 18, 2019
Reply

@kaffie:
OK thanks.

There really needs to be a way to remove any limits.

I wish there was a way for users to receive more space from a site as easy as the one they can give more space to a site. E.g. when a user hits their limit, the site owner is presented with a button "Set this user's limit to 200KB".

kaffieon Feb 18, 2019
Reply

klu9: I know I'm merged with the hub I'd like to join (yours:) but I'm not sure if I have to do something more to "seed" it. I notice in the Sidebar for hubs there is an option DOWNLOAD AND HELP DISTRIBUTE ALL FILES, currently turned off. Do I need to turn that on? Or would that be overkill?(And it being off for all hubs, is that a possible reason why I ran out of space so quickly on my current home hub?)

Nah you just need to visit the hub and make sure you have downloaded the content. No need to switch the "help distribute all files". What that toggle does is help share all of the optional files, which isn't needed. Turning that on for everything can be overkill. Since the files are optional. But if you have a lot of drive space and really want to help host ZeroNet content, then you may want to switch that on.

You ran out of space quickly on your current home hob because nofish sets the limits ridiculously low. It's a bit silly. There really needs to be a way to remove any limits.

You may just want to make a backup of your files and use the unfuck zerome site to do the migration. Unless you're comfy doing all of this stuff by hand (which is honestly a pain).

klu9: Did you mean hub rather than sub?

I did, yes. And I've corrected the article now. Thank you.

klu9on Feb 17, 2019
Reply

which subs you're seeding
go to your home sub

Did you mean hub rather than sub?

klu9on Feb 17, 2019
Reply

seed the new hub you want to switch to

I know I'm merged with the hub I'd like to join (yours:) but I'm not sure if I have to do something more to "seed" it. I notice in the Sidebar for hubs there is an option DOWNLOAD AND HELP DISTRIBUTE ALL FILES, currently turned off. Do I need to turn that on? Or would that be overkill?
(And it being off for all hubs, is that a possible reason why I ran out of space so quickly on my current home hub?)

0033300on Oct 31, 2018
Reply

dude u lost me on line 1. no one knows what the fuck ure talking bout

daniellon Sep 01, 2018
Reply

dantox: Hi Kaffie,
My question is marginally related to the post but is not completely off-topic i suppose.I just went to go to your hub,(from http://127.0.0.1:43110/me.zeronetwork.bit/?Create+profile i clicked on "Join!" button by Kaffie hub) and i got:
User dantox@zeroid.bit already exists on this hub
But i do not remember tried to join your hub before. Am i being silly or this is kinda strange? Sorry for my noob question. Reading your post and a comment below, i suppose that i do have to change me zeroid for something else and then follow instructions in your post?

Same here.

daniellon Sep 01, 2018
Reply

I followed the tutorial.
Trying to post on my old profile about the new profile, in data.json of new hub I changed the 'hub' again to the old, then I saw the "Create profile" on ZeroMe. Then I changed again 'hub' to my new hub, but the "Create profile" message keeps showing.

jadon May 13, 2018
Reply

gopher: too complex.

too complex +1

kaffieon Jan 06, 2018
Reply

polar: More: http://127.0.0.1:43110/1QHbf72f4vdx3QAxN1LTN9KP19J428Q85R/

I haven't tried it but it looks like it might be much easier for people who aren't that tech savvy.

kaffieon Jul 23, 2017
Reply

gopher: too complex.

That's because it wasn't intended for people to switch hubs. This is technically a hack. I've been considering making a tool to automate this process. And tbh, it seems like it's in high demand.

gopheron Jul 23, 2017
Reply

too complex.

kaffieon Jun 11, 2017
Reply

gzz: Hello Kaffie,I got some problems, and the instructions don't apply to my situation.Here is the Thing: I was on bluehub and it was all fine, while after changing to a new computer and I accidentally clicked 'create profile' in whitehub, it messed up. I didn't know your method at first and tried to delete my user folder in whitehub. Now with your method(I copied the folder in bluehub) everything seems fine. But I just can't follow other people on zerome.Can you help me? Thanks.

Alright, I did a writeup for you. Please read it in it’s entirety before modifying files. There’s a bit at the end that I thought about later that you’ll want to read. Make sure you have a solid understanding of what you need to do before you mess with files. Let me know if you have any issues :)

Edit: if you need live help, please come visit my discord server

The userdb says you’re signed up as hub: 1ABFCaadiEa3bFNzN3RcCZSsviqMNTbz3m which is ‘Free Hub’ according to Kaffiene. Not blue or white. Kaffiene has you in the user registry as blue hub, which makes sense as you mentioned you started there. I went ahead and checked out white hub as per your suggestion, and you indeed seem to have profile data there.

So from my understanding you have profile data in Free Hub, BlueHub, and WhiteHub. With your current active hub being Free Hub, and indeed your only post shows up under Free Hub. You appear to have some likes and comments on white hub, but not on blue hub. White/blue hubs show that you have 9 posts, while free hub shows the updated 12.

I don’t know all of the hubs you’ve commented in, liked stuff on, etc. So I can’t walk you through editing those, besides just giving a general outline. But here’s what you need to do. First things first, pick a hub you want to use. Personally I’m fond of my own hub, but you’re free to do what you like. The easiest route would be to stay on Free Hub. That requires the least changes. But I don’t really know who manages that one, so it might not be great long-term. Nofish’s hubs are also good.

If you decide to stay on Free Hub, then ignore this part:

To switch your hub, go into the user registry site and your particular user folder. 1UDbADib99KE9d3qZ87NqJF2QLTHmMkoV/data/userdb/1Km1dprxotasxFzeEY8QkwpHVbvffvMBb9/content.json. In the content.json, all you want to do is change ‘hub’ to whatever hub you want. Simple.

Then go to 1ABFCaadiEa3bFNzN3RcCZSsviqMNTbz3m/data/users/1Km1dprxotasxFzeEY8QkwpHVbvffvMBb9/data.json and copy+paste the first few lines (next_post_id, through the bottom of the post[] array) into your new hub data.json: [hubaddress]/data/users/1Km1dprxotasxFzeEY8QkwpHVbvffvMBb9/data.json in the appropriate spot. You’ll need to adjust the next_comment_id to what it is in that hub (since we aren’t migrating comments) as well as hub over to the new hub address. If you have posts in the destination hub, you’ll need to merge the two post arrays. if you need help with this, let me know. You could easily just delete one of them as well. I’d also recommend editing next_follow_id to 1, given that you are following no one.

In 1ABFCaadiEa3bFNzN3RcCZSsviqMNTbz3m/data/users/1Km1dprxotasxFzeEY8QkwpHVbvffvMBb9/data.json go ahead and delete the post[] array, next_post_id, next_follow_id, avatar, and intro, and all of the entries (but not the array) for comment[]. Change hub into your new hub address.

Ideally by this point you’ve got your destination hub cleaned up and configured. If you stuck with Free Hub, then there’s nothing that needed to be done (it’s a complete/clean setup), but if you wanted to switch somewhere else, hopefully you’ve got it all proper. Ask questions if you’re lost.

Now we need to adjust the leftover data from your messed up hub switching, as well as to repoint all the hubs over to your new profile. From what you’ve told me, you’ve only interacted with Free Hub, White Hub, and Blue hub. However, if there’s more, you’ll need to follow these steps for those as well. A quick mdfind on my machine reveals that you have data folders in 1KNmG5rJUGhgUJGFbLkv2B5isaqu9PrZqi (amethyst hub) and 1GrEenUGRWnzaNZjR3XsQa6dQgdPDTyt7i (green hub) as well. Both are properly formatted, but amethyst says your hub is blue hub, and green says your hub is free hub like free hub/white/blue do. If you’re going to stick with free you need to edit amethyst appropriately. If blue, then edit green appropriately. If something else, edit both. Neither have profile data, so no tampering other than putting in the proper hub is needed.

Now to deal with the pesky extra profile data on blue and white hubs. Unless you’re migrating to one of them, you’ll want to delete it. So in: 1White24UrrwQrD86o6Vrc1apgZ1x1o51/data/users/1Km1dprxotasxFzeEY8QkwpHVbvffvMBb9/data.json go ahead and do what you did before. Delete next_post_id, next_follow_id, avatar, intro, the post[] array. And then point hub to your new hub. If you’re going to stay on free hub, this repointing is unnecessary given that both white and blue hub are pointing back to free hub.

Repeat that same process for 1BLueGvui1GdbtsjcKqCf4F67uKfritG49/data/users/1Km1dprxotasxFzeEY8QkwpHVbvffvMBb9/data.json.

That should be it. Though in the process of writing this I realized all of your comments do not relate to your own posts except your Free Hub comments, which are all posted on your single free hub post. If you’re migrating from free hub it’d be best to move these comments over to the appropriate hub (just like you did with your posts) and then delete the comments from free hub. If you’re staying on free hub, no need to do anything. The big issue is that other peoples comments will still be posted on free hub, meaning they won’t show up. Migrating the posts as I described will unlink the other users’ comments from your post. If you migrate your posts/comments, only your comments will show up and it’ll look like you’re talking to no-one, haha.

The ‘cleanest’ migration would be to either delete all the posts/comments that originated from Free Hub, OR, to keep the posts/comments where they are. Following the guide will migrate your posts to the new hub, and then unlink the comments so that there are none for your post.

Hopefully if you follow all these instructions correctly, you should un-fuck your situation. Enjoy!

gzzon Jun 10, 2017
Reply

Hello Kaffie,
I got some problems, and the instructions don't apply to my situation.
Here is the Thing: I was on bluehub and it was all fine, while after changing to a new computer and I accidentally clicked 'create profile' in whitehub, it messed up. I didn't know your method at first and tried to delete my user folder in whitehub. Now with your method(I copied the folder in bluehub) everything seems fine. But I just can't follow other people on zerome.
Can you help me? Thanks.

kaffieon May 12, 2017
Reply

dantox: Hi Kaffie,
My question is marginally related to the post but is not completely off-topic i suppose.I just went to go to your hub,(from http://127.0.0.1:43110/me.zeronetwork.bit/?Create+profile i clicked on "Join!" button by Kaffie hub) and i got:
User dantox@zeroid.bit already exists on this hub
But i do not remember tried to join your hub before. Am i being silly or this is kinda strange? Sorry for my noob question. Reading your post and a comment below, i suppose that i do have to change me zeroid for something else and then follow instructions in your post?

You should never got to the 'create profile' page if you've already been using ZeroMe. I explicitly discourage this in the guide. Just make sure your data files are formatted in the way directed by the guide. They'll almost certainly be a mess by this point though, due to going to the create profile page multiple times. Namely you just need your main content on which hub you want your account to be. You need the user list (1UDb...) to point to your hub. And you need to change all of the hubs that you commented in to refer back to your main hub, and to remove your main content from there.

Edit: Actually, I went ahead and took a look at your files on the hubs, and it looks like you're okay. No weirdness. Just follow the guide and you should be good to go.

dantoxon May 11, 2017
Reply

Hi Kaffie,

My question is marginally related to the post but is not completely off-topic i suppose.
I just went to go to your hub,
(from http://127.0.0.1:43110/me.zeronetwork.bit/?Create+profile i clicked on "Join!" button by Kaffie hub) and i got:

User dantox@zeroid.bit already exists on this hub

But i do not remember tried to join your hub before. Am i being silly or this is kinda strange? Sorry for my noob question. Reading your post and a comment below, i suppose that i do have to change me zeroid for something else and then follow instructions in your post?

psion Apr 29, 2017
Reply

this is so helpful. My first profile messed up by [create profile].
i deleted the whole zeronet directory and recreated a zeroid.
if i had seen this it would save me lots of trouble.

kaffieon Apr 21, 2017
Reply

thecuriousnerd: Do you by any chance know where one can find a list of hubs?

I'd suggest 0hub.bit. That lets you quickly download all the relevant hubs. Kaffiene's list is a bit outdated like the rest of the index.

thecuriousnerdon Apr 20, 2017
Reply

thecuriousnerd: Do you by any chance know where one can find a list of hubs?

Just realized that there is one in Kaffiene Search lol

thecuriousnerdon Apr 18, 2017
Reply

Do you by any chance know where one can find a list of hubs?

kaffieon Apr 17, 2017
Reply

jayofthezero: Is this still relevant? Can't remember if NoFish made this easier or not.

I don't think he did. AFAIK it should still work and be relevant.

jayofthezeroon Apr 16, 2017
Reply

Is this still relevant? Can't remember if NoFish made this easier or not.

kaffieon Mar 26, 2017
Reply

tesztelek: Where can i see whats the different between this 2 hubs? Sorry Iam new here i would like to know more.

There's not really any way to see what the difference is between the various hubs. It generally shouldn't matter which one you are on. But I find @nofish sets the posting limits way too low. So I made my own with an absurdly high limit. Generally if you're happy as it is, then it's best not to move. Since the default hubs will be seen by the most amount of people.

tesztelekon Mar 25, 2017
Reply

kaffie: If you want to for whatever reason. I personally changed because the default hubs didn't give me enough space and I constantly hit the limits.

Where can i see whats the different between this 2 hubs? Sorry Iam new here i would like to know more.

kaffieon Mar 25, 2017
Reply

tesztelek: Why I should change?

If you want to for whatever reason. I personally changed because the default hubs didn't give me enough space and I constantly hit the limits.

tesztelekon Mar 25, 2017
Reply

Why I should change?

kaffieon Mar 01, 2017
Reply

emacsen3: i can't find data.json,what is the path

/data/users/[your id]/data.json for each hub you're in.

emacsen3on Feb 22, 2017
Reply

i can't find data.json,what is the path

scrubon Oct 08, 2016
Reply

doom1b:
Kys.

heathenmanon Sep 21, 2016
Reply

also works to join all known hubs with InfinityNet if you dont mind about dozens of 'Hello ZeroMe' Messages and seperated profile configuration - posts are merged

p2pon Aug 15, 2016
Reply

kaffie: AFAIK you can't sign other

if in your hub you are the only one user, then migrating all the user's content is OK. Otherwise, if someone join in, comments to other users' posts may be under wrong post ID. So, it's better to migrate things only related to you.
if you migrate to other hubs ( not yours), it's more complicated because you have to deal with other users' existing comments ID, even if the hub owner is kindly enough to help you to sign other users' files.

p2pon Aug 15, 2016
Reply

weakish: I am thinking about rebuilding comments.

could you make a script? py is preferred.

kaffieon Aug 14, 2016
Reply

weakish: .In the end, sign and publish with own key (I guess this is the only way, cause hub changed breaking original commenter's signature.)

AFAIK you can't sign other users' content unless it's on your own site. And if that's the case, there's no reason not to just migrate all the user's content anyway. So I'm not sure how much this would help.

weakishon Aug 14, 2016
Reply

I am thinking about rebuilding comments.

In the original hub, search data/users/*/data.json for all comment records whose post_uri matching your_zerome_address_[0-9]+, and all post_like matching your_zerome_address_[0-9]+.
Then change every comment's body with username commented: and convert every like to a comment username liked this.
In the end, sign and publish with own key (I guess this is the only way, cause hub changed breaking original commenter's signature.)

imurxon Aug 14, 2016
Reply

Why did I loved too much this blog :,v

kaffieon Aug 12, 2016
Reply

musickiller: I ment that there should be an index of users and personal hubs (or small group hubs).

Yea, there should definitely be an official way of seeing all the hubs. @Bot has made a way to view all the hubs people are in, using his zerome clone. And ZeroMe already has an official users list.

As long as your hub is small, I'll seed it with pleasure from all my devices. Red hub has a higher priority in my mind only because most new users will join official (or largest) hubs first.

Certainly. The point is that I'm trying to move people away from the official/large hubs. Decentralization and all that.

What would happen if I just deleted my folder from old hub and created a profile in new one? As you might guess, I don't care much about my old messages. I have a blog for archiving.

You have to make sure you sign/publish, otherwise it won't really be deleted. But say you overwrite your data.json with nothing. Assuming you did it in your home hub, it'll delete your bio, all of your posts, all of your comments on your home hub, and all of your likes on your home hub. As well as all the people you follow. Your posts on other hubs will remain untouched (as you didn't delete your file on those hubs). If you then create a new profile, it'll create it properly, but not propagate the changes through the other hubs. So either you delete your user data from all the hubs you interacted with, or you modify them.

If you leave them be, some weird issues start to occur, where you get a double profile and such. This also happens a bit when people still follow your old profile. That's why I wrote out this guide. I originally had some issues when I simply clicked 'join' on a different hub.

p2pon Aug 12, 2016
Reply

kaffie: Red/Blue are capped at 50kb by default.

that would be quite small space, people would complain it.
just like zerotalk or zeromail, people are encouraged to make clones, keeping the sites small. so nofish will make migrating hub easily in the future IMO. any way, your tutorial is a good way to make people understand how zeronet works.

kaffieon Aug 12, 2016
Reply

p2p: Great! THX for sharing. What's the post size limit of Red/Blue hub? and space limit?

Red/Blue are capped at 50kb by default. Infinity I think is at 5mb, and Kaffie hub is at a whopping 10mb. Obviously these can be raised/lowered per user if the hub owner wishes.

musickiller: so... why would I do that exactly?
I think an optimal choice is for thise who post non-stop is to create a profile on the Red hub, write 1 post like "Follow my hub for more: [link]", and create their own hub with only 1 profile - theirs. This way, people like me, who don't want (can't) download tonns of data for a single user's posts, would not need to do that.
I'm not sure that any migration is needed in that case =D

Because there's an increasing number of people fed up with nofish's low caps. And ZeroMe is made to be decentralized and have many hubs. That's the whole point. If everyone's only on red hub or blue hub, eventually the size of those will balloon up into several hundred megs and later gigabytes. Having more hubs (and switching hubs) let's people migrate to smaller hubs so they don't need as much data, or to go to a hub with less restrictions so they don't need to keep bothering the hub owner.

Having 1 hub per person would work (it was discussed in github whether it should be 1-per-person or hubs), but the problem is seeding. With a 1 person hub, there's not really any incentive to seed that hub unless you want to follow the one user who's in it.

Basically, if you care about decentralization, more hubs = better. This is a guide on how to switch hubs, so you're not stuck on the one you randomly clicked. I just plugged my hub because of the high cap and to help decentralize things.

Edit: It's worth noting you must download everyone who's part of a hub's data. Meaning that the main hubs (red and blue) will be bloated and you'd have to hold it all. Rather than the few Kaffie hub users who may or may not get to 10mb (I'm currently at ~20kb or so).

p2pon Aug 12, 2016
Reply

Great! THX for sharing. What's the post size limit of Red/Blue hub? and space limit?

bslon Aug 12, 2016
Reply

I'll sure do it, but not now since I gotta go! Thanks for the tutorial :D

kaffieon Aug 12, 2016
Reply

dickwad: looks complicated

That's because it's mostly a hack. I hope official support for changing hubs will come soon enough.

dickwadon Aug 12, 2016
Reply

looks complicated

This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More