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