client icon indicating copy to clipboard operation
client copied to clipboard

Sync folder lost from settings

Open d7oc opened this issue 2 years ago • 12 comments

Under certain currently unknown conditions the client loses the configuration for some sync connections.

No data is lost and the connection can manually be restored from a backup config:

  • Quit the client
  • create a backup of %APPDATA%\ownCloud\owncloud.cfg / ~/Library/Preferences/ownCloud/owncloud.cfg
  • open a backuo for example %APPDATA%\ownCloud\owncloud.cfg.backup_20231129_142446_5.2.0.0
  • Locate the config for the sync that got lost
    • Here 1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\localPath=C:/Users/xxx/ownCloud - [email protected]/
  • Copy all related entries:
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\localPath=C:/Users/xxx/ownCloud - [email protected]/
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\journalPath=.sync_journal.db
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\targetPath=/
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\davUrl=@Variant(\0\0\0\x11\0\0\0\x37https://owncloud.server.com/remote.php/dav/files/test/)
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\displayString=ownCloud
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\paused=false
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\ignoreHiddenFiles=true
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\deployed=false
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\priority=0
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\virtualFilesMode=wincfapi
1\Folders\b61f197e-333b-4ec4-b43e-3513ab03c5e3\version=13
  • Insert them in %APPDATA%\ownCloud\owncloud.cfg / ~/Library/Preferences/ownCloud/owncloud.cfg
  • Start the client
Original report ### 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

The ownCloud Mac client started staying in paused mode since some time. I haven't found a solution yet. Logging out and in again didn't solve the issue.

Expected behavior

Client should sync

Steps to reproduce the issue

  1. Start client against https://cloud.owncloud.com/
  2. Wait for the client to sync

Screenshots

Screenshot 2023-11-30 at 15 14 46

Logs

-> https://cloud.owncloud.com/f/6132439

Client version number

ownCloud 5.1.2.12600 9a0beb Libraries Qt 6.4.3, OpenSSL 3.1.2 1 Aug 2023 Using virtual files plugin: suffix OS: macos-23.1.0 QPA: cocoa

Desktop environment (Linux only)

No response

Client package version and origin (Linux only)

No response

Installation path (Windows only)

No response

Server information

No response

Additional context

No response

d7oc avatar Nov 30 '23 14:11 d7oc

Please add a screenshot of your client, are there any warnings?

TheOneRing avatar Nov 30 '23 14:11 TheOneRing

Screenshot 2023-11-30 at 15 19 59

No warnings

d7oc avatar Nov 30 '23 14:11 d7oc

But also no sync folder.

TheOneRing avatar Nov 30 '23 14:11 TheOneRing

The sync folder is there. There is also some sync activity shown in the in the Server Activity tab.

d7oc avatar Nov 30 '23 14:11 d7oc

I have observed this issue as well. Unfortunately I can't reliably recreate it (yet) but I'm noticing a pattern and I suspect it has to do with situations where my WiFi is flaky or not available during or right after bootup.

I figured I should mention it just in case it's relevant.

My Version Information
ownCloud 5.2.0.12726 [f6cca1](https://github.com/owncloud/client/commit/f6cca1968d4fda84c01bd239b46371d7b0131278)
Libraries Qt 6.4.3, OpenSSL 3.1.2 1 Aug 2023
Using virtual files plugin: suffix
OS: pop-6.5.6-76060506-generic
QPA: xcb

hellerbarde avatar Dec 26 '23 03:12 hellerbarde

Happened again here with

ownCloud 5.2.0.12726 f6cca1
Libraries Qt 6.4.3, OpenSSL 3.1.2 1 Aug 2023
Using virtual files plugin: suffix
OS: macos-23.2.0
QPA: cocoa

Logs are available internally: https://cloud.owncloud.com/f/6153507

d7oc avatar Dec 28 '23 07:12 d7oc

I'd recommend using a 5 daily build which includes https://github.com/owncloud/client/commit/2b3157658959a4db53886dc1dc19f726d118ad7b but this "fix" is just a random guess.

@d7oc this happened unrelated to a client update I assume?

TheOneRing avatar Jan 02 '24 10:01 TheOneRing

Yes it happened without a client update.

d7oc avatar Jan 08 '24 07:01 d7oc

Closed my issue (11464) as a dupe, and was able to use the work-around, but just wanted to add here that this is happening on macOS as well. I can reliably reproduce, so let me know if I can help with logs or anything.

codepoet80 avatar Jan 08 '24 20:01 codepoet80

@codepoet80 happens also with the 5.2.1?

michaelstingl avatar Jan 09 '24 07:01 michaelstingl

Yes, as noted on my Issue, I'm reported on 5.2.1.13040 979bb9 Mac -- however, it could have been caused on an earlier version, and the update didn't magically fix it. I haven't seen the issue pop up yet today -- although its usually a few reboots before it appears. I guess I'll update here if it re-occurs?

codepoet80 avatar Jan 09 '24 14:01 codepoet80

however, it could have been caused on an earlier version, and the update didn't magically fix it.

Yes, update doesn't fix it. If the sync connection disappeared pre-5.2.1, upgrade to 5.2.1 doesn't fix it.

I haven't seen the issue pop up yet today -- although its usually a few reboots before it appears. I guess I'll update here if it re-occurs?

Yes, please keep an eye on it. Please make sure you have the debug log enabled in the background: https://doc.owncloud.com/desktop/5.2/appendices/troubleshooting.html#logging-to-a-temporary-directory

michaelstingl avatar Jan 09 '24 14:01 michaelstingl

Fixed in 5.2.1

TheOneRing avatar May 28 '24 11:05 TheOneRing