The first time you start OpenBazaar, your local node and your client will sync their username and password. If this process fails, you will see an error message stating that the default server can't be connected to. This means your client does not have the correct username and/or password for your local node.
To correct this issue, follow the steps below to retrieve your local node's username and password, and create a new connection using them.
Step One: Download a SQLite browser
You'll need a program that can view the data in your OpenBazaar Server database. There are various browsers available, but we recommend DB Browser for SQLite because it works well across platforms. Download and install the program.
Step Two: Find your database and open it in the SQLite browser
The database which has your username and password will be named OB-Mainnet.db, and it's in different directories depending on your operating system:
OSX: ~/Library/Application Support/OpenBazaar
With some operating systems you can simply right-click on the OB-Mainnet.db file and select "Open with DB Browser for SQLite." If that isn't an option, then you can open the SQLite browser and click "Open Database" then navigate to the directory listed above.
Step Three: Find the settings table
Select the "Browse Data" tab highlighted in this image.
Now select the table dropdown directly below and to the left of the "Browse Data" tab, as shown in this image. It will likely say "broadcasts" but you want to select the table labeled "settings."
Step Four: Find your username and password
You will now see various columns with different names, such as "id" and "refundAddress." You want to find the columns labelled "username" and "password." Move the slider at the bottom of the browser over to the right until you see them.
Beneath the columns you will see your username and password. Copy them both and put them in a notepad for the moment.
Step Five: Add new OpenBazaar server connection
Open the OpenBazaar client. When the connection fails, click on the "New" button to add a new server connection.
Now you'll see options to add a new server connection. You can put any name you like into the "Name" field. In the "Server IP" field, enter "localhost," as shown in the image below. In the "Username" and "Password" fields, paste in the data you got from the SQLite Browser in step four. Then click "Save Changes" on the bottom.
Step Six: Restart the Server
You'll now need to restart your server. You can right click the OpenBazaar tent icon in your system bar to shut down and start your local server, or close and open the application again. Select the new connection you've created, and you should now be connected.