TryQuiet / quiet

A private, p2p alternative to Slack and Discord built on Tor & IPFS
https://www.tryquiet.org
GNU General Public License v3.0
1.98k stars 86 forks source link

App lost all data after update #2131

Closed kingalg closed 11 months ago

kingalg commented 11 months ago

Version - update from 2.0.3-alpha.10 to 2.0.3-alpha.11 System - MacOS, Linux, Windows

Steps to recreate:

  1. Create community and register username on 2.0.3-alpha.10 on MacOS
  2. Update to version 2.0.3-alpha.11 What should happen: app should update and work without issues. What happen: app is updated but all data are lost, user is asked to join/create community again.
Last login: Wed Nov 22 13:48:51 on ttys000
zsh compinit: insecure directories and files, run compaudit for list.
Ignore insecure directories and files and continue [y] or abort compinit [n]? ccompinit: initialization aborted
complete:13: command not found: compdef
rumbleefish@MacBook-Pro-Dawid Quiet.app % cd Contents/MacOS 
rumbleefish@MacBook-Pro-Dawid MacOS % DEBUG=backend*,state-manager*,desktop*,quiet* ./Quiet

Read extra envs: { TEST_MODE: 'true' }
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
setAsDefaultProtocolClient true
electron main
  desktop:main:main Event: app.ready +0ms
  desktop:main:main Event: app.browser-window-created  +77ms
  desktop:main:main Event: app.browser-window-created  +18ms
  desktop:main:main Created mainWindow +26ms
  desktop:main:main Forked backend, PID: 4967 +171ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
WARNING: Missing strong random number source
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
options {
  socketIOPort: '51158',
  appDataPath: '/Users/rumbleefish/Library/Application Support/Quiet',
  resourcesPath: '/Applications/Quiet.app/Contents/Resources',
  platform: 'desktop'
}
configOptions {
  socketIOPort: '51158',
  torBinaryPath: '/Applications/Quiet.app/Contents/Resources/tor/x64/tor',
  torResourcesPath: '/Applications/Quiet.app/Contents/Resources/tor/x64',
  torControlPort: 51159,
  options: {
    env: {
      appDataPath: '/Users/rumbleefish/Library/Application Support/Quiet/Quiet'
    }
  },
  env: {},
  bootstrapMultiaddrs: [],
  createPaths: true
}
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
QUIRT DIR /Users/rumbleefish/Library/Application Support/Quiet/Quiet
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  backend:SocketService init:started +0ms
  backend:SocketService Data server running on port 51158 +0ms
  backend:SocketService socket connection +442ms
  backend:SocketService init: connection +0ms
  backend:SocketService init:finished +0ms
  backend:Tor Initializing tor... +0ms
  backend:Tor Nov 22 13:50:58.686 [notice] Tor 0.4.7.13 (git-7c1601fb6edd780f) running on Darwin with Libevent 2.1.11-stable, OpenSSL 1.1.1s, Zlib 1.2.11, Liblzma N/A, Libzstd N/A and Unknown N/A as libc.
  backend:Tor Nov 22 13:50:58.686 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://support.torproject.org/faq/staying-anonymous/
  backend:Tor  +146ms
  backend:Tor Nov 22 13:50:58.686 [notice] Configuration file "/var/tmp/dist/tor/etc/tor/torrc" not present, using reasonable defaults.
  backend:Tor  +1ms
  backend:Tor Nov 22 13:50:58.689 [notice] Opening Socks listener on 127.0.0.1:51164
  backend:Tor Nov 22 13:50:58.689 [notice] Opened Socks listener connection (ready) on 127.0.0.1:51164
  backend:Tor Nov 22 13:50:58.689 [notice] Opening HTTP tunnel listener on 127.0.0.1:51160
  backend:Tor Nov 22 13:50:58.689 [notice] Opened HTTP tunnel listener connection (ready) on 127.0.0.1:51160
  backend:Tor Nov 22 13:50:58.689 [notice] Opening Control listener on 127.0.0.1:51159
  backend:Tor Nov 22 13:50:58.690 [notice] Opened Control listener connection (ready) on 127.0.0.1:51159
  backend:Tor  +3ms
  backend:Tor Nov 22 13:50:58.000 [notice] Bootstrapped 0% (starting): Starting
  backend:Tor  +35ms
