Getting this error when I try to use any pub invite code. I suspect it's a network block on my work machine. I don't have the skills to determine if this is true, so raising this as a request for advice.
running OSX (PW 3.8.0 - but has been the case for all previous versions)
Halp!

Have you tried other pub invites? Do you get the same error for all of them?
Yup - I've tried mix's one and dominics one. (they work fine on my machine at home). It could be a security setting applied on the Mac by our it team. As I can't even connect when using my own wifi. Just wondering if you had any ideas what they could be blocking? Or whether there are verbose logs I can check to see what's happening on the Patchwork side
Patchwork uses TCP 8008 for pretty much everything. It also uses UDB 8008 for local peer discovery. Are you able to see it from another machine running patchwork on the same network?
If you run from command line with --logging.level info, it will give you more info about connection status/failure. If you are building from source use npm start -- --logging.level info.
I still suspect it could just be that those pubs are busy/down. That tends to happen from time to time. Though, if you can't see a local patchwork running on the same network, then there might be some kind of problem.
@richardofortune did you find a solution? I'm experiencing the same on Arch (PW 3.8.6-1), with log info flag on:
...
"stateChange": 1516894715115,
"error": "Error: connect ECONNREFUSED 81.201.60.131:8008\n at Object.exports._errnoException (util.js:1024:11)\n at exports._exceptionWithHostPort (util.js:1047:20)\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1150:14)",
"failure": 14
}
info @mnv SBOT pub.lua.cz:8008@xYSW6eVu8gTS/nTSXZiH97dgKZ+wp7NkomR6WKK/PBI=.ed25519 connection failed
"connect ECONNREFUSED 81.201.60.131:8008"
info @mnv SBOT net:ssb.nz:8008~shs:1nAjeL2XLsRDNJq0qerwfVFc4rFkqeHiTcNeQnJeROc= CONNECT
"net:ssb.nz:8008~shs:1nAjeL2XLsRDNJq0qerwfVFc4rFkqeHiTcNeQnJeROc="
info @mnv SBOT ssb.nz:8008@1nAjeL2XLsRDNJq0qerwfVFc4rFkqeHiTcNeQnJeROc=.ed25519 connection failed "challenge not accepted"
{ message: 'challenge not accepted',
name: 'Error',
stack: 'Error: challenge not accepted\n at abort (/opt/ssb-patchwork/node_modules/secret-handshake/protocol.js:36:45)\n at Object.cb (/opt/ssb-patchwork/node_modules/secret-handshake/protocol.js:42:24)\n at drain (/opt/ssb-patchwork/node_modules/pull-reader/index.js:42:23)\n at /opt/ssb-patchwork/node_modules/pull-reader/index.js:59:18\n at /opt/ssb-patchwork/node_modules/pull-reader/index.js:20:7\n at /opt/ssb-patchwork/node_modules/pull-stream/throughs/through.js:19:9\n at drain (/opt/ssb-patchwork/node_modules/stream-to-pull-stream/index.js:141:18)\n at Socket.<anonymous> (/opt/ssb-patchwork/node_modules/stream-to-pull-stream/index.js:162:5)\n at emitOne (events.js:120:20)\n at Socket.emit (events.js:210:7)' }
Edit: Looks like some invites/pubs are easier to connect (or some incompatibility problem?), so I got eventually connected to ssb.ekata.social via its web server self-generating invite.
Only getting back to this issue now. Glad you got it sorted @seafox !
I'm getting the following error when I try various pub codes.
./Patchwork --logging.level debug
{ party: true,
host: '',
port: 8008,
timeout: 0,
pub: true,
local: true,
friends: { dunbar: 150, hops: 2 },
ws: { port: 8989 },
gossip: { connections: 3 },
path: '/Users/richard.fortune/.ssb',
timers: { connection: 0, reconnect: 5000, ping: 300000, handshake: 5000 },
caps:
{ shs: '1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=',
sign: null },
master: [],
logging: { level: 'notice' },
blobsPort: 7777,
server: true,
_: [ 'debug' ] }
Log level: notice
2018-02-07 16:50:05.512 Patchwork[75182:5891989] *** WARNING: Textured window <AtomNSWindow: 0x7fc63150d110> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
git-ssb is not installed, or not available in path
RELOAD 2 1
0 262152 65536 262152
RELOADED 1
2018-02-07 16:50:11.512 Patchwork Helper[75244:5892303] Couldn't set selectedTextBackgroundColor from default ()
{ message: 'challenge not accepted',
name: 'Error',
stack: 'Error: challenge not accepted\n at abort (/Applications/Patchwork.app/Contents/Resources/app.asar/node_modules/secret-handshake/protocol.js:36:45)\n at Object.cb (/Applications/Patchwork.app/Contents/Resources/app.asar/node_modules/secret-handshake/protocol.js:42:24)\n at drain (/Applications/Patchwork.app/Contents/Resources/app.asar/node_modules/pull-reader/index.js:42:23)\n at /Applications/Patchwork.app/Contents/Resources/app.asar/node_modules/pull-reader/index.js:59:18\n at /Applications/Patchwork.app/Contents/Resources/app.asar/node_modules/pull-reader/index.js:20:7\n at /Applications/Patchwork.app/Contents/Resources/app.asar/node_modules/pull-stream/throughs/through.js:19:9\n at drain (/Applications/Patchwork.app/Contents/Resources/app.asar/node_modules/stream-to-pull-stream/index.js:141:18)\n at Socket.<anonymous> (/Applications/Patchwork.app/Contents/Resources/app.asar/node_modules/stream-to-pull-stream/index.js:162:5)\n at emitOne (events.js:120:20)\n at Socket.emit (events.js:210:7)' }
Apologies for the updates to the comment- I realised that the error I was looging was due to the fact I was already running an instance of Patchwork. The above error is the only info I get when I try a clean install and connect to a pub. It happens with any pub.
I'm having the same error on OSX 10.12.6
Getting the same error on Debian GNU/Linux 9.3 (stretch), but was able to connect to ssb.ekata.social after repeatedly clicking "redeem invite".
$ npm start -- --logging.level info
> [email protected] start /home/christianbundy/patchwork
> electron index.js "--logging.level" "info"
{ party: true,
host: '',
port: 8008,
timeout: 0,
pub: true,
local: true,
friends: { dunbar: 150, hops: 2 },
ws: { port: 8989 },
gossip: { connections: 3 },
path: '/home/christianbundy/.ssb',
timers: { connection: 0, reconnect: 5000, ping: 300000, handshake: 5000 },
caps:
{ shs: '1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=',
sign: null },
master: [],
logging: { level: 'info' },
blobsPort: 7777,
server: true,
_: [] }
Log level: info
git-ssb is not installed, or not available in path
RELOAD 2 1
0 262152 65536 262152
RELOADED 1
SHS:CONNECT shs:OljlObvirD+w+34Mi2powmYBXjJoi3lYU3msirMB3hQ=
SHS:CONNECT shs:OljlObvirD+w+34Mi2powmYBXjJoi3lYU3msirMB3hQ=
info @Olj SBOT net:ssb.ekata.social:8008~shs:XXX CONNECT
"net:ssb.ekata.social:8008~shs:XXX"
info @Olj SBOT ssb.ekata.social:[email protected] connection failed
"challenge not accepted"
{ message: 'challenge not accepted',
name: 'Error',
stack: 'Error: challenge not accepted\n at abort (/home/christianbundy/patchwork/node_modules/secret-handshake/protocol.js:36:45)\n at Object.cb (/home/christianbundy/patchwork/node_modules/secret-handshake/protocol.js:42:24)\n at drain (/home/christianbundy/patchwork/node_modules/pull-reader/index.js:42:23)\n at /home/christianbundy/patchwork/node_modules/pull-reader/index.js:59:18\n at /home/christianbundy/patchwork/node_modules/pull-reader/index.js:20:7\n at /home/christianbundy/patchwork/node_modules/pull-stream/throughs/through.js:19:9\n at drain (/home/christianbundy/patchwork/node_modules/stream-to-pull-stream/index.js:141:18)\n at Socket.<anonymous> (/home/christianbundy/patchwork/node_modules/stream-to-pull-stream/index.js:162:5)\n at emitOne (events.js:120:20)\n at Socket.emit (events.js:210:7)' }
info @Olj SBOT net:ssb.ekata.social:8008~shs:XXX CONNECT
"net:ssb.ekata.social:8008~shs:XXX"
info @Olj SBOT ssb.ekata.social:[email protected] connection failed
"challenge not accepted"
{ message: 'challenge not accepted',
name: 'Error',
stack: 'Error: challenge not accepted\n at abort (/home/christianbundy/patchwork/node_modules/secret-handshake/protocol.js:36:45)\n at Object.cb (/home/christianbundy/patchwork/node_modules/secret-handshake/protocol.js:42:24)\n at drain (/home/christianbundy/patchwork/node_modules/pull-reader/index.js:42:23)\n at /home/christianbundy/patchwork/node_modules/pull-reader/index.js:59:18\n at /home/christianbundy/patchwork/node_modules/pull-reader/index.js:20:7\n at /home/christianbundy/patchwork/node_modules/pull-stream/throughs/through.js:19:9\n at drain (/home/christianbundy/patchwork/node_modules/stream-to-pull-stream/index.js:141:18)\n at Socket.<anonymous> (/home/christianbundy/patchwork/node_modules/stream-to-pull-stream/index.js:162:5)\n at emitOne (events.js:120:20)\n at Socket.emit (events.js:210:7)' }
^[info @Olj SBOT net:ssb.ekata.social:8008~shs:XXX CONNECT
"net:ssb.ekata.social:8008~shs:XXX"
SHS:CONNECT shs:XXX
SHS:CONNECT shs:XXX
info @Olj SBOT ssb.ekata.social:8008:@XXX.ed25519 Connected
{ key: '%iJdi6aAmL+uw0eS4StTaBrkpGHI7cVzXy4JP1RRlFyw=.sha256',
value:
{ previous: '%yzjcMRf5pZE+FMKysuwjjBbMDzxs6+7JqJAKwKXzaPs=.sha256',
author: '@OljlObvirD+w+34Mi2powmYBXjJoi3lYU3msirMB3hQ=.ed25519',
sequence: 2,
timestamp: 1519856747047,
hash: 'sha256',
content: { type: 'pub', address: [Object] },
signature: 'M/hJAmmY/zR3EMxmO4M+Dgn0alOhqvkr3yrcytmjWJ0T9W6uZzAdapc02wclE/46FlMcr68q9bnZB4S50pdGBg==.sig.ed25519' },
timestamp: 1519856747093.001 }
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
skip gossip
I've redacted my invite code, but the XXX bit was a single invite code that didn't change.
Thanks @christianbundy that worked for me! This has been an issue for me for months, wondering what's different about the ssb.ekata.social setup? If that's even possible that setup could be a contributing factor..I tried many invites - I'e not seen this issue on my Windows machine.
Not sure, honestly, my best guess is that it's running a different version of ssb-server. Happy to hear that this was resolved!
Hi folks. I'm still encountering this bug on the newest Patchwork version.
Logs from using the above debug info command:
installed: X-AppImage-BuildId=c5ceb290-e2f6-11a8-07c2-b1ba5ffda287 image: X-AppImage-Bu
{ party: true,
host: '',
port: 8008,
timeout: 0,
pub: true,
local: true,
friends: { dunbar: 150, hops: 2 },
ws: { port: 8989 },
gossip: { connections: 3 },
connections: { incoming: { net: [Array] }, outgoing: { net: [Array] } },
path: '/home/patrick/.ssb',
timers: { connection: 0, reconnect: 5000, ping: 300000, handshake: 5000 },
caps:
{ shs: '1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=',
sign: null },
master: [],
logging: { level: 'notice' },
blobsPort: 8989,
server: true,
_: [ 'info' ] }
ssb-friends: createFriendStream legacy api used
git-ssb is not installed, or not available in path
SHS:CONNECT shs:JUBGIPQ3KzZEqc03FX53bZucL9i/UqgHQgpPyJHPzpw=
ssb-friends: stream legacy api used
ssb-friends: get legacy api used
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
{ message: 'challenge not accepted',
name: 'Error',
stack: 'Error: challenge not accepted\n at abort (/tmp/.mount_PatchwDgDJam/app/resources/app.asar/node_modules/secret-handshake/protocol.js:36:45)\n at Object.cb (/tmp/.mount_PatchwDgDJam/app/resources/app.asar/node_modules/secret-handshake/protocol.js:42:24)\n at drain (/tmp/.mount_PatchwDgDJam/app/resources/app.asar/node_modules/pull-reader/index.js:42:23)\n at /tmp/.mount_PatchwDgDJam/app/resources/app.asar/node_modules/pull-reader/index.js:59:18\n at /tmp/.mount_PatchwDgDJam/app/resources/app.asar/node_modules/pull-reader/index.js:20:7\n at drain (/tmp/.mount_PatchwDgDJam/app/resources/app.asar/node_modules/stream-to-pull-stream/index.js:141:18)\n at Socket.<anonymous> (/tmp/.mount_PatchwDgDJam/app/resources/app.asar/node_modules/stream-to-pull-stream/index.js:162:5)\n at emitOne (events.js:121:20)\n at Socket.emit (events.js:211:7)\n at TCP._handle.close [as _onclose] (net.js:554:12)' }
Can't connect to any of the public pubs listed on Scuttlebutt.nz - and besides that I've been having issues with Patchwork not loading any new posts over the past week or so.
See %C2FsGWK+IGxR23IZIC0+7Msf7iTf9HN/tlzFWVSOqtU=.sha256 for original post about this a few days back.
Debian Stretch as well.
Hey @patrickbolle, would you mind opening a new issue for this? It'd also be helpful to know which pubs you're trying to connect to, that way we can try to reproduce the problem exactly.
@christianbundy Absolutely. Thanks!
Most helpful comment
@richardofortune did you find a solution? I'm experiencing the same on Arch (PW 3.8.6-1), with log info flag on:
Edit: Looks like some invites/pubs are easier to connect (or some incompatibility problem?), so I got eventually connected to ssb.ekata.social via its web server self-generating invite.