GlitterWare / Passy

Offline password manager with cross-platform synchronization
https://glitterware.github.io/Passy/
GNU General Public License v3.0
142 stars 22 forks source link

[Bug]: empty mobile passy after QR scan to sync #66

Closed franzgerbig closed 1 year ago

franzgerbig commented 1 year ago

Bug description

Hi.

After scanning the PC's container, the phones's (Android 8.0.0, SHIFT5me) one remains empty (0 passwords/entries synced). Is that a known/resolved issue, yet?

Thx a lot Franz

Expected outcome

all entries synced with mobile

Steps to reproduce

click on Synchronize scan QR on PC

Error log

No response

App version

None

Submission checklist

GleammerRay commented 1 year ago

Hello @franzgerbig !

  1. Did you see a white error log snackbar appear at the bottom of your screen after synchronization?

  2. Please do inform me of your Passy version too.

  3. It is odd that your synchronization has failed. If your phone doesn't have any entries at the moment, try deleting the account on your phone and creating it again. You need the same username and password on both your computer and phone to be able to synchronize. Otherwise, if some entries were successfully transfered, press the edit button on the ones that failed and save them before attempting synchronization again.

  4. Did you use the CSV password import feature? It is important to note that the CSV import feature is very new and is currently being heavily worked on.

I must assure that this does not occur on my end and you are the first user to notify me about this problem, which means that it should be possible to fix this.

franzgerbig commented 1 year ago

Thank you for the quick reply!

Here the error message from the details in the white bar at the bottom: “``` Connecting... Local exception has occurred: Failed to connect. SocketException: Connection timed out, host: InternetAddress('192.168.178.21', IPv4), port: 49872

0 _NativeSocket.connect.. (dart:io-patch/socket_patch.dart:975)

1 _RootZone.run (dart:async/zone.dart:1655)

2 Future.timeout. (dart:async/future_impl.dart:882)

3 Timer._createTimer. (dart:async-patch/timer_patch.dart:18)

4 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398)

5 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429)

6 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189)


Version info (identical on both devices)
Passy version v1.6.0
Account version 2.3.0
Sync version 2.0.1

Credentials are identical, too.
GleammerRay commented 1 year ago

Hello @franzgerbig !

Thank you for this error log. I believe I understand why you're unable to synchronize.

You need to have both your phone and your computer on the same network for synchronization to occur properly. Passy does not use any middle-man services to provide synchronization to achieve top-tier security by synchronizing your devices directly over your own network.

franzgerbig commented 1 year ago

You're saying, being connected to the (same!) WLAN is not sufficient?

GleammerRay commented 1 year ago

Same WLAN should be more than sufficient. Hmm. From the error log, it is apparent that your client attempts connection to 192.168.178.21 (port 49872, irrelevant because Passy lets system choose a random port) and fails. That seems like a valid local address, but you might want to check if it is correct via your network settings. Are you sure there isn't any firewall on your computer or network that might be blocking Passy's connection? This was the case in #3. Here's a guide for configuring firewall on Windows: https://www.minitool.com/news/how-to-allow-a-program-through-firewall-windows-10.html

franzgerbig commented 1 year ago

There were two entries in the firewall (authorized) apps list for passy - one with and one without authorization for private networks ;) Thx a lot for that hint!

GleammerRay commented 1 year ago

Awesome! Do tell me if you're having any other issues. Most features have gone through many iterations, so adding/editing/synchronizing entries should not be problematic, but importing is a relatively new feature and there's already several known issues with it that are being dealt with for the time being. I hope that you will find Passy useful!