Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App refuses to work when the server is down #248

Open
y0grt opened this issue Mar 21, 2023 · 10 comments
Open

App refuses to work when the server is down #248

y0grt opened this issue Mar 21, 2023 · 10 comments

Comments

@y0grt
Copy link

y0grt commented Mar 21, 2023

Is this the intended behaviour?
For example if I have connections issues I should still be able to access to the passwords stored in my phone.

@y0grt
Copy link
Author

y0grt commented Mar 21, 2023

it's worse than that. after opening the app with the server down I had to configure the server url and log in again.

@johannes-schliephake
Copy link
Owner

I wasn't able to reproduce either of the prioblems. Can you install the TestFlight version of the app and take a look at the log? (You won't loose any data when switching versions.) You can find the log in the app's settings. Especially the case when your server is down would be interesting.

@y0grt
Copy link
Author

y0grt commented Apr 16, 2023

I couldn't check (yet) with the beta version, but today the server was under maintenance (so the reverse proxy presented an invalid cert) and the app dumped me out again. I checked and this was not happening exactly when there is no connection but when something unexpected happens.

@johannes-schliephake
Copy link
Owner

Why does the server use an invalid certificate when it is under maintenance? Is the web server unavailable during maintenance or are we talking about Nextcloud's maintenance mode?

Although the app is designed to handle invalid certificates by warning the user, this might still have something to do with this issue.

@y0grt
Copy link
Author

y0grt commented May 3, 2023

I'm talking here about downtime.
When using a reverse proxy routing by SNI with several subdomains behind, if a given backend is not available, the reverse proxy will present a self-signed certificate.
Regardless of any external interaction, the user shouldn't lose the possibility of accessing the data in the app.
The only case I can think of, is an explicit command from the server indicating that the device should be wiped or the credentials were revoked.

@johannes-schliephake
Copy link
Owner

That's so weird. When the certificate changes to a self-signed one the app should present a confirmation dialog with details about the certificate. Only if this is denied by the user the app will proceed to log out.
Were any other alerts or warnings presented by the app? Otherwise I probably can only investigate further when the issue occurs again and details are logged.

@y0grt
Copy link
Author

y0grt commented May 8, 2023

I can switch off the server, and try again, if you have any easy way to get debug logs. Maybe with the beta version?

@johannes-schliephake
Copy link
Owner

Exactly, you can find logs in the app's settings of the TestFlight version. Just install, reproduce the issue and you should have an entry in the log.

@methosomega
Copy link

I had an issue with my router and during the rebuild i had the server shut down after i had already entered the e2e password. The two days it was down, the app never asked for the e2e password again.. only my phone password.. as soon as the server was up it locked out and required the e2e password again

@johannes-schliephake
Copy link
Owner

The E2E password is only required when establishing a new session. If you are using the default server configuration that will be the case every 10 minutes. When you are using the app offline the latest session can still be used, at least on device. The session is deleted when hard-closing the app. In that case, even when offline the E2E password is required once to decrypt the containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants