ssbc / ssb-server

The gossip and replication server for Secure Scuttlebutt - a distributed social network
1.68k stars 164 forks source link

Unable to set custom path for '.ssb' folder #716

Closed chongjh closed 4 years ago

chongjh commented 4 years ago

I'm trying to set a custom directory path for the '.ssb' folder. I refered to this documentation.

To reproduce : Change path in node_modules/ssb-config/defaults.js to a custom directory path.

Error output :

        throw err
        ^`

Error: could not connect to sbot
    at C:<HOME>\Documents\Github\app\node_modules\ssb-client\client.js:55:17
    at next (C:<HOME>\Documents\Github\app\node_modules\multiserver\compose.js:24:14)
    at C:<HOME>\Documents\Github\app\node_modules\multiserver\compose.js:34:9
    at _cb (C:<HOME>\Documents\Github\app\node_modules\multiserver\plugins\shs.js:28:20)
    at C:<HOME>\Documents\Github\app\node_modules\secret-handshake\protocol.js:118:22
    at C:<HOME>\Documents\Github\app\node_modules\pull-handshake\index.js:10:5
    at C:<HOME>\Documents\Github\app\node_modules\pull-handshake\index.js:23:13
    at callback (C:<HOME>\Documents\Github\app\node_modules\pull-pushable\index.js:81:7)
    at drain (C:<HOME>\Documents\Github\app\node_modules\pull-pushable\index.js:68:39)
  Error: shs.client: server hung up when we sent hello (phase 3).
Possibly we dailed a wrong number, or the server does not wish to talk to us.
    at abort (C:<HOME>\Documents\Github\app\node_modules\secret-handshake\protocol.js:37:45)
    at Object.cb (C:<HOME>\Documents\Github\app\node_modules\secret-handshake\protocol.js:52:26)
    at drain (C:<HOME>\Documents\Github\app\node_modules\pull-reader\index.js:43:23)
  Error: stream ended with:64 but wanted:80
    at drain (C:<HOME>\Documents\Github\app\node_modules\pull-reader\index.js:43:26)
    at C:<HOME>\Documents\Github\app\node_modules\pull-reader\index.js:63:18
    at C:<HOME>\Documents\Github\app\node_modules\pull-reader\index.js:20:7
    at drain (C:<HOME>\Documents\Github\app\node_modules\stream-to-pull-stream\index.js:126:18)
    at Socket.<anonymous> (C:<HOME>\Documents\Github\app\node_modules\stream-to-pull-stream\index.js:143:5)
    at Socket.emit (events.js:194:15)
    at endReadableNT (_stream_readable.js:1125:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Process finished with exit code 1
stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?