create account

RE: Steps to restore a Hivemind database snapshot by tosch

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @emrebeyler/re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t131626232z

· @tosch · (edited)
I guessed so, I think I was at block 5 Million after around 24 hours. And the first 5 Million blocks are probably less filled than what is coming later :D
I am in the process of syncing your snapshot now.
properties (22)
authortosch
permlinkre-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t134448041z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2019-01-23 13:44:48
last_update2019-01-23 13:45:42
depth3
children10
last_payout2019-01-30 13:44:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length204
author_reputation3,148,075,991,236
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,814,565
net_rshares0
@emrebeyler ·
Great! Let me know if you encounter any issues. Also, make sure you have PostgreSQL 10.6. This backup is not compatible with other PostgreSQL versions.
properties (22)
authoremrebeyler
permlinkre-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t134542215z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2019-01-23 13:45:42
last_update2019-01-23 13:45:42
depth4
children9
last_payout2019-01-30 13:45:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length151
author_reputation448,535,049,068,622
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,814,611
net_rshares0
@tosch ·
So far so good, a couple of minor things. 

It seems I had PostgreSQL 9.5 on my system. Then installing with your instructions worked fine. And all the continuing step also.

Only thing that did not really work was your import command. Due to the password missing. Setting <a href="https://gist.github.com/AtulKsol/4470d377b448e56468baef85af7fd614">md5</a> as method requires the password input.
Therefore I used  a query like this to import, as you can read in the cited source:

```
psql --host=localhost --dbname=hive --username=hive -f hive_latest.sql
```
properties (22)
authortosch
permlinkre-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t140045378z
categoryhivemind
json_metadata{"tags":["hivemind"],"links":["https://gist.github.com/AtulKsol/4470d377b448e56468baef85af7fd614"],"app":"steemit/0.1"}
created2019-01-23 14:00:45
last_update2019-01-23 14:00:45
depth5
children5
last_payout2019-01-30 14:00:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length559
author_reputation3,148,075,991,236
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,815,276
net_rshares0
@emrebeyler · (edited)
it the import  (psql..) prints errors while importing the database, what you have is/will be a corrupted database. Somebody tried with 10.5 and failed.
properties (22)
authoremrebeyler
permlinkre-tosch-re-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t140312865z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2019-01-23 14:03:12
last_update2019-01-23 14:06:57
depth6
children4
last_payout2019-01-30 14:03:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length151
author_reputation448,535,049,068,622
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,815,421
net_rshares0
@tosch ·
I have confirmed running 10.6

I have the database crashing at 120GB with the following message:
```
psql:hive_latest.sql:345205000: ERROR:  missing data for column "img_url"
CONTEXT:  COPY hive_posts_cache, line 56927356: "57289501       breili  magicalliteraturenaturespirits-kcl8bly83b       steempress      0       1       60.4199982      0       19      19      Magical ..."
```
properties (22)
authortosch
permlinkre-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t164406093z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2019-01-23 16:44:06
last_update2019-01-23 16:44:06
depth5
children2
last_payout2019-01-30 16:44:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length383
author_reputation3,148,075,991,236
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,822,921
net_rshares0
@emrebeyler ·
You’re importing with -f hive_latest.sql instead of console stream, right?
properties (22)
authoremrebeyler
permlinkre-tosch-re-emrebeyler-re-tosch-re-emrebeyler-re-tosch-re-emrebeyler-steps-to-restore-a-hivemind-database-snapshot-20190123t164914671z
categoryhivemind
json_metadata{"tags":["hivemind"],"app":"steemit/0.1"}
created2019-01-23 16:49:15
last_update2019-01-23 16:49:15
depth6
children1
last_payout2019-01-30 16:49:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length74
author_reputation448,535,049,068,622
root_title"Steps to restore a Hivemind database snapshot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,823,104
net_rshares0