Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

[OSX] Can't connect to default server. #1695

Open
evilsocket opened this issue Jun 12, 2016 · 16 comments
Open

[OSX] Can't connect to default server. #1695

evilsocket opened this issue Jun 12, 2016 · 16 comments

Comments

@evilsocket
Copy link

Brief Description:

The app gets stucked to "Connecting to default server ..." message.

schermata 2016-06-12 alle 15 04 35

Operating System (OS and version):

Mac OS X 10.11.14

OpenBazaar version (shown on About OpenBazaar page in menu):

1.1.6

Hardware:

Macbook Pro Retina

Reproducible (Always / Almost Always / Sometimes / Rarely / Couldn't Reproduce):

Always

Steps to reproduce:

  1. Open the client

Observed Behavior:

The client is unable to connect to the default server.

Expected Behavior:

The client should automatically connect to the default server.

@evilsocket
Copy link
Author

I had issues starting the server, I solved with:

 brew uninstall zeromq
 brew install zeromq405

Now I see this:

schermata 2016-06-12 alle 15 27 39

@JustinDrake
Copy link
Contributor

I'm getting the same issues. Can't connect to default server.

@hoffmabc
Copy link
Member

As a test try specifying a different OB port

-p 23344

@evilsocket
Copy link
Author

@hoffmabc nope, it didn't work

schermata 2016-06-14 alle 18 12 51

@JustinDrake
Copy link
Contributor

@hoffmabc Nope.

Last login: Tue Jun 14 16:00:58 on ttys006
Justins-MacBook-Air:duomoney justin$ cd /Applications/OpenBazaar.app/Contents/MacOS
Justins-MacBook-Air:MacOS justin$ ./OpenBazaar -p 23344
2016-06-14 17:15:11.220 OpenBazaar[4472:301020] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)
The certificate for this server is invalid. You might be connecting to a server that is pretending to be “updates.openbazaar.org” which could put your confidential information at risk.: (null)
Starting OpenBazaar Server
[STR] stderr "PyInstaller Bootloader 3.x
LOADER: executable is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: homepath is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server
LOADER: MEIPASS2 is NULL
LOADER: archivename is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: pyi_arch_check_cookie failed
LOADER: /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard contains a digital signature
LOADER: package found skipping digital signature in /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: Extracting binaries
"
[STR] stderr "LOADER: Executing self as child
LOADER: set MEIPASS2 to /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/MEIw1ZCZm
"
[STR] stderr "PyInstaller Bootloader 3.x
"
[STR] stderr "LOADER: executable is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: homepath is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server
LOADER: MEIPASS2 is /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/MEIw1ZCZm
LOADER: archivename is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: pyi_arch_check_cookie failed
LOADER: /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard contains a digital signature
LOADER: package found skipping digital signature in /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: Already in the child - running user's code.
LOADER: Python library: /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/MEIw1ZCZm/.Python
"
[STR] stderr "LOADER: Loaded functions from Python library.
"
[STR] stderr "LOADER: Manipulating environment (sys.path, sys.prefix)
"
[STR] stderr "LOADER: sys.prefix is /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/MEIw1ZCZm
LOADER: Setting runtime options
LOADER: Initializing python
"
[STR] stderr "LOADER: Overriding Python's sys.path
LOADER: Post-init sys.path is /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/MEIw1ZCZm
LOADER: Setting sys.argv
LOADER: setting sys.MEIPASS
LOADER: importing modules from CArchive
"
[STR] stderr "LOADER: extracted struct
LOADER: callfunction returned...
"
[STR] stderr "LOADER: extracted pyimod01_os_path
LOADER: callfunction returned...
"
[STR] stderr "LOADER: extracted pyimod02_archive
LOADER: callfunction returned...
"
[STR] stderr "LOADER: extracted pyimod03_importers
"
[STR] stderr "LOADER: callfunction returned...
"
[STR] stderr "LOADER: Installing PYZ archive with Python modules.
LOADER: PYZ archive: out00-PYZ.pyz
"
[STR] stderr "LOADER: Running pyiboot01_bootstrap.py
"
[STR] stderr "LOADER: Running pyi_rth_pkgres.py
"
[STR] stderr "LOADER: Running pyi_rth_twisted.py
"
[STR] stderr "LOADER: Running openbazaard.py
"
[STR] stdout "
__________
_____ \ ______ ____ __________ _____ _____________ _____ _______
/ | _
__ / __ \ / | | / \ ___ /__ \ __ _ __
/ | \ |> > /| | \ | \ / __ / / / __ / __ | | /
_______ / / _ >**
| /
**
/(
___ /_____ (____ (____ /|
/|
| / / / / / / /

OpenBazaar Server v0.1 starting...
"
[STR] stderr "Traceback (most recent call last):
File "", line 307, in
File "", line 231, in init
File "", line 269, in start
File "", line 193, in run
File "site-packages/twisted/internet/posixbase.py", line 478, in listenTCP
"
[STR] stderr " File "site-packages/twisted/internet/tcp.py", line 984, in startListening
"
[STR] stderr "twisted.internet.error."
[STR] stderr "CannotListenError: Couldn't listen on 127.0.0.1:18470: [Errno 48] Address already in use.
openbazaard returned -1
LOADER: OK.
LOADER: Cleaning up Python interpreter.
"
[STR] stderr "LOADER: Back to parent (RC: 255)
LOADER: Doing cleanup
"
[STR] stderr "LOADER: Freeing archive status for /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
"
exited with 255
[END] stdout "________ __________
_____ \ ______ ____ __________ _____ _____________ _____ _______
/ | ____ / __ \ / | | / \ ___ /__ \ __ _ __
/ | \ |> > /| | \ | \ / __ / / / __ / __ | | /
_______ / / _ >**
| /
**
/(
___ /_____ (____ (____ /|
/|
| / / / / / / /

OpenBazaar Server v0.1 starting...
"
[END] stderr "PyInstaller Bootloader 3.x
LOADER: executable is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: homepath is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server
LOADER: _MEIPASS2 is NULL
LOADER: archivename is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: pyi_arch_check_cookie failed
LOADER: /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard contains a digital signature
LOADER: package found skipping digital signature in /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: Extracting binaries
LOADER: Executing self as child
LOADER: set _MEIPASS2 to /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/_MEIw1ZCZm
PyInstaller Bootloader 3.x
LOADER: executable is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: homepath is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server
LOADER: _MEIPASS2 is /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/_MEIw1ZCZm
LOADER: archivename is /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: pyi_arch_check_cookie failed
LOADER: /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard contains a digital signature
LOADER: package found skipping digital signature in /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
LOADER: Already in the child - running user's code.
LOADER: Python library: /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/_MEIw1ZCZm/.Python
LOADER: Loaded functions from Python library.
LOADER: Manipulating environment (sys.path, sys.prefix)
LOADER: sys.prefix is /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/_MEIw1ZCZm
LOADER: Setting runtime options
LOADER: Initializing python
LOADER: Overriding Python's sys.path
LOADER: Post-init sys.path is /var/folders/71/s1z0k0_j3qs6gz4zr_tt72fr0000gn/T/_MEIw1ZCZm
LOADER: Setting sys.argv
LOADER: setting sys._MEIPASS
LOADER: importing modules from CArchive
LOADER: extracted struct
LOADER: callfunction returned...
LOADER: extracted pyimod01_os_path
LOADER: callfunction returned...
LOADER: extracted pyimod02_archive
LOADER: callfunction returned...
LOADER: extracted pyimod03_importers
LOADER: callfunction returned...
LOADER: Installing PYZ archive with Python modules.
LOADER: PYZ archive: out00-PYZ.pyz
LOADER: Running pyiboot01_bootstrap.py
LOADER: Running pyi_rth_pkgres.py
LOADER: Running pyi_rth_twisted.py
LOADER: Running openbazaard.py
Traceback (most recent call last):
File "", line 307, in
File "", line 231, in init
File "", line 269, in start
File "", line 193, in run
File "site-packages/twisted/internet/posixbase.py", line 478, in listenTCP
File "site-packages/twisted/internet/tcp.py", line 984, in startListening
twisted.internet.error.CannotListenError: Couldn't listen on 127.0.0.1:18470: [Errno 48] Address already in use.
openbazaard returned -1
LOADER: OK.
LOADER: Cleaning up Python interpreter.
LOADER: Back to parent (RC: 255)
LOADER: Doing cleanup
LOADER: Freeing archive status for /Applications/OpenBazaar.app/Contents/Resources/OpenBazaar-Server/openbazaard
"

@evilsocket
Copy link
Author

@JustinDrake our errors are different, you have something else listening on port 18470 ( while I dont ):

 twisted.internet.error.CannotListenError: Couldn't listen on 127.0.0.1:18470: [Errno 48] Address already in use.

You can try this command to see what's listening on that port:

sudo lsof -n -i:18470

@JustinDrake
Copy link
Contributor

You're right. It seems I had a zombie OpenBazaar server running. I killed it and it now works :)

Justins-MacBook-Air:duomoney justin$ sudo lsof -n -i:18470
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
openbazaa 787 justin 12u IPv4 0x578e36cbc5cf5b97 0t0 TCP 127.0.0.1:18470 (LISTEN)

@evilsocket
Copy link
Author

Glad that at least it works for you :)

@JustinDrake
Copy link
Contributor

Hey @evilsocket, are you on the OpenBazaar Slack by any chance?

@evilsocket
Copy link
Author

nope

@JustinDrake
Copy link
Contributor

@evilsocket I'm personally working on Duo Search (www.duosear.ch), an OpenBazaar search engine. Hit me up if it sparks any interest whatsoever. :)

@evilsocket
Copy link
Author

@JustinDrake nice, is it open?

@JustinDrake
Copy link
Contributor

@evilsocket: Not yet. We'll probably open the frontend soon, and maybe the crawlers and scrapers at some point.

@evilsocket
Copy link
Author

@JustinDrake well, if it's not 100% open I'm not interested :)

@JustinDrake
Copy link
Contributor

@evilsocket Haha, OK :) I'll keep that in mind.

@hoffmabc
Copy link
Member

That error you're getting @JustinDrake could be the STUN server acting up. I noticed it for a bit and then it finally went away. I think there are some tweaks to the STUN handling that could make this more rresilient.

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

No branches or pull requests

3 participants