init
  backend:ConnectionsManagerService attachTorEventsListeners +0ms
launch 1
  backend:ConnectionsManagerService launchCommunityFromStorage +1ms
  backend:Tor Nov 22 13:50:58.000 [notice] Starting with guard context "default"
  backend:Tor  +3ms
  backend:LocalDbService:err Getting 'community' [Error: NotFound: ] {
  code: 'LEVEL_NOT_FOUND',
  notFound: true,
  status: 404
} +0ms
  backend:ConnectionsManagerService launchCommunityFromStorage - community peers undefined +1ms
  desktop:main:main Event: mainWindow did-finish-load +2s
Checking for update
Generated new staging user ID: 141876d6-ccbe-5995-a275-143f04522b22
Update for version 2.0.3-alpha.6 is not available (latest version: 2.0.3-alpha.6, downgrade is disallowed).
  backend:Tor Nov 22 13:50:59.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
  backend:Tor  +1s
  backend:Tor Nov 22 13:51:00.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
  backend:Tor  +1s
  backend:Tor Nov 22 13:51:00.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
  backend:Tor  +39ms
  backend:Tor Nov 22 13:51:00.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
  backend:Tor Nov 22 13:51:00.000 [notice] Bootstrapped 20% (onehop_create): Establishing an encrypted directory connection
  backend:Tor  +97ms
  backend:Tor Nov 22 13:51:00.000 [notice] Bootstrapped 25% (requesting_status): Asking for networkstatus consensus
  backend:Tor  +40ms
  backend:Tor Nov 22 13:51:00.000 [notice] Bootstrapped 30% (loading_status): Loading networkstatus consensus
  backend:Tor  +36ms
  backend:Tor Nov 22 13:51:01.000 [notice] I learned some more directory information, but not enough to build a circuit: We have no usable consensus.
  backend:Tor Nov 22 13:51:01.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +386ms
  backend:Tor Nov 22 13:51:01.000 [notice] Bootstrapped 40% (loading_keys): Loading authority key certs
  backend:Tor  +32ms
  backend:Tor Nov 22 13:51:01.000 [notice] The current consensus has no exit nodes. Tor can only build internal paths, such as paths to onion services.
  backend:Tor  +198ms
  backend:Tor Nov 22 13:51:01.000 [notice] Bootstrapped 45% (requesting_descriptors): Asking for relay descriptors
  backend:Tor Nov 22 13:51:01.000 [notice] I learned some more directory information, but not enough to build a circuit: We need more microdescriptors: we have 0/7759, 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.)
  backend:Tor  +1ms
  backend:Tor Nov 22 13:51:01.000 [notice] Bootstrapped 50% (loading_descriptors): Loading relay descriptors
  backend:Tor  +328ms
  backend:Tor Nov 22 13:51:03.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +2s
  backend:Tor Nov 22 13:51:03.000 [notice] The current consensus contains exit nodes. Tor can build exit and internal paths.
  backend:Tor  +149ms
  backend:Tor Nov 22 13:51:04.000 [notice] Bootstrapped 56% (loading_descriptors): Loading relay descriptors
  backend:Tor  +997ms
  backend:Tor Nov 22 13:51:04.000 [notice] Bootstrapped 62% (loading_descriptors): Loading relay descriptors
  backend:Tor  +97ms
  backend:Tor Nov 22 13:51:05.000 [notice] Bootstrapped 71% (loading_descriptors): Loading relay descriptors
  backend:Tor  +88ms
  backend:Tor Nov 22 13:51:05.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
  backend:Tor  +96ms
  backend:Tor Nov 22 13:51:05.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
  backend:Tor Nov 22 13:51:05.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
  backend:Tor  +588ms
  backend:Tor Nov 22 13:51:06.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +485ms
  backend:Tor Nov 22 13:51:06.000 [notice] Bootstrapped 100% (done): Done
  backend:Tor  +528ms
  backend:Tor Nov 22 13:51:08.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +2s
  backend:SocketService Creating network for community B97B24579E4405276994BD57A2126A82 +11s
  backend:ConnectionsManagerService socketService - createNetwork +10s
  backend:Tor Nov 22 13:51:09.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +311ms
  backend:Tor Nov 22 13:51:09.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +102ms
  backend:ConnectionsManagerService Created network for peer bafzbeiaebfkqttit5ok2qzvvl2d5idjwnkpi4jr5ap5stalhpgynr65uhm. Address: ibljzlyaw5cknz2wzducoqofec7z5ogm2de7lfuvu47t2gnei2t7bjqd.onion +164ms
  backend:Tor Nov 22 13:51:09.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +66ms
  backend:Tor Nov 22 13:51:09.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +78ms
  backend:ConnectionsManagerService Created network for peer bafzbeifsdpbuhfemkhvxudmlbzjo2gthnoxecxswdqzeuqtecdygd3prsm. Address: yj6ij6aygpfiknxkq2jd7sxjyl366g45chn4bq2iol4bve2kyo5prkid.onion +215ms
  backend:ConnectionsManagerService Sending network data for B97B24579E4405276994BD57A2126A82 +0ms
  backend:SocketService Registering owner certificate (B97B24579E4405276994BD57A2126A82) +415ms
  backend:SocketService Creating community B97B24579E4405276994BD57A2126A82 +49ms
  backend:ConnectionsManagerService Creating community: peers: undefined +86ms
  backend:ConnectionsManagerService Generated Libp2p PSK +1ms
  backend:ConnectionsManagerService Launching community: peers: undefined +0ms
  backend:LocalDbService:err Getting 'community' [Error: NotFound: ] {
  code: 'LEVEL_NOT_FOUND',
  notFound: true,
  status: 404
} +11s
  backend:ConnectionsManagerService Spawning hidden service for community B97B24579E4405276994BD57A2126A82, peer: QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL +1ms
  backend:Tor Nov 22 13:51:09.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +221ms
  backend:ConnectionsManagerService Launching community B97B24579E4405276994BD57A2126A82: peer: QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL +65ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  backend:ConnectionsManagerService Launching community B97B24579E4405276994BD57A2126A82: payload peers: undefined +7ms
  backend:ConnectionsManagerService Launching community B97B24579E4405276994BD57A2126A82: retrieved Libp2p PSK +1ms
  backend:Libp2pService Local peerId: QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL +0ms
  backend:Libp2pService Initializing libp2p for QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL, bootstrapping with 1 peers +0ms
  backend:ProcessInChunksService Processing 1 items +0ms
  backend:Libp2pService Initialized libp2p for peer QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL +3ms
  backend:StorageService Initializing storage +0ms
