Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants