OpenBazaar / OpenBazaar-Server

(Deprecated) OpenBazaar 1.0 Server daemon for communication with OpenBazaar-Client
MIT License
608 stars 173 forks source link

OSX python exceptions #363

Open liquorburn opened 8 years ago

liquorburn commented 8 years ago

Starting from two days ago OpenBazaar Server does not start, I've tried to uninstall and delete ~/Library/Application Support/OpenBazaar folder. Then I've installed the newest version 1.1.3 with no luck because OpenBazaar app doesn't show the "first-time" account procedure. If I click "restore default", both username and password are set blank.

Operating System (OS and version): OSX 10.9.5 Mavericks OpenBazaar version: 1.1.0 (also 1.1.3)

Console output:

$ ./openbazaard 
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/44/dv3ggv7n0039nhybw_tzgx7r0000gn/T/_MEI3caBqT
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/44/dv3ggv7n0039nhybw_tzgx7r0000gn/T/_MEI3caBqT
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/44/dv3ggv7n0039nhybw_tzgx7r0000gn/T/_MEI3caBqT/.Python
LOADER: Loaded functions from Python library.
LOADER: Manipulating environment (sys.path, sys.prefix)
LOADER: sys.prefix is /var/folders/44/dv3ggv7n0039nhybw_tzgx7r0000gn/T/_MEI3caBqT
LOADER: Setting runtime options
LOADER: Initializing python
Illegal instruction: 4

Attachments:

liquorburn commented 8 years ago

debug.log.1.txt debug.log.2.txt debug.log.3.txt

openbazaard_2016-04-20-222802.crash.txt openbazaard_2016-04-20-222802-1.crash.txt

hoffmabc commented 8 years ago

SIGILL instead of SIGKILL

hoffmabc commented 8 years ago

I don't know how to resolve this yet.

liquorburn commented 8 years ago

It's ok :) I didn't know that SIGILL is actually a signal and not a typo, I've just read something here

hoffmabc commented 8 years ago

Ok I think I'm getting closer to understanding what might be going on here. It seems like it's something to do with the encryption code, potentially OpenSSL.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   .Python                         0x0000000100da979a _PyRandom_Init + 371
1   .Python                         0x0000000100da6d03 Py_InitializeEx + 345
2   openbazaard                     0x0000000100003982 0x100000000 + 14722
3   openbazaard                     0x0000000100002026 0x100000000 + 8230
4   openbazaard                     0x00000001000023c6 0x100000000 + 9158
5   openbazaard                     0x0000000100000d04 0x100000000 + 3332

This is showing some issue with _PyRandom_Init and also you're getting complaints about code signing and stuff. Perhaps your machine doesn't have the specific encryption instructions needed.

Have you tried installing the latest OpenSSL to see if this is cleared up?

$ openssl version
OpenSSL 1.0.1f 6 Jan 2014
liquorburn commented 8 years ago

Just updated my openssl through brew:

$ brew install openssl
$ brew link --force openssl
$ sudo ln -s /usr/local/Cellar/openssl/1.0.2g/bin/openssl /usr/bin/openssl
$ openssl version
OpenSSL 1.0.2g  1 Mar 2016

Then I've reinstalled OpenBazaar, same issue :( The strangest thing is that OpenBazaar initially worked, I've successfully installed and configured it on april 6th.

liquorburn commented 8 years ago

Some news: I've downloaded v. 1.1.4, installed and launched, the server starts normally but the client does not (1) and there is no "onboarding process" as stated here at step #2. Maybe I've missed to delete some preferences files/folders when I've uninstalled old OB version? As in my first post, I've deleted ~/Library/Application Support/OpenBazaar folder.

(1) Developer Tools shows two JS errors: /Applications/OpenBazaar.app/Contents/Resources/app/js/utils/Socket.js:28 WebSocket connection to 'ws://localhost:18470/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

/Applications/OpenBazaar.app/Contents/Resources/app/js/utils/Socket.js:28 WebSocket connection to 'ws://localhost:18470/' failed: Data frame received after close

jjeffryes commented 8 years ago

Did you delete your old database? If the onboarding step doesn't appear, it's because you have existing data.

You can either turn off your server, delete your database, then turn your server and client back on, which will start everything in a clean state, or you can just change the settings in the Settings page of the app (all of the data set in the onboarding step can also be set in Settings)

liquorburn commented 8 years ago

@jjeffryes I can't even access the main page of the app, I'm stuck at the login screen. Please read all my previous posts. Deleting the database didn't fix the issue.