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

Doesn't connect to localhost server #43

Open
Kaden14 opened this issue Jun 29, 2016 · 34 comments
Open

Doesn't connect to localhost server #43

Kaden14 opened this issue Jun 29, 2016 · 34 comments
Labels

Comments

@Kaden14
Copy link

Kaden14 commented Jun 29, 2016

I installed version 1.1.7 on Windows 10 and it booted up but wont connect to local server... consisting problem from 1.1.6

@hoffmabc
Copy link
Member

Can you show us here what you get if you click the Tent icon in the task bar and choose View Python Error Log?

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

Sure... just give me a minute...

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

problem

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

name that shows up

This is the name that shows up when I right click the tent in taskbar
I cant find the Python Error Log though....

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

Where can I find this Python Error Log???

@hoffmabc
Copy link
Member

image

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

pythonerrorlog

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

I see you are also on steam, lol.

@hoffmabc
Copy link
Member

From the command line go to:
%APPDATALOCAL%\OpenBazaar\app-1.1.7\resources\OpenBazaar-Server

and run openbazaard.exe

What do you get when you do that?

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

thishappens

I had to screenshot very fast because it lasts for about 1 second then disappears... i managed to get a clear shot of the command prompt window and then I just cropped it.. again, it was fast..

@hoffmabc
Copy link
Member

When you start the app will it load if you just hit retry? Do you see openbazaard.exe running in your Task Manager?

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

connecting

@hoffmabc
Copy link
Member

and then it just never goes past that?

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

it shows this ->
then this

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

then this
This is my taskbar... I have pinned the app to my taskbar and it just opens in that same tab..

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

Note: it only says 'connecting' for a few seconds..

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

Oh, and it is not openbazaar.exe - it is Electron ->
not an exe

@hoffmabc
Copy link
Member

close out OpenBazaar and run OpenBazaar.exe in %APPDATALOCAL%\OpenBazaar\app-1.1.7\

does it still say Electron?

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

running this file
I am going to run it...

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

it just popped up the command prompt page..
nothing happened.

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

I uninstalled it and reinstalled it and it now says OpenBazaar in the taskbar.

@Kaden14
Copy link
Author

Kaden14 commented Jun 29, 2016

but still no connection

@Kaden14
Copy link
Author

Kaden14 commented Jul 7, 2016

When will this issue with openbazaar be fixed? It seems as if a lot of people are having trouble

@AndreyAtGitHub
Copy link

I also have such issue..

From the command line go to:
%APPDATALOCAL%\OpenBazaar\app-1.1.7\resources\OpenBazaar-Server

and run openbazaard.exe

What do you get when you do that?

`C:\Users\Андрей\AppData\Local\OpenBazaar\app-1.1.7\resources\OpenBazaar-Server>openbazaard.exe start
________ �[94m �[0m
_____ \ ______ ____ �[94m _____ _____________ _____ �[0m
/ | _
/ __ \ / \�[94m| | / \ ___ /
\ __ _ __ \ �[0m
/ | \ |
> > /| | \ �[94m| \ / __ / / / __ / __ | | /�[0m
_______ / / _ >**
| /�[94m
**
/(
/
(____ (____ /|�[0m
/|
| / / �[94m / / / / /�[0m

OpenBazaar Server v0.2.1 starting...
Traceback (most recent call last):
File "", line 308, in
File "", line 232, in init
File "", line 270, in start
File "", line 180, in run
File "db\datastore.py", line 44, in init
File "db\datastore.py", line 57, in _initialize_database
File "db\datastore.py", line 118, in _create_database
sqlite3.OperationalError: unable to open database file
openbazaard returned -1

C:\Users\Андрей\AppData\Local\OpenBazaar\app-1.1.7\resources\OpenBazaar-Server>`

I have the latest OpenBazaar-1.1.7_Setup_x64.exe and Windows 10

@Kaden14
Copy link
Author

Kaden14 commented Aug 29, 2016

Okay. So, this is what i did and it worked; however, you might have a different issue, but it is worth the work.

Uninstall OpenBazaar -

then go to:
file explorer > view (it should be on the top by home, share, etc] > select 'show hidden files'; then go to :
C:/users/[your user]/appData/local
find open bazaar folder and delete it.
Then reinstall.

This should work, at least it did with me.

@Kaden14
Copy link
Author

Kaden14 commented Aug 29, 2016

You might also want to go to to:
C:/users/[your user]/appData/roaming
and delete OB folder there.

@AndreyAtGitHub
Copy link

AndreyAtGitHub commented Aug 29, 2016

Thank you Kaden14!
But nothing help. Possibly because of Russian characters in the path. Reinstalling several times. Also tried to install with Administrator rights - this was even worse.

@AndreyAtGitHub
Copy link

Hi folks,
There are new errors in new version 1.1.10. And sever does not connect anyway.
`C:\Users\Андрей>C:\Users\Андрей\AppData\Local\OpenBazaar\app-1.1.10\resources\OpenBazaar-Server\openbazaard.exe
Traceback (most recent call last):
File "", line 11, in
File "c:\users\brian\appdata\local\temp\pip-build-nvw4ux\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "api\ws.py", line 16, in
File "c:\users\brian\appdata\local\temp\pip-build-nvw4ux\pyinstaller\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module
File "config.py", line 23, in
IndexError: list index out of range
openbazaard returned -1

C:\Users\Андрей>`

@comodoro
Copy link

I can confirm that I have this issue (Connection failed to default) after installation on Win 10 x64 Pro. My username (in the OS) also has a non-ASCII character in it. Deleting AppData dirs and reinstalling did not (obviously) work. Openbazaard start output:

OpenBazaar Server 0.2.5 starting...
Traceback (most recent call last):
File "openbazaard.py", line 320, in
File "openbazaard.py", line 243, in init
File "openbazaard.py", line 282, in start
File "openbazaard.py", line 186, in run
File "db\datastore.py", line 44, in init
File "db\datastore.py", line 57, in _initialize_database
File "db\datastore.py", line 118, in _create_database
sqlite3.OperationalError: unable to open database file
Failed to execute script openbazaard

Is it supposed to work with non-ASCII usernames? What else can I try (I would prefer not to dig into the source right now)?

OpenBazaar 1.11

@jjeffryes
Copy link
Collaborator

In OB 1.1.11, you shouldn't need a username or password for the local server at all. Are you using the default connection, @comodoro ?

Try commenting out the username and password in the config file for your local server.

@comodoro
Copy link

Are we talking about the same issue? Because I do not think this is related to OpenBazaar credentials. The server does not start at all, see above. My question is what can be the cause and if it could be related to the fact that I have a non-ASCII character in my Windows username (and therefore AppData path).

@jjeffryes
Copy link
Collaborator

@comodoro my fault, I didn't read closely enough.

It's possible a non-ASCII character would cause an error in the path the script uses. Can you try installing it on a new user account that doesn't have non-ASCII characters in the name?

@comodoro
Copy link

All right, that's what I was trying to avoid by asking, but sometimes one actually has to do something:) I will try tomorrow.

@comodoro
Copy link

I have just tried and can confirm that with simple ASCII username it works and openbazaard starts on the same computer with the same settings. This seems like a bug (quite common one, judging from my search), you cannot expect all Windows users to have ASCII usernames.

On the side note, I was aware there might be problems in the future when I learned that my user folder name contains diacritics, but it did not manifest itself until now.

@jjeffryes jjeffryes added the bug label Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants