status-im / status-desktop

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

Syncing: Syncing desktop client with mobile device with a code generated on mobile results in error #10972

Closed anastasiyaig closed 1 year ago

anastasiyaig commented 1 year ago

Description

DBG 2023-06-07 16:16:43.112+03:00 local pairing event                        topics="signals-manager" tid=8793373 file=pairing.nim:24 type=EventProcessError action=ActionSyncDevice error="proto: cannot parse invalid wire-format data" event="{\"type\":\"localPairing\",\"event\":{\"type\":\"process-error\",\"error\":\"proto: cannot parse invalid wire-format data\",\"action\":3}}"
ERR 2023-06-07 16:16:43.114+03:00 failed to start bootstrapping device       topics="devices-service" tid=8793373 file=service.nim:168 errorDescription="proto: cannot parse invalid wire-format data"
Screenshot 2023-06-07 at 16 21 26

To reproduce:

  1. install a mobile build
  2. create new account
Android https://status-im-nightlies.ams3.digitaloceanspaces.com/StatusIm-Mobile-230607-020800-ba4e2f-nightly-universal.apk
IOS https://i.diawi.com/K79k6a
  1. open Syncing (settings - scroll to Syncing) image
  2. generate sync code
  3. paste this code to desktop instance to sync
anastasiyaig commented 1 year ago

@jrainville can we please check if we can fit this somewhere to near releases? maybe it is a quick fix? @igor-sirotin :)

igor-sirotin commented 1 year ago

Works for me 🤷 In both directions (mobile -> desktop, desktop -> mobile). Tested with:

@anastasiyaig could you please check it one more time? And please reach me out if still reproducible.

https://github.com/status-im/status-desktop/assets/25482501/34f4b043-bbf1-471d-bd58-deb189f7588f

anastasiyaig commented 1 year ago

@igor-sirotin please try with enter sync code option on desktop (paste the code, dont scan it)

igor-sirotin commented 1 year ago

@anastasiyaig, same behaviour 🙄

Not surprising to me actually, the scanning feature is just a extension to the way of getting the sync code, the backend remains the same. Though was worth testing anyway 🙂

https://github.com/status-im/status-desktop/assets/25482501/11c8f2e8-2e8b-411b-86f6-abadc6bebdbb

anastasiyaig commented 1 year ago

@igor-sirotin i took iOS build https://i.diawi.com/K79k6a and master commit 54709cb1c5ff7ab6521ff7c54be8aa0962fb8cf6

https://github.com/status-im/status-desktop/assets/82375995/e1c6a8f1-f956-4f5b-992a-c10395f0af8e

igor-sirotin commented 1 year ago

Got the error installing the app with diawi. (previously was installing the app with xcode). A bit more logs here:

