client icon indicating copy to clipboard operation
client copied to clipboard

v5.2.1 won't reconnect automatically after waking from sleep

Open haimiko opened this issue 10 months ago • 18 comments

ownCloud - Copy.log

Pre-submission Checks

  • [X] I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • [X] I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the bug

owncloud 5.2.1 installed on both my laptop and desktop. Both exhibit the similar behavior. After waking from an extended sleep, owncloud shows "grayed" out until I manually click "Reconnect".

Expected behavior

Previous versions would automatically reconnect after waking from sleep.

Steps to reproduce the issue

  1. Place computer to sleep for an extended time (i.e. +8hrs).
  2. Wake computer and ownCloud client doesn't reconnnect

Screenshots

No response

Logs

TBD. Only just enabled logging. Waiting to catch issue.

Client version number

ownCloud 5.2.1.13040 979bb9 Libraries Qt 6.4.3, OpenSSL 3.1.2 1 Aug 2023 Using virtual files plugin: wincfapi OS: windows-10.0.22621 QPA: windows

Desktop environment (Linux only)

No response

Client package version and origin (Linux only)

No response

Installation path (Windows only)

c:\program files\ownCloud

Server information

ownCloud 10.7.0 (docker version 10.7)

Additional context

No response

haimiko avatar Apr 21 '24 08:04 haimiko

Waiting for logs

TheOneRing avatar Apr 22 '24 12:04 TheOneRing

Added log. Seems the client thinks the host is unreachable even though it is. Network error: OCC::JsonApiJob(OCC::Account("[email protected]:8080"), "http://10.0.0.1:8080/ocs/v2.php/cloud/capabilities?format=json", "GET", Original-Request-ID: "f457f237-4d4c-4187-8a81-c4e182f940ef", X-Request-ID: "f457f237-4d4c-4187-8a81-c4e182f940ef", NetworkError: "Host unreachable") "Host unreachable"

haimiko avatar Apr 22 '24 22:04 haimiko

But that's what the system reports to us. Do you have http logs enabled? https://doc.owncloud.com/desktop/next/appendices/troubleshooting.html#log-files

TheOneRing avatar Apr 23 '24 07:04 TheOneRing

Yep. Same problem here. I’m having this issue on multiple PCs. If I close the Owncloud app and reopen it then it connects to the server right away.

@TheOneRing Try this on your PC. I guarantee you will see the same bug.

apach3guy avatar Apr 24 '24 14:04 apach3guy

Yep. Same problem here. I’m having this issue on multiple PCs. If I close the Owncloud app and reopen it then it connects to the server right away.

And the reconnect has no effect either?

@TheOneRing Try this on your PC. I guarantee you will see the same bug.

I haven't seen this behavior, however I'm already testing 6.

NetworkError: "Host unreachable"

That really doesn't look like a client issue. If the client encounters a network issue, it should trigger the connection validator. Which should try every X seconds to reach the server.

Could you please upload some log, with http logs enabled, to: https://infinite.owncloud.com/s/AySXaQgrjbiRlYv Password: y2#Z.B9j[h6V

TheOneRing avatar Apr 24 '24 14:04 TheOneRing

I'll enable http logging and wait for the next failure. I'm guessing its because, after the laptop wakes up, wifi connection hasn't been fully established and may take a few seconds to stabilize. By that time, the client has given up and isn't retrying the connection. What's interesting is that I I'm not using a DNS hostname but rather an IP, so we really can't blame hostname resolution.

haimiko avatar Apr 24 '24 15:04 haimiko

No new logs. owncloud stopped logging 2 days ago when the connection was lost. As soon as I click "reconnect" the logs start flowing again.
Logs 0 file size

image

haimiko avatar Apr 29 '24 06:04 haimiko

The log file is buffered so only written out when enough log lines accumulated. Also, sometimes the explorer only updates the filesize with a huge delay. So the log file might still contain something. If you want to see what's going right now, you can also start the client in a terminal. owncloud.exe --logfile - this will not buffer, and you can always see what's going on.

TheOneRing avatar Apr 29 '24 07:04 TheOneRing

Just wanted to confirm the same issue on my laptop with Win10, since the last update. The interface says that the account is signed out, in the tooltip. Only solution to get the syncing restarted is to exit and restart the client.

klaasdc avatar Apr 30 '24 15:04 klaasdc

Hi, Same issue on my computer, version 5.2.1.13040, when I click "reconnect", the sync works again after some seconds

nicobsa avatar Apr 30 '24 16:04 nicobsa

I do believe you all, but please, could someone try to upload logs 🙂

TheOneRing avatar May 02 '24 08:05 TheOneRing

Hi all, I succeed to reproduiced just now, after wake up after hibernation at 15h50 this after noon, wake up at 18:00

Log below (I hope I've removed sensitive data) owncloud_log_failed_after_wake_up_no_sensitive_data.txt

target URL is reachable, status URL seems to be ok, never use a proxy (and settings not changed between before and after hibernation) I can't check more by myself

But sync directories stay greyed, and account seems to be not connected

Hope it will help you

nicobsa avatar May 03 '24 16:05 nicobsa

24-05-03 18:16:22:163 [ info sync.connectionvalidator ]:	ConnectionValidator "xxxx" still running after duration(0h, 15min, 59s, 989ms)

Meh thats a strong hint

TheOneRing avatar May 07 '24 09:05 TheOneRing

Most probably fixed by: https://github.com/owncloud/client/pull/11467 The change was merged to the 5 branch. Could you try the 5 nightly build, it is definitely stable but should fix this issue.

TheOneRing avatar May 07 '24 09:05 TheOneRing

Hi,

thanks,

Could you help me to find out the nightly builds ?

nicobsa avatar May 07 '24 10:05 nicobsa

https://download.owncloud.com/desktop/ownCloud/daily/5.2/

TheOneRing avatar May 07 '24 10:05 TheOneRing

5.2.2.13816-daily20240507 installed, I'll test it during some days (the issue does not appears each time)

Thanks for your help :)

nicobsa avatar May 07 '24 10:05 nicobsa

It seems to work fine !

Thanks for your help

nicobsa avatar May 14 '24 16:05 nicobsa

Same here. It's been behaving as expected. Thank you.

haimiko avatar May 21 '24 18:05 haimiko