status-im / status-console-client

Status messaging console user interface
Mozilla Public License 2.0
10 stars 2 forks source link

Client doesn't send or receive messages #131

Closed oskarth closed 4 years ago

oskarth commented 4 years ago
git pull # e16e6e6de31de35f5a9bcbd935cbb2f548b9573d
make build
./bin/status-term-client -create-key-pair
./bin/status-term-client -keyhex=<KEY>

# in client
/chat add status
<select chat>
type hi

Check other mobile client in same channel, no activity. Same for send and receive. image

Logs:


t=2019-10-15T13:52:21+0900 lvl=info msg="LES protocol is disabled" package=status-go/node
t=2019-10-15T13:52:21+0900 lvl=info msg="Incentivisation is disabled" package=status-go/node
t=2019-10-15T13:52:21+0900 lvl=info msg="Status service api is disabled" package=status-go/node
t=2019-10-15T13:52:21+0900 lvl=info msg="Starting peer-to-peer node" instance=status-term-client/linux-amd64/go1.12.5
t=2019-10-15T13:52:21+0900 lvl=info msg="started whisper v.6.0"
t=2019-10-15T13:52:21+0900 lvl=info msg="New local node record" seq=8 id=e446f4c5518409f294c05c9bf2f405cb6f62367c8b3e23144460ab390d3b2124 ip=127.0.0.1 udp=0 tcp=30303
t=2019-10-15T13:52:21+0900 lvl=info msg="Started P2P networking" self="enode://cf0cbdb538ebfdf5badffb4bed309ffbf1a3ab0f89c628bb0323383f1c4d1a18f57150eefb0a6d5d4c6b8f1d7fded40282dcf9ffea62de3c565105996ec2bbfe@127.0.0.1:30303?discport=0"
t=2019-10-15T13:52:21+0900 lvl=info msg="IPC endpoint opened" url=/tmp/status-term-client/041daf40b03e874bd112f431860a341de7999010/geth.ipc
t=2019-10-15T13:52:21+0900 lvl=info msg="UDP listener up" net=enode://cf0cbdb538ebfdf5badffb4bed309ffbf1a3ab0f89c628bb0323383f1c4d1a18f57150eefb0a6d5d4c6b8f1d7fded40282dcf9ffea62de3c565105996ec2bbfe@[::]:30303
t=2019-10-15T13:52:23+0900 lvl=info msg="Difference with ntp servers" offset=6.765627ms
t=2019-10-15T13:52:25+0900 lvl=info msg="Whisper identity added" id=f9cb36c86a1cfa406cf753c2f770c77a17fcfcbb963d7b39338cbeb838350e49 pubkey=0x041daf40b03e874bd112f431860a341de7999010554810130b3ffd28900e7997bc7ef04098e84b959678e7b5ddf9570764c971bafa2cd74125a8f38a2cf29ff73c

client:

{"level":"info","ts":1571114445.5493267,"caller":"whisper/filter.go:103","msg":"initializing","filtersManager":{"site":"Init"}}
{"level":"info","ts":1571114446.5508165,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114447.5511765,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114448.550933,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114449.550884,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114628.4200954,"caller":"status-protocol-go/messenger.go:244","msg":"opening a database","dbPath":"/tmp/status-term-client/041daf40b03e874bd112f431860a341de7999010/messenger.sql"}
{"level":"info","ts":1571114628.4216423,"caller":"publisher/publisher.go:46","msg":"starting publisher","Publisher":{"site":"Start"}}
{"level":"info","ts":1571114628.4217737,"caller":"whisper/filter.go:103","msg":"initializing","filtersManager":{"site":"Init"}}
{"level":"info","ts":1571114628.421884,"caller":"status-console-client/main.go:177","msg":"starting UI..."}
{"level":"info","ts":1571114628.422295,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114628.4224358,"caller":"whisper/filter.go:103","msg":"initializing","filtersManager":{"site":"Init"}}
{"level":"info","ts":1571114629.423947,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114630.423303,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114641.6224537,"caller":"status-protocol-go/messenger.go:244","msg":"opening a database","dbPath":"/tmp/status-term-client/041daf40b03e874bd112f431860a341de7999010/messenger.sql"}
{"level":"info","ts":1571114641.624642,"caller":"publisher/publisher.go:46","msg":"starting publisher","Publisher":{"site":"Start"}}
{"level":"info","ts":1571114641.6248443,"caller":"whisper/filter.go:103","msg":"initializing","filtersManager":{"site":"Init"}}
{"level":"info","ts":1571114641.6249752,"caller":"status-console-client/main.go:177","msg":"starting UI..."}
{"level":"info","ts":1571114641.625424,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114641.6255715,"caller":"whisper/filter.go:103","msg":"initializing","filtersManager":{"site":"Init"}}
{"level":"info","ts":1571114642.6270504,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114643.625915,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114644.6266823,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114645.6263397,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114646.6259124,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}
{"level":"info","ts":1571114647.6263041,"caller":"status-console-client/chats_controller.go:81","msg":"loaded chats","ChatsViewController":{"count":0}}

ipc:

> admin.peers
[{
caps: ["shh/6"],
enode: "enode://19872f94b1e776da3a13e25afa71b47dfa99e658afd6427ea8d6e03c22a99f13590205a8826443e95a37eee1d815fc433af7a8ca9a8d0df7943d1f55684045b7@35.238.60.236:30305",
id: "10841e6db5c02fc331bf36a8d2a9137a1696d9d3b6b1f872f780e02aa8ec5bba",
name: "Statusd/v0.29.0-beta.2/linux-amd64/go1.12.5",
network: {
inbound: false,
localAddress: "192.168.10.190:39752",
remoteAddress: "35.238.60.236:30305",
static: true,
trusted: false
},
protocols: {
shh: "unknown"
}
}, {
caps: ["shh/6"],

< 4 peers in total>

Expected result: it works and I can use it to chat

^ @adambabik

adambabik commented 4 years ago

@oskarth this is known. The same problem as with status-react develop and the root cause is PoW calculation. We are upgrading staging fleet today. I will reply here when it's ready and confirm it works with -fleet=eth.staging.

oskarth commented 4 years ago

@adambabik what's the latest with this?

adambabik commented 4 years ago

It works with -fleet=eth.staging just fine. However, I noticed a problem with 1-1 conversations. Public chats work fine.

adambabik commented 4 years ago

Actually, 1-1 fails only on my branch, it works fine on master. Please reopen if you experience any issues.