creating paths in fn - utils
  backend:StorageService Initialized storage +1ms
  backend:ProcessInChunksService Processing /dns4/ibljzlyaw5cknz2wzducoqofec7z5ogm2de7lfuvu47t2gnei2t7bjqd.onion/tcp/80/ws/p2p/QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL failed, message: Tried to dial self +5ms
  quiet Initializing debug logger +0ms
counter ipfs 1
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
to get started, enter:

    jsipfs cat /ipfs/QmRaaUwTNfwgFZpeUy8qrZwrp2dY4kCKmmB5xEqvH3vtD1/readme

createOrbitDb peer id  PeerId(QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL)
  quiet Initializing debug logger +0ms
  quiet Initializing debug logger +0ms
  backend:StorageService 1/5 +464ms
  backend:StorageService createDbForChannels init +0ms
  backend:StorageService Channels count: 0 +26ms
  backend:StorageService Channels names: [] +0ms
  backend:StorageService STORAGE: Finished createDbForChannels +0ms
  backend:StorageService 2/5 +0ms
  backend:StorageService createDbForCertificates init +0ms
  backend:StorageService Loaded certificates to memory +22ms
  backend:StorageService ALL Certificates COUNT: 0 +0ms
  backend:StorageService STORAGE: Finished createDbForCertificates +0ms
  backend:StorageService 3/5 +0ms
  backend:StorageService certificatesRequests db init +0ms
  backend:StorageService ALL Certificates COUNT: 0 +20ms
  backend:StorageService STORAGE: Finished creating certificatesRequests db +0ms
  backend:StorageService 4/5 +0ms
  backend:StorageService createDbForCommunityMetadata init +0ms
  backend:StorageService 5/5 +18ms
  backend:StorageService Initialized DBs +1ms
  backend:StorageService Starting IPFS +0ms
  backend:ConnectionsManagerService storage initialized +578ms
  backend:ConnectionsManagerService Launched community B97B24579E4405276994BD57A2126A82 +0ms
