Package Details: storjshare-daemon 5.2.0-1

Git Clone URL: https://aur.archlinux.org/storjshare-daemon.git (read-only)
Package Base: storjshare-daemon
Description: A CLI Client for running a farming node
Upstream URL: https://github.com/Storj/storjshare-daemon
Licenses: AGPL3
Replaces: storjshare-cli
Submitter: Artraxon
Maintainer: arjen
Last Packager: arjen
Votes: 3
Popularity: 0.229681
First Submitted: 2017-03-30 17:45
Last Updated: 2017-10-26 07:49

Latest Comments

oneup commented on 2017-11-13 06:19

Building the package fails with the following log:

==> Starting package()...
npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> scrypt@6.0.3 preinstall /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/node_modules/storjshare-daemon/node_modules/scrypt
> node node-scrypt-preinstall.js

/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/node_m
odules/storjshare-daemon/bin/storjshare.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-start -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/
node_modules/storjshare-daemon/bin/storjshare-start.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-stop -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/n
ode_modules/storjshare-daemon/bin/storjshare-stop.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-restart -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/li
b/node_modules/storjshare-daemon/bin/storjshare-restart.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-status -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib
/node_modules/storjshare-daemon/bin/storjshare-status.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-logs -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/n
ode_modules/storjshare-daemon/bin/storjshare-logs.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-save -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/n
ode_modules/storjshare-daemon/bin/storjshare-save.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-load -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/n
ode_modules/storjshare-daemon/bin/storjshare-load.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-killall -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/li
b/node_modules/storjshare-daemon/bin/storjshare-killall.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-destroy -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/li
b/node_modules/storjshare-daemon/bin/storjshare-destroy.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-daemon -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib
/node_modules/storjshare-daemon/bin/storjshare-daemon.js
/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/bin/storjshare-create -> /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib
/node_modules/storjshare-daemon/bin/storjshare-create.js

> diskusage@0.2.4 install /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/node_modules/storjshare-daemon/node_modules/diskusage
> node-gyp rebuild

make: Entering directory '/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/node_modules/storjshare-daemon/node_modules/diskusage/build'
CXX(target) Release/obj.target/diskusage/src/main.o
CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o
SOLINK_MODULE(target) Release/obj.target/diskusage.node
/usr/bin/ld: Release/obj.target/diskusage/src/main.o: relocation R_X86_64_PC32 against symbol `_ZN3Nan3NewIN2v86StringEPKcEENS_3imp7FactoryIT_E8return_tET0_' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [diskusage.target.mk:125: Release/obj.target/diskusage.node] Error 1
make: Leaving directory '/home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/node_modules/storjshare-daemon/node_modules/diskusage/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
gyp ERR! System Linux 4.13.10-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/oneup/.cache/pacaur/storjshare-daemon/pkg/storjshare-daemon/usr/lib/node_modules/storjshare-daemon/node_modules/diskusage
gyp ERR! node -v v6.11.5
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! diskusage@0.2.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the diskusage@0.2.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/oneup/.npm/_logs/2017-11-13T06_17_12_202Z-debug.log
==> ERROR: A failure occurred in package().
Aborting...
:: failed to build storjshare-daemon package(s)

doronbehar commented on 2017-08-05 14:41

The authenticity of host 'github.com (192.30.253.112)' can't be established.aemon@3.5.5 checking installable status
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.

Anyone knows how to fix this error? The installation stucks after I see this message.
I read https://github.com/Storj/storjshare-daemon/issues/73 and tried to edit PKGBUILD and append `--unsafe-perm` and it didn't help neither.

cemsbr commented on 2017-07-19 18:49

The error below happens after starting the farmer. It can only be seen if the daemon is started in foreground:

$ storjshare daemon -F

* starting daemon in foreground

{"level":"info","message":"attempting to start share with config at path /home/cemsbr/.config/storjshare/config/config.json","timestamp":"2017-07-19T18:44:25.180Z"}
internal/streams/legacy.js:59
throw er; // Unhandled stream error in pipe.
^

TypeError: conf.storageAllocation.match is not a function
at Object.exports.validateAllocation (/usr/lib/node_modules/storjshare-daemon/lib/utils.js:83:31)
at RPC.start (/usr/lib/node_modules/storjshare-daemon/lib/api.js:121:11)
at Proto.apply (/usr/lib/node_modules/storjshare-daemon/node_modules/dnode-protocol/index.js:123:13)
at Proto.handle (/usr/lib/node_modules/storjshare-daemon/node_modules/dnode-protocol/index.js:99:19)
at Object.dnode.handle (/usr/lib/node_modules/storjshare-daemon/node_modules/dnode/lib/dnode.js:140:21)
at Object.dnode.write (/usr/lib/node_modules/storjshare-daemon/node_modules/dnode/lib/dnode.js:106:22)
at Socket.ondata (_stream_readable.js:555:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:547:20)

ordtrogen commented on 2017-06-29 17:57

It's great to have it here in AUR!

Please update it to the latest version, which is 3.4.0

ordtrogen commented on 2017-06-12 22:43

It worked fine for me after I changed

depends=('nodejs>=6.9' 'python2>=2.7.0')

to

depends=('nodejs-lts-boron' 'python2>=2.7.0')

(thanks cemsbr) in the file PKGBUILD

Please maintainer, could you fix this in the package?

cemsbr commented on 2017-06-06 19:53

It doesn't work with nodejs v8. Changing the dependency from nodejs to nodejs-lts-boron worked for me.

gcarq commented on 2017-04-15 16:33

Hi,

please rewrite the package() function. Never use sudo in PKGBUILDs!
Not only will that make the build system unclean,
these changes also won't show up on install time on the system you use
it.

It could be written as:
package() {
cd "$srcdir"
npm install --user root -g --prefix "$pkgdir/usr" "v${pkgver}.tar.gz"
}

PS: also set sha256sums=() with a valid hash to verify file integrity.

See https://aur.archlinux.org/packages/nodejs-jshint/ for reference

Thanks!