You are reading content from Scuttlebutt
@Andrei Cociuba %u3t+NhQkzkwr7OfRL7V7RP7TuFswoIvABn8l2Mslhng=.sha256
Re: %iQyIyOrQ8

i will put version 14 up and put up the corrected config file right now. ill keep you posted

@Andrei Cociuba %QRsq685QyyrTbOTqACBHv6IAEnG5gZxER8jACCj91JU=.sha256

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

@Andrei Cociuba %jmHDYmWntE1tNQJBsEoBuuPLSHZc5urDzlwabv682oM=.sha256

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

@Hendrik Peter %oyTwV10FWo+BjMUncWNj4pwohZV0yyQiObMnzmUCHs4=.sha256

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?

@Andrei Cociuba %bvqPCvBAovmQgpRqZifzSnT/RD/YvCLBFsWs4RcgvD8=.sha256

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?

@Hendrik Peter %boqC7iEPqnLfMwRl1UOX+xUZdusl3S5etXm843FEKRs=.sha256

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> :sweat_smile: ), but I can drop into some screen-sharing with you in a bit if you want!

@Andrei Cociuba %svkS1qPw4MHW8YoNsnUrMpq3P89Cnd8A8TVOPJbLm3w=.sha256

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.

@Hendrik Peter %rGyXtG/NWxwjqBnBkTDK72cDxHTpjRV90wP73jVOieo=.sha256

I got a meeting then.. are you running your pub in docker?

@Andrei Cociuba %09hh7l6Wzi3cZmBLJqR3aYIFmXJOroG8MQ+Macj2T0s=.sha256

nope, in my user profile, running in bash under tmux.

@Hendrik Peter %3G6AmAWddDWeasccvYjo12vrg+fEmE3uqDAW1QVbAkc=.sha256

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)

@Hendrik Peter %yD3whT1fuOVzwg6YOWvSoUXNpWMvnVKEcYYjNJQuE68=.sha256

(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)

@Andrei Cociuba %MmAefM1NgG+XQkklSq3OcjDB4lMDmgKwc1EMwMEmuGA=.sha256

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

@Hendrik Peter %wcsoCaJ9oEsnfk8tKIKfY3tC/ume9N6MQ4jAbXMKY4Y=.sha256

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..............

@Andrei Cociuba %tR4tKtKsKlK4rjxPI8tEdjqcnQ/TisjuC5veqaCElQ8=.sha256

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.

@Andrei Cociuba %sTTTnep4YJQbBYH20E5XPlT5YUY7GbqLRuLnqIZB97Y=.sha256

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??

Join Scuttlebutt now