status-im / status-desktop

Status Desktop client made in Nim & QML
https://status.app
Mozilla Public License 2.0
294 stars 78 forks source link

Contact requests are not received without restart #13246

Closed anastasiyaig closed 9 months ago

anastasiyaig commented 9 months ago

Description

  1. take an artefact from https://ci.status.im/job/status-desktop/job/nightly/155/
  2. open 2 instances of the app
  3. try add each other to contacts

No contact request received (status.prod fleet)

NOTE: if i restart the app, contact request is there

INFO [01-19|10:30:13.528|github.com/status-im/status-go/wakuv2/waku.go:1041]                                  publishing message via relay             envelopeHash=0x4118faf24ac2ad8f1bac07a4ef973c06beb9d600c96116a5106dcb5ef89c2c86 pubsubTopic=/waku/2/rs/16/32 contentTopic=/waku/1/0xebaf57a8/rfc26 timestamp=1,705,649,413,528,075,000
ERROR[01-19|10:30:13.528|github.com/status-im/status-go/wakuv2/common/message.go:233]                         failed to decode message                 err="couldn't decrypt using asymmetric key: ecies: invalid message"
INFO [01-19|10:30:13.529|github.com/status-im/status-go/protocol/messenger.go:1241]                           account keyUID '0xb72b094cbb5a1b18084f06c9a2e0fe32439779db651b447b898c648bf4243ef0' 

geth.logs:

geth.log

geth.log

anastasiyaig commented 9 months ago

@igor-sirotin @mprakhov @osmaczko

richard-ramos commented 9 months ago

Looking at the logs, I see the pubsub topic /waku/2/rs/16/32 is being used. This pubsub topic is not supported in status.prod, but instead it should use /waku/2/default-waku/proto hence why when client and receiver try to publish a message, it ends with the error: not enough peers to publish

~~I wonder if this is related to this PR: https://github.com/status-im/status-go/pull/4553 ~~. Nop. this commit is not used on that desktop version

richard-ramos commented 9 months ago

@anastasiyaig in the node management tab, please execute:

{"method":"settings_nodeConfig", "params":[]}

I'd like to see what's the config being used for WakuV2 topics

