i will put version 14 up and put up the corrected config file right now. ill keep you posted
ok. so i installed ssb-server@14 and corrected the config file.
now whenever i create invites the tmux where ssb-server runs shows it quitting with this error
/home/an3/.npm-global/lib/node_modules/ssb-server/node_modules/ssb-invite/index.js:145
cb(null, [opts.external ? opts.external : addr.host, addr.port, addr.key].join(':') + '~' + seed.toString('base64'))
^
TypeError: cb is not a function
at /home/an3/.npm-global/lib/node_modules/ssb-server/node_modules/ssb-invite/index.js:145:13
at /home/an3/.npm-global/lib/node_modules/ssb-server/node_modules/level-sublevel/shell.js:53:51
at /home/an3/.npm-global/lib/node_modules/ssb-server/node_modules/level-sublevel/nut.js:109:13
also, for some reson, i cant see the pub in patchwork in the same lan any more.
i had to delete the line
{ "scope": "private", "transform": "shs", "port": 8008, "host": “192.168.0.230” }
because the previous line
{ "scope": "public", "external": ["cociubaandrei.ddns.net"], "transform": "shs", "port": 8008 },
was already using up the port 8008
cb == callback. that means some function is expecting a callback. Are you loading your stuff as a ssb-module? (cloned to ~/.ssb/node_modules and a refference in ~/.ssb/config) or are you rocking a full app?
neither, apparently. this is my server i ssh into, i dont use the gui on it and i have no need to install a full app. also, i didnt kow i needed to load any modules in the config file. might be my own ignorance here.... how do you load modules, and which modules do you need to load?
needing to load deps in different places depends entirely on what you're trying to do. I need to mingle with a colleague real quick (in a discussion about using \n vs <br> ), but I can drop into some screen-sharing with you in a bit if you want!
i am trying to run a pub server on this computer. nothing else. unfortunately screensharing is a nogo right now, i have to leave my home, but i might be able to in about 3 hours.
not that i know how we would do that, i havent done that in ubuntu before, but i am confident i could eventually figure it out.
I got a meeting then.. are you running your pub in docker?
nope, in my user profile, running in bash under tmux.
aha! lemme log in to mine and take a peak at the pub config file (within docker) ;)
{
"connections": {
"incoming": {
"net": [
{
"scope": "public",
"host": "0.0.0.0",
"external": ["ssb-pub.picodevelopment.nl"],
"transform": "shs",
"port": 8008
}
]
},
"outgoing": {
"net": [
{
"transform": "shs"
}
]
}
},
"friends": {
"hops": 2
}
}
Seems to be my config, so that's all nice and dandy, no weird extra plugins used in the .ssb/node_modules folder.
What you can do... is to download docker on your local machine, then pull down https://github.com/ahdinosaur/ssb-pub follow the instructions on getting the image on your computer, then walk around in the image and see what it's doing (docker exec -it sbot bash
after starting docker with ./create-sbot
)
(there's also the issue that some commands only work by executing sbot
and some commands only work by executing the CLI command ssb-server
.. so you could try swapping commands)
my config file is not much different.
i tried both without a config file, and with the config file, and whenever i create invites, the terminal running ssb-server goes
/home/an3/.npm-global/lib/node_modules/ssb-server/node_modules/ssb-invite/index.js:145
cb(null, [opts.external ? opts.external : addr.host, addr.port, addr.key].join(':') + '~' + seed.toString('base64'))
^
TypeError: cb is not a function
at /home/an3/.npm-global/lib/node_modules/ssb-server/node_modules/ssb-invite/index.js:145:13
at /home/an3/.npm-global/lib/node_modules/ssb-server/node_modules/level-sublevel/shell.js:53:51
at /home/an3/.npm-global/lib/node_modules/ssb-server/node_modules/level-sublevel/nut.js:109:13
I see an ssb-server refference here. did you run this with ssb-server invite.create 1
or sbot invite.create 1
? You could try installing sbot using npm install -g sbot
and trying it that way..............
ssb-server, although i tried with 1, 10, 100, and, initially with 1000.
i tried the command with sbot as well, same outcome.
currently running ssb-server@14
sbot gives me a warning that it is deprecated and tells me to use ssb-server instead.
i had a brainfart.
is it possible that the missing callback function is due to me running it on a 32 bit machine?
like, some missing dependency or something that didn't get tested for because everyone uses 64 bit nowadays??