Properly deal with loss of network
- Introduce "disconnected" state
- not an error, use offline icon
- verify that QNetworkConfigurationManager is sufficient.
- consider implementing a fallback solution / manual intervention
- when the state changes to disconnected, gracefully shut down the sync process
- when the stat changes back to connected, resume
This also includes scenarios where the app starts, but the network is not available (yet). No network should never be a hard error.
Also it happens when a machine goes to sleep, and then resumes. The client needs a restart to get the client working again in this situation as well. We need to up the priority on this one.
Any plans when to expect this?
I am currently working on this and it will hopefully be in 1.2, the next feature release.
Well, I am using 1.20 beta 2 and if I've forgotten to switch on Wifi, OC client (win7) will not reconnect unless I close it completely and start it again.
A buttom "refresh....." could be a deal. There where elsewhere "connected to www.abc.com as blabla" is displayed.
UPDATE: and make OC Client try to reconnect every x minutes as well.
I don't think this is display-only error as stated in e.g. #316, as only the default clientsync folder reappears. All other configured sync folders disappear forever and are not synchronized.
For every disconnect, I have a ".filename.ext.~xxxxxx" (read: dotfile with xxxxxx being a random number, such as 9o3vu0) in my owncloud folder, I guess this is also part of not properly dealing with network loss. This looks like the tries / partially downloaded file. This is a bug, I think.
Fixed in 1.2.1RC1, http://owncloud.org/sync-clients/#testing if you want to give it a try.
I don't think it is already closed: OC client 1.2. shows the "everything synced" symbol with the white checkmark on a green circle when I am disconnected. This is confusing; it could be that it wasn't synced for days. How about no special symbold at all (just the clouds) in the case of network loss. Maybe this is difficult to do, but this would be great and helpful, since an indicator should indicate something. ;-)
I'm unsure if this is working "as expected" at least in OS X. Upon connection loss (due to sleeping), I left the thing for hours and it never restarted the sync. After restarting the client, the sync started - BUT there was no visual feedback.
Have this problem too. My father's computer connects with a usb stick to 3G and the program for connecting is much, much slower. The owncloud client failes almost immeditely and has to be closed through the process manager for making a restart possible. First then it connects, and works as it should. This procedure is too complicated for my father so it would really be good if the client did not break down but could try to connect periodically until it succeeds when the network is estabilished. Or maybe another icon in the activity field for "not connected" and a choice in the menu to "try to connect now".
Yup, still not working as needed. At least, button 'try to reconnect now' or auto-reconnecting every minute would be a very nice feature.
Ok will investigate
Any idea when this issue will be resolved?
This should be fixed for 1.5, so I will close this now. I would like to encourage everyone subscribed to this bug to try the first beta (due to be released later this week) to verify that everything works as expected.