OpenBazaar / OpenBazaar-Server

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

Client unable to start Server or connect to it from .deb binary #323

Open sjug opened 8 years ago

sjug commented 8 years ago

Brief Description: When user launches openbazaar on linux the client is unable to connect to the server.

Operating System: Arch Linux 4.4.5-1 OpenBazaar version: v1.1.0 Hardware: Lenovo X1 Carbon

Reproducible: Always

Steps to reproduce:

  1. Run openbazaar from launcher or console.
  2. GUI informs that it is "Unable to connect to your server."
  3. Console output provides further limited detail.

Observed Behavior: Unable to connect to your server.

Expected Behavior: Welcome, select your language.

Additional info (console output): Starting OpenBazaar Server [STR] stderr "Cannot open self /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard or archive /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard.pkg " exited with 255 [END] stdout "" [END] stderr "Cannot open self /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard or archive /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard.pkg "

stonedbear commented 8 years ago

from what i gathered, this is a standallone client. You also need to install and configure openbazaard and run server.

sjug commented 8 years ago

It's not the standalone client it's the (https://github.com/OpenBazaar/OpenBazaar-Installer/releases/download/v1.1.0/openbazaar_1.1.0_amd64.deb)

It has the /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard as part of the install which it tries to launch. For some reason launching it fails both from within the app or launching directly and that's the issue.

loganmarchione commented 8 years ago

@sjug same issue here on Arch 4.4.5-1 from AUR.

Starting OpenBazaar Server
[STR] stderr "Cannot open self /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard or archive /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard.pkg
"
exited with 255
[END] stdout ""
[END] stderr "Cannot open self /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard or archive /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard.pkg
gcarq commented 8 years ago

relevant strace output:

open("/usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard.pkg", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "Cannot open self /usr/share/open"..., 156Cannot open self /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard or archive /usr/share/openbazaar/resources/OpenBazaar-Server/openbazaard.pkg
) = 156
exit_group(-1)                          = ?
+++ exited with 255 +++
ThomasWaldmann commented 7 years ago

@gcarq the interesting part of that strace are the few lines before the lines you posted.

When it tries to open the .pkg, that is already the fallback if it could not find the executable file.

https://github.com/pyinstaller/pyinstaller/issues/2357

hoffmabc commented 7 years ago

@sjug @gcarq @ThomasWaldmann @loganmarchione it could be we packaged it with some permissions issue. Did you try:

 chmod a+rx openbazaard