-
Notifications
You must be signed in to change notification settings - Fork 78
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
[WIP] update to [email protected] #299
Conversation
Here are the current errors I'm hitting when I TypeError: proto.server is not a function
at Object.server (/home/mix/projects/SSBC/patchbay/node_modules/secret-stack/node_modules/multiserver/compose.js:96:29)
at /home/mix/projects/SSBC/patchbay/node_modules/secret-stack/node_modules/multiserver/index.js:31:21
at Array.map (<anonymous>)
at Object.server (/home/mix/projects/SSBC/patchbay/node_modules/secret-stack/node_modules/multiserver/index.js:30:26)
at setupMultiserver (/home/mix/projects/SSBC/patchbay/node_modules/secret-stack/index.js:173:21)
at EventEmitter.getAddress (/home/mix/projects/SSBC/patchbay/node_modules/secret-stack/index.js:209:11)
at EventEmitter.hooked [as getAddress] (/home/mix/projects/SSBC/patchbay/node_modules/hoox/index.js:10:15)
at /home/mix/projects/SSBC/patchbay/node_modules/ssb-server/plugins/local.js:85:30
Error: listen EADDRINUSE 2407:7000:9c49:4e00:7cba:778b:7b7f:e6f0:8008
at Object._errnoException (util.js:1024:11)
at _exceptionWithHostPort (util.js:1046:20)
at Server.setupListenHandle [as _listen2] (net.js:1351:14)
at listenInCluster (net.js:1392:12)
at doListen (net.js:1501:7)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9) |
Can you post your ~/.ssb/config? |
Hrm.. the related: |
I think the problem is happening in the config merging:
(diff) And, config JSON diff (additions cause breakage): 41a42,47
> ],
> "unix": [
> {
> "scope": "local",
> "transform": "noauth"
> }
60c66,67
< "_": []
---
> "_": [],
> "remote": "unix:/home/christianbundy/.ssb/socket:~noauth:+oaWWDs8g73EZFUMfW37R/ULtFEjwKN/DczvdYihjbU=" |
I don't know why this works, but it does. See: ssbc/multiserver#33
4d70658
to
df18368
Compare
Just pushed a commit adding |
mixmix » cat ~/.ssb/config
{
"plugins": {
"ssb-npm-registry": false
}
} I knew it was possible for things in here to sneak in so went and gutted it some time ago! |
Cool, yeah that get's me past the Now on to this error, which @arj03 says is in ssb-db : #295 (comment) EncodingError: Unexpected token % in JSON at position 0
at /home/mix/projects/SSBC/patchbay/node_modules/level-sublevel/node_modules/levelup/lib/read-stream.js:60:28
at /home/mix/projects/SSBC/patchbay/node_modules/ssb-db/node_modules/abstract-leveldown/abstract-iterator.js:29:14
at /home/mix/projects/SSBC/patchbay/node_modules/ssb-db/node_modules/encoding-down/index.js:126:5
at /home/mix/projects/SSBC/patchbay/node_modules/ssb-db/node_modules/abstract-leveldown/abstract-iterator.js:29:14
at /home/mix/projects/SSBC/patchbay/node_modules/ssb-db/node_modules/leveldown/iterator.js:45:7
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
|
Yeah, I saw ssbc/ssb-server#577 describing a problem so I opened ssbc/multiserver#33 to request some documentation, and I think ssbc/multiserver#34 adds test coverage that shows that |
This is working now. I'm going to merge it. People pulling and installing will get the fresh (trashing your node_modules and lockfile is a fine way to fix it, or |
Thanks for the help everyone, this was a surprisingly delightful experience, I felt really supported and totally unblocked cc @christianbundy @cryptix @arj03 ❤️ ❤️ ❤️ |
I want to use
scuttle-shell
, I couldn't get it running so this is an incremental step - bring the server version into alignment.