The Storj Developer Hub

Welcome to the Storj developer hub. You'll find comprehensive guides and documentation to help you start working with Storj as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Support
Ask A Question

Questions

2

Procedure for migrating Storj data and offered data not all taken

Hello, I need to "migrate" my Storj data (that I'm offering to Storj) from one location (computer) to another (external hard disk). Can you please confirm the procedure below? I use the graphical interface. 1. Fully stop Storj application 2. Copy the whole folder defined in the drive (Storj graphical interface) from location A to B (then rename or delete the old folder) 3. Start Storj graphical interface and point to the new location This is for me the first step. Can you confirm this? Second step would be to install a new Storj GUI client on another computer TARGET. Steps are then I guess: 0. Install a timeclock on computer TARGET (http://timesynctool.com) and the Storj GUI. 1. Fully stop Storj application on computer SOURCE 2. Copy the Storj folder (...\AppData\Roaming) from computer SOURCE to computer TARGET (replace there). 3. I have a dynamic IP address (but I did setup a DNS record linked to it) -> so in that particular service I need to point the DNS record to the new IP address (from computer TARGET) instead of computer SOURCE. 4. Both computers are in the same network so portforwarding does not have to be changed. 5. Restart the Storj application on computer TARGET (maybe I will need to point the drive in the graphical interface to another location if computer TARGET uses another letter mapping then computer SOURCE). Can you validate this step? Another question... since 12.01 I'm offering 150 GB (I'm in test phase) and I had 99.5% uptime. For the moment only 106 MB is taken.I did setup everything (clock + public dns record + port + excellent uptime). How long does it normally take before all space is taken? I want to assign a TB later on, but for the moment I feel this is unnecessary since even the small amount I'm offering is not taken. Is this because I'm new to the network and I still need to built up reputation? Are there other parameters or things to think about? Thank you for your help. Sven

Posted by Sven 2 days ago

9

Storj Share Daemon

I am trying to install command-line interface on my synology nas. But I am getting error: npm install -g storjshare-daemon npm ERR! tar.unpack untar error /var/services/homes/admin/.npm/storjshare-daemon/2.0.0/package.tgz npm ERR! Linux 3.10.77 npm ERR! argv "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "storjshare-daemon" npm ERR! node v4.4.2 npm ERR! npm v2.15.0 npm ERR! path /usr/local/lib/node_modules/storjshare-daemon npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/storjshare-daemon' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/storjshare-daemon'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/storjshare-daemon', npm ERR! fstream_type: 'Directory', npm ERR! fstream_path: '/usr/local/lib/node_modules/storjshare-daemon', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25', npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53', npm ERR! 'FSReqWrap.oncomplete (fs.js:82:15)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! Please include the following file with any support request: npm ERR! /volume1/homes/admin/npm-debug.log npm-debug.log::: 0 info it worked if it ends with ok 1 verbose cli [ '/volume1/@appstore/Node.js_v4/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli '-g', 1 verbose cli 'storjshare-daemon' ] 2 info using npm@2.15.0 3 info using node@v4.4.2 4 verbose install initial load of /usr/local/lib/package.json 5 verbose readDependencies loading dependencies from /usr/local/lib/package.json 6 silly cache add args [ 'storjshare-daemon', null ] 7 verbose cache add spec storjshare-daemon 8 silly cache add parsed spec Result { 8 silly cache add raw: 'storjshare-daemon', 8 silly cache add scope: null, 8 silly cache add name: 'storjshare-daemon', 8 silly cache add rawSpec: '', 8 silly cache add spec: 'latest', 8 silly cache add type: 'tag' } 9 silly addNamed storjshare-daemon@latest 10 verbose addNamed "latest" is being treated as a dist-tag for storjshare-daemon 11 info addNameTag [ 'storjshare-daemon', 'latest' ] 12 silly mapToRegistry name storjshare-daemon 13 silly mapToRegistry using default registry 14 silly mapToRegistry registry https://registry.npmjs.org/ 15 silly mapToRegistry data Result { 15 silly mapToRegistry raw: 'storjshare-daemon', 15 silly mapToRegistry scope: null, 15 silly mapToRegistry name: 'storjshare-daemon', 15 silly mapToRegistry rawSpec: '', 15 silly mapToRegistry spec: 'latest', 15 silly mapToRegistry type: 'tag' } 16 silly mapToRegistry uri https://registry.npmjs.org/storjshare-daemon 17 verbose addNameTag registry:https://registry.npmjs.org/storjshare-daemon not in flight; fetching 18 verbose request uri https://registry.npmjs.org/storjshare-daemon 19 verbose request no auth needed 20 info attempt registry request try #1 at 4:13:43 PM 21 verbose request id 461bfd68131948e0 22 http request GET https://registry.npmjs.org/storjshare-daemon 23 http 200 https://registry.npmjs.org/storjshare-daemon 24 verbose headers { server: 'nginx/1.10.1', 24 verbose headers 'content-type': 'application/json', 24 verbose headers 'last-modified': 'Tue, 10 Jan 2017 20:36:42 GMT', 24 verbose headers etag: 'W/"587545da-3953"', 24 verbose headers 'content-encoding': 'gzip', 24 verbose headers 'cache-control': 'max-age=300', 24 verbose headers 'content-length': '4616', 24 verbose headers 'accept-ranges': 'bytes', 24 verbose headers date: 'Wed, 11 Jan 2017 15:13:43 GMT', 24 verbose headers via: '1.1 varnish', 24 verbose headers age: '0', 24 verbose headers connection: 'keep-alive', 24 verbose headers 'x-served-by': 'cache-fra1224-FRA', 24 verbose headers 'x-cache': 'HIT', 24 verbose headers 'x-cache-hits': '1', 24 verbose headers 'x-timer': 'S1484147623.525859,VS0,VE1', 24 verbose headers vary: 'Accept-Encoding' } 25 silly get cb [ 200, 25 silly get { server: 'nginx/1.10.1', 25 silly get 'content-type': 'application/json', 25 silly get 'last-modified': 'Tue, 10 Jan 2017 20:36:42 GMT', 25 silly get etag: 'W/"587545da-3953"', 25 silly get 'content-encoding': 'gzip', 25 silly get 'cache-control': 'max-age=300', 25 silly get 'content-length': '4616', 25 silly get 'accept-ranges': 'bytes', 25 silly get date: 'Wed, 11 Jan 2017 15:13:43 GMT', 25 silly get via: '1.1 varnish', 25 silly get age: '0', 25 silly get connection: 'keep-alive', 25 silly get 'x-served-by': 'cache-fra1224-FRA', 25 silly get 'x-cache': 'HIT', 25 silly get 'x-cache-hits': '1', 25 silly get 'x-timer': 'S1484147623.525859,VS0,VE1', 25 silly get vary: 'Accept-Encoding' } ] 26 verbose get saving storjshare-daemon to /var/services/homes/admin/.npm/registry.npmjs.org/storjshare-daemon/.cache.json 27 verbose correctMkdir /var/services/homes/admin/.npm correctMkdir not in flight; initializing 28 verbose makeDirectory /var/services/homes/admin/.npm creation not in flight; initializing 29 silly makeDirectory /var/services/homes/admin/.npm uid: 1024 gid: 100 30 silly addNameTag next cb for storjshare-daemon with tag latest 31 silly addNamed storjshare-daemon@2.0.0 32 verbose addNamed "2.0.0" is a plain semver version for storjshare-daemon 33 silly mapToRegistry name storjshare-daemon 34 silly mapToRegistry using default registry 35 silly mapToRegistry registry https://registry.npmjs.org/ 36 silly mapToRegistry data Result { 36 silly mapToRegistry raw: 'storjshare-daemon', 36 silly mapToRegistry scope: null, 36 silly mapToRegistry name: 'storjshare-daemon', 36 silly mapToRegistry rawSpec: '', 36 silly mapToRegistry spec: 'latest', 36 silly mapToRegistry type: 'tag' } 37 silly mapToRegistry uri https://registry.npmjs.org/storjshare-daemon 38 verbose addRemoteTarball https://registry.npmjs.org/storjshare-daemon/-/storjshare-daemon-2.0.0.tgz not in flight; adding 39 verbose addRemoteTarball [ 'https://registry.npmjs.org/storjshare-daemon/-/storjshare-daemon-2.0.0.tgz', 39 verbose addRemoteTarball 'a755c0e2d94ea5834c754f09d70ff8b5d31c68c4' ] 40 info retry fetch attempt 1 at 4:13:43 PM 41 info attempt registry request try #1 at 4:13:43 PM 42 http fetch GET https://registry.npmjs.org/storjshare-daemon/-/storjshare-daemon-2.0.0.tgz 43 http fetch 200 https://registry.npmjs.org/storjshare-daemon/-/storjshare-daemon-2.0.0.tgz 44 silly fetchAndShaCheck shasum a755c0e2d94ea5834c754f09d70ff8b5d31c68c4 45 verbose addTmpTarball /tmp/npm-9367-9e32fcd2/registry.npmjs.org/storjshare-daemon/-/storjshare-daemon-2.0.0.tgz not in flight; adding 46 verbose addTmpTarball already have metadata; skipping unpack for storjshare-daemon@2.0.0 47 verbose correctMkdir /var/services/homes/admin/.npm correctMkdir not in flight; initializing 48 silly cache afterAdd storjshare-daemon@2.0.0 49 verbose afterAdd /var/services/homes/admin/.npm/storjshare-daemon/2.0.0/package/package.json not in flight; writing 50 verbose correctMkdir /var/services/homes/admin/.npm correctMkdir not in flight; initializing 51 verbose afterAdd /var/services/homes/admin/.npm/storjshare-daemon/2.0.0/package/package.json written 52 silly install resolved [ { name: 'storjshare-daemon', 52 silly install resolved version: '2.0.0', 52 silly install resolved description: 'daemon + process manager for sharing space on the storj network', 52 silly install resolved main: 'index.js', 52 silly install resolved bin: { storjshare: 'bin/storjshare.js' }, 52 silly install resolved directories: { test: 'test', lib: 'lib' }, 52 silly install resolved scripts: 52 silly install resolved { test: 'npm run testsuite && npm run linter', 52 silly install resolved testsuite: 'STORJ_ALLOW_LOOPBACK=1 ./node_modules/.bin/mocha test/** --recursive', 52 silly install resolved coverage: 'STORJ_ALLOW_LOOPBACK=1 ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --recursive', 52 silly install resolved linter: 'jshint --config .jshintrc ./index.js ./lib ./test' }, 52 silly install resolved preferGlobal: true, 52 silly install resolved repository: 52 silly install resolved { type: 'git', 52 silly install resolved url: 'git+https://github.com/storj/storjshare-daemon.git' }, 52 silly install resolved keywords: [ 'storj', 'farmer', 'storjshare', 'share' ], 52 silly install resolved author: { name: 'Alexander Leitner', email: 'alex@storj.io' }, 52 silly install resolved contributors: [ [Object] ], 52 silly install resolved license: 'AGPL-3.0', 52 silly install resolved bugs: { url: 'https://github.com/storj/storjshare-daemon/issues' }, 52 silly install resolved homepage: 'https://github.com/storj/storjshare-daemon#readme', 52 silly install resolved dependencies: 52 silly install resolved { bytes: '^2.4.0', 52 silly install resolved 'cli-table': '^0.3.1', 52 silly install resolved colors: '^1.1.2', 52 silly install resolved commander: '^2.9.0', 52 silly install resolved daemon: '^1.1.0', 52 silly install resolved dnode: '^1.2.2', 52 silly install resolved du: '^0.1.0', 52 silly install resolved editor: '^1.0.0', 52 silly install resolved 'fd-diskspace': 'github:littleskunk/fd-diskspace#2866a4cf147649d97f81fb33464bcbf0f8176bd5', 52 silly install resolved 'kad-logger-json': '^0.1.2', 52 silly install resolved mkdirp: '^0.5.1', 52 silly install resolved 'pretty-ms': '^2.1.0', 52 silly install resolved rc: '^1.1.6', 52 silly install resolved 'readable-stream': '^2.2.2', 52 silly install resolved 'storj-lib': '^6.0.11', 52 silly install resolved 'strip-json-comments': '^2.0.1', 52 silly install resolved tail: '^1.2.1' }, 52 silly install resolved devDependencies: 52 silly install resolved { chai: '^2.2.0', 52 silly install resolved coveralls: '^2.11.2', 52 silly install resolved istanbul: '^0.3.13', 52 silly install resolved jshint: '2.8.0', 52 silly install resolved mocha: '^2.2.4', 52 silly install resolved proxyquire: '^1.7.3', 52 silly install resolved sinon: '^1.14.1' }, 52 silly install resolved gitHead: '14f0ac052bedddab8def0ad004507ce3cda1dd40', 52 silly install resolved _id: 'storjshare-daemon@2.0.0', 52 silly install resolved _shasum: 'a755c0e2d94ea5834c754f09d70ff8b5d31c68c4', 52 silly install resolved _from: 'storjshare-daemon@latest', 52 silly install resolved _npmVersion: '3.10.8', 52 silly install resolved _nodeVersion: '6.9.1', 52 silly install resolved _npmUser: { name: 'bookchin', email: 'gordonhall@openmailbox.org' }, 52 silly install resolved dist: 52 silly install resolved { shasum: 'a755c0e2d94ea5834c754f09d70ff8b5d31c68c4', 52 silly install resolved tarball: 'https://registry.npmjs.org/storjshare-daemon/-/storjshare-daemon-2.0.0.tgz' }, 52 silly install resolved maintainers: [ [Object] ], 52 silly install resolved _npmOperationalInternal: 52 silly install resolved { host: 'packages-18-east.internal.npmjs.com', 52 silly install resolved tmp: 'tmp/storjshare-daemon-2.0.0.tgz_1484080601799_0.015979502582922578' }, 52 silly install resolved _resolved: 'https://registry.npmjs.org/storjshare-daemon/-/storjshare-daemon-2.0.0.tgz' } ] 53 info install storjshare-daemon@2.0.0 into /usr/local/lib 54 info installOne storjshare-daemon@2.0.0 55 verbose installOne of storjshare-daemon to /usr/local/lib not in flight; installing 56 verbose correctMkdir /var/services/homes/admin/.npm/_locks correctMkdir not in flight; initializing 57 verbose makeDirectory /var/services/homes/admin/.npm/_locks creation not in flight; initializing 58 silly makeDirectory /var/services/homes/admin/.npm/_locks uid: 1024 gid: 100 59 verbose lock using /var/services/homes/admin/.npm/_locks/storjshare-daemon-65fda73e08bd192a.lock for /usr/local/lib/node_modules/storjshare-daemon 60 silly install write writing storjshare-daemon 2.0.0 to /usr/local/lib/node_modules/storjshare-daemon 61 verbose unbuild lib/node_modules/storjshare-daemon 62 silly gentlyRm /usr/local/lib/node_modules/storjshare-daemon is being purged from base /usr/local 63 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/storjshare-daemon 64 verbose tar unpack /var/services/homes/admin/.npm/storjshare-daemon/2.0.0/package.tgz 65 verbose tar unpacking to /usr/local/lib/node_modules/storjshare-daemon 66 silly gentlyRm /usr/local/lib/node_modules/storjshare-daemon is being purged 67 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/storjshare-daemon 68 silly gunzTarPerm modes [ '755', '644' ] 69 error tar.unpack untar error /var/services/homes/admin/.npm/storjshare-daemon/2.0.0/package.tgz 70 verbose unlock done using /var/services/homes/admin/.npm/_locks/storjshare-daemon-65fda73e08bd192a.lock for /usr/local/lib/node_modules/storjshare-daemon 71 verbose fstream_path /usr/local/lib/node_modules/storjshare-daemon 72 verbose fstream_type Directory 73 verbose fstream_class DirWriter 74 verbose stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/storjshare-daemon' 74 verbose stack at Error (native) 75 verbose fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25 75 verbose fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53 75 verbose fstream_stack FSReqWrap.oncomplete (fs.js:82:15) 76 verbose cwd /volume1/homes/admin 77 error Linux 3.10.77 78 error argv "/volume1/@appstore/Node.js_v4/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "storjshare-daemon" 79 error node v4.4.2 80 error npm v2.15.0 81 error path /usr/local/lib/node_modules/storjshare-daemon 82 error code EACCES 83 error errno -13 84 error syscall mkdir 85 error Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/storjshare-daemon' 85 error at Error (native) 85 error { [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/storjshare-daemon'] 85 error errno: -13, 85 error code: 'EACCES', 85 error syscall: 'mkdir', 85 error path: '/usr/local/lib/node_modules/storjshare-daemon', 85 error fstream_type: 'Directory', 85 error fstream_path: '/usr/local/lib/node_modules/storjshare-daemon', 85 error fstream_class: 'DirWriter', 85 error fstream_stack: 85 error [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25', 85 error '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53', 85 error 'FSReqWrap.oncomplete (fs.js:82:15)' ] } 86 error Please try running this command again as root/Administrator. 87 verbose exit [ -13, true ] 88 verbose unbuild lib/node_modules/storjshare-daemon 89 silly gentlyRm /usr/local/lib/node_modules/storjshare-daemon is being purged from base /usr/local 90 verbose gentlyRm don't care about contents; nuking /usr/local/lib/node_modules/storjshare-daemon

Posted by igor 9 days ago

2

Error

Dear Storj.io Support! Based on the description you have installed but faced with the following error: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: dtrace-provider@0.6.0 install: `node scripts/install.js` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT npm ERR! Linux 3.16.0-4-amd64 npm ERR! argv "/root/.nvm/versions/node/v6.9.1/bin/node" "/root/.nvm/versions/node/v6.9.1/bin/npm" "install" "-g" "storjshare-cli" npm ERR! node v6.9.1 npm ERR! npm v3.10.8 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! leveldown@1.5.1 install: `prebuild --install` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the leveldown@1.5.1 install script 'prebuild --install'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the leveldown package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! prebuild --install npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs leveldown npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls leveldown npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /root/npm-debug.log npm ERR! code 1 root@genesys:~# ls npm-debug.log root@genesys:~# mcview npm-debug.log I would like to ask you to help repair errors in connection with a detailed description, as you want to join the feature set! I wish you a nice day!

Posted by Kockah Balázs 23 days ago