anastasiyaig commented 9 months ago
{"jsonrpc":"2.0","id":0,"result":{"NetworkId":1,"RootDataDir":"/Users/anastasiya/data/Master1/data/","DataDir":"/Users/anastasiya/data/Master1/data/ethereum/mainnet","KeyStoreDir":"/Users/anastasiya/data/Master1/data/keystore/0xb72b094cbb5a1b18084f06c9a2e0fe32439779db651b447b898c648bf4243ef0","KeycardPairingDataFile":"/Users/anastasiya/data/Master1/data/keycard/pairings.json","NodeKey":"","NoDiscovery":true,"Rendezvous":false,"ListenAddr":"","AdvertiseAddr":"","Name":"StatusDesktop","Version":"0.172.6","APIModules":"net,web3,eth","HTTPEnabled":false,"HTTPHost":"","HTTPPort":0,"HTTPVirtualHosts":null,"HTTPCors":null,"IPCEnabled":false,"IPCFile":"","TLSEnabled":false,"MaxPeers":0,"MaxPendingPeers":0,"LogEnabled":true,"LogMobileSystem":false,"LogDir":"","LogFile":"/Users/anastasiya/data/Master1/data/geth.log","LogLevel":"INFO","LogMaxBackups":1,"LogMaxSize":100,"LogCompressRotated":false,"LogToStderr":false,"EnableStatusService":false,"UpstreamConfig":{"Enabled":true,"URL":"https://eth-archival.rpc.grove.city/v1/e3e877226bae94dd53ea3e13"},"Networks":[{"chainId":1,"chainName":"Mainnet","rpcUrl":"https://eth-archival.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","originalRpcUrl":"https://eth-archival.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","fallbackURL":"https://mainnet.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","originalFallbackURL":"https://mainnet.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","blockExplorerUrl":"https://etherscan.io/","iconUrl":"network/Network=Ethereum","nativeCurrencyName":"Ether","nativeCurrencySymbol":"ETH","nativeCurrencyDecimals":18,"isTest":false,"layer":1,"enabled":true,"chainColor":"#627EEA","shortName":"eth","tokenOverrides":null,"relatedChainId":5},{"chainId":5,"chainName":"Mainnet","rpcUrl":"https://goerli-archival.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","originalRpcUrl":"https://goerli-archival.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","fallbackURL":"https://goerli.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","originalFallbackURL":"https://goerli.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","blockExplorerUrl":"https://goerli.etherscan.io/","iconUrl":"network/Network=Ethereum","nativeCurrencyName":"Ether","nativeCurrencySymbol":"ETH","nativeCurrencyDecimals":18,"isTest":true,"layer":1,"enabled":true,"chainColor":"#627EEA","shortName":"eth","tokenOverrides":null,"relatedChainId":1},{"chainId":10,"chainName":"Optimism","rpcUrl":"https://optimism-mainnet.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","originalRpcUrl":"https://optimism-mainnet.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","fallbackURL":"https://optimism-mainnet.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","originalFallbackURL":"https://optimism-mainnet.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","blockExplorerUrl":"https://optimistic.etherscan.io","iconUrl":"network/Network=Optimism","nativeCurrencyName":"Ether","nativeCurrencySymbol":"ETH","nativeCurrencyDecimals":18,"isTest":false,"layer":2,"enabled":true,"chainColor":"#E90101","shortName":"opt","tokenOverrides":null,"relatedChainId":420},{"chainId":420,"chainName":"Optimism","rpcUrl":"https://optimism-goerli.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","originalRpcUrl":"https://optimism-goerli.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","fallbackURL":"","originalFallbackURL":"","blockExplorerUrl":"https://goerli-optimism.etherscan.io/","iconUrl":"network/Network=Optimism","nativeCurrencyName":"Ether","nativeCurrencySymbol":"ETH","nativeCurrencyDecimals":18,"isTest":true,"layer":2,"enabled":true,"chainColor":"#E90101","shortName":"opt","tokenOverrides":null,"relatedChainId":10},{"chainId":42161,"chainName":"Arbitrum","rpcUrl":"https://arbitrum-one.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","originalRpcUrl":"https://arbitrum-one.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","fallbackURL":"https://arbitrum-mainnet.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","originalFallbackURL":"https://arbitrum-mainnet.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","blockExplorerUrl":"https://arbiscan.io/","iconUrl":"network/Network=Arbitrum","nativeCurrencyName":"Ether","nativeCurrencySymbol":"ETH","nativeCurrencyDecimals":18,"isTest":false,"layer":2,"enabled":true,"chainColor":"#51D0F0","shortName":"arb","tokenOverrides":null,"relatedChainId":421613},{"chainId":421613,"chainName":"Arbitrum","rpcUrl":"https://arbitrum-goerli.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","originalRpcUrl":"https://arbitrum-goerli.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","fallbackURL":"","originalFallbackURL":"","blockExplorerUrl":"https://goerli.arbiscan.io/","iconUrl":"network/Network=Arbitrum","nativeCurrencyName":"Ether","nativeCurrencySymbol":"ETH","nativeCurrencyDecimals":18,"isTest":true,"layer":2,"enabled":true,"chainColor":"#51D0F0","shortName":"arb","tokenOverrides":null,"relatedChainId":42161},{"chainId":11155111,"chainName":"Mainnet","rpcUrl":"https://sepolia-archival.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","originalRpcUrl":"https://sepolia-archival.rpc.grove.city/v1/e3e877226bae94dd53ea3e13","fallbackURL":"https://sepolia.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","originalFallbackURL":"https://sepolia.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","blockExplorerUrl":"https://sepolia.etherscan.io/","iconUrl":"network/Network=Ethereum","nativeCurrencyName":"Ether","nativeCurrencySymbol":"ETH","nativeCurrencyDecimals":18,"isTest":true,"layer":1,"enabled":true,"chainColor":"#51D0F0","shortName":"eth","tokenOverrides":null,"relatedChainId":1},{"chainId":421614,"chainName":"Arbitrum","rpcUrl":"https://arbitrum-sepolia.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","originalRpcUrl":"https://arbitrum-sepolia.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","fallbackURL":"","originalFallbackURL":"","blockExplorerUrl":"https://sepolia-explorer.arbitrum.io/","iconUrl":"network/Network=Arbitrum","nativeCurrencyName":"Ether","nativeCurrencySymbol":"ETH","nativeCurrencyDecimals":18,"isTest":true,"layer":2,"enabled":true,"chainColor":"#51D0F0","shortName":"arb","tokenOverrides":null,"relatedChainId":42161}],"ClusterConfig":{"Enabled":true,"Fleet":"status.prod","StaticNodes":null,"BootNodes":null,"TrustedMailServers":null,"PushNotificationsServers":["401ba5eda402678dc78a0a40fd0795f4ea8b1e34972c4d15cf33ac01292341c89f0cbc637fa9f7a3ffe0b9dfe90e9cdae7a14925500ab01b6a91c67bae42a97a","181141b1d111908aaf05f4788e6778ec07073a1d4e1ce43c73815c40ee4e7345a1cbf5a90a45f601bf3763f12be63b01624ba1f36eeb9572455e7034b8f9f2c4","5ffc34d5ffda180d94cd3974d9ed2bb082ede68f342babdbe801ceffb7da902087d43f9aa961c7b85029358874c08ef04ecad9f1d95a1f0e448cbdd5d04350c7"],"RendezvousNodes":null,"WakuNodes":["enrtree://AL65EKLJAUXKKPG43HVTML5EFFWEZ7L4LOKTLZCLJASG4DSESQZEC@prod.status.nodes.status.im"],"DiscV5BootstrapNodes":["enr:-P-4QHhe0jqEn7M2OEs8CEwKyMyMhG1JvmNPEQXaz-V39av5GV0DmTN6eixT8LAxSyw2vdU91oWBkbTawCl04KmbeQgBgmlkgnY0gmlwhKEj9HmKbXVsdGlhZGRyc7hgAC02KG5vZGUtMDIuZG8tYW1zMy5zdGF0dXMucHJvZC5zdGF0dXNpbS5uZXQGdl8ALzYobm9kZS0wMi5kby1hbXMzLnN0YXR1cy5wcm9kLnN0YXR1c2ltLm5ldAYBu94DiXNlY3AyNTZrMaED1AYI2Ox27DnSqf2qoih5M2fNpHFq-OzJ3thREEApdiiDdGNwgnZfg3VkcIIjKIV3YWt1Mgc","enr:-P-4QOmv2aWjoKnLddV1k1RSdrP8koTNMv8rPaSHx-oznGPUfrTQUNjlR0nagI95-RsOIgeKT-6uNDw-IgrfelW4GYEBgmlkgnY0gmlwhI_G-a6KbXVsdGlhZGRyc7hgAC02KG5vZGUtMDEuZG8tYW1zMy5zdGF0dXMucHJvZC5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drb25nLWMuc3RhdHVzLnByb2Quc3RhdHVzaW0ubmV0BnZfADg2MW5vZGUtMDIuYWMtY24taG9uZ2tvbmctYy5zdGF0dXMucHJvZC5zdGF0dXNpbS5uZXQGAbveA4lzZWNwMjU2azGhAzE4YIBrPK5oT_9MvYEeggmaDd205iU4Nn1MAhU5xqY5g3RjcIJ2X4N1ZHCCIyiFd2FrdTIH","enr:-QERuEBjFzmttUu1i2adGSUoT8hRjkmFjgyfrv7qhER9dcXdwnn2sR_Q63y_--0C0-FDu8cdRqJe0QTxpx_PG7U70Vd7AYJpZIJ2NIJpcIQjyjeZim11bHRpYWRkcnO4cgA2NjFub2RlLTAxLmdjLXVzLWNlbnRyYWwxLWEuc3RhdHVzLnByb2Quc3RhdHVzaW0ubmV0BnZfADg2MW5vZGUtMDEuZ2MtdXMtY2VudHJhbDEtYS5zdGF0dXMucHJvZC5zdGF0dXNpbS5uZXQGAbveA4lzZWNwMjU2azGhAhoqdPkAZNvNRuzEecDGwnt5UbF98qwM16PZG3JmW6kUg3RjcIJ2X4N1ZHCCIyiFd2FrdTIH","enrtree://AL65EKLJAUXKKPG43HVTML5EFFWEZ7L4LOKTLZCLJASG4DSESQZEC@prod.status.nodes.status.im"],"ClusterID":0},"LightEthConfig":{"Enabled":false,"DatabaseCache":0,"TrustedNodes":null,"MinTrustedFraction":0},"WakuConfig":{"Enabled":false,"LightClient":true,"FullNode":false,"EnableMailServer":false,"DataDir":"","MinimumPoW":0.001,"MailServerPassword":"","MailServerRateLimit":0,"MailServerDataRetention":0,"TTL":0,"MaxMessageSize":0,"DatabaseConfig":{"PGConfig":{"Enabled":false,"URI":""}},"EnableRateLimiter":false,"PacketRateLimitIP":0,"PacketRateLimitPeerID":0,"BytesRateLimitIP":0,"BytesRateLimitPeerID":0,"RateLimitTolerance":0,"BloomFilterMode":true,"SoftBlacklistedPeerIDs":null,"EnableConfirmations":false},"WakuV2Config":{"Enabled":true,"Host":"0.0.0.0","Port":0,"KeepAliveInterval":0,"LightClient":false,"FullNode":false,"DiscoveryLimit":20,"DataDir":"","MaxMessageSize":0,"EnableConfirmations":false,"CustomNodes":{},"PeerExchange":true,"Nameserver":"","EnableDiscV5":true,"UDPPort":0,"AutoUpdate":true,"EnableStore":false,"StoreCapacity":0,"StoreSeconds":0,"EnableFilterFullNode":false,"UseShardAsDefaultTopic":false},"BridgeConfig":{"Enabled":false},"ShhextConfig":{"PFSEnabled":true,"BackupDisabledDataDir":"/Users/anastasiya/data/Master1/data","InstallationID":"118e968e-b7bf-4f4b-a9b6-1f1a3d7abf38","MailServerConfirmations":true,"EnableConnectionManager":false,"EnableLastUsedMonitor":false,"ConnectionTarget":0,"RequestsDelay":0,"MaxServerFailures":0,"MaxMessageDeliveryAttempts":6,"WhisperCacheDir":"","DisableGenericDiscoveryTopic":false,"SendV1Messages":false,"DataSyncEnabled":true,"VerifyTransactionURL":"https://mainnet.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","VerifyENSURL":"https://mainnet.infura.io/v3/7a5c53a1738641548d01a9a55a942cb4","VerifyENSContractAddress":"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e","VerifyTransactionChainID":1,"DefaultPushNotificationsServers":["04401ba5eda402678dc78a0a40fd0795f4ea8b1e34972c4d15cf33ac01292341c89f0cbc637fa9f7a3ffe0b9dfe90e9cdae7a14925500ab01b6a91c67bae42a97a","04181141b1d111908aaf05f4788e6778ec07073a1d4e1ce43c73815c40ee4e7345a1cbf5a90a45f601bf3763f12be63b01624ba1f36eeb9572455e7034b8f9f2c4","045ffc34d5ffda180d94cd3974d9ed2bb082ede68f342babdbe801ceffb7da902087d43f9aa961c7b85029358874c08ef04ecad9f1d95a1f0e448cbdd5d04350c7"],"AnonMetricsSendID":"","AnonMetricsServerEnabled":false,"AnonMetricsServerPostgresURI":"","BandwidthStatsEnabled":true},"WalletConfig":{"Enabled":true,"OpenseaAPIKey":"065e101cbbea420999de31d99962ccf3","RaribleMainnetAPIKey":"be4f8e5f-7df5-4652-9782-4a2274e41608","RaribleTestnetAPIKey":"0369c132-61a2-4582-8aa0-acf23dbe6a22","AlchemyAPIKeys":{"1":"14NXaTYB6wVhcndEGioWxGCf_NoZS6CN","10":"cX-UKlSUDqaAePOSjWu1uiDKffDTgmpE","11155111":"7pXZ2HvGweQFKDurgqYvv4C4_a9VHyY2","11155420":"z2e61hQQN93vBsyijtZs098K-pBZ1jWc","420":"9q5lC_Uec04zEgSJT-puv1YX_Pbz6imb","42161":"zTOPVVlC3KAuinRbtLJSkEv2f-un-OCu","421613":"mTwWOBsbRcRj8z8RDEGRcuD6sGOkAHdr","421614":"jgS6xEI1mUq1GiIDi44UjiYN5lddShfr","5":"8wRmN7BjMFaJA3Qu3zLI1cvRViha6cMg"},"InfuraAPIKey":"7a5c53a1738641548d01a9a55a942cb4","InfuraAPIKeySecret":"966f4ed9625c4a6294a80e73ea7d9548"},"LocalNotificationsConfig":{"Enabled":false},"BrowsersConfig":{"Enabled":true},"PermissionsConfig":{"Enabled":true},"MailserversConfig":{"Enabled":true},"Web3ProviderConfig":{"Enabled":true},"SwarmConfig":{"Enabled":false},"TorrentConfig":{"Enabled":true,"Port":0,"DataDir":"/Users/anastasiya/data/Master1/data/archivedata","TorrentDir":"/Users/anastasiya/data/Master1/data/torrents"},"RegisterTopics":["whispermail"],"RequireTopics":{"whisper":{"Min":2,"Max":2}},"MailServerRegistryAddress":"","PushNotificationServerConfig":{"Enabled":false,"Identity":null,"GorushURL":""},"OutputMessageCSVEnabled":false,"ProcessBackedupMessages":false}}

@richard-ramos ^

anastasiyaig commented 9 months ago

NOTE: i just restarted the app and the contact request received! @richard-ramos

richard-ramos commented 9 months ago

I think I found the problem. Master (and the PR used here) is not including the changes from https://github.com/status-im/status-desktop/pull/12963/ (hence why status.prod appears as default fleet instead of shards.test)

I'm trying to find out why

anastasiyaig commented 9 months ago

I though it was on purpose, to keep the status.prod in master, but perhaps it is just a leftover, i am not sure anymore

richard-ramos commented 9 months ago

@anastasiyaig this should fix the issue https://github.com/status-im/status-desktop/pull/13247