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

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

Open
2 tasks done
haimiko opened this issue Apr 21, 2024 · 18 comments
Open
2 tasks done

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

haimiko opened this issue Apr 21, 2024 · 18 comments
Labels

Comments

@haimiko
Copy link

haimiko commented Apr 21, 2024

ownCloud - Copy.log

Pre-submission Checks

  • 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.
  • 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 haimiko added the bug label Apr 21, 2024
@TheOneRing
Copy link
Member

Waiting for logs

@haimiko
Copy link
Author

haimiko commented Apr 22, 2024

Added log. Seems the client thinks the host is unreachable even though it is.
Network error: OCC::JsonApiJob(OCC::Account("user@10.0.0.1: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"

@TheOneRing
Copy link
Member

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

@apach3guy
Copy link

apach3guy commented Apr 24, 2024

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.

@TheOneRing
Copy link
Member

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

@haimiko
Copy link
Author

haimiko commented Apr 24, 2024

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
Copy link
Author

haimiko commented Apr 29, 2024

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

@TheOneRing
Copy link
Member

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.

@klaasdc
Copy link

klaasdc commented Apr 30, 2024

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.

@nicobsa
Copy link

nicobsa commented Apr 30, 2024

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

@TheOneRing
Copy link
Member

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

@nicobsa
Copy link

nicobsa commented May 3, 2024

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

@TheOneRing
Copy link
Member

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
Copy link
Member

Most probably fixed by: #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.

@nicobsa
Copy link

nicobsa commented May 7, 2024

Hi,

thanks,

Could you help me to find out the nightly builds ?

@TheOneRing
Copy link
Member

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

@nicobsa
Copy link

nicobsa commented May 7, 2024

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
Copy link

nicobsa commented May 14, 2024

It seems to work fine !

Thanks for your help

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

5 participants