Open siepra opened 5 months ago
App got stuck while creating a community Note it should get past this step quickly during creation
I observed it gets stuck even earlier, on "Connecting process started". Here's raw logs dump
create network saga
[38;5;164;1mbackend:SocketService [0mCreating network for community elsao9wm0g79eia5 [38;5;164m+6s[0m
[38;5;169;1mbackend:ConnectionsManagerService [0msocketService - createNetwork [38;5;169m+6s[0m
[38;5;184;1mbackend:TorControl [0mConnecting to Tor, host: localhost port: 19638 [38;5;184m+0ms[0m
Apr 19 11:52:12.000 [notice] New control connection opened from 127.0.0.1.
[38;5;184;1mbackend:TorControl [0mTor connected [38;5;184m+8ms[0m
[38;5;184;1mbackend:TorControl [0mConnecting to Tor, host: localhost port: 19638 [38;5;184m+11ms[0m
Apr 19 11:52:12.000 [notice] New control connection opened from 127.0.0.1.
[38;5;184;1mbackend:TorControl [0mTor connected [38;5;184m+3ms[0m
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
[38;5;169;1mbackend:ConnectionsManagerService [0mCreated network for peer bafzbeiccjzscks4m6tmjomndohfphjjcrs3wbexzlxv62azoqnqclggioe. Address: wutt57yw7ck7vno5kaewn25ujmad2s7p6iy7uzso4pyouzlu6ztvv4qd.onion [38;5;169m+242ms[0m
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
{ isCommunity: undefined,
areMessages: false,
areChannels: false,
areCertificates: false }
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID. inputModality = Keyboard, inputOperation = <null selector>, customInfoType = UIEmojiSearchOperations
[38;5;164;1mbackend:SocketService [0mCreating community elsao9wm0g79eia5 [38;5;164m+3s[0m
[38;5;169;1mbackend:ConnectionsManagerService [0msocketService - createCommunity [38;5;169m+2s[0m
[38;5;169;1mbackend:ConnectionsManagerService [0mCreating community: peers: undefined [38;5;169m+0ms[0m
[38;5;178;1mbackend:LocalDbService [0mGetting 'communities' [Error: NotFound: ] {
code: 'LEVEL_NOT_FOUND',
notFound: true,
status: 404
} [38;5;178m+9s[0m
[38;5;169;1mbackend:ConnectionsManagerService [0mLaunching community elsao9wm0g79eia5: peer: QmSoUwtVqJgojEHZ9vxP3RLg73PPGWHXu924WkzxbDGmCk [38;5;169m+48ms[0m
[38;5;169;1mbackend:ConnectionsManagerService [0mSpawning hidden service for community elsao9wm0g79eia5, peer: QmSoUwtVqJgojEHZ9vxP3RLg73PPGWHXu924WkzxbDGmCk [38;5;169m+1ms[0m
[38;5;184;1mbackend:TorControl [0mConnecting to Tor, host: localhost port: 19638 [38;5;184m+3s[0m
Apr 19 11:52:14.000 [notice] New control connection opened from 127.0.0.1.
[38;5;184;1mbackend:TorControl [0mTor connected [38;5;184m+3ms[0m
[32m[Nest] 47775 - [39m1713520334742 [32m LOG[39m [38;5;3m[LazyModuleLoader] [39m[32mSocketModule dependencies initialized[39m
[32m[Nest] 47775 - [39m1713520334742 [32m LOG[39m [38;5;3m[LazyModuleLoader] [39m[32mLibp2pModule dependencies initialized[39m
[38;5;169;1mbackend:ConnectionsManagerService [0mLaunching community elsao9wm0g79eia5: payload peers: /dns4/wutt57yw7ck7vno5kaewn25ujmad2s7p6iy7uzso4pyouzlu6ztvv4qd.onion/tcp/80/ws/p2p/QmSoUwtVqJgojEHZ9vxP3RLg73PPGWHXu924WkzxbDGmCk [38;5;169m+21ms[0m
[38;5;38;1mbackend:Libp2pService [0mLocal peerId: QmSoUwtVqJgojEHZ9vxP3RLg73PPGWHXu924WkzxbDGmCk [38;5;38m+0ms[0m
[38;5;38;1mbackend:Libp2pService [0mInitializing libp2p for QmSoUwtVqJgojEHZ9vxP3RLg73PPGWHXu924WkzxbDGmCk, bootstrapping with 0 peers [38;5;38m+0ms[0m
[38;5;203;1mbackend:ProcessInChunksService [0mInitializing process-in-chunks.service with peers [] [38;5;203m+0ms[0m
[38;5;203;1mbackend:ProcessInChunksService [0mUpdating data with 0 items [38;5;203m+1ms[0m
[38;5;203;1mbackend:ProcessInChunksService [0mAdding 0 items to the task queue [38;5;203m+0ms[0m
[38;5;203;1mbackend:ProcessInChunksService [0mAdding 0 items to the task queue [38;5;203m+0ms[0m
[38;5;203;1mbackend:ProcessInChunksService [0mProcessing function length () {
[38;5;203;1mbackend:ProcessInChunksService [0m var current = queueHead
[38;5;203;1mbackend:ProcessInChunksService [0m var counter = 0
[38;5;203;1mbackend:ProcessInChunksService [0m
[38;5;203;1mbackend:ProcessInChunksService [0m while (current) {
[38;5;203;1mbackend:ProcessInChunksService [0m current = current.next
[38;5;203;1mbackend:ProcessInChunksService [0m counter++
[38;5;203;1mbackend:ProcessInChunksService [0m }
[38;5;203;1mbackend:ProcessInChunksService [0m
[38;5;203;1mbackend:ProcessInChunksService [0m return counter
[38;5;203;1mbackend:ProcessInChunksService [0m } items [38;5;203m+0ms[0m
[38;5;38;1mbackend:Libp2pService [0mInitialized libp2p for peer QmSoUwtVqJgojEHZ9vxP3RLg73PPGWHXu924WkzxbDGmCk [38;5;38m+3ms[0m
[38;5;74;1mbackend:StorageService [0mInitializing storage [38;5;74m+0ms[0m
[38;5;74;1mbackend:StorageService [0mInitialized storage [38;5;74m+1ms[0m
[32m[Nest] 47775 - [39m1713520334803 [32m LOG[39m [38;5;3m[LazyModuleLoader] [39m[32mIpfsModule dependencies initialized[39m
counter ipfs [33m1[39m
[32m[Nest] 47775 - [39m1713520334806 [32m LOG[39m [38;5;3m[LazyModuleLoader] [39m[32mSocketModule dependencies initialized[39m
[32m[Nest] 47775 - [39m1713520334806 [32m LOG[39m [38;5;3m[LazyModuleLoader] [39m[32mLibp2pModule dependencies initialized[39m
to get started, enter:
jsipfs cat /ipfs/QmRaaUwTNfwgFZpeUy8qrZwrp2dY4kCKmmB5xEqvH3vtD1/readme
[38;5;170;1mbackend:OrbitDb [0m[create]:started [38;5;170m+0ms[0m
(node:47775) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[32m[Nest] 47775 - [39m1713520341516 [32m LOG[39m [38;5;3m[LazyModuleLoader] [39m[32mIpfsFileManagerModule dependencies initialized[39m
[32m[Nest] 47775 - [39m1713520341516 [32m LOG[39m [38;5;3m[LazyModuleLoader] [39m[32mIpfsModule dependencies initialized[39m
[38;5;74;1mbackend:StorageService [0m1/3 [38;5;74m+7s[0m
[38;5;74;1mbackend:StorageService [0m2/3 [38;5;74m+1ms[0m
[38;5;63;1mbackend:CommunityMetadataStore [0mInitializing community metadata key/value store [38;5;63m+0ms[0m
[38;5;63;1mbackend:CommunityMetadataStore [0mLoaded community metadata to memory [38;5;63m+25ms[0m
[38;5;209;1mbackend:CertificatesStore [0mInitializing certificates log store [38;5;209m+0ms[0m
[38;5;209;1mbackend:CertificatesStore [0mLoaded certificates to memory [38;5;209m+18ms[0m
[38;5;209;1mbackend:CertificatesStore [0mInitialized [38;5;209m+0ms[0m
[38;5;203;1mbackend:CertificatesRequestsStore [0mInitializing certificates requests store [38;5;203m+0ms[0m
[38;5;203;1mbackend:CertificatesRequestsStore [0mInitialized [38;5;203m+16ms[0m
[38;5;81;1mbackend:UserProfileStore [0mInitializing user profiles key/value store [38;5;81m+0ms[0m
[38;5;81;1mbackend:UserProfileStore [0mLoaded user profiles to memory [38;5;81m+20ms[0m
[38;5;74;1mbackend:StorageService [0m3/3 [38;5;74m+80ms[0m
[38;5;74;1mbackend:StorageService [0mcreateDbForChannels init [38;5;74m+0ms[0m
[38;5;74;1mbackend:StorageService [0mChannels count: 0 [38;5;74m+19ms[0m
[38;5;74;1mbackend:StorageService [0mChannels names: [] [38;5;74m+0ms[0m
[38;5;74;1mbackend:StorageService [0mSTORAGE: Finished createDbForChannels [38;5;74m+0ms[0m
Storage.initDatabases: 99.705ms
[38;5;74;1mbackend:StorageService [0mInitialized DBs [38;5;74m+1ms[0m
[38;5;74;1mbackend:StorageService [0mStarting IPFS [38;5;74m+0ms[0m
[38;5;169;1mbackend:ConnectionsManagerService [0mStorage initialized [38;5;169m+7s[0m
[38;5;169;1mbackend:ConnectionsManagerService [0mLaunched community elsao9wm0g79eia5 [38;5;169m+0ms[0m
[38;5;63;1mbackend:CommunityMetadataStore [0mAbout to update community metadata elsao9wm0g79eia5 [38;5;63m+86ms[0m
[38;5;63;1mbackend:CommunityMetadataStore [0mUpdating community metadata [38;5;63m+0ms[0m
preparing listener
[38;5;39;1mbackend:libp2p:websockets [0mprepareListener [38;5;39m+0ms[0m
[38;5;74;1mbackend:StorageService [0mIPFS started [38;5;74m+6s[0m
[38;5;74;1mbackend:StorageService [0mPubsub - subscribe to /orbitdb/zdpuAubkQfjh7bUVJFvuCuNpkXc9LYF4NuPX7VS12e4ciy851/public-channels [38;5;74m+0ms[0m
[38;5;74;1mbackend:StorageService [0mPubsub - subscribe to /orbitdb/zdpuAtjfjLokx2PW6UGrDQoB8VmEyq2i2endX4KuuD8efo7Vj/certificates [38;5;74m+0ms[0m
[38;5;74;1mbackend:StorageService [0mPubsub - subscribe to /orbitdb/zdpuAq8czmPVqfV7B5fchXdFY11jVPNNymTnCJtvPDR1dCV3h/csrs [38;5;74m+0ms[0m
[38;5;74;1mbackend:StorageService [0mPubsub - subscribe to /orbitdb/zdpuAtLG6WrE13SaXWmg52e1odsV3c97BPDQRudzzXFNqDoQD/community-metadata [38;5;74m+0ms[0m
[38;5;74;1mbackend:StorageService [0mPubsub - subscribe to /orbitdb/zdpuAyScVHonV7KUdb3rdNmC9ZurssGdfgveYm3ds7KNJ6CpU/user-profiles [38;5;74m+0ms[0m
[38;5;209;1mbackend:CertificatesStore [0mLoaded certificates to memory [38;5;209m+6s[0m
[38;5;209;1mbackend:CertificatesStore [0mAll certificates: 0 [38;5;209m+0ms[0m
[38;5;209;1mbackend:CertificatesStore [0mValid certificates: 0 [38;5;209m+0ms[0m
[38;5;169;1mbackend:ConnectionsManagerService [0mStorage - certificatesStored [38;5;169m+6s[0m
[38;5;74;1mbackend:StorageService [0mcsrs count: 0 [38;5;74m+45ms[0m
updatePeersList, peers count: [33m0[39m
[38;5;169;1mbackend:ConnectionsManagerService [0mCreated and launched community elsao9wm0g79eia5 [38;5;169m+1ms[0m
[38;5;178;1mbackend:LocalDbService [0mGetting 'peers' [Error: NotFound: ] {
code: 'LEVEL_NOT_FOUND',
notFound: true,
status: 404
} [38;5;178m+13s[0m
[38;5;178;1mbackend:LocalDbService [0mLocal peer /dns4/wutt57yw7ck7vno5kaewn25ujmad2s7p6iy7uzso4pyouzlu6ztvv4qd.onion/tcp/80/ws/p2p/QmSoUwtVqJgojEHZ9vxP3RLg73PPGWHXu924WkzxbDGmCk [38;5;178m+0ms[0m
'WEBSOCKET', 'Entered restore connection saga', true, { dataPort: 11000, socketIOSecret: 'AcO4uSD7FYif9JHspqmF' }
[Tor error] Problem bootstrapping. Stuck at 5% (conn): Connecting to a relay. (Network is unreachable; NOROUTE; count 2; recommendation warn; host 22AC139C979C0509154D18E033491AD40524AF91 at 5.59.227.51:9001)
Apr 19 11:53:07.000 [warn] Problem bootstrapping. Stuck at 5% (conn): Connecting to a relay. (Network is unreachable; NOROUTE; count 2; recommendation warn; host 22AC139C979C0509154D18E033491AD40524AF91 at 5.59.227.51:9001)
[Tor error] 1 connections have failed:
Apr 19 11:53:07.000 [warn] 1 connections have failed:
[Tor error] 1 connections died in state connect()ing with SSL state (No SSL object)
Apr 19 11:53:07.000 [warn] 1 connections died in state connect()ing with SSL state (No SSL object)
Apr 19 11:53:08.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
Apr 19 11:53:08.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
Apr 19 11:53:08.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
Apr 19 11:53:08.000 [notice] Bootstrapped 20% (onehop_create): Establishing an encrypted directory connection
Apr 19 11:53:09.000 [notice] Bootstrapped 25% (requesting_status): Asking for networkstatus consensus
Apr 19 11:53:09.000 [notice] Bootstrapped 30% (loading_status): Loading networkstatus consensus
Apr 19 11:53:10.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus.
Apr 19 11:53:10.000 [notice] Bootstrapped 40% (loading_keys): Loading authority key certs
Apr 19 11:53:10.000 [notice] The current consensus has no exit nodes. Tor can only build internal paths, such as paths to onion services.
Apr 19 11:53:10.000 [notice] Bootstrapped 45% (requesting_descriptors): Asking for relay descriptors
Apr 19 11:53:10.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/7768, and can only build 0% of likely paths. (We have 0% of guards bw, 0% of midpoint bw, and 0% of end bw (no exits in consensus, using mid) = 0% of path bw.)
Apr 19 11:53:11.000 [notice] Bootstrapped 50% (loading_descriptors): Loading relay descriptors
Apr 19 11:53:14.000 [notice] The current consensus contains exit nodes. Tor can build exit and internal paths.
Apr 19 11:53:31.000 [notice] Bootstrapped 56% (loading_descriptors): Loading relay descriptors
Apr 19 11:53:32.000 [notice] Bootstrapped 62% (loading_descriptors): Loading relay descriptors
Apr 19 11:53:32.000 [notice] Bootstrapped 71% (loading_descriptors): Loading relay descriptors
Apr 19 11:53:32.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
Apr 19 11:53:32.000 [notice] Bootstrapped 80% (ap_conn): Connecting to a relay to build circuits
Apr 19 11:53:32.000 [notice] Bootstrapped 85% (ap_conn_done): Connected to a relay to build circuits
Apr 19 11:53:32.000 [notice] Bootstrapped 89% (ap_handshake): Finishing handshake with a relay to build circuits
Apr 19 11:53:32.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
Apr 19 11:53:32.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Apr 19 11:53:32.000 [notice] Bootstrapped 100% (done): Done
It passed on CI (branch based on develop) https://github.com/TryQuiet/quiet/actions/runs/8752750512/job/24021001942 but it keeps getting stuck locally
Android tests seem to get stuck randomly https://github.com/TryQuiet/quiet/actions/runs/8752477080/job/24020210754 (creates new channel) https://github.com/TryQuiet/quiet/actions/runs/8752631194/job/24021747993?pr=2453 (deletes channel) They also seem not to finish until timeout
All the above are caused by detaching state-manager's sagas, which is caused by recent web socket connection adjustments made for Detox.
Here's a fix for Android https://github.com/TryQuiet/quiet/pull/2453
Branch: develop
Currently, on develop branch there're bunch of problems making Detox runs non-deterministic.
EDIT: Problems persists on manual runs as well