Hunting for heisenbug: Backend initialized community and sent event to state manager
  backend:ConnectionsManagerService Created and launched community B97B24579E4405276994BD57A2126A82 +0ms
preparing listener
  backend:libp2p:websockets prepareListener +0ms
  backend:StorageService IPFS started +262ms
  backend:StorageService Pubsub - subscribe to /orbitdb/zdpuAubkQfjh7bUVJFvuCuNpkXc9LYF4NuPX7VS12e4ciy851/public-channels +0ms
  backend:StorageService Pubsub - subscribe to /orbitdb/zdpuAtjfjLokx2PW6UGrDQoB8VmEyq2i2endX4KuuD8efo7Vj/certificates +1ms
  backend:StorageService Pubsub - subscribe to /orbitdb/zdpuAq8czmPVqfV7B5fchXdFY11jVPNNymTnCJtvPDR1dCV3h/csrs +0ms
  backend:StorageService Pubsub - subscribe to /orbitdb/zdpuAtLG6WrE13SaXWmg52e1odsV3c97BPDQRudzzXFNqDoQD/community-metadata +0ms
  backend:SocketService Awaiting readyness before emitting:  createChannel +918ms
  backend:SocketService Launching registrar for community B97B24579E4405276994BD57A2126A82, user QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL +0ms
  backend:ConnectionsManagerService socketService - launchRegistrar +264ms
  backend:SocketService On saveUserCsr +0ms
  backend:ConnectionsManagerService socketService - saveUserCsr +1ms
  backend:StorageService About to save csr... +2ms
  backend:StorageService About to update community metadata +2ms
  backend:StorageService Updating community metadata +0ms
  backend:SocketService Saving owner certificate (QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL), community: B97B24579E4405276994BD57A2126A82 +5ms
  backend:StorageService About to update community metadata +2ms
  backend:StorageService Updating community metadata +0ms
creating channel
  backend:StorageService Creating channel general_9a28b6b6f710e2cd607b4d1b62e64c33 +3ms
  backend:StorageService Saving csr... +0ms
  backend:StorageService WRITE: communityMetadata +26ms
  backend:StorageService Saved CSR locally +8ms
  backend:ConnectionsManagerService Storage - replicatedCsr +41ms
  backend:StorageService CSRs count: 1 +2ms
  backend:Libp2pService Dialing 0 addresses +865ms
  backend:ProcessInChunksService Updating data with 0 items +863ms
  backend:ProcessInChunksService Processing 0 items +0ms
  backend:StorageService About to save certificate... +18ms
  backend:StorageService Saving certificate... +0ms
  backend:LocalDbService:err Getting 'peers' [Error: NotFound: ] {
  code: 'LEVEL_NOT_FOUND',
  notFound: true,
  status: 404
} +981ms
  backend:StorageService WRITE: communityMetadata +16ms
  backend:StorageService Saved certificate locally +4ms
  backend:StorageService CSRs count: 1 +0ms
  backend:LocalDbService:err Getting 'peers' [Error: NotFound: ] {
  code: 'LEVEL_NOT_FOUND',
  notFound: true,
  status: 404
} +24ms
channel undefined
  backend:StorageService WRITE: Channels +39ms
