Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORBITDB_PATH is not respected #34

Open
berkes opened this issue Oct 2, 2019 · 0 comments
Open

ORBITDB_PATH is not respected #34

berkes opened this issue Oct 2, 2019 · 0 comments
Labels

Comments

@berkes
Copy link

berkes commented Oct 2, 2019

$ ORBITDB_PATH=/home/xxx/orbitdb npx orbitdb demo hello
                 _     _ _         _ _     
                | |   (_) |       | | |    
       ___  _ __| |__  _| |_    __| | |__  
      / _ \| '__| '_ \| | __|  / _` | '_ \ 
     | (_) | |  | |_) | | |_  | (_| | |_) |
      \___/|_|  |_.__/|_|\__|  \__,_|_.__/ 

             Peer-to-Peer Database
       https://github.com/orbitdb/orbit-db

> node "node_modules/.bin/orbitdb" create /orbitdb/demo docstore
Error: Cannot read property 'set' of undefined
Command failed: node "/home/xxx/orbitdb/node_modules/orbit-db-cli/src/bin" create /orbitdb/demo docstore
Error: Cannot read property 'set' of undefined

The error Cannot read property 'set' of undefined is probably unrelated.

The issue comes with "node_modules/.bin/orbitdb" create /orbitdb/demo docstorewhere it appears the binary tries to make a docstore at/orbitdb/demo`.

Same can be seen with another command:

$ ORBITDB_PATH=/home/xxx/orbitdb npx orbitdb create hello feed
Error: Cannot read property 'set' of undefined
$ file /home/ber/tmp/orbitdb
/home/xxxx/orbitdb: cannot open `/home/xxxx/orbitdb' (No such file or directory)

Note that the xxx is to censor some directory-names only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants