Problems with NextCloud

I can’t get nextcloud calendar sync working. Carddav works. I remember that there was an issue with nextcloud account and that you should use pure carddav account, but that doesn’t work either…

Checked all found threads for nextcloud/carddav sync already but couldn’t find a hint of what the cause could be and what steps I could try to narrow down the problem. I also tried to look into the logs (after starting msyncd with debug options) but I don’t see any error there.

After creating nextcloud account on enabling “calendar” I just get the message:

“Server response did not provide user details for specified username.”

[D] unknown:0 - "bool Buteo::ProfileManager::setSyncSchedule(QString, QString)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 2 ms
[D] unknown:0 - "QString Buteo::ProfileManager::updateProfile(const Buteo::Profile&)" :Entry
[D] unknown:0 - profileFile: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/carddav.Contacts-41.xml"
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::save(const Buteo::Profile&)" :Entry
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::writeProfileFile(const QString&, const QDomDocument&)" :Entry
[W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/carddav.Contacts-41.xml"
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::writeProfileFile(const QString&, const QDomDocument&)" :Exit, execution time: 1 ms
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::save(const Buteo::Profile&)" :Exit, execution time: 1 ms
[D] unknown:0 - "QString Buteo::ProfileManager::updateProfile(const Buteo::Profile&)" :Exit, execution time: 2 ms
[D] unknown:0 - "bool Buteo::ProfileManager::setSyncSchedule(QString, QString)" :Exit, execution time: 6 ms
[D] unknown:0 - "void Buteo::Synchronizer::reschedule(const QString&)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 1 ms
[D] unknown:0 - "bool Buteo::SyncScheduler::addProfile(const Buteo::SyncProfile*)" :Entry
[D] unknown:0 - "int Buteo::SyncScheduler::setNextAlarm(const Buteo::SyncProfile*, QDateTime)" :Entry
[D] unknown:0 - "const Buteo::SyncResults* Buteo::SyncLog::lastResults() const" :Entry
[D] unknown:0 - "const Buteo::SyncResults* Buteo::SyncLog::lastResults() const" :Exit, execution time: 0 ms
[D] unknown:0 - "const Buteo::SyncResults* Buteo::SyncLog::lastResults() const" :Entry
[D] unknown:0 - "const Buteo::SyncResults* Buteo::SyncLog::lastResults() const" :Exit, execution time: 0 ms
[D] unknown:0 - lastSync: QDateTime(2024-09-25 13:53:51.000 UTC Qt::TimeSpec(UTC))
[D] unknown:0 - "QDateTime Buteo::SyncSchedule::nextSyncTime(const QDateTime&) const" :Entry
[D] unknown:0 - aPrevSync "Wed Sep 25 13:53:51 2024 GMT" Last Configured Time  "Wed Sep 25 20:55:13 2024" CurrentDateTime QDateTime(2024-09-25 20:55:13.461 CEST Qt::TimeSpec(LocalTime))
[D] unknown:0 - Sync interval defined as 720
[D] unknown:0 - numberOfInterval: 1 interval time 720
[D] unknown:0 - next non rush hour sync is at::  QDateTime(2024-09-26 01:53:51.000 UTC Qt::TimeSpec(UTC))
[D] unknown:0 - nextSync "Thu Sep 26 01:53:51 2024 GMT"
[D] unknown:0 - "QDateTime Buteo::SyncSchedule::nextSyncTime(const QDateTime&) const" :Exit, execution time: 0 ms
[D] unknown:0 - "bool BackgroundSync::set(const QString&, int)" :Entry
[D] unknown:0 - BackgroundSync::set() Frequency unchanged for "carddav.Contacts-41" , waiting.
[D] unknown:0 - "bool BackgroundSync::set(const QString&, int)" :Exit, execution time: 0 ms
[D] unknown:0 - "bool BackgroundSync::removeSwitch(const QString&)" :Entry
[D] unknown:0 - "bool BackgroundSync::removeSwitch(const QString&)" :Exit, execution time: 0 ms
[D] unknown:0 - "int Buteo::SyncScheduler::setNextAlarm(const Buteo::SyncProfile*, QDateTime)" :Exit, execution time: 1 ms
[D] unknown:0 - "bool Buteo::SyncScheduler::addProfile(const Buteo::SyncProfile*)" :Exit, execution time: 1 ms
[D] unknown:0 - Synchronizer::getBackUpRestoreState
[D] unknown:0 - "virtual bool Buteo::SyncBackup::getBackUpRestoreState()" :Entry
[D] unknown:0 - "virtual bool Buteo::SyncBackup::getBackUpRestoreState()" :Exit, execution time: 0 ms
[D] unknown:0 - Reschdule profile "carddav.Contacts-41" 1 true
[D] unknown:0 - "void Buteo::Synchronizer::reschedule(const QString&)" :Exit, execution time: 4 ms
[D] unknown:0 - "bool Buteo::ProfileManager::setSyncSchedule(QString, QString)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 1 ms
[D] unknown:0 - "QString Buteo::ProfileManager::updateProfile(const Buteo::Profile&)" :Entry
[D] unknown:0 - profileFile: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/caldav-sync-41.xml"
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::save(const Buteo::Profile&)" :Entry
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::writeProfileFile(const QString&, const QDomDocument&)" :Entry
[W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/caldav-sync-41.xml"
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::writeProfileFile(const QString&, const QDomDocument&)" :Exit, execution time: 0 ms
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::save(const Buteo::Profile&)" :Exit, execution time: 1 ms
[D] unknown:0 - "QString Buteo::ProfileManager::updateProfile(const Buteo::Profile&)" :Exit, execution time: 2 ms
[D] unknown:0 - "bool Buteo::ProfileManager::setSyncSchedule(QString, QString)" :Exit, execution time: 4 ms
[D] unknown:0 - "void Buteo::Synchronizer::reschedule(const QString&)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 1 ms
[D] unknown:0 - "bool Buteo::SyncScheduler::addProfile(const Buteo::SyncProfile*)" :Entry
[D] unknown:0 - "int Buteo::SyncScheduler::setNextAlarm(const Buteo::SyncProfile*, QDateTime)" :Entry
[D] unknown:0 - "const Buteo::SyncResults* Buteo::SyncLog::lastResults() const" :Entry
[D] unknown:0 - "const Buteo::SyncResults* Buteo::SyncLog::lastResults() const" :Exit, execution time: 0 ms
[D] unknown:0 - lastSync: QDateTime( Qt::TimeSpec(LocalTime))
[D] unknown:0 - "const Buteo::SyncResults* Buteo::SyncLog::lastResults() const" :Entry
[D] unknown:0 - "const Buteo::SyncResults* Buteo::SyncLog::lastResults() const" :Exit, execution time: 0 ms
[D] unknown:0 - lastSync: QDateTime( Qt::TimeSpec(LocalTime))
[D] unknown:0 - "QDateTime Buteo::SyncSchedule::nextSyncTime(const QDateTime&) const" :Entry
[D] unknown:0 - aPrevSync "" Last Configured Time  "Wed Sep 25 20:55:13 2024" CurrentDateTime QDateTime(2024-09-25 20:55:13.476 CEST Qt::TimeSpec(LocalTime))
[D] unknown:0 - Sync interval defined as 720
[D] unknown:0 - numberOfInterval: 1 interval time 720
[D] unknown:0 - next non rush hour sync is at::  QDateTime(2024-09-26 08:55:13.000 CEST Qt::TimeSpec(LocalTime))
[D] unknown:0 - nextSync "Thu Sep 26 08:55:13 2024"
[D] unknown:0 - "QDateTime Buteo::SyncSchedule::nextSyncTime(const QDateTime&) const" :Exit, execution time: 0 ms
[D] unknown:0 - "bool BackgroundSync::set(const QString&, int)" :Entry
[D] unknown:0 - BackgroundSync::set() Frequency unchanged for "caldav-sync-41" , waiting.
[D] unknown:0 - "bool BackgroundSync::set(const QString&, int)" :Exit, execution time: 0 ms
[D] unknown:0 - "bool BackgroundSync::removeSwitch(const QString&)" :Entry
[D] unknown:0 - "bool BackgroundSync::removeSwitch(const QString&)" :Exit, execution time: 0 ms
[D] unknown:0 - "int Buteo::SyncScheduler::setNextAlarm(const Buteo::SyncProfile*, QDateTime)" :Exit, execution time: 1 ms
[D] unknown:0 - "bool Buteo::SyncScheduler::addProfile(const Buteo::SyncProfile*)" :Exit, execution time: 1 ms
[D] unknown:0 - Synchronizer::getBackUpRestoreState
[D] unknown:0 - "virtual bool Buteo::SyncBackup::getBackUpRestoreState()" :Entry
[D] unknown:0 - "virtual bool Buteo::SyncBackup::getBackUpRestoreState()" :Exit, execution time: 0 ms
[D] unknown:0 - Reschdule profile "caldav-sync-41" 1 true
[D] unknown:0 - "void Buteo::Synchronizer::reschedule(const QString&)" :Exit, execution time: 3 ms
[D] unknown:0 - "bool Buteo::ProfileManager::setSyncSchedule(QString, QString)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 1 ms
[D] unknown:0 - "QString Buteo::ProfileManager::updateProfile(const Buteo::Profile&)" :Entry
[D] unknown:0 - profileFile: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/nextcloud.Images-41.xml"
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::save(const Buteo::Profile&)" :Entry
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::writeProfileFile(const QString&, const QDomDocument&)" :Entry
[W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/nextcloud.Images-41.xml"
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::writeProfileFile(const QString&, const QDomDocument&)" :Exit, execution time: 0 ms
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::save(const Buteo::Profile&)" :Exit, execution time: 2 ms
[D] unknown:0 - "QString Buteo::ProfileManager::updateProfile(const Buteo::Profile&)" :Exit, execution time: 2 ms
[D] unknown:0 - "bool Buteo::ProfileManager::setSyncSchedule(QString, QString)" :Exit, execution time: 4 ms
[D] unknown:0 - "void Buteo::Synchronizer::reschedule(const QString&)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 1 ms
[D] unknown:0 - Scheduled sync got disabled for "nextcloud.Images-41"
[D] unknown:0 - "void Buteo::SyncScheduler::removeProfile(const QString&)" :Entry
[D] unknown:0 - "bool BackgroundSync::remove(const QString&)" :Entry
[D] unknown:0 - "bool BackgroundSync::removeSwitch(const QString&)" :Entry
[D] unknown:0 - "bool BackgroundSync::removeSwitch(const QString&)" :Exit, execution time: 0 ms
[D] unknown:0 - "bool BackgroundSync::remove(const QString&)" :Exit, execution time: 0 ms
[D] unknown:0 - "void Buteo::SyncScheduler::removeProfile(const QString&)" :Exit, execution time: 0 ms
[D] unknown:0 - Synchronizer::getBackUpRestoreState
[D] unknown:0 - "virtual bool Buteo::SyncBackup::getBackUpRestoreState()" :Entry
[D] unknown:0 - "virtual bool Buteo::SyncBackup::getBackUpRestoreState()" :Exit, execution time: 0 ms
[D] unknown:0 - Reschdule profile "nextcloud.Images-41" 1 false
[D] unknown:0 - "void Buteo::Synchronizer::reschedule(const QString&)" :Exit, execution time: 2 ms
[D] unknown:0 - "bool Buteo::ProfileManager::setSyncSchedule(QString, QString)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 1 ms
[D] unknown:0 - "QString Buteo::ProfileManager::updateProfile(const Buteo::Profile&)" :Entry
[D] unknown:0 - profileFile: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/nextcloud.Posts-41.xml"
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::save(const Buteo::Profile&)" :Entry
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::writeProfileFile(const QString&, const QDomDocument&)" :Entry
[W] unknown:0 - writeProfileFile() called, forcing disk write: "/home/defaultuser/.local/share/system/privileged/msyncd/sync/nextcloud.Posts-41.xml"
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::writeProfileFile(const QString&, const QDomDocument&)" :Exit, execution time: 0 ms
[D] unknown:0 - "bool Buteo::ProfileManagerPrivate::save(const Buteo::Profile&)" :Exit, execution time: 1 ms
[D] unknown:0 - "QString Buteo::ProfileManager::updateProfile(const Buteo::Profile&)" :Exit, execution time: 2 ms
[D] unknown:0 - "bool Buteo::ProfileManager::setSyncSchedule(QString, QString)" :Exit, execution time: 4 ms
[D] unknown:0 - "void Buteo::Synchronizer::reschedule(const QString&)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 1 ms
[D] unknown:0 - Scheduled sync got disabled for "nextcloud.Posts-41"
[D] unknown:0 - "void Buteo::SyncScheduler::removeProfile(const QString&)" :Entry
[D] unknown:0 - "bool BackgroundSync::remove(const QString&)" :Entry
[D] unknown:0 - "bool BackgroundSync::removeSwitch(const QString&)" :Entry
[D] unknown:0 - "bool BackgroundSync::removeSwitch(const QString&)" :Exit, execution time: 0 ms
[D] unknown:0 - "bool BackgroundSync::remove(const QString&)" :Exit, execution time: 0 ms
[D] unknown:0 - "void Buteo::SyncScheduler::removeProfile(const QString&)" :Exit, execution time: 0 ms
[D] unknown:0 - Synchronizer::getBackUpRestoreState
[D] unknown:0 - "virtual bool Buteo::SyncBackup::getBackUpRestoreState()" :Entry
[D] unknown:0 - "virtual bool Buteo::SyncBackup::getBackUpRestoreState()" :Exit, execution time: 0 ms
[D] unknown:0 - Reschdule profile "nextcloud.Posts-41" 1 false
[D] unknown:0 - "void Buteo::Synchronizer::reschedule(const QString&)" :Exit, execution time: 2 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 4 ms
[D] unknown:0 - Triggering queued profile modification sync for: "carddav.Contacts-41"
[D] unknown:0 - "bool Buteo::Synchronizer::startScheduledSync(QString)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Entry
[D] unknown:0 - "void Buteo::SyncLog::addResults(const Buteo::SyncResults&)" :Exit, execution time: 0 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 3 ms
[D] unknown:0 - "bool Buteo::NetworkManager::isOnline()" :Entry
[D] unknown:0 - "bool Buteo::NetworkManager::isOnline()" :Exit, execution time: 0 ms
[D] unknown:0 - Check if sync is scheduled against "Wed Sep 25 20:55:43 2024"
[D] unknown:0 - Woken up of "carddav.Contacts-41" in a disabled period, not starting sync.
[D] unknown:0 - "bool Buteo::Synchronizer::startScheduledSync(QString)" :Exit, execution time: 4 ms
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 2 ms
[D] unknown:0 - Triggering queued profile modification sync for: "caldav-sync-41"
[D] unknown:0 - "bool Buteo::Synchronizer::startScheduledSync(QString)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Entry
[D] unknown:0 - "Buteo::SyncProfile* Buteo::ProfileManager::syncProfile(const QString&)" :Exit, execution time: 2 ms
[D] unknown:0 - "bool Buteo::NetworkManager::isOnline()" :Entry
[D] unknown:0 - "bool Buteo::NetworkManager::isOnline()" :Exit, execution time: 0 ms

Any idea what else I should do (where to find more info)?

Check for <enabled>false</enabled> in the config:

nano /home/defaultuser/.local/share/system/privileged/msyncd/sync/caldav-sync-41.xml

and change it to:

<enabled>true</enabled>

restart with:

systemctl restart buteo-sync

Maybe it helps.

1 Like

Thx for this idea. Unfortunately it is already

<key name="enabled" value="true"/>

Probably I should start a new post. can’t really find any that seems to fit…

Doesn’t sound like anything related to 10 V. I’d first verify your network with Sailfish Browser (surfing a bit) or wget/curl etc command line options.

1 Like

Check Calendar path. Should be something like /nextcloud/remote.php/dav/calendars/account_name .

1 Like

Well, curl/browsing works (and I checked that before).

.

I was pretty sure I tested it by entering the path manually, allthough I’s also pretty sure, that .well-known config should deal with it, but…

I still can’t get it to work with Nextcloud-Account (still getting the error Server response did not provide user details for specified username.).

However I once again tried with simple caldav/carddav account and the correct path (in my case without the /nextcloud/ prefix, and now suddenly it worked.

I’m quite puzzled of course, as I’m pretty sure I tried that before, but well, it doesn’t matter. It works now!

3 Likes

Ok, it seems to be an issue from time to time. Currently I get the same message on trying to refresh the subscribed calendars. Sync still works though.