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

[Windows] [1.8nightly 4759] No connection after resume of PC #2899

Closed
MegaV0lt opened this issue Feb 27, 2015 · 28 comments
Closed

[Windows] [1.8nightly 4759] No connection after resume of PC #2899

MegaV0lt opened this issue Feb 27, 2015 · 28 comments
Assignees
Labels
bug Needs info ReadyToTest QA, please validate the fix/enhancement

Comments

@MegaV0lt
Copy link

usualy i only set my pc to power save mode. After resume on the next day the oc client does not connect:
2015-02-27 07_50_09-log-ausgabe
When i exit oc client and start it again it is workinkg again

in 1.7.1 version that was working

@ckamm
Copy link
Contributor

ckamm commented Feb 27, 2015

Thanks for the log! It shows that the client regularly runs a CheckServerJob which comes back with RemoteHostClosedError. It doesn't look like a client error... I'll try to reproduce it.

@ckamm ckamm added the bug label Feb 27, 2015
@ckamm ckamm self-assigned this Feb 27, 2015
@ckamm
Copy link
Contributor

ckamm commented Feb 27, 2015

Hm, I can't suspend or hibernate my Windows VM, someone else will need to try to reproduce this.

@ckamm ckamm removed their assignment Feb 27, 2015
@dragotin dragotin added this to the 1.8 - UI Enhancements milestone Feb 27, 2015
@MegaV0lt
Copy link
Author

Note: when i close the client (Exit) and start it again it works! So i think it might be a client bug. I also was checking the owncloud.log. No specific errors in there.

@MegaV0lt
Copy link
Author

Maybe dicannect from network and reconnect after some time could simulate it in the vm?

@ckamm
Copy link
Contributor

ckamm commented Feb 27, 2015

@MegaV0lt Disconnecting and reconnecting the network works fine.

@danimo
Copy link
Contributor

danimo commented Feb 27, 2015

@ckamm just for reference, you can restrospectively enable hibernate: http://www.giannistsakiris.com/2009/04/08/how-to-enable-hibernate-in-windows-xp/

@MegaV0lt
Copy link
Author

went out for shopping. standby was about one hour. client working normal. maybe a "overnight" issue ore time/date related?

@MegaV0lt
Copy link
Author

Ok, today after aprox. 3 hours standby:
http://i.imgur.com/eG2nPsZ.png
The errormessage is differnet, but i think the same reason. The connection is to local server "sheevaplug"... Again, after restart of client ok. Nothing in owncloud.log

@ogoffart
Copy link
Contributor

ogoffart commented Mar 3, 2015

From the logs, as ckamm already said: the client is querying to status.php to know if the server is there. But we get an error ( NetworkError::RemoteHostClosedError )

That's strange. Why would the server closes new connections after we resume from sleep? And why would it work again when one restart the client.

@MegaV0lt
Copy link
Author

MegaV0lt commented Mar 3, 2015

the owncloud.log on teh server does not show any access at the time... maybe the request did not even leave the clientpc? Othe rnetworking apps still work normal at the same time (eg. dropbox, ff, tb, webradio). Must be something with the client in my poor opinion

@MegaV0lt
Copy link
Author

MegaV0lt commented Mar 4, 2015

Also no TCP-Connection to see in Process Explorer:
http://i.imgur.com/6a8sFKO.png

@ogoffart
Copy link
Contributor

ogoffart commented Mar 4, 2015

And if you wait for 10 minutes? does it still not work?

@MegaV0lt
Copy link
Author

MegaV0lt commented Mar 4, 2015

I try next time

@MegaV0lt
Copy link
Author

MegaV0lt commented Mar 4, 2015

As expected: Nothing after 15 minutes...
https://dl.dropboxusercontent.com/u/1490505/OCNBC.log

Sharing is also not working, because of teh no connection problem, so it is a dropbox-link

@dragotin
Copy link
Contributor

The logfile shows this lines:

03-04 17:10:40:698 0x59ee6a0 OCC::Folder::slotRunEtagJob: * Trying to check "ownCloud" for changes via ETag check. (time since last sync: 2271 s)
03-04 17:10:40:699 0x59ee6a0 OCC::Folder::slotRunEtagJob: Not syncing.  : "ownCloud" false "NetworkError"

That means that we do NOT start the ETag job because the AccountState is Network Error rather than Connected.

@dragotin
Copy link
Contributor

And other lines:

03-04 17:11:36:420 0x59ee6a0 OCC::AbstractNetworkJob::start: !!! OCC::CheckServerJob created for  QUrl( "https://sheevaplug/owncloud" )  querying "status.php"
03-04 17:11:36:441 0x59ee6a0 OCC::AbstractNetworkJob::slotFinished: void OCC::AbstractNetworkJob::slotFinished() 2 "Verbindung beendet"

In the normal case, a succeeding CheckServerJob would reset the AccountState to Connected, and as a result the ETagJob from above would start. The CheckServerJob is actually started, but it fails reporting "Verbindung beendet". This job just tries to access status.php. Is it possible that there is any problem in your setup causing this?

@MegaV0lt
Copy link
Author

What should this be? I have a local network-connection with the oc-server (sheevaplug). I use my self created ssl-certs. On my laptop is still version 1.7 of the client but usese dyndns as adress of course

what info ddo you need?

@dragotin
Copy link
Contributor

Related: #2973 and #2895 ?

@MegaV0lt
Copy link
Author

Mybe. At least the effect described in #2973 i also had one time with 1.8beta2. Today i installed the final 1.8 client. I give new feedback here, when it occurs next time.

ckamm added a commit to ckamm/owncloud-client that referenced this issue Mar 19, 2015
…loud#2973

The QNetworkAccessManager is reset when we are disconnected, just
before attempting to fetch the server's status.php.

This may help fix the problem described in various issues where we
get 'Connection closed' or timeout errors after the OS has woken
from sleep.
@ckamm
Copy link
Contributor

ckamm commented Mar 19, 2015

@MegaV0lt I just pushed a possible workaround. Could you try again with tomorrow's build from http://download.owncloud.com/desktop/daily/ ?

@ckamm ckamm added the ReadyToTest QA, please validate the fix/enhancement label Mar 19, 2015
@ckamm ckamm self-assigned this Mar 19, 2015
@MegaV0lt
Copy link
Author

Of course i will test. Feedback follows as soon i have a result

@ckamm
Copy link
Contributor

ckamm commented Mar 19, 2015

We got a built that includes the maybe-fix early: http://download.owncloud.com/desktop/daily/ownCloud-1.8.0.4850-nightly20150319-setup.exe

@MegaV0lt
Copy link
Author

Ok, i install 4850 now ;)

@ckamm
Copy link
Contributor

ckamm commented Mar 25, 2015

@MegaV0lt Any news? Your symptoms looked identical to the ones in #2973 and there the patch seems to have helped.

@MegaV0lt
Copy link
Author

Since the #4850 build. Seems working now. Thanks...

@ckamm
Copy link
Contributor

ckamm commented Mar 25, 2015

Great, thanks for testing!

@ckamm ckamm closed this as completed Mar 25, 2015
@MegaV0lt
Copy link
Author

Again with occlient 4893:
http://i.imgur.com/4iCYIKO.png

@guruz
Copy link
Contributor

guruz commented Nov 10, 2015

@MegaV0lt Have you seen my comment here: #3969 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs info ReadyToTest QA, please validate the fix/enhancement
Projects
None yet
Development

No branches or pull requests

6 participants