staltz / easy-ssb-pub

An easy-to-host server that runs an SSB "Pub"
GNU Affero General Public License v3.0
209 stars 35 forks source link

Invites error Debian 9 #20

Open uhlhosting opened 6 years ago

uhlhosting commented 6 years ago

I have managed to setup on a Debian 9 machine, Easy-SSB-Pub, with second config steps. there is no way to create an invite. If someone can instruct, would be grateful!

uhlhosting commented 6 years ago

http://pub.cosmicsound.one/invited I get this:

TypeError: Cannot read property 'match' of undefined
   at Object.isPrivate (/usr/src/app/node_modules/scuttlebot/node_modules/ip/lib/ip.js:262:14)
   at Object.<anonymous> (/usr/src/app/node_modules/scuttlebot/plugins/invite.js:71:40)
   at apply (/usr/src/app/node_modules/muxrpc-validation/index.js:173:15)
   at Object.<anonymous> (/usr/src/app/node_modules/muxrpc-validation/index.js:82:14)
   at Object.hooked (/usr/src/app/node_modules/hoox/index.js:10:15)
   at /usr/src/app/dist/index.js:98:16
   at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
   at next (/usr/src/app/node_modules/express/lib/router/route.js:131:13)
   at Route.dispatch (/usr/src/app/node_modules/express/lib/router/route.js:112:3)
   at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
sonn-gamm commented 6 years ago

+1 I get the same.

Just followed the instructions but changed from port 80:80 to be 90:80

sudo docker run -e "HOST=se.rv.er.ip" -v $HOME/.ssb:/root/.ssb -p 90:80 -p 8008:8008 -p 8007:8007 -m 450M --memory-swap 1G --restart=unless-stopped --name ssb-pub -d staltz/easy-ssb-pub

then visiting se.rv.er.ip:90

when I click on Get an Invitation I have the error as above.

uhlhosting commented 6 years ago

afincato and why you closed it?

sonn-gamm commented 6 years ago

(Sorry, I did not mean to close your Issue)

If you run the above command and change run -e "HOST=se.rv.er.ip" w/ `run -e "PUB_URL =se.rv.er.ip" it works!

sudo docker run -e "PUB_URL =se.rv.er.ip" -v $HOME/.ssb:/root/.ssb -p 90:80 -p 8008:8008 -p 8007:8007 -m 450M --memory-swap 1G --restart=unless-stopped --name ssb-pub -d staltz/easy-ssb-pub