emitting new channel
  backend:ConnectionsManagerService Storage - createdChannel: general +81ms
  backend:StorageService Set general_9a28b6b6f710e2cd607b4d1b62e64c33 to local channels +2ms
  backend:StorageService Created channel general_9a28b6b6f710e2cd607b4d1b62e64c33 +1ms
  backend:StorageService Pubsub - subscribe to /orbitdb/zdpuAnjbrjBV4c1xekwWfHWsQoXfB244LoQN1T5M834GebA6D/channels.general_9a28b6b6f710e2cd607b4d1b62e64c33 +0ms
  backend:StorageService Subscribing to channel  general_9a28b6b6f710e2cd607b4d1b62e64c33 +0ms
  backend:StorageService Subscribed to channel general_9a28b6b6f710e2cd607b4d1b62e64c33 +0ms
  backend:SocketService Awaiting readyness before emitting:  sendMessage +167ms
  backend:StorageService Writing to public channel db general_9a28b6b6f710e2cd607b4d1b62e64c33 +75ms
  backend:Tor Nov 22 13:52:58.000 [notice] New control connection opened from 127.0.0.1.
  backend:Tor  +2m
  backend:libp2p:websockets server connecting with /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +2m
  backend:libp2p:websockets new inbound connection /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +1ms
  backend:libp2p:websockets inbound connection /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk upgraded +4s
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL connected to QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +2m
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL is connected to 1 peers +16ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL has 1 open connections +0ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL discovered QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +5ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL ping to QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk. Latency: 3112 +3s
  backend:StorageService REPLICATED: CSRs +2m
  backend:ConnectionsManagerService Storage - replicatedCsr +2m
  backend:StorageService CSRs count: 2 +8ms
  backend:Libp2pService Dialing 1 addresses +2s
  backend:ProcessInChunksService Updating data with 1 items +2m
  backend:ProcessInChunksService Processing 1 items +0ms
  backend:StorageService About to save certificate... +20ms
  backend:StorageService Saving certificate... +0ms
  backend:LocalDbService:err Getting 'peers' [Error: NotFound: ] {
  code: 'LEVEL_NOT_FOUND',
  notFound: true,
  status: 404
} +2m
  backend:StorageService Saved certificate locally +14ms
  backend:StorageService CSRs count: 2 +0ms
  backend:LocalDbService:err Getting 'peers' [Error: NotFound: ] {
  code: 'LEVEL_NOT_FOUND',
  notFound: true,
  status: 404
} +26ms
  backend:SocketService Awaiting readyness before emitting:  sendMessage +2m
  backend:StorageService Writing to public channel db general_9a28b6b6f710e2cd607b4d1b62e64c33 +87ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL disconnected from QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +22s
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL has 0 open connections +1ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL is connected to 0 peers +0ms
  backend:LocalDbService:err Getting 'peers' [Error: NotFound: ] {
  code: 'LEVEL_NOT_FOUND',
  notFound: true,
  status: 404
} +22s
  backend:LocalDbService QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk not found in peers +0ms
  backend:LocalDbService:err Getting 'peers' [Error: NotFound: ] {
  code: 'LEVEL_NOT_FOUND',
  notFound: true,
  status: 404
} +1ms
  backend:libp2p:websockets connect zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion:80 +27s
  desktop:main:main Event: app.activate +3m
  backend:libp2p:websockets:err connection error: Unexpected server response: 404 +0ms
  backend:libp2p:websockets:err error connecting to /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk. Details: Unexpected server response: 404 +0ms
  backend:libp2p:websockets connect zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion:80 +22s
  backend:libp2p:websockets:err connection error: Unexpected server response: 404 +12s
  backend:libp2p:websockets:err error connecting to /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk. Details: Unexpected server response: 404 +0ms
  desktop:main:main Event: app.activate +15s
  desktop:main:main Event: app.activate +615ms
  backend:libp2p:websockets connect zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion:80 +12s
  backend:libp2p:websockets:err connection error: Unexpected server response: 404 +13s
  backend:libp2p:websockets:err error connecting to /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk. Details: Unexpected server response: 404 +0ms
  backend:libp2p:websockets connect zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion:80 +13s
  backend:libp2p:websockets:err connection error: Unexpected server response: 404 +11s
  backend:libp2p:websockets:err error connecting to /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk. Details: Unexpected server response: 404 +0ms
  backend:libp2p:websockets connect zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion:80 +11s
  backend:libp2p:websockets:err connection error: Unexpected server response: 404 +11s
  backend:libp2p:websockets:err error connecting to /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk. Details: Unexpected server response: 404 +1ms
  backend:libp2p:websockets connect zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion:80 +11s
  backend:libp2p:websockets /dns4/ibljzlyaw5cknz2wzducoqofec7z5ogm2de7lfuvu47t2gnei2t7bjqd.onion/tcp/80/ws/p2p/QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL connected /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +17s
  backend:libp2p:websockets new outbound connection /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +1ms
  backend:libp2p:websockets server connecting with /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +2s
  backend:libp2p:websockets new inbound connection /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +1ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL connected to QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +2m
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL is connected to 1 peers +1ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL has 1 open connections +0ms
  backend:libp2p:websockets outbound connection /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk upgraded +2s
  backend:libp2p:websockets inbound connection /dns4/zrniehqqpug4ubgw3kb6wrxjxqek7yvi7vqwvkc4e2qjd5tefaommtqd.onion/tcp/80/ws/p2p/QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk upgraded +526ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL connected to QmYFmZvEikCwJpCjZ6FAiXnjncDPE1bELPFpZkkuZbSdAk +526ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL is connected to 1 peers +0ms
  backend:Libp2pService QmNcQbPejv6MDBt9VVt7A9uSU1a2yiYnhHsnVo2hhfqpFL has 2 open connections +0ms