DBG 2023-06-08 12:00:50.739+03:00 [threadpool task thread] initiating task   topics="task-threadpool" tid=1627293 file=threadpool.nim:54 messageType=AsyncInputConnectionStringArg:ObjectType threadid=1627293 task="{\"$type\":\"AsyncInputConnectionStringArg:ObjectType\",\"connectionString\":\"cs2:5vd474:Jx2:rvnjgM4JqU277qEVSwpafQRf8NQHwtzxH136JUucSB9R:BiMfdpJ5SYMTA9xJfQCaunmJoExP7VfQBuSx7S7xS6Ut\",\"configJSON\":\"{\\\"receiverConfig\\\":{\\\"keystorePath\\\":\\\"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/keystore\\\",\\\"deviceType\\\":\\\"macosx\\\",\\\"nodeConfig\\\":{\\\"BrowsersConfig\\\":{\\\"Enabled\\\":true},\\\"ClusterConfig\\\":{\\\"Enabled\\\":true,\\\"Fleet\\\":\\\"status.prod\\\",\\\"BootNodes\\\":[],\\\"TrustedMailServers\\\":[],\\\"StaticNodes\\\":[],\\\"RendezvousNodes\\\":[],\\\"WakuNodes\\\":[\\\"enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.nodes.status.im\\\"],\\\"DiscV5BootstrapNodes\\\":[\\\"enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.nodes.status.im\\\"]},\\\"DataDir\\\":\\\"ethereum\\\",\\\"EnableNTPSync\\\":true,\\\"KeyStoreDir\\\":\\\"keystore\\\",\\\"IPFSDir\\\":\\\"./ipfs\\\",\\\"LogEnabled\\\":true,\\\"LogFile\\\":\\\"geth.log\\\",\\\"LogMaxBackups\\\":1,\\\"LogMaxSize\\\":100,\\\"LogLevel\\\":\\\"INFO\\\",\\\"MailserversConfig\\\":{\\\"Enabled\\\":true},\\\"Name\\\":\\\"StatusDesktop\\\",\\\"NetworkId\\\":1,\\\"NoDiscovery\\\":true,\\\"PermissionsConfig\\\":{\\\"Enabled\\\":true},\\\"Rendezvous\\\":false,\\\"RegisterTopics\\\":[\\\"whispermail\\\"],\\\"RequireTopics\\\":{\\\"whisper\\\":{\\\"Max\\\":2,\\\"Min\\\":2}},\\\"ShhextConfig\\\":{\\\"BackupDisabledDataDir\\\":\\\"./\\\",\\\"DataSyncEnabled\\\":true,\\\"InstallationID\\\":\\\"732836f6-1ef0-4812-941a-d6eafb9030bf\\\",\\\"MailServerConfirmations\\\":true,\\\"MaxMessageDeliveryAttempts\\\":6,\\\"PFSEnabled\\\":true,\\\"VerifyENSContractAddress\\\":\\\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\\\",\\\"VerifyENSURL\\\":\\\"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"VerifyTransactionChainID\\\":1,\\\"VerifyTransactionURL\\\":\\\"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"BandwidthStatsEnabled\\\":true},\\\"Web3ProviderConfig\\\":{\\\"Enabled\\\":true},\\\"EnsConfig\\\":{\\\"Enabled\\\":true},\\\"StatusAccountsConfig\\\":{\\\"Enabled\\\":true},\\\"UpstreamConfig\\\":{\\\"Enabled\\\":true,\\\"URL\\\":\\\"https://eth-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\"},\\\"WakuConfig\\\":{\\\"Enabled\\\":false,\\\"BloomFilterMode\\\":true,\\\"LightClient\\\":true,\\\"MinimumPoW\\\":0.001},\\\"WakuV2Config\\\":{\\\"Enabled\\\":true,\\\"Host\\\":\\\"0.0.0.0\\\",\\\"Port\\\":0,\\\"LightClient\\\":false,\\\"PersistPeers\\\":true,\\\"EnableDiscV5\\\":true,\\\"DiscoveryLimit\\\":20,\\\"UDPPort\\\":0,\\\"PeerExchange\\\":true,\\\"AutoUpdate\\\":true,\\\"Rendezvous\\\":true},\\\"WalletConfig\\\":{\\\"Enabled\\\":true,\\\"OpenseaAPIKey\\\":\\\"\\\",\\\"AlchemyAPIKeys\\\":{\\\"42161\\\":\\\"\\\",\\\"421613\\\":\\\"\\\",\\\"10\\\":\\\"\\\",\\\"420\\\":\\\"\\\"},\\\"InfuraAPIKey\\\":\\\"459af0b086304edf8d105b0b824a7c36\\\",\\\"InfuraAPIKeySecret\\\":\\\"\\\"},\\\"Networks\\\":[{\\\"chainId\\\":1,\\\"chainName\\\":\\\"Ethereum Mainnet\\\",\\\"rpcUrl\\\":\\\"https://eth-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\",\\\"fallbackUrl\\\":\\\"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"blockExplorerUrl\\\":\\\"https://etherscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Ethereum\\\",\\\"chainColor\\\":\\\"#627EEA\\\",\\\"shortName\\\":\\\"eth\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":false,\\\"layer\\\":1,\\\"enabled\\\":true},{\\\"chainId\\\":5,\\\"chainName\\\":\\\"Goerli\\\",\\\"rpcUrl\\\":\\\"https://goerli-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\",\\\"fallbackUrl\\\":\\\"https://goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"blockExplorerUrl\\\":\\\"https://goerli.etherscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Testnet\\\",\\\"chainColor\\\":\\\"#939BA1\\\",\\\"shortName\\\":\\\"goEth\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":true,\\\"layer\\\":1,\\\"enabled\\\":true},{\\\"chainId\\\":10,\\\"chainName\\\":\\\"Optimism\\\",\\\"rpcUrl\\\":\\\"https://optimism-mainnet.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\",\\\"fallbackUrl\\\":\\\"https://optimism-mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"blockExplorerUrl\\\":\\\"https://optimistic.etherscan.io\\\",\\\"iconUrl\\\":\\\"network/Network=Optimism\\\",\\\"chainColor\\\":\\\"#E90101\\\",\\\"shortName\\\":\\\"opt\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":false,\\\"layer\\\":2,\\\"enabled\\\":true},{\\\"chainId\\\":420,\\\"chainName\\\":\\\"Optimism Goerli Testnet\\\",\\\"rpcUrl\\\":\\\"https://optimism-goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"fallbackUrl\\\":\\\"\\\",\\\"blockExplorerUrl\\\":\\\"https://goerli-optimism.etherscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Testnet\\\",\\\"chainColor\\\":\\\"#939BA1\\\",\\\"shortName\\\":\\\"goOpt\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":true,\\\"layer\\\":2,\\\"enabled\\\":false},{\\\"chainId\\\":42161,\\\"chainName\\\":\\\"Arbitrum\\\",\\\"rpcUrl\\\":\\\"https://arbitrum-one.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\",\\\"fallbackUrl\\\":\\\"https://arbitrum-mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"blockExplorerUrl\\\":\\\"https://arbiscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Arbitrum\\\",\\\"chainColor\\\":\\\"#51D0F0\\\",\\\"shortName\\\":\\\"arb\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":false,\\\"layer\\\":2,\\\"enabled\\\":true},{\\\"chainId\\\":421613,\\\"chainName\\\":\\\"Arbitrum Goerli\\\",\\\"rpcUrl\\\":\\\"https://arbitrum-goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"fallbackUrl\\\":\\\"\\\",\\\"blockExplorerUrl\\\":\\\"https://goerli.arbiscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Testnet\\\",\\\"chainColor\\\":\\\"#939BA1\\\",\\\"shortName\\\":\\\"goArb\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":true,\\\"layer\\\":2,\\\"enabled\\\":false}],\\\"TorrentConfig\\\":{\\\"Enabled\\\":true,\\\"Port\\\":0,\\\"DataDir\\\":\\\"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/archivedata\\\",\\\"TorrentDir\\\":\\\"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/torrents\\\"},\\\"RootDataDir\\\":\\\"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/\\\"},\\\"kdfIterations\\\":256000,\\\"settingCurrentNetwork\\\":\\\"mainnet_rpc\\\"},\\\"clientConfig\\\":{}}\",\"vptr\":5091511712,\"slot\":\"inputConnectionStringForBootstrappingFinished\",\"tptr\":4308656888}"
DBG 2023-06-08 12:00:50.750+03:00 primary_action - set state                 topics="app-controller" tid=1627262 file=module.nim:197 setCurrFlow=FirstRunOldUserSyncCode setCurrState=SyncDeviceResult
DBG 2023-06-08 12:00:50.838+03:00 local pairing event                        topics="signals-manager" tid=1627262 file=pairing.nim:24 type=EventConnectionSuccess action=ActionConnect error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"connection-success\",\"action\":1}}"
DBG 2023-06-08 12:00:51.527+03:00 local pairing event                        topics="signals-manager" tid=1627262 file=pairing.nim:24 type=EventTransferSuccess action=ActionPairingAccount error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"transfer-success\",\"action\":2}}"
DBG 2023-06-08 12:00:51.840+03:00 local pairing event                        topics="signals-manager" tid=1627262 file=pairing.nim:24 type=EventReceivedAccount action=ActionPairingAccount error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"received-account\",\"action\":2,\"data\":{\"account\":{\"name\":\"4test\",\"timestamp\":1686214824,\"identicon\":\"\",\"colorHash\":[[2,6],[3,4],[1,19],[2,5],[4,14],[1,6],[5,9],[4,22],[1,8],[5,6],[2,7]],\"colorId\":4,\"customizationColor\":\"blue\",\"keycard-pairing\":\"\",\"key-uid\":\"0x76170327335dd54e65281d1fc6f79922e03813b210b6b9b36679bdacbbd7f4e2\",\"images\":null,\"kdfIterations\":256000},\"password\":\"0xbaf4c353a3dc6a9f6b539020e2ea08490f8c7ca63d3ad1277da307f6bc25199c\"}}}"
DBG 2023-06-08 12:00:51.841+03:00 local pairing event                        topics="signals-manager" tid=1627262 file=pairing.nim:24 type=EventProcessSuccess action=ActionPairingAccount error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"process-success\",\"action\":2}}"
DBG 2023-06-08 12:00:51.876+03:00 local pairing event                        topics="signals-manager" tid=1627262 file=pairing.nim:24 type=EventTransferSuccess action=ActionSyncDevice error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"transfer-success\",\"action\":3}}"
INFO [06-08|12:00:51.877] node config                              package=status-go/api.GethStatusBackend config="{\n    \"NetworkId\": 1,\n    \"RootDataDir\": \"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/\",\n    \"DataDir\": \"ethereum\",\n    \"KeyStoreDir\": \"keystore/0x76170327335dd54e65281d1fc6f79922e03813b210b6b9b36679bdacbbd7f4e2\",\n    \"NodeKey\": \"\",\n    \"NoDiscovery\": true,\n    \"Rendezvous\": false,\n    \"ListenAddr\": \"\",\n    \"AdvertiseAddr\": \"\",\n    \"Name\": \"StatusDesktop\",\n    \"Version\": \"\",\n    \"APIModules\": \"net,web3,eth\",\n    \"HTTPEnabled\": false,\n    \"HTTPHost\": \"\",\n    \"HTTPPort\": 0,\n    \"HTTPVirtualHosts\": null,\n    \"HTTPCors\": null,\n    \"IPCEnabled\": false,\n    \"IPCFile\": \"\",\n    \"TLSEnabled\": false,\n    \"MaxPeers\": 0,\n    \"MaxPendingPeers\": 0,\n    \"LogEnabled\": true,\n    \"LogMobileSystem\": false,\n    \"LogDir\": \"\",\n    \"LogFile\": \"geth.log\",\n    \"LogLevel\": \"INFO\",\n    \"LogMaxBackups\": 1,\n    \"LogMaxSize\": 100,\n    \"LogCompressRotated\": false,\n    \"LogToStderr\": false,\n    \"EnableStatusService\": false,\n    \"EnableNTPSync\": true,\n    \"UpstreamConfig\": {\n        \"Enabled\": true,\n        \"URL\": \"https://eth-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\"\n    },\n    \"Networks\": [\n        {\n            \"chainId\": 1,\n            \"chainName\": \"Ethereum Mainnet\",\n            \"rpcUrl\": \"https://eth-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\",\n            \"fallbackURL\": \"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"blockExplorerUrl\": \"https://etherscan.io/\",\n            \"iconUrl\": \"network/Network=Ethereum\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": false,\n            \"layer\": 1,\n            \"enabled\": true,\n            \"chainColor\": \"#627EEA\",\n            \"shortName\": \"eth\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 5,\n            \"chainName\": \"Goerli\",\n            \"rpcUrl\": \"https://goerli-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\",\n            \"fallbackURL\": \"https://goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"blockExplorerUrl\": \"https://goerli.etherscan.io/\",\n            \"iconUrl\": \"network/Network=Testnet\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": true,\n            \"layer\": 1,\n            \"enabled\": true,\n            \"chainColor\": \"#939BA1\",\n            \"shortName\": \"goEth\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 10,\n            \"chainName\": \"Optimism\",\n            \"rpcUrl\": \"https://optimism-mainnet.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\",\n            \"fallbackURL\": \"https://optimism-mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"blockExplorerUrl\": \"https://optimistic.etherscan.io\",\n            \"iconUrl\": \"network/Network=Optimism\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": false,\n            \"layer\": 2,\n            \"enabled\": true,\n            \"chainColor\": \"#E90101\",\n            \"shortName\": \"opt\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 420,\n            \"chainName\": \"Optimism Goerli Testnet\",\n            \"rpcUrl\": \"https://optimism-goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"fallbackURL\": \"\",\n            \"blockExplorerUrl\": \"https://goerli-optimism.etherscan.io/\",\n            \"iconUrl\": \"network/Network=Testnet\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": true,\n            \"layer\": 2,\n            \"enabled\": false,\n            \"chainColor\": \"#939BA1\",\n            \"shortName\": \"goOpt\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 42161,\n            \"chainName\": \"Arbitrum\",\n            \"rpcUrl\": \"https://arbitrum-one.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\",\n            \"fallbackURL\": \"https://arbitrum-mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"blockExplorerUrl\": \"https://arbiscan.io/\",\n            \"iconUrl\": \"network/Network=Arbitrum\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": false,\n            \"layer\": 2,\n            \"enabled\": true,\n            \"chainColor\": \"#51D0F0\",\n            \"shortName\": \"arb\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 421613,\n            \"chainName\": \"Arbitrum Goerli\",\n            \"rpcUrl\": \"https://arbitrum-goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"fallbackURL\": \"\",\n            \"blockExplorerUrl\": \"https://goerli.arbiscan.io/\",\n            \"iconUrl\": \"network/Network=Testnet\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": true,\n            \"layer\": 2,\n            \"enabled\": false,\n            \"chainColor\": \"#939BA1\",\n            \"shortName\": \"goArb\",\n            \"tokenOverrides\": null\n        }\n    ],\n    \"ClusterConfig\": {\n        \"Enabled\": true,\n        \"Fleet\": \"status.prod\",\n        \"StaticNodes\": [],\n        \"BootNodes\": [],\n        \"TrustedMailServers\": [],\n        \"PushNotificationsServers\": [\n            \"401ba5eda402678dc78a0a40fd0795f4ea8b1e34972c4d15cf33ac01292341c89f0cbc637fa9f7a3ffe0b9dfe90e9cdae7a14925500ab01b6a91c67bae42a97a\",\n            \"181141b1d111908aaf05f4788e6778ec07073a1d4e1ce43c73815c40ee4e7345a1cbf5a90a45f601bf3763f12be63b01624ba1f36eeb9572455e7034b8f9f2c4\",\n            \"5ffc34d5ffda180d94cd3974d9ed2bb082ede68f342babdbe801ceffb7da902087d43f9aa961c7b85029358874c08ef04ecad9f1d95a1f0e448cbdd5d04350c7\"\n        ],\n        \"RendezvousNodes\": [],\n        \"WakuNodes\": [\n            \"enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.nodes.status.im\"\n        ],\n        \"DiscV5BootstrapNodes\": [\n            \"enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.nodes.status.im\"\n        ]\n    },\n    \"LightEthConfig\": {\n        \"Enabled\": false,\n        \"DatabaseCache\": 0,\n        \"TrustedNodes\": null,\n        \"MinTrustedFraction\": 0\n    },\n    \"WakuConfig\": {\n        \"Enabled\": false,\n        \"LightClient\": true,\n        \"FullNode\": false,\n        \"EnableMailServer\": false,\n        \"DataDir\": \"\",\n        \"MinimumPoW\": 0.001,\n        \"MailServerPassword\": \"\",\n        \"MailServerRateLimit\": 0,\n        \"MailServerDataRetention\": 0,\n        \"TTL\": 0,\n        \"MaxMessageSize\": 0,\n        \"DatabaseConfig\": {\n            \"PGConfig\": {\n                \"Enabled\": false,\n                \"URI\": \"\"\n            }\n        },\n        \"EnableRateLimiter\": false,\n        \"PacketRateLimitIP\": 0,\n        \"PacketRateLimitPeerID\": 0,\n        \"BytesRateLimitIP\": 0,\n        \"BytesRateLimitPeerID\": 0,\n        \"RateLimitTolerance\": 0,\n        \"BloomFilterMode\": true,\n        \"SoftBlacklistedPeerIDs\": null,\n        \"EnableConfirmations\": false\n    },\n    \"WakuV2Config\": {\n        \"Enabled\": true,\n        \"Host\": \"0.0.0.0\",\n        \"Port\": 0,\n        \"KeepAliveInterval\": 0,\n        \"LightClient\": false,\n        \"FullNode\": false,\n        \"DiscoveryLimit\": 20,\n        \"DataDir\": \"\",\n        \"MaxMessageSize\": 0,\n        \"EnableConfirmations\": false,\n        \"CustomNodes\": null,\n        \"PeerExchange\": true,\n        \"Nameserver\": \"\",\n        \"EnableDiscV5\": true,\n        \"UDPPort\": 0,\n        \"AutoUpdate\": true,\n        \"EnableStore\": false,\n        \"StoreCapacity\": 0,\n        \"StoreSeconds\": 0\n    },\n    \"BridgeConfig\": {\n        \"Enabled\": false\n    },\n    \"ShhextConfig\": {\n        \"PFSEnabled\": true,\n        \"BackupDisabledDataDir\": \"./\",\n        \"InstallationID\": \"732836f6-1ef0-4812-941a-d6eafb9030bf\",\n        \"MailServerConfirmations\": true,\n        \"EnableConnectionManager\": false,\n        \"EnableLastUsedMonitor\": false,\n        \"ConnectionTarget\": 0,\n        \"RequestsDelay\": 0,\n        \"MaxServerFailures\": 0,\n        \"MaxMessageDeliveryAttempts\": 6,\n        \"WhisperCacheDir\": \"\",\n        \"DisableGenericDiscoveryTopic\": false,\n        \"SendV1Messages\": false,\n        \"DataSyncEnabled\": true,\n        \"VerifyTransactionURL\": \"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n        \"VerifyENSURL\": \"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n        \"VerifyENSContractAddress\": \"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",\n        \"VerifyTransactionChainID\": 1,\n        \"DefaultPushNotificationsServers\": [\n            \"04401ba5eda402678dc78a0a40fd0795f4ea8b1e34972c4d15cf33ac01292341c89f0cbc637fa9f7a3ffe0b9dfe90e9cdae7a14925500ab01b6a91c67bae42a97a\",\n            \"04181141b1d111908aaf05f4788e6778ec07073a1d4e1ce43c73815c40ee4e7345a1cbf5a90a45f601bf3763f12be63b01624ba1f36eeb9572455e7034b8f9f2c4\",\n            \"045ffc34d5ffda180d94cd3974d9ed2bb082ede68f342babdbe801ceffb7da902087d43f9aa961c7b85029358874c08ef04ecad9f1d95a1f0e448cbdd5d04350c7\"\n        ],\n        \"AnonMetricsSendID\": \"\",\n        \"AnonMetricsServerEnabled\": false,\n        \"AnonMetricsServerPostgresURI\": \"\",\n        \"BandwidthStatsEnabled\": true\n    },\n    \"WalletConfig\": {\n        \"Enabled\": true,\n        \"OpenseaAPIKey\": \"\",\n        \"AlchemyAPIKeys\": {\n            \"10\": \"\",\n            \"420\": \"\",\n            \"42161\": \"\",\n            \"421613\": \"\"\n        },\n        \"InfuraAPIKey\": \"459af0b086304edf8d105b0b824a7c36\",\n        \"InfuraAPIKeySecret\": \"\",\n        \"LoadAllTransfers\": false\n    },\n    \"LocalNotificationsConfig\": {\n        \"Enabled\": false\n    },\n    \"BrowsersConfig\": {\n        \"Enabled\": true\n    },\n    \"PermissionsConfig\": {\n        \"Enabled\": true\n    },\n    \"MailserversConfig\": {\n        \"Enabled\": true\n    },\n    \"Web3ProviderConfig\": {\n        \"Enabled\": true\n    },\n    \"SwarmConfig\": {\n        \"Enabled\": false\n    },\n    \"TorrentConfig\": {\n        \"Enabled\": true,\n        \"Port\": 0,\n        \"DataDir\": \"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/archivedata\",\n        \"TorrentDir\": \"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/torrents\"\n    },\n    \"RegisterTopics\": [\n        \"whispermail\"\n    ],\n    \"RequireTopics\": {\n        \"whisper\": {\n            \"Min\": 2,\n            \"Max\": 2\n        }\n    },\n    \"MailServerRegistryAddress\": \"\",\n    \"PushNotificationServerConfig\": {\n        \"Enabled\": false,\n        \"Identity\": null,\n        \"GorushURL\": \"\",\n        \"Logger\": null\n    },\n    \"OutputMessageCSVEnabled\": false\n}"
WRN 2023-06-08 12:00:53.348+03:00 Error decoding signal                      topics="signals-manager" tid=1627262 file=signals_manager.nim:48 err="Unknown signal received: mediaserver.started"
proto: cannot parse invalid wire-format data
DBG 2023-06-08 12:00:53.792+03:00 local pairing event                        topics="signals-manager" tid=1627262 file=pairing.nim:24 type=EventProcessError action=ActionSyncDevice error="proto: cannot parse invalid wire-format data" event="{\"type\":\"localPairing\",\"event\":{\"type\":\"process-error\",\"error\":\"proto: cannot parse invalid wire-format data\",\"action\":3}}"
ERR 2023-06-08 12:00:53.793+03:00 failed to start bootstrapping device       topics="devices-service" tid=1627262 file=service.nim:168 errorDescription="proto: cannot parse invalid wire-format data"
igor-sirotin commented 1 year ago

