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

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

Open sjug opened this issue 8 years ago • 6 comments

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 "

sjug avatar Apr 04 '16 23:04 sjug

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

stonedbear avatar Apr 06 '16 00:04 stonedbear

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.

sjug avatar Apr 06 '16 01:04 sjug

@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

loganmarchione avatar Apr 13 '16 03:04 loganmarchione

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 +++

gcarq avatar Apr 15 '16 19:04 gcarq

@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

ThomasWaldmann avatar Jan 16 '17 04:01 ThomasWaldmann

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

 chmod a+rx openbazaard

hoffmabc avatar Jan 16 '17 14:01 hoffmabc