Just checking: is there someone else reading this, or am I just talking to myself ? Please leave a comment below ;)
I'm experimenting with #easy-ssb-pub on #raspberrypi and #manyverse on my phone @Nicolas Stampf (phone). Otherwise Patchwork on m Ubuntu laptop at home...
Duh, tonight, I restarted the installation (out of docker) on my Pi, this time also not using the nvm installation I had in /root (I created a dedicated account for that purpose).
This seems to work, woohoo!
Clearly, following exactly what's written at https://github.com/staltz/easy-ssb-pub (last paragraph)... just worked!
Now I wish I could also launch an sbot command at bash...
You can try to connect and get an invite at http://pub.appreciatingsystems.com:81/.
Now I need to find that script to check whether the server's still alive or not...
As I said a few minutes before, I tried a fresh installation of easy-ssb-pub, and it failed after just a few minutes...
Tonight I created a fresh user on my raspberry pi 3B raspbian. I followed the installation instructions for easy-ssb-pub, edited src/config.js to change the web port from 80 to 8000 (thus not requiring root privs), did npm install and then launched with HOST=pub.appreciatingsystems.com npm start.
(oh, before that, I copied my previous .ssb/secret file)
After a while, usually after the first request on the web page, it crashes:
/home/ssbpub/easy-ssb-pub/node_modules/epidemic-broadcast-trees/stream.js:75
state.msgs.length || state.notes
^
TypeError: Cannot read property 'msgs' of undefined
at EBTStream.canSend (/home/ssbpub/easy-ssb-pub/node_modules/epidemic-broadcast-trees/stream.js:75:13)
at EBTStream.resume (/home/ssbpub/easy-ssb-pub/node_modules/epidemic-broadcast-trees/stream.js:83:14)
at EBTStream.pipe (/home/ssbpub/easy-ssb-pub/node_modules/push-stream/pipe.js:18:25)
at module.exports (/home/ssbpub/easy-ssb-pub/node_modules/push-stream-to-pull-stream/source.js:32:8)
at Function.module.exports [as duplex] (/home/ssbpub/easy-ssb-pub/node_modules/push-stream-to-pull-stream/duplex.js:6:13)
at EventEmitter.<anonymous> (/home/ssbpub/easy-ssb-pub/node_modules/ssb-ebt/index.js:104:22)
at EventEmitter.emit (events.js:164:20)
at setupRPC (/home/ssbpub/easy-ssb-pub/node_modules/secret-stack/index.js:207:13)
at /home/ssbpub/easy-ssb-pub/node_modules/secret-stack/index.js:231:45
at next (/home/ssbpub/easy-ssb-pub/node_modules/multiserver/compose.js:28:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! easy-ssb-pub@4.0.0 start: `tsc && node dist/index --host $HOST`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the easy-ssb-pub@4.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ssbpub/.npm/_logs/2019-03-01T21_42_23_293Z-debug.log
I hadn't time to investigate more. I stopped the server on my Pi.
A friend gave me a Pi 3B+ (my current one is a 3B). I thought about switching the SDcard from the 3B to the 3B+, but then the 3B+ alerts of insufficient power and refuses to boot. With another sdcard, it works fine (I have a retropie one and a blank Raspbian).
Haven't found explanations on the net. I guess it's an incompatibility of some sort with that brand of SDcard...
I'll use the 3B+ to work out an ssb-pub as I find it sensibly faster (check was the launch of LibreOffice ;) )... later
Show whole feed