But I'm able to login with paired account after this^ error 🤔

igor-sirotin commented 1 year ago

Still investigating. Will sum up what we have now:

  1. I can reproduce the bug each time now. Earlier I was able to sync several times without any problems, 2 screen records above. From discussion with @anastasiyaig it turned out that the only difference we have is the way of installing the mobile app: xcode and diawi. After installing with diawi I started reproducing the bug each time. Even after reinstalling with xcode again 😵‍💫

  2. The only way it doesn't work is Mobile -> Desktop All other directions are not affected.

  3. I'm able to login to the paired account after desktop app restart.

igor-sirotin commented 1 year ago

A bit more of logs:

DBG 2023-06-08 15:43:44.170+03:00 [threadpool task thread] initiating task   topics="task-threadpool" tid=1897152 file=threadpool.nim:54 messageType=AsyncInputConnectionStringArg:ObjectType threadid=1897152 task="{\"$type\":\"AsyncInputConnectionStringArg:ObjectType\",\"connectionString\":\"cs2:5vd474:GGb:21nQoxyfy3yooBZvicA8Ro1R4SPvLkkFFYQ8qpdgYaWXq:GwqmrRuye1ghWKngVCpGdzpQ2VEWEefiasuSsErYMqQd\",\"configJSON\":\"{\\\"receiverConfig\\\":{\\\"keystorePath\\\":\\\"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/keystore\\\",\\\"deviceType\\\":\\\"macosx\\\",\\\"nodeConfig\\\":{\\\"BrowsersConfig\\\":{\\\"Enabled\\\":true},\\\"ClusterConfig\\\":{\\\"Enabled\\\":true,\\\"Fleet\\\":\\\"status.prod\\\",\\\"BootNodes\\\":[],\\\"TrustedMailServers\\\":[],\\\"StaticNodes\\\":[],\\\"RendezvousNodes\\\":[],\\\"WakuNodes\\\":[\\\"enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.nodes.status.im\\\"],\\\"DiscV5BootstrapNodes\\\":[\\\"enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.nodes.status.im\\\"]},\\\"DataDir\\\":\\\"ethereum\\\",\\\"EnableNTPSync\\\":true,\\\"KeyStoreDir\\\":\\\"keystore\\\",\\\"IPFSDir\\\":\\\"./ipfs\\\",\\\"LogEnabled\\\":true,\\\"LogFile\\\":\\\"geth.log\\\",\\\"LogMaxBackups\\\":1,\\\"LogMaxSize\\\":100,\\\"LogLevel\\\":\\\"INFO\\\",\\\"MailserversConfig\\\":{\\\"Enabled\\\":true},\\\"Name\\\":\\\"StatusDesktop\\\",\\\"NetworkId\\\":1,\\\"NoDiscovery\\\":true,\\\"PermissionsConfig\\\":{\\\"Enabled\\\":true},\\\"Rendezvous\\\":false,\\\"RegisterTopics\\\":[\\\"whispermail\\\"],\\\"RequireTopics\\\":{\\\"whisper\\\":{\\\"Max\\\":2,\\\"Min\\\":2}},\\\"ShhextConfig\\\":{\\\"BackupDisabledDataDir\\\":\\\"./\\\",\\\"DataSyncEnabled\\\":true,\\\"InstallationID\\\":\\\"13c2667a-766c-41ee-a4ca-45253ae0b0d9\\\",\\\"MailServerConfirmations\\\":true,\\\"MaxMessageDeliveryAttempts\\\":6,\\\"PFSEnabled\\\":true,\\\"VerifyENSContractAddress\\\":\\\"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\\\",\\\"VerifyENSURL\\\":\\\"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"VerifyTransactionChainID\\\":1,\\\"VerifyTransactionURL\\\":\\\"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"BandwidthStatsEnabled\\\":true},\\\"Web3ProviderConfig\\\":{\\\"Enabled\\\":true},\\\"EnsConfig\\\":{\\\"Enabled\\\":true},\\\"StatusAccountsConfig\\\":{\\\"Enabled\\\":true},\\\"UpstreamConfig\\\":{\\\"Enabled\\\":true,\\\"URL\\\":\\\"https://eth-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\"},\\\"WakuConfig\\\":{\\\"Enabled\\\":false,\\\"BloomFilterMode\\\":true,\\\"LightClient\\\":true,\\\"MinimumPoW\\\":0.001},\\\"WakuV2Config\\\":{\\\"Enabled\\\":true,\\\"Host\\\":\\\"0.0.0.0\\\",\\\"Port\\\":0,\\\"LightClient\\\":false,\\\"PersistPeers\\\":true,\\\"EnableDiscV5\\\":true,\\\"DiscoveryLimit\\\":20,\\\"UDPPort\\\":0,\\\"PeerExchange\\\":true,\\\"AutoUpdate\\\":true,\\\"Rendezvous\\\":true},\\\"WalletConfig\\\":{\\\"Enabled\\\":true,\\\"OpenseaAPIKey\\\":\\\"\\\",\\\"AlchemyAPIKeys\\\":{\\\"42161\\\":\\\"\\\",\\\"421613\\\":\\\"\\\",\\\"10\\\":\\\"\\\",\\\"420\\\":\\\"\\\"},\\\"InfuraAPIKey\\\":\\\"459af0b086304edf8d105b0b824a7c36\\\",\\\"InfuraAPIKeySecret\\\":\\\"\\\"},\\\"Networks\\\":[{\\\"chainId\\\":1,\\\"chainName\\\":\\\"Ethereum Mainnet\\\",\\\"rpcUrl\\\":\\\"https://eth-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\",\\\"fallbackUrl\\\":\\\"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"blockExplorerUrl\\\":\\\"https://etherscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Ethereum\\\",\\\"chainColor\\\":\\\"#627EEA\\\",\\\"shortName\\\":\\\"eth\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":false,\\\"layer\\\":1,\\\"enabled\\\":true},{\\\"chainId\\\":5,\\\"chainName\\\":\\\"Goerli\\\",\\\"rpcUrl\\\":\\\"https://goerli-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\",\\\"fallbackUrl\\\":\\\"https://goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"blockExplorerUrl\\\":\\\"https://goerli.etherscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Testnet\\\",\\\"chainColor\\\":\\\"#939BA1\\\",\\\"shortName\\\":\\\"goEth\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":true,\\\"layer\\\":1,\\\"enabled\\\":true},{\\\"chainId\\\":10,\\\"chainName\\\":\\\"Optimism\\\",\\\"rpcUrl\\\":\\\"https://optimism-mainnet.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\",\\\"fallbackUrl\\\":\\\"https://optimism-mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"blockExplorerUrl\\\":\\\"https://optimistic.etherscan.io\\\",\\\"iconUrl\\\":\\\"network/Network=Optimism\\\",\\\"chainColor\\\":\\\"#E90101\\\",\\\"shortName\\\":\\\"opt\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":false,\\\"layer\\\":2,\\\"enabled\\\":true},{\\\"chainId\\\":420,\\\"chainName\\\":\\\"Optimism Goerli Testnet\\\",\\\"rpcUrl\\\":\\\"https://optimism-goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"fallbackUrl\\\":\\\"\\\",\\\"blockExplorerUrl\\\":\\\"https://goerli-optimism.etherscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Testnet\\\",\\\"chainColor\\\":\\\"#939BA1\\\",\\\"shortName\\\":\\\"goOpt\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":true,\\\"layer\\\":2,\\\"enabled\\\":false},{\\\"chainId\\\":42161,\\\"chainName\\\":\\\"Arbitrum\\\",\\\"rpcUrl\\\":\\\"https://arbitrum-one.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\\\",\\\"fallbackUrl\\\":\\\"https://arbitrum-mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"blockExplorerUrl\\\":\\\"https://arbiscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Arbitrum\\\",\\\"chainColor\\\":\\\"#51D0F0\\\",\\\"shortName\\\":\\\"arb\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":false,\\\"layer\\\":2,\\\"enabled\\\":true},{\\\"chainId\\\":421613,\\\"chainName\\\":\\\"Arbitrum Goerli\\\",\\\"rpcUrl\\\":\\\"https://arbitrum-goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\\\",\\\"fallbackUrl\\\":\\\"\\\",\\\"blockExplorerUrl\\\":\\\"https://goerli.arbiscan.io/\\\",\\\"iconUrl\\\":\\\"network/Network=Testnet\\\",\\\"chainColor\\\":\\\"#939BA1\\\",\\\"shortName\\\":\\\"goArb\\\",\\\"nativeCurrencyName\\\":\\\"Ether\\\",\\\"nativeCurrencySymbol\\\":\\\"ETH\\\",\\\"nativeCurrencyDecimals\\\":18,\\\"isTest\\\":true,\\\"layer\\\":2,\\\"enabled\\\":false}],\\\"TorrentConfig\\\":{\\\"Enabled\\\":true,\\\"Port\\\":0,\\\"DataDir\\\":\\\"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/archivedata\\\",\\\"TorrentDir\\\":\\\"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/torrents\\\"},\\\"RootDataDir\\\":\\\"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/\\\"},\\\"kdfIterations\\\":256000,\\\"settingCurrentNetwork\\\":\\\"mainnet_rpc\\\"},\\\"clientConfig\\\":{}}\",\"vptr\":5779178672,\"slot\":\"inputConnectionStringForBootstrappingFinished\",\"tptr\":4349043448}"
DBG 2023-06-08 15:43:44.180+03:00 primary_action - set state                 topics="app-controller" tid=1897114 file=module.nim:197 setCurrFlow=FirstRunOldUserSyncCode setCurrState=SyncDeviceResult
DBG 2023-06-08 15:43:44.189+03:00 local pairing event                        topics="signals-manager" tid=1897114 file=pairing.nim:24 type=EventConnectionSuccess action=ActionConnect error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"connection-success\",\"action\":1}}"
<<< BasePayloadReceiver::Receive (1)
<<< BasePayloadReceiver::Receive (2) <nil>
DBG 2023-06-08 15:43:44.567+03:00 local pairing event                        topics="signals-manager" tid=1897114 file=pairing.nim:24 type=EventTransferSuccess action=ActionPairingAccount error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"transfer-success\",\"action\":2}}"
<<< BasePayloadReceiver::Receive (3) <nil>
<<< BasePayloadReceiver::Receive (4) <nil>
DBG 2023-06-08 15:43:44.886+03:00 local pairing event                        topics="signals-manager" tid=1897114 file=pairing.nim:24 type=EventReceivedAccount action=ActionPairingAccount error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"received-account\",\"action\":2,\"data\":{\"account\":{\"name\":\"2test\",\"timestamp\":1686223910,\"identicon\":\"\",\"colorHash\":[[2,19],[1,31],[5,28],[5,16],[1,3],[2,4],[3,5],[4,2],[2,11],[1,20],[2,16]],\"colorId\":8,\"customizationColor\":\"blue\",\"keycard-pairing\":\"\",\"key-uid\":\"0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd\",\"images\":null,\"kdfIterations\":256000},\"password\":\"0xbaf4c353a3dc6a9f6b539020e2ea08490f8c7ca63d3ad1277da307f6bc25199c\"}}}"
DBG 2023-06-08 15:43:44.887+03:00 local pairing event                        topics="signals-manager" tid=1897114 file=pairing.nim:24 type=EventProcessSuccess action=ActionPairingAccount error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"process-success\",\"action\":2}}"
<<< BasePayloadReceiver::Receive (1)
<<< BasePayloadReceiver::Receive (2) <nil>
<<< RawMessagePayloadMarshaller::UnmarshalProtobuf (1)
<<< RawMessagePayloadMarshaller::UnmarshalProtobuf (1) <nil>
DBG 2023-06-08 15:43:44.921+03:00 local pairing event                        topics="signals-manager" tid=1897114 file=pairing.nim:24 type=EventTransferSuccess action=ActionSyncDevice error= event="{\"type\":\"localPairing\",\"event\":{\"type\":\"transfer-success\",\"action\":3}}"
<<< RawMessagePayloadMarshaller::UnmarshalProtobuf (2) rawMessages:<payload:"\010\001\020\273\266\377\322\2111\032\003usd" messageType:SYNC_SETTING > rawMessages:<payload:"\010\r\020\245\370\206\244\006\032\0052test" messageType:SYNC_SETTING > rawMessages:<payload:"\010\016\020\273\266\377\322\2111\032\000" messageType:SYNC_SETTING > rawMessages:<payload:"\010\004\020\273\266\377\322\2111(\000" messageType:SYNC_SETTING > rawMessages:<payload:"\010\017\020\273\266\377\322\2111(\000" messageType:SYNC_SETTING > rawMessages:<payload:"\010\007\020\273\266\377\322\21110\001" messageType:SYNC_SETTING > rawMessages:<payload:"\010\010\020\273\266\377\322\21110\001" messageType:SYNC_SETTING > rawMessages:<payload:"\010\020\020\273\266\377\322\2111\"\000" messageType:SYNC_SETTING > rawMessages:<payload:"\nB0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd" messageType:SYNC_PROFILE_PICTURE > rawMessages:<payload:"\n\325\002\022B0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd\032\0052test\"\007profile**0x999f18CbFB327BEa9393268B2a71030A943901dA:\rlocal-pairingB\303\001\022\024\276id\321\016\374pZ\2467\3317\234\343v\234\224\262%o\032B0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd\"A\004\211J$\256,;Og\363)%\363\347B\336\321\324\013\3575\000\241\014\200\204;\374\004\307f\t\331U\355(W\020J\010\246\361\317\005\223\001\342\333\016\252\212E\207\352@G\235\322\201$\345\325\373\204\000*\020m/44'/60'/0'/0/02\020Ethereum accountH\001" messageType:SYNC_FULL_KEYPAIR > rawMessages:<payload:"\n\t__twitter" messageType:SYNC_SOCIAL_LINKS > rawMessages:<payload:"\n\017__personal_site" messageType:SYNC_SOCIAL_LINKS > rawMessages:<payload:"\n\010__github" messageType:SYNC_SOCIAL_LINKS > rawMessages:<payload:"\n\t__youtube" messageType:SYNC_SOCIAL_LINKS > rawMessages:<payload:"\n\t__discord" messageType:SYNC_SOCIAL_LINKS > rawMessages:<payload:"\n\n__telegram" messageType:SYNC_SOCIAL_LINKS > rawMessages:<payload:"\010\242\227\243\330\2111\022$a37f86d0-3ed3-5a46-ad46-13f8ce3b3d56\032\003ios\"\014iPhone Igor (\001" messageType:PAIR_INSTALLATION > subAccountsJsonBytes:"{\"key-uid\":\"0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd\",\"name\":\"2test\",\"type\":\"profile\",\"derived-from\":\"0x999f18CbFB327BEa9393268B2a71030A943901dA\",\"last-used-derivation-index\":0,\"synced-from\":\"\",\"clock\":0,\"accounts\":[{\"address\":\"0xbe6964d10efc705aa637d9379ce3769c94b2256f\",\"mixedcase-address\":\"0xbE6964D10EFC705aA637D9379cE3769C94B2256F\",\"key-uid\":\"0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd\",\"wallet\":true,\"chat\":false,\"type\":\"generated\",\"path\":\"m/44'/60'/0'/0/0\",\"public-key\":\"0x04894a24ae2c3b4f67f32925f3e742ded1d40bef3500a10c80843bfc04c76609d955ed2857104a08a6f1cf059301e2db0eaa8a4587ea40479dd28124e5d5fb8400\",\"name\":\"Ethereum account\",\"emoji\":\"\",\"colorId\":\"\",\"hidden\":false,\"clock\":0,\"removed\":false,\"operable\":\"fully\",\"createdAt\":1686223909000},{\"address\":\"0x52a358dbb68cbd2547656367d4314e6c828d1219\",\"mixedcase-address\":\"0x52A358Dbb68cBD2547656367d4314E6c828D1219\",\"key-uid\":\"0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd\",\"wallet\":false,\"chat\":true,\"type\":\"generated\",\"path\":\"m/43'/60'/1581'/0'/0\",\"public-key\":\"0x04361abd4afe66801ae2c48b141438723a52994bf3177358185f7c0203dd8b0c9145a95c7145128811028ce8f016228ea958da36fdf98391d5e848e3b86ce4acb2\",\"name\":\"2test\",\"emoji\":\"\",\"colorId\":\"\",\"hidden\":false,\"clock\":0,\"removed\":false,\"operable\":\"fully\",\"createdAt\":1686223909000}]}" settingsJsonBytes:"{\"address\":\"0x999f18cbfb327bea9393268b2a71030a943901da\",\"currency\":\"usd\",\"networks/current-network\":\"mainnet_rpc\",\"dapps-address\":\"0xbe6964d10efc705aa637d9379ce3769c94b2256f\",\"display-name\":\"2test\",\"eip1581-address\":\"0xa83cebae15f2aa5c63ebd20f1be25a87c54ffbde\",\"installation-id\":\"a37f86d0-3ed3-5a46-ad46-13f8ce3b3d56\",\"key-uid\":\"0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd\",\"latest-derived-path\":0,\"link-preview-request-enabled\":true,\"messages-from-contacts-only\":false,\"mnemonic\":\"one during renew sun ranch correct treat ribbon weapon hedgehog document again\",\"mutual-contact-enabled?\":false,\"name\":\"Tall Strident Airedaleterrier\",\"networks/networks\":[],\"photo-path\":\"\",\"preview-privacy?\":false,\"public-key\":\"0x04361abd4afe66801ae2c48b141438723a52994bf3177358185f7c0203dd8b0c9145a95c7145128811028ce8f016228ea958da36fdf98391d5e848e3b86ce4acb2\",\"signing-phrase\":\"bore room tank\",\"default-sync-period\":777600,\"send-push-notifications?\":true,\"appearance\":0,\"profile-pictures-show-to\":1,\"profile-pictures-visibility\":1,\"use-mailservers?\":true,\"wallet-root-address\":\"0x9290d085308cb0f2799bd1b63e84f6ed8ca91891\",\"wallet/visible-tokens\":{\"mainnet\":[\"SNT\"]},\"send-status-updates?\":true,\"current-user-status\":{\"statusType\":1,\"clock\":1686228197,\"text\":\"\"},\"gifs/recent-gifs\":null,\"gifs/favorite-gifs\":null,\"last-backup\":1686223909,\"backup-enabled?\":true,\"gifs/api-key\":\"\",\"compressedKey\":\"zQ3shR3zRMy5Q6F5ogmPUzrt5sQBwZ19kyf3XX2xLH3NHFhct\",\"emojiHash\":[\"\360\237\244\264\360\237\217\277\",\"\360\237\215\223\",\"\360\237\247\274\",\"\360\237\245\201\",\"\360\237\247\216\360\237\217\273\342\200\215\342\231\202\357\270\217\",\"\360\237\244\267\360\237\217\275\342\200\215\342\231\200\357\270\217\",\"\360\237\247\222\",\"\360\237\217\250\",\"\360\237\221\251\360\237\217\274\342\200\215\360\237\244\235\342\200\215\360\237\221\250\360\237\217\277\",\"\360\237\221\263\360\237\217\275\342\200\215\342\231\200\357\270\217\",\"\360\237\244\277\",\"\360\237\221\251\360\237\217\273\342\200\215\360\237\246\257\",\"\360\237\230\265\",\"\360\237\217\213\357\270\217\342\200\215\342\231\200\357\270\217\"]}" 
<<< BasePayloadReceiver::Receive (3) <nil>
INFO [06-08|15:43:44.922] node config                              package=status-go/api.GethStatusBackend config="{\n    \"NetworkId\": 1,\n    \"RootDataDir\": \"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/\",\n    \"DataDir\": \"ethereum\",\n    \"KeyStoreDir\": \"keystore/0x0513e05dec08aec728b7aba9cc0388905053ef0863fba68cbefb69b82114f0bd\",\n    \"NodeKey\": \"\",\n    \"NoDiscovery\": true,\n    \"Rendezvous\": false,\n    \"ListenAddr\": \"\",\n    \"AdvertiseAddr\": \"\",\n    \"Name\": \"StatusDesktop\",\n    \"Version\": \"\",\n    \"APIModules\": \"net,web3,eth\",\n    \"HTTPEnabled\": false,\n    \"HTTPHost\": \"\",\n    \"HTTPPort\": 0,\n    \"HTTPVirtualHosts\": null,\n    \"HTTPCors\": null,\n    \"IPCEnabled\": false,\n    \"IPCFile\": \"\",\n    \"TLSEnabled\": false,\n    \"MaxPeers\": 0,\n    \"MaxPendingPeers\": 0,\n    \"LogEnabled\": true,\n    \"LogMobileSystem\": false,\n    \"LogDir\": \"\",\n    \"LogFile\": \"geth.log\",\n    \"LogLevel\": \"INFO\",\n    \"LogMaxBackups\": 1,\n    \"LogMaxSize\": 100,\n    \"LogCompressRotated\": false,\n    \"LogToStderr\": false,\n    \"EnableStatusService\": false,\n    \"EnableNTPSync\": true,\n    \"UpstreamConfig\": {\n        \"Enabled\": true,\n        \"URL\": \"https://eth-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\"\n    },\n    \"Networks\": [\n        {\n            \"chainId\": 1,\n            \"chainName\": \"Ethereum Mainnet\",\n            \"rpcUrl\": \"https://eth-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\",\n            \"fallbackURL\": \"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"blockExplorerUrl\": \"https://etherscan.io/\",\n            \"iconUrl\": \"network/Network=Ethereum\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": false,\n            \"layer\": 1,\n            \"enabled\": true,\n            \"chainColor\": \"#627EEA\",\n            \"shortName\": \"eth\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 5,\n            \"chainName\": \"Goerli\",\n            \"rpcUrl\": \"https://goerli-archival.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\",\n            \"fallbackURL\": \"https://goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"blockExplorerUrl\": \"https://goerli.etherscan.io/\",\n            \"iconUrl\": \"network/Network=Testnet\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": true,\n            \"layer\": 1,\n            \"enabled\": true,\n            \"chainColor\": \"#939BA1\",\n            \"shortName\": \"goEth\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 10,\n            \"chainName\": \"Optimism\",\n            \"rpcUrl\": \"https://optimism-mainnet.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\",\n            \"fallbackURL\": \"https://optimism-mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"blockExplorerUrl\": \"https://optimistic.etherscan.io\",\n            \"iconUrl\": \"network/Network=Optimism\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": false,\n            \"layer\": 2,\n            \"enabled\": true,\n            \"chainColor\": \"#E90101\",\n            \"shortName\": \"opt\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 420,\n            \"chainName\": \"Optimism Goerli Testnet\",\n            \"rpcUrl\": \"https://optimism-goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"fallbackURL\": \"\",\n            \"blockExplorerUrl\": \"https://goerli-optimism.etherscan.io/\",\n            \"iconUrl\": \"network/Network=Testnet\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": true,\n            \"layer\": 2,\n            \"enabled\": false,\n            \"chainColor\": \"#939BA1\",\n            \"shortName\": \"goOpt\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 42161,\n            \"chainName\": \"Arbitrum\",\n            \"rpcUrl\": \"https://arbitrum-one.gateway.pokt.network/v1/lb/038d7cddc03f80b77c45339d\",\n            \"fallbackURL\": \"https://arbitrum-mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"blockExplorerUrl\": \"https://arbiscan.io/\",\n            \"iconUrl\": \"network/Network=Arbitrum\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": false,\n            \"layer\": 2,\n            \"enabled\": true,\n            \"chainColor\": \"#51D0F0\",\n            \"shortName\": \"arb\",\n            \"tokenOverrides\": null\n        },\n        {\n            \"chainId\": 421613,\n            \"chainName\": \"Arbitrum Goerli\",\n            \"rpcUrl\": \"https://arbitrum-goerli.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n            \"fallbackURL\": \"\",\n            \"blockExplorerUrl\": \"https://goerli.arbiscan.io/\",\n            \"iconUrl\": \"network/Network=Testnet\",\n            \"nativeCurrencyName\": \"Ether\",\n            \"nativeCurrencySymbol\": \"ETH\",\n            \"nativeCurrencyDecimals\": 18,\n            \"isTest\": true,\n            \"layer\": 2,\n            \"enabled\": false,\n            \"chainColor\": \"#939BA1\",\n            \"shortName\": \"goArb\",\n            \"tokenOverrides\": null\n        }\n    ],\n    \"ClusterConfig\": {\n        \"Enabled\": true,\n        \"Fleet\": \"status.prod\",\n        \"StaticNodes\": [],\n        \"BootNodes\": [],\n        \"TrustedMailServers\": [],\n        \"PushNotificationsServers\": [\n            \"401ba5eda402678dc78a0a40fd0795f4ea8b1e34972c4d15cf33ac01292341c89f0cbc637fa9f7a3ffe0b9dfe90e9cdae7a14925500ab01b6a91c67bae42a97a\",\n            \"181141b1d111908aaf05f4788e6778ec07073a1d4e1ce43c73815c40ee4e7345a1cbf5a90a45f601bf3763f12be63b01624ba1f36eeb9572455e7034b8f9f2c4\",\n            \"5ffc34d5ffda180d94cd3974d9ed2bb082ede68f342babdbe801ceffb7da902087d43f9aa961c7b85029358874c08ef04ecad9f1d95a1f0e448cbdd5d04350c7\"\n        ],\n        \"RendezvousNodes\": [],\n        \"WakuNodes\": [\n            \"enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.nodes.status.im\"\n        ],\n        \"DiscV5BootstrapNodes\": [\n            \"enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.nodes.status.im\"\n        ]\n    },\n    \"LightEthConfig\": {\n        \"Enabled\": false,\n        \"DatabaseCache\": 0,\n        \"TrustedNodes\": null,\n        \"MinTrustedFraction\": 0\n    },\n    \"WakuConfig\": {\n        \"Enabled\": false,\n        \"LightClient\": true,\n        \"FullNode\": false,\n        \"EnableMailServer\": false,\n        \"DataDir\": \"\",\n        \"MinimumPoW\": 0.001,\n        \"MailServerPassword\": \"\",\n        \"MailServerRateLimit\": 0,\n        \"MailServerDataRetention\": 0,\n        \"TTL\": 0,\n        \"MaxMessageSize\": 0,\n        \"DatabaseConfig\": {\n            \"PGConfig\": {\n                \"Enabled\": false,\n                \"URI\": \"\"\n            }\n        },\n        \"EnableRateLimiter\": false,\n        \"PacketRateLimitIP\": 0,\n        \"PacketRateLimitPeerID\": 0,\n        \"BytesRateLimitIP\": 0,\n        \"BytesRateLimitPeerID\": 0,\n        \"RateLimitTolerance\": 0,\n        \"BloomFilterMode\": true,\n        \"SoftBlacklistedPeerIDs\": null,\n        \"EnableConfirmations\": false\n    },\n    \"WakuV2Config\": {\n        \"Enabled\": true,\n        \"Host\": \"0.0.0.0\",\n        \"Port\": 0,\n        \"KeepAliveInterval\": 0,\n        \"LightClient\": false,\n        \"FullNode\": false,\n        \"DiscoveryLimit\": 20,\n        \"DataDir\": \"\",\n        \"MaxMessageSize\": 0,\n        \"EnableConfirmations\": false,\n        \"CustomNodes\": null,\n        \"PeerExchange\": true,\n        \"Nameserver\": \"\",\n        \"EnableDiscV5\": true,\n        \"UDPPort\": 0,\n        \"AutoUpdate\": true,\n        \"EnableStore\": false,\n        \"StoreCapacity\": 0,\n        \"StoreSeconds\": 0\n    },\n    \"BridgeConfig\": {\n        \"Enabled\": false\n    },\n    \"ShhextConfig\": {\n        \"PFSEnabled\": true,\n        \"BackupDisabledDataDir\": \"./\",\n        \"InstallationID\": \"13c2667a-766c-41ee-a4ca-45253ae0b0d9\",\n        \"MailServerConfirmations\": true,\n        \"EnableConnectionManager\": false,\n        \"EnableLastUsedMonitor\": false,\n        \"ConnectionTarget\": 0,\n        \"RequestsDelay\": 0,\n        \"MaxServerFailures\": 0,\n        \"MaxMessageDeliveryAttempts\": 6,\n        \"WhisperCacheDir\": \"\",\n        \"DisableGenericDiscoveryTopic\": false,\n        \"SendV1Messages\": false,\n        \"DataSyncEnabled\": true,\n        \"VerifyTransactionURL\": \"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n        \"VerifyENSURL\": \"https://mainnet.infura.io/v3/459af0b086304edf8d105b0b824a7c36\",\n        \"VerifyENSContractAddress\": \"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e\",\n        \"VerifyTransactionChainID\": 1,\n        \"DefaultPushNotificationsServers\": [\n            \"04401ba5eda402678dc78a0a40fd0795f4ea8b1e34972c4d15cf33ac01292341c89f0cbc637fa9f7a3ffe0b9dfe90e9cdae7a14925500ab01b6a91c67bae42a97a\",\n            \"04181141b1d111908aaf05f4788e6778ec07073a1d4e1ce43c73815c40ee4e7345a1cbf5a90a45f601bf3763f12be63b01624ba1f36eeb9572455e7034b8f9f2c4\",\n            \"045ffc34d5ffda180d94cd3974d9ed2bb082ede68f342babdbe801ceffb7da902087d43f9aa961c7b85029358874c08ef04ecad9f1d95a1f0e448cbdd5d04350c7\"\n        ],\n        \"AnonMetricsSendID\": \"\",\n        \"AnonMetricsServerEnabled\": false,\n        \"AnonMetricsServerPostgresURI\": \"\",\n        \"BandwidthStatsEnabled\": true\n    },\n    \"WalletConfig\": {\n        \"Enabled\": true,\n        \"OpenseaAPIKey\": \"\",\n        \"AlchemyAPIKeys\": {\n            \"10\": \"\",\n            \"420\": \"\",\n            \"42161\": \"\",\n            \"421613\": \"\"\n        },\n        \"InfuraAPIKey\": \"459af0b086304edf8d105b0b824a7c36\",\n        \"InfuraAPIKeySecret\": \"\",\n        \"LoadAllTransfers\": false\n    },\n    \"LocalNotificationsConfig\": {\n        \"Enabled\": false\n    },\n    \"BrowsersConfig\": {\n        \"Enabled\": true\n    },\n    \"PermissionsConfig\": {\n        \"Enabled\": true\n    },\n    \"MailserversConfig\": {\n        \"Enabled\": true\n    },\n    \"Web3ProviderConfig\": {\n        \"Enabled\": true\n    },\n    \"SwarmConfig\": {\n        \"Enabled\": false\n    },\n    \"TorrentConfig\": {\n        \"Enabled\": true,\n        \"Port\": 0,\n        \"DataDir\": \"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/archivedata\",\n        \"TorrentDir\": \"/Users/igorsirotin/Repositories/Status/status-desktop/Status/data/torrents\"\n    },\n    \"RegisterTopics\": [\n        \"whispermail\"\n    ],\n    \"RequireTopics\": {\n        \"whisper\": {\n            \"Min\": 2,\n            \"Max\": 2\n        }\n    },\n    \"MailServerRegistryAddress\": \"\",\n    \"PushNotificationServerConfig\": {\n        \"Enabled\": false,\n        \"Identity\": null,\n        \"GorushURL\": \"\",\n        \"Logger\": null\n    },\n    \"OutputMessageCSVEnabled\": false\n}"
WRN 2023-06-08 15:43:46.398+03:00 Error decoding signal                      topics="signals-manager" tid=1897114 file=signals_manager.nim:48 err="Unknown signal received: mediaserver.started"
<<< BasePayloadReceiver::Receive (4) proto: cannot parse invalid wire-format data
proto: cannot parse invalid wire-format data
DBG 2023-06-08 15:43:46.772+03:00 local pairing event                        topics="signals-manager" tid=1897114 file=pairing.nim:24 type=EventProcessError action=ActionSyncDevice error="proto: cannot parse invalid wire-format data" event="{\"type\":\"localPairing\",\"event\":{\"type\":\"process-error\",\"error\":\"proto: cannot parse invalid wire-format data\",\"action\":3}}"
ERR 2023-06-08 15:43:46.774+03:00 failed to start bootstrapping device       topics="devices-service" tid=1897114 file=service.nim:168 errorDescription="proto: cannot parse invalid wire-format data"
igor-sirotin commented 1 year ago

The error happens during unmarshalling social links:

https://github.com/status-im/status-go/blob/d73c886d3b093c2018dcf82089dc1b11160ad736/protocol/messenger_sync_raw_messages.go#L232-L242

igor-sirotin commented 1 year ago

Ok, I made it working. @anastasiyaig check out please when u have time 🙂

There were recent changes to syncing social links in status-go. Which made me thinking that we should test this with same status-go version.

Pairs like a charm 👌

https://github.com/status-im/status-desktop/assets/25482501/07615d92-2970-408e-a982-2d3926d7da1e

P.S. Also was bored showing qr code to laptop camera every time. OBS does the job great instead 😄

igor-sirotin commented 1 year ago

Works on latest status-desktop master and StatusIm-Mobile-230608-124801-032c25-pr16223.ipa 👌