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

Client does not reconnect after losing the connection to the server #2148

Closed
nlurkin opened this issue Sep 2, 2014 · 5 comments
Closed

Client does not reconnect after losing the connection to the server #2148

nlurkin opened this issue Sep 2, 2014 · 5 comments
Assignees
Labels

Comments

@nlurkin
Copy link

nlurkin commented Sep 2, 2014

Expected behaviour

When I resume the computer from hibernate or lose the connection, I expect the client to reconnect to the server.

Actual behaviour

After losing the connection to the server, the client dos not reconnect. It is not always, I don't really know when exactly this happens but it seems to be quite often when resuming windows from hibernate. I also noticed that when I'm using a captive portal to connect to internet, the client is not able to connect to the server (because it receives the portal page) but does not retry afterwards (or fails). To solve this I have to restart the client.

Steps to reproduce

  1. hibernate windows
  2. resume
  3. if the wifi is not immediately available, the client loses the connection and does not reconnect afterwards

Client configuration

Client version:1.6.1 (build 3267)
Operating system: Windows
OS language: English
Installation path of client: C:\Program Files (x86)\ownCloud

Logs

The relevant lines are these one, appearing when I click retry sync (using F12):
syncjournaldb.cpp:870 Transaction Start "checkConnect"
09-02 14:43:38:739 syncjournaldb.cpp:346 Columns in the current journal: ("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid")
09-02 14:43:39:256 folderman.cpp:449 FolderMan: Syncing is disabled, no scheduling.
09-02 14:43:39:259 folderman.cpp:449 FolderMan: Syncing is disabled, no scheduling.
09-02 14:43:39:285 folderman.cpp:449 FolderMan: Syncing is disabled, no scheduling.
09-02 14:43:39:289 folderman.cpp:449 FolderMan: Syncing is disabled, no scheduling.
09-02 14:43:47:892 networkjobs.cpp:191 !!! Mirall::CheckServerJob created for QUrl( https://cloud.nicolaslurkin.eu" ) querying "status.php"
09-02 14:43:57:906 networkjobs.cpp:357 TIMEOUT virtual void Mirall::CheckServerJob::slotTimeout()

I don't have logs of when the client actually loses the connection because it crashes after few minutes when I enable the log file (maybe because of a too big log file?)

@deMattin
Copy link

deMattin commented Sep 3, 2014

See this on two client installations (Win7 pro notebook and Win7 home desktop) on Client version 1.6.2 as well.
It's neither reproduceable nor depends on the ammount of hibernate actions till the connection will not be restored.
Restarting the client solves the issue every time and is the only way to reactivate sync.

@guruz guruz added the bug label Sep 3, 2014
@danimo
Copy link
Contributor

danimo commented Sep 12, 2014

CheckServerJob::slotTimeout() emits timeout() but we don't respond to that. That is likely the reason.

@danimo danimo self-assigned this Sep 12, 2014
ogoffart added a commit that referenced this issue Sep 12, 2014
otherwise the account may be stuck in a disconnect case if there is a timeout

Issue #2148
ogoffart added a commit that referenced this issue Sep 12, 2014
Abort the transfer in case of timeout.

This avoid that a connection that never replies blocks mirall

Issue #2148
@ogoffart ogoffart added the ReadyToTest QA, please validate the fix/enhancement label Sep 12, 2014
@danimo
Copy link
Contributor

danimo commented Sep 12, 2014

The latest nightly build for 1.7 has the fix.

@luciamaestro
Copy link

I can`t reproduce it in the latest build.

@luciamaestro luciamaestro removed the ReadyToTest QA, please validate the fix/enhancement label Sep 16, 2014
@gerbsen
Copy link

gerbsen commented Jan 26, 2017

we had something similar which was fixed by:

  proxy_http_version 1.1;
  proxy_buffering off;
  proxy_ignore_client_abort on;

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

No branches or pull requests

7 participants