node:internal/event_target:1006
  process.nextTick(() => { throw err; });
                           ^

Error: stream reset
    at Object.reset (/Applications/Quiet.app/Contents/Resources/app.asar/node_modules/backend-bundle/bundle.cjs:431809:34)
    at MplexStreamMuxer._handleIncoming (/Applications/Quiet.app/Contents/Resources/app.asar/node_modules/backend-bundle/bundle.cjs:432184:24)
    at MplexStreamMuxer.sink (/Applications/Quiet.app/Contents/Resources/app.asar/node_modules/backend-bundle/bundle.cjs:432087:36)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0) {
  code: 'ERR_STREAM_RESET'
}

Node.js v18.12.1
  desktop:main:main Event: app.activate +9m
  desktop:main:main Closing window +4s
  desktop:main:main Saved state, closed window +4ms
  desktop:main:main Event mainWindow.closed +1ms
  desktop:main:main Event: app.window-all-closed +0ms
  desktop:main:main:err Backend process returned error Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
    at new NodeError (node:internal/errors:393:5)
    at target.send (node:internal/child_process:740:16)
    at closeBackendProcess (/Applications/Quiet.app/Contents/Resources/app.asar/dist/main/main.js:277:24)
    at App.<anonymous> (/Applications/Quiet.app/Contents/Resources/app.asar/dist/main/main.js:461:5)
    at App.emit (node:events:525:35) {
  code: 'ERR_IPC_CHANNEL_CLOSED'
} +0ms
  desktop:main:main Backend killed: false, Quitting. +7m
(node:4951) UnhandledPromiseRejectionWarning: Error: mainWindow is on unexpected type null
    at Timeout._onTimeout (/Applications/Quiet.app/Contents/Resources/app.asar/dist/main/main.js:445:23)
    at listOnTimeout (node:internal/timers:564:17)
    at process.processTimers (node:internal/timers:507:7)
(Use `Quiet --trace-warnings ...` to show where the warning was created)
(node:4951) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
rumbleefish@MacBook-Pro-Dawid MacOS % 
  [Restored 28 Nov 2023 at 09:59:25]
Last login: Tue Nov 28 09:59:11 on console
Restored session: Fri Nov 24 16:22:03 CET 2023
zsh compinit: insecure directories and files, run compaudit for list.
Ignore insecure directories and files and continue [y] or abort compinit [n]? 
Kacper-RF commented 11 months ago

I probably found what is the problem in this case:

Redux Persist config in version alpha.10 is still located in the old directory ./Quiet not ./Quiet2 .

Image

In alpha.11 is in good place

I did a little test :

1.Create community on alpha.10 2.Copy config.json from ./Quiet do ./Quiet2 3.Run App on alpha.11

And in that case it works properly.

kingalg commented 11 months ago

I did update from 2.0.3-alpha.11 to 2.0.3-alpha.12 on Windows, MacOS and Linux - everything went fine. Bug is fixed.