GithubHelp home page GithubHelp logo

arablocks / ara-identity-archiver Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 171 KB

An ARA network node that archives identities in a network

License: GNU Lesser General Public License v3.0

JavaScript 98.77% Makefile 0.65% Dockerfile 0.58%
ara archiver identity network node

ara-identity-archiver's People

Contributors

jwerle avatar prash74 avatar vipyne avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ara-identity-archiver's Issues

Archive's CFS call fails if the `host` is a Windows Machine .....

and the Connected peer is a Mac/Linux based system

How to reproduce the issue

  • Setup AID & ANS cli's on both systems by following the steps in this README
  • Run the archiver network node on the Windows Machine
  • Import the archivers secret file in the 2nd machine (Mac/Ubuntu) using ans CLI
  • Create an ARA ID and archive it using the Windows machine's network-key-string

archiver does not work when run locally

 ara: info:  (identity-archiver): Authenticated peer: key=b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25 signature=dc9b981dd1891436396b7625dad253e5b1903fcdd60dadc8cdf0902e90c0f3b80e38c634922c938ca441f0080e8ca6446606b9f8529796070b3e7f7de9e47203
 ara: info:  (identity-archiver): Got okay from peer: signature=dc9b981dd1891436396b7625dad253e5b1903fcdd60dadc8cdf0902e90c0f3b80e38c634922c938ca441f0080e8ca6446606b9f8529796070b3e7f7de9e47203
  multidrive create archive data={"id":"62313264393034373032653464333432633965336337323237386164353937356164623462626165323333653563663935383331666566623337383066613235","key":"b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25"} +41m
  multidrive archive created key=b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25 +64ms
  toiletdb writing /Users/vipyne/.ara/identities/archive/nodes/9ad87a8a75986a159abd77551f642e5761178fa6b9f7b44c0abe8710e4f0b1fe.json {
  "b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25": "{\"id\":\"62313264393034373032653464333432633965336337323237386164353937356164623462626165323333653563663935383331666566623337383066613235\",\"key\":\"b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25\"}"
} +41m
  multidrive archive stored key=b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25 +3ms
  bittorrent-dht [59e6a57] lookup fc97eb174ec64e01a2b89c15648a56dbfd3dcc26 +42s
 ara: info:  (identity-archiver): join: b12d904702e4d342...@fc97eb174ec64e01a2b89c15648a56dbfd3dcc2641444a77145ef2a0909e4b8b
 ara: info:  (identity-archiver): Got archive: key=b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25
 ara: info:  (identity-archiver): Accessing /home for "did:ara:b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25"
 ara: info:  (identity-archiver): Waiting for update for "did:ara:b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25"
  ara:network:node:identity-archiver Got peer: 192.168.128.252:60828@fc97eb174ec64e01a2b89c15648a56dbfd3dcc2641444a77145ef2a0909e4b8b +41m
  ara:network:node:identity-archiver Got peer: 192.168.128.252:57540@fc97eb174ec64e01a2b89c15648a56dbfd3dcc2641444a77145ef2a0909e4b8b +0ms
 ara: info:  (identity-archiver): gateway lookup: b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25
 ara: info:  (identity-archiver): gateway lookup: b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25
  ara:network:node:identity-archiver Error: premature close
  ara:network:node:identity-archiver     at Socket.onclose (/Users/vipyne/.Trash/ara-network-node-identity-archiver/node_modules/end-of-stream/index.js:47:67)
  ara:network:node:identity-archiver     at Socket.emit (events.js:187:15)
  ara:network:node:identity-archiver     at TCP._handle.close [as _onclose] (net.js:598:12) +39ms
 ara: warn:  (identity-archiver): error: premature close

  bittorrent-dht [59e6a57] visited 2 nodes +2s
  bittorrent-dht [59e6a57] announce fc97eb174ec64e01a2b89c15648a56dbfd3dcc26 57540 +0ms

 ara: info:  (identity-archiver): gateway connection: fc97eb174ec64e01a2b89c15648a56dbfd3dcc2641444a77145ef2a0909e4b8b@fc97eb174ec64e01a2b89c15648a56dbfd3dcc2641444a77145ef2a0909e4b8b (192.168.128.252:60828)
 ara: info:  (identity-archiver): Reading /home directory
  ara:network:node:identity-archiver Error: / could not be found
  ara:network:node:identity-archiver     at notFound (/Users/vipyne/.Trash/ara-network-node-identity-archiver/node_modules/append-tree/index.js:683:13)
  ara:network:node:identity-archiver     at /Users/vipyne/.Trash/ara-network-node-identity-archiver/node_modules/append-tree/index.js:110:26
  ara:network:node:identity-archiver     at /Users/vipyne/.Trash/ara-network-node-identity-archiver/node_modules/append-tree/index.js:372:10
  ara:network:node:identity-archiver     at /Users/vipyne/.Trash/ara-network-node-identity-archiver/node_modules/append-tree/index.js:382:5
  ara:network:node:identity-archiver     at /Users/vipyne/.Trash/ara-network-node-identity-archiver/node_modules/hypercore/index.js:162:15
  ara:network:node:identity-archiver     at apply (/Users/vipyne/.Trash/ara-network-node-identity-archiver/node_modules/hypercore/node_modules/thunky/index.js:44:12)
  ara:network:node:identity-archiver     at process._tickCallback (internal/process/next_tick.js:174:19) +5s
 ara: error: (identity-archiver): / could not be found
 ara: warn:  (identity-archiver): Failed to sync identity archive for: "did:ara:b12d904702e4d342c9e3c72278ad5975adb4bbae233e5cf95831fefb3780fa25"```

1. OSX is looking for things in .Trash... seems fishy
2. `error: premature close` seems to be the root culprit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.