Solving IIS timeout issues for iOS and Android

I had the problem that password synchronization in the mobile app stopped working. The cause was that the ARR proxy timeout on IIS was set too low at 100s. After I changed the value to 300s, synchronization started working again (tested with iOS and Android).

One indicator that the problem is occurring can be found in the IIS log:

GetChangesFromServer → 502.3 after around 100 seconds
It should look like this:
GetChangesFromServer … 200 0 0 … 103851

PowerShell command to make the change:

PS C:\temp> Import-Module WebAdministration

Set-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST'
-Filter ‘system.webServer/proxy’ -Name 'timeout'
-Value ‘00:05:00’

Then run iisreset.

Maybe this will help someone else with the same symptoms.

2 Likes

Hi Thomas,

welcome to the community and thanks a lot for sharing your solution with everyone. The note about the IIS log and the PowerShell command are really helpful for anyone who’s experiencing the same symptoms.

Best regards
Kristina

1 Like

Hi Thomas,
that gives me hope!!!
I haven’t been able to sync in the iOS mobile app for a long time. The only way to get up-to-date data was/is to delete the database on my iPhone and do the (strangely) successful initial sync… Was it the same for you?

Thanks so much for the post — support has been fobbing me off for more than 6 months :-(((((

Best wishes,

Michael

1 Like

Thank you for sharing this @zuberth! I’m actually going to move this to Password Secure > Password Secure Show & Tell :slight_smile:

I’m sorry to hear that. I’ll look into this!

Hi Michael,

I/we haven’t been able to sync for a long time. Deleting the database/app didn’t help on either Android or iOS. If I remember correctly, there wasn’t a successful initial sync after setting it up again either, though I’m not 100% sure about that. It’s possible that it worked for us too, but then stopped working again, so in the end it wasn’t a solution. Maybe it depends on the size of the database—we manage thousands of passwords. I’ve never been impressed with Password Secure’s synchronization method, performance-wise. It feels as though it doesn’t do delta syncs, but instead downloads the entire database, record by record, with lots of checks and verifications. There may well be good reasons for this design from a security perspective, but it’s prone to problems with disconnections, timeouts, and so on. I don’t know; that’s just an outside perspective. The fact is that this setting solved the problem for us :blush:. Whether it would do the same for you, of course, isn’t certain. I can’t judge whether changing the setting in itself poses a security risk. From where I’m sitting, it doesn’t seem to, but who knows :wink: …

Best,

Thomas

Hi Thomas,

I can tell you: You made my day :slight_smile: Working!!!
But I had to increase to more than 5 minutes to get it running.

I agree with your impression that it does not feel like a delta-sync. Just adding one record results in syncing runtime of 6 minutes :frowning: .

But: It is working now, thanks to your know how / analysis and even more your will to share this!!!

Thanks again and have a nice weekend

Michael

1 Like

Glad to hear it, have a great weekend :blush:

Best,
Thomas