arj03 / ssb-browser-demo

A secure scuttlebutt client interface running in the browser
Other
58 stars 11 forks source link

Sync doesn't seem to finish #321

Open KyleMaas opened 3 years ago

KyleMaas commented 3 years ago

No idea why, but when I test this new version, if I start a new profile neither "Followed sync" nor "Extended sync" actually completes. If I try to reload my main profile from mnemonic key, I can get "Followed sync" to finish but not "Extended sync". As far as I can tell, nothing useful is being logged to console.

KyleMaas commented 3 years ago

After refreshing the page, I get some potentially useful log messages:

WebSocket connection to 'wss://between-two-worlds.dk:9999/' failed: 
module.exports @ bundle-ui.js:124020
client @ bundle-ui.js:93602
client @ bundle-ui.js:93119
client @ bundle-ui.js:93200
connect @ bundle-ui.js:132452
hooked @ bundle-ui.js:68288
(anonymous) @ bundle-ui.js:103115
(anonymous) @ bundle-ui.js:103114
connect @ bundle-ui.js:139350
CONN.connect @ bundle-ui.js:140212
hooked @ bundle-ui.js:68288
(anonymous) @ bundle-ui.js:139924
updateTheseConnections @ bundle-ui.js:139924
updateHubNow @ bundle-ui.js:139963
updateNow @ bundle-ui.js:140038
(anonymous) @ bundle-ui.js:140048
bundle-ui.js:64485 Error: stackless error
    at module.exports (bundle-ui.js:64485)
    at abort (bundle-ui.js:131909)
    at Object.cb (bundle-ui.js:131916)
    at drain (bundle-ui.js:123074)
    at bundle-ui.js:123091
    at bundle-ui.js:123048
    at bundle-ui.js:123754
    at read (bundle-ui.js:124233)
    at bundle-ui.js:123746
    at bundle-ui.js:123046
Connection error:  {type: 'connecting-failed', address: 'wss:between-two-worlds.dk:9999~shs:7R5/crt8/icLJNpGwP2D7Oqz2WUd7ObCIinFKVR6kNY=', key: '@7R5/crt8/icLJNpGwP2D7Oqz2WUd7ObCIinFKVR6kNY=.ed25519', details: Event}
(anonymous) @ bundle-ui.js:168203
(anonymous) @ bundle-ui.js:123353
callback @ bundle-ui.js:123024
push @ bundle-ui.js:122984
notify @ bundle-ui.js:122706
connect @ bundle-ui.js:139354
async function (async)
connect @ bundle-ui.js:139350
CONN.connect @ bundle-ui.js:140212
hooked @ bundle-ui.js:68288
(anonymous) @ bundle-ui.js:139924
updateTheseConnections @ bundle-ui.js:139924
updateHubNow @ bundle-ui.js:139963
updateNow @ bundle-ui.js:140038
(anonymous) @ bundle-ui.js:140048
setTimeout (async)
updateSoon @ bundle-ui.js:140047
(anonymous) @ bundle-ui.js:139832
setInterval (async)
ConnScheduler.start @ bundle-ui.js:139832
(anonymous) @ bundle-ui.js:132666
(anonymous) @ bundle-ui.js:68281
hooked @ bundle-ui.js:68288
startScheduler @ bundle-ui.js:140286
async function (async)
startScheduler @ bundle-ui.js:140284
CONN.start @ bundle-ui.js:140234
(anonymous) @ bundle-ui.js:132666
(anonymous) @ bundle-ui.js:68281
hooked @ bundle-ui.js:68288
(anonymous) @ bundle-ui.js:137382
setTimeout (async)
(anonymous) @ bundle-ui.js:137381
emit @ bundle-ui.js:64095
(anonymous) @ bundle-ui.js:136602
Promise.then (async)
(anonymous) @ bundle-ui.js:136599
(anonymous) @ bundle-ui.js:136612
(Path redacted)/ssb-browser-demo/node_modules/sodium-browserify/index.js../browser @ bundle-ui.js:136612
o @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:1
(Path redacted)/ssb-browser-demo/node_modules/chloride/browser.js.sodium-browserify @ bundle-ui.js:54071
o @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:144465
(anonymous) @ bundle-ui.js:144636
(Path redacted)/ssb-browser-demo/node_modules/ssb-keys/index.js../sodium @ bundle-ui.js:144636
o @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:1
module.exports.initSSB @ bundle-ui.js:138541
module.exports.getSSB @ bundle-ui.js:138620
checkSSBEventually @ bundle-ui.js:138650
setTimeout (async)
checkSSBEventually @ bundle-ui.js:138674
setTimeout (async)
module.exports.getSSBEventually @ bundle-ui.js:138687
refresh @ bundle-ui.js:172902
created @ bundle-ui.js:172911
Be @ vue.min.js:6
Qt @ vue.min.js:6
t._init @ vue.min.js:6
a @ vue.min.js:6
(anonymous) @ vue.min.js:6
init @ vue.min.js:6
(anonymous) @ vue.min.js:6
f @ vue.min.js:6
h @ vue.min.js:6
f @ vue.min.js:6
h @ vue.min.js:6
f @ vue.min.js:6
(anonymous) @ vue.min.js:6
e._update @ vue.min.js:6
r @ vue.min.js:6
pn.get @ vue.min.js:6
pn @ vue.min.js:6
(anonymous) @ vue.min.js:6
Cn.$mount @ vue.min.js:6
Cn.$mount @ vue.min.js:6
loadVue @ bundle-ui.js:168409
(anonymous) @ bundle-ui.js:168435
(Path redacted)/ssb-browser-demo/ui/browser.js.../click-catcher @ bundle-ui.js:168436
o @ bundle-ui.js:1
r @ bundle-ui.js:1
(anonymous) @ bundle-ui.js:1
bundle-ui.js:137746 connected to: @lbocEWqF2Fg6WMYLgmfYvqJlMfL7hiqVAV6ANjHWNw8=.ed25519
bundle-ui.js:52285 Uncaught TypeError: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
    at from (bundle-ui.js:52285)
    at Function.Buffer.from (bundle-ui.js:52332)
    at Object.exports.hash (bundle-ui.js:144831)
    at Object.exports.id (bundle-ui.js:148749)
    at Object.exports.toKeyValueTimestamp (bundle-ui.js:148615)
    at bundle-ui.js:137439
    at bundle-ui.js:123453
    at bundle-ui.js:123349
    at PacketStreamSubstream.weird.read (bundle-ui.js:93963)
    at PacketStream._onstream (bundle-ui.js:98973)
KyleMaas commented 3 years ago

It's been several days now, and it's still stuck on 7%.

KyleMaas commented 3 years ago

Interestingly, it seems to be successfully pulling new messages from some feeds, just not others. So I've got a most recent message of an hour ago, but I'm only seeing messages from four people on the Public tab.