Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fix my ZeroMe profile (restore it from backup)? #121

Open
slrslr opened this issue Jul 14, 2018 · 5 comments
Open

How to fix my ZeroMe profile (restore it from backup)? #121

slrslr opened this issue Jul 14, 2018 · 5 comments

Comments

@slrslr
Copy link

slrslr commented Jul 14, 2018

Hello,

Please kindly

  1. how i can make ZeroNet and hubs forgot about all my data (profile, comments...) and then
  2. restore my data using a few months old backup of the ZeroNet data directory (including hubs, zerome..) + use recent data.json file (file that holds my recent Zeronet posts, comments) so i do not loose content added after backup?

Reason i ask that is because i screwed up the things in ZeroMe:

  • my comments or posts may no longer be visible for others and or for me even they are in my data.json file in the hub
  • the profile or data can be on different hubs
  • In the past i experienced that i saw my comments, but others not saw them

debug.log, many erros like:

ERROR Site:1MeFqF..q7nH Error importing merged-ZeroMe/1White24UrrwQrD86o6Vrc1apgZ1x1o51/data/users/usernameshere/content.json: ProgrammingError: Cannot operate on a closed database. in SiteStorage.py line 150 > ContentFilterPlugin.py line 165 > SiteStorage.py line 90 > Db.py line 298 > DbCursor.py line 163 > DbCursor.py line 71

I tried to delete hubs and zerome folders, database rebuild, etc, but i am unable to make my/other people comments appear (maybe it can be fixed by editting code here #109). Problem may be also that my data.json grown over many hubs quota of 60KB (i believe), so signing fails, when i use ZeroMe Unfuck it probably moves my profile to other hub with higher limit, but then i have problems mentioned in previous paragraph. My main aim is that my comments re-appear under posts i commented and that i keep my zeroid for future comments, if possible.

@HelloZeroNet
Copy link
Owner

Try this:

  • Stop ZeroNet
  • Delete data/1MeFqFfFFGQfa1J3gJyYYUvb5Lksczq7nH/merged-ZeroMe/ZeroMe.db
  • Start ZeroNet again

@slrslr
Copy link
Author

slrslr commented Jul 15, 2018

@HelloZeroNet

Thank you for the reply. After doing that, the things are looking good, i see my likes, i do not see replies i made to other people posts, but i see these replies in the sidebar (entitled "Activity feed "):

XY commented on XY post: my comment here

When i submit new post: "Content publish failed." published to 0/5 peers. The newly cloned hub i am using has 11 connectable 4 connected, 9 onion.

(I changed hub using mentioned ZeroMe Unfuck and changed hub address in my data.json). Before this issue, i was using some other hub, one that i believe has 60KB limit and so i no longer can sign at such hub.

Which steps do you suggest please to make my comments re-appear?

I am reminding that i have a few months old backup of ZeroNet whole data dir. and also i know where are my zerome files (data/hubaddrtess/data/users/mykey/content+data.json)

@HelloZeroNet
Copy link
Owner

Does the new hub accepts the same cert provider? (You can check in data/users/content.json)
Can you sign your users file on the hub?

  • Visit the hub site
  • Open sidebar
  • Enable, this is my site, to the content publishing enter your data/users/[yourauthaddress]/content.json
  • 3dot menu right to Publish > Sign

@slrslr
Copy link
Author

slrslr commented Jul 15, 2018

@HelloZeroNet

Does the new hub accepts the same cert provider?

Yes, in its content.json is: "cert_signers": {
"zeroid.bit": ["1iD5ZQJMNXu43w*****"]
This hub is cloned from SunHub and is not modified anyhow except increased user limit, i was always using zeroid identity.

Can you sign your users file on the hub? Visit the hub site ... Open sidebar

yes, Sign button alone on my data/users/mykeyhere/content.json results in success "signed!" message, but Publish button in Failure 0/5 peers. Here are log lines related to that publishing attempt i think. (password is: zero) they contain phrases like:
No task found, stopping ; Command update timeout ; {'exception': 'Timeout'} ; Sent my hashfield (chaged 8602.716s ago) to 1 peers

Thank you in advance

@slrslr
Copy link
Author

slrslr commented Jul 19, 2018

@HelloZeroNet

After numerous hours i found that my old ZeroMe comments will appear once i use ZeroMe Unfuck to migrate my ZeroMe profile to the SunHub. Other hubs does not work (my old comments not appear, though i seen some of my posts and likes and users i followed).

Please do you know why it works only under one hub (can you tweak it to allow migration? because of insufficient quota on initial hub) and please how to edit my ZeroMe profile files on the hub so the comments appear also when i migrate/move my profile to different hub? (note that changing hub address inside content.json and data.json not helped.

I have sent you an zero mail asking for quota increasing, which can also temporarily solve my problem of being unable to use ZeroMe atm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants