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

Carnet 0.23.1 is unable to sync with Nextcloud #132

Open
gbakeman opened this issue Jun 17, 2021 · 4 comments
Open

Carnet 0.23.1 is unable to sync with Nextcloud #132

gbakeman opened this issue Jun 17, 2021 · 4 comments

Comments

@gbakeman
Copy link

About a month and a half ago, the Carnet Android app is no longer syncing data to or from my Nextcloud server. I have a suspicion that this started right around when I reinstalled the Nextcloud app to troubleshoot a different syncing issue. I currently have the latest stable version installed and syncing, 3.16.1. Despite this Carnet appears unable to sync.

I'll attempt to delete and recreate the sync connection within Carnet to see if this fixes it. I'll also attach a full (redacted) debug log from the app, but here's the end of the log, where I think the failure is occurring:

06/16/2021 18:49:02 : notedebug mNotes 34 
06/16/2021 18:49:02 : NextCloudSSOSyncLister retrieveList Documents/QuickNote 
06/16/2021 18:49:02 : NextCloudWrapper com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequest(NextcloudAPI.java:272) 
06/16/2021 18:49:02 : NextCloudWrapper com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequest(NextcloudAPI.java:246) 
06/16/2021 18:49:02 : NextCloudWrapper com.spisoft.sync.wrappers.nextcloud.NextCloudSSOSyncLister.retrieveList(NextCloudSSOSyncLister.java:95) 
06/16/2021 18:49:02 : NextCloudWrapper com.spisoft.sync.wrappers.nextcloud.NextCloudSyncWrapper.recursiveLoadFolder(NextCloudSyncWrapper.java:488) 
06/16/2021 18:49:02 : NextCloudWrapper com.spisoft.sync.wrappers.nextcloud.NextCloudSyncWrapper.loadDistantFiles(NextCloudSyncWrapper.java:443) 
06/16/2021 18:49:02 : NextCloudWrapper com.spisoft.sync.synchro.SynchroService$SyncThread.syncFolder(SynchroService.java:244) 
06/16/2021 18:49:02 : NextCloudWrapper com.spisoft.sync.synchro.SynchroService$SyncThread.run(SynchroService.java:308) 
06/16/2021 18:49:02 : notedebug mNotes 34 
06/16/2021 18:49:02 : SynchroService failure 
06/16/2021 18:49:02 : SynchroService sync took 0 Days 0 Hours 0 Minutes 0 Seconds modified 0 
06/16/2021 18:49:02 : notedebug mNotes 34 
06/16/2021 18:49:02 : notedebug mNotes 34 
06/16/2021 18:49:02 : notedebug mNotes 34 
06/16/2021 18:49:04 : SynchroService starting sync at Jun 16, 2021 6:49:04 PM 
06/16/2021 18:49:04 : SynchroService syncing folder /storage/emulated/0/Android/data/com.spisoft.quicknote/files/notes 
06/16/2021 18:49:04 : SynchroService account type 1 
06/16/2021 18:49:04 : SynchroService populating 
06/16/2021 18:49:04 : NextCloudWrapper syncing Documents/QuickNote 
06/16/2021 18:49:04 : NextCloudWrapper root Documents/QuickNote 
06/16/2021 18:49:04 : requestdebug <?xml version="1.0" encoding="UTF-8"?><D:propfind xmlns:D="DAV:"><D:prop><D:getetag/></D:prop></D:propfind> 
06/16/2021 18:49:04 : NextCloudSSOSyncLister retrieveList Documents/QuickNote 
06/16/2021 18:49:04 : NextCloudWrapper com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequest(NextcloudAPI.java:272) 
06/16/2021 18:49:04 : NextCloudWrapper com.nextcloud.android.sso.api.NextcloudAPI.performNetworkRequest(NextcloudAPI.java:246) 
06/16/2021 18:49:04 : NextCloudWrapper com.spisoft.sync.wrappers.nextcloud.NextCloudSSOSyncLister.retrieveList(NextCloudSSOSyncLister.java:95) 
06/16/2021 18:49:04 : NextCloudWrapper com.spisoft.sync.wrappers.nextcloud.NextCloudSyncWrapper.recursiveLoadFolder(NextCloudSyncWrapper.java:488) 
06/16/2021 18:49:04 : NextCloudWrapper com.spisoft.sync.wrappers.nextcloud.NextCloudSyncWrapper.loadDistantFiles(NextCloudSyncWrapper.java:443) 
06/16/2021 18:49:04 : NextCloudWrapper com.spisoft.sync.synchro.SynchroService$SyncThread.syncFolder(SynchroService.java:244) 
06/16/2021 18:49:04 : NextCloudWrapper com.spisoft.sync.synchro.SynchroService$SyncThread.run(SynchroService.java:308) 
06/16/2021 18:49:04 : SynchroService failure 
06/16/2021 18:49:04 : SynchroService sync took 0 Days 0 Hours 0 Minutes 0 Seconds modified 0 
06/16/2021 18:49:04 : notedebug mNotes 34 
06/16/2021 18:49:04 : notedebug mNotes 34 
06/16/2021 18:49:07 : notedebug mNotes 34 
06/16/2021 18:49:07 : notedebug mNotes 34 
06/16/2021 18:49:07 : notedebug mNotes 34 
06/16/2021 18:49:08 : NoteListFragment onPause 

A small unrelated question: I noticed there are two messages in the debug log, CacheManager read and CacheManager write that both have huge JSON strings in them. Is this data being uploaded and downloaded from the server?

sync.log

@gbakeman
Copy link
Author

Update: I deleted the sync connection and readded it, then everything synced as if nothing had happened. I think it would be very helpful if Carnet could automatically detect that there is an issue with the connection to the Nextcloud app and attempt to repair it, or at least prompt the user to repair it themselves.

@Miyamoto72
Copy link

Your bugreport seems to be very similar to my problems. But I wasn't able to figure out how to delete and re-add the sync - there's no account in AdroidSettings -> Accounts, and I neither couldn't find any account data in Carnet settings.
How to delete and re-add the sync?

Using Nextcloud 23.0.1 RC1 (but didn't work with latest NC 22, too) and Carnet Android App 0.24 on a Google Pixel 6 Pro (Android 12)

@gbakeman
Copy link
Author

gbakeman commented Jan 18, 2022

Carnet connects directly with the Nextcloud app on your phone. Make sure you have downloaded the Nextcloud app first, and logged into your Nextcloud account on it. After that open Carnet setting, Sync with cloud storage, hit Delete if the option is available, otherwise complete the connection to Nextcloud.

@Gofannon
Copy link

Carnet connects directly with the Nextcloud app on your phone. Make sure you have downloaded the Nextcloud app first, and logged into your Nextcloud account on it. After that open Carnet setting, Sync with cloud storage, hit Delete if the option is available, otherwise complete the connection to Nextcloud.

Thanks for allowing me to get Carnet back to run! I had to:

  1. On nextcloud
    1. Upgrade the "carnet app" which was outdated
  2. On my phone
    1. Do a backup of notes from the android app (it was the most recent version. Do it from Nextcloud if it's newer)
    2. Delete the "sync", add it again and choose to login with the "nextcloud app"
    3. Launch a sync and most of the notes were gone !! (checked from Nextcloud too, same state as phone ...)
    4. Reload backup from the backup
    5. Find back all the notes
    6. Enjoy

Thanks to PhieF for this wonderful tool !

I end up on this post because I had the surprise to discover than my notes were not synced anymore to Nextcloud from my phone. I don't know when it stopped and I'm glad I saw it before I had a trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants