Open mariodian opened 8 years ago
I also had this issue when trying to restore a backed up store. I copied an old ~/.openbazaar folder to ~/.openbazaar on a new computer.
Old computer was ubuntu 14.04 New computer is ubuntu 12.04
I write it to skip the migration is people prematurely moved the data folder. That will likely cause not to work right for those who moved it however.
@cpacia ok, so what's the solution? Currently I'm on git checkout 65e6618
Ok, so if someone else has this issue, this is what you have to do:
1) get your current OB data folder (where the OB-mainnet.db file is) and move it back to the system where you originally ran it from
2) make sure ob.cfg doesn't have any fancy DATA folder set, it needs to be the default one
3) get some kind of sqlite editor and open the file OB-mainnet.db
4) go to the table "hashmap" and change all the paths to those of your original system. For example if you originally moved your data from OSX to Linux, change all the paths from /home/<your user>/.openbazaar
back to /Users/<your user>/Library/Application Support/OpenBazaar
(maybe someone can write an SQL command for it, I'm not familiar with sqlite)
5) run the openbazaar server python openbazaard.py start
and wait until it migrates your database to the new version
6) you can move your migrated OB-mainnet.db back to your linux system
Only do the step 4 if you don't have the current backup of your store available.
I get this error when I start OB server on my linux machine (pulled from git)
I haven't moved the data folder. It sits in ~/.openbazaar