OpenBazaar-Client icon indicating copy to clipboard operation
OpenBazaar-Client copied to clipboard

[OSX] Can't connect to default server.

Open evilsocket opened this issue 9 years ago • 16 comments

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 avatar Jun 12 '16 13:06 evilsocket

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

evilsocket avatar Jun 12 '16 13:06 evilsocket

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

JustinDrake avatar Jun 14 '16 16:06 JustinDrake

As a test try specifying a different OB port

-p 23344

hoffmabc avatar Jun 14 '16 16:06 hoffmabc

@hoffmabc nope, it didn't work

schermata 2016-06-14 alle 18 12 51

evilsocket avatar Jun 14 '16 16:06 evilsocket

@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 "

JustinDrake avatar Jun 14 '16 16:06 JustinDrake

@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

evilsocket avatar Jun 14 '16 16:06 evilsocket

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)

JustinDrake avatar Jun 14 '16 16:06 JustinDrake

Glad that at least it works for you :)

evilsocket avatar Jun 14 '16 16:06 evilsocket

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

JustinDrake avatar Jun 14 '16 16:06 JustinDrake

nope

evilsocket avatar Jun 14 '16 16:06 evilsocket

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

JustinDrake avatar Jun 14 '16 16:06 JustinDrake

@JustinDrake nice, is it open?

evilsocket avatar Jun 14 '16 16:06 evilsocket

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

JustinDrake avatar Jun 14 '16 16:06 JustinDrake

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

evilsocket avatar Jun 14 '16 16:06 evilsocket

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

JustinDrake avatar Jun 14 '16 16:06 JustinDrake

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.

hoffmabc avatar Jun 14 '16 17:06 hoffmabc