Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Issues starting with: Command failed: /bin/sh -c which dataserv-client #104

Closed
Jzarecta opened this issue Dec 12, 2015 · 7 comments
Closed
Assignees

Comments

@Jzarecta
Copy link

I get this message upon build, I did the compilation and npm start and the UI showed up but then it didnt find the dataserv-client. This is the output when compiling.

npm install

> electron-prebuilt@0.32.3 postinstall /home/jza/Downloads/driveshare-gui/node_modules/electron-prebuilt
> node install.js

Downloading electron-v0.32.3-linux-x64.zip
[============================================>] 100.0% of 36.58 MB (478.19 kB/s)

> undefined postinstall /home/jza/Downloads/driveshare-gui
> node ./tasks/app_npm_install

DriveShare@0.4.1 /home/jza/Downloads/driveshare-gui/app
├── adm-zip@0.4.7 
├── async@1.5.0 
├── bootstrap@3.3.6 
├── diskspace@1.0.2  (git://github.com/keverw/diskspace.js.git#5cce0ce71796d69c7eda69b7cfe20b1e123755dd)
├── electron-safe-ipc@0.6.1 
├─┬ fs-extra@0.24.0 
......
npm WARN optional Skipping failed optional dependency //appdmg:
npm WARN notsup Not compatible with your operating system or architecture: appdmg@0.3.5
[Ƀ 424.81 jza@arch driveshare-gui]$ npm start

> @ start /home/jza/Downloads/driveshare-gui
> node ./tasks/start

[14:11:18] Using gulpfile ~/Downloads/driveshare-gui/gulpfile.js
[14:11:18] Starting 'clean'...
[14:11:18] Finished 'clean' after 5.05 ms
[14:11:18] Starting 'copy'...
[14:11:19] Finished 'copy' after 1.2 s
[14:11:19] Starting 'build'...
[14:11:19] Finished 'build' after 24 μs
[2246:1212/141119:ERROR:browser_main_loop.cc(189)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[14:11:20] Using gulpfile ~/Downloads/driveshare-gui/gulpfile.js
[14:11:20] Starting 'watch'...
[2288:1212/141120:INFO:renderer_main.cc(200)] Renderer process started
[14:11:20] Finished 'watch' after 790 ms
[2246:1212/141120:INFO:CONSOLE(9393)] "Download the Vue Devtools for a better development experience:
https://github.com/vuejs/vue-devtools", source: /home/jza/Downloads/driveshare-gui/build/node_modules/vue/dist/vue.common.js (9393)
[2276:1212/141202:WARNING:x11_util.cc(1472)] X error received: serial 6239, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 153, minor_code 3 (DRI2CreateDrawable)
[2276:1212/141202:WARNING:x11_util.cc(1472)] X error received: serial 6240, error_code 9 (BadDrawable (invalid Pixmap or Window parameter)), request_code 153, minor_code 12 (DRI2SwapInterval              )
[2276:1212/141202:WARNING:x11_util.cc(1472)] X error received: serial 6241, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)
[Ƀ 426.13 jza@arch driveshare-gui]$ npm start

> @ start /home/jza/Downloads/driveshare-gui
> node ./tasks/start

[14:12:43] Using gulpfile ~/Downloads/driveshare-gui/gulpfile.js
[14:12:43] Starting 'clean'...
[14:12:43] Finished 'clean' after 135 ms
[14:12:43] Starting 'copy'...
[14:12:45] Finished 'copy' after 1.81 s
[14:12:45] Starting 'build'...
[14:12:45] Finished 'build' after 30 μs
[2712:1212/141245:ERROR:browser_main_loop.cc(189)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[2749:1212/141246:INFO:renderer_main.cc(200)] Renderer process started
[14:12:46] Using gulpfile ~/Downloads/driveshare-gui/gulpfile.js
[14:12:46] Starting 'watch'...
[2712:1212/141247:INFO:CONSOLE(9393)] "Download the Vue Devtools for a better development experience:
https://github.com/vuejs/vue-devtools", source: /home/jza/Downloads/driveshare-gui/build/node_modules/vue/dist/vue.common.js (9393)
[14:12:47] Finished 'watch' after 1.07 s
@littleskunk
Copy link
Contributor

os? driveshare-gui branch?

@Jzarecta
Copy link
Author

Archlinux, I was following the readme.

git clone https://github.com/Storj/driveshare-gui.git && cd driveshare-gui
npm install
npm start

I got the window UI with this message: "Command failed: /bin/sh -c which dataserv-client"

@littleskunk
Copy link
Contributor

duplicate #45

Wait for the next release or try it with the develop branch.
git clone https://github.com/Storj/driveshare-gui.git -b develop

@lilyannehall
Copy link
Contributor

@Jzarecta you'll need to be sure to install the deps listed in the resources/Linux/DEBIAN/control and resources/Linux/DEBIAN/postinstfrom Arch's repositories. If I have some time, I may create a bundle that is compatible with pacman, or I'd happily accept a pull request that adds support.

@lilyannehall
Copy link
Contributor

In the meantime, I will spend a little more time on the documentation.

@lilyannehall
Copy link
Contributor

Another note: while working on the Debian package support, I discovered that different distributions (or perhaps different shells) report errors back to Node differently.

For instance, on my primary workstation running Debian Sid and using zsh as my shell, the which program informs Node that the command returns no result on stderr and on Ubuntu 14.04 using bash, Node bubbles a "command failed" Error, which the UI interprets as fatal instead of "dataserv not installed" and moving forward with the install.

Fortunately, this doesn't matter anymore as GNU/Linux dependency management is all handled though the Debian package instead of on first run from within the UI. However this does put an extra installation step for users of distros like Arch that do not use APT.

The solution here is to update the documentation for building from source on non-debian distributions.

@IgorGanapolsky
Copy link

I never even get the window ui when running npm start. I am on Windows 10.

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

5 participants