Notes sync failed with self-hosted Nextcloud 26

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 26.0.2
Operating system and version (eg, Ubuntu 20.04): Arch Linux
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.57
PHP version (eg, 7.4): 8.2.2

The issue you are facing:

I’m running a self-hosted installation of Nextcloud. Calendar, Contacts, Tasks, and Talk all work and sync from my phone (Android). But I recently installed the Nextcloud Notes app (v. 4.0.0) and it will not sync, consistently giving a synchronization failed error (complete output below).

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Install Nextcloud Notes.
  2. Add account (my regular calendar, etc. account)
  3. Touch + to add a new note.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'datadirectory' => '/var/lib/nextcloud/data',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
  ),
  'instanceid' => '********',
  'passwordsalt' => '********',
  'secret' => '********',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.my.domain',
    0 => 'calendar.my.domain',
  ),
  'dbtype' => 'pgsql',
  'version' => '26.0.2.1',
  'overwrite.cli.url' => 'https://nextcloud.my.domain',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'myuser',
  'dbpassword' => '********',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
);

Error message on Android:

App Version: 4.0.0
App Version Code: 40000090
App Flavor: fdroid

Files App Version Code: 30250090

---

OS Version: 4.19.110-perf+(a098bfbf1e)
OS API Level: 30
Device: OnePlus8Pro
Manufacturer: OnePlus
Model (and Product): IN2023 (OnePlus8Pro_EEA)

---

java.lang.Exception: {"errorType":"OCP\\Files\\NotPermittedException"}

	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:158)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:94)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:923)
java.lang.Exception: {"errorType":"OCP\\Files\\NotPermittedException"}
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.pushLocalChanges(NotesServerSyncTask.java:158)
	at it.niedermann.owncloud.notes.persistence.NotesServerSyncTask.run(NotesServerSyncTask.java:94)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:923)

Hello and welcome to the community support forum :wave:

Did you already have a look at the logs of your sever? The Android log says, your server responded with “Nor permitted”, so it obviously can’t show any notes. The question is: Why does your server think you are not permitted?

Please remove any sensitive data and then post your server logs.

Kind regards

That’s the strange thing. I don’t see anything in the server logs. And tailing the logs with journalctl -f shows nothing when I try and fail to sync. The Apache logs also show nothing. I was hoping to see something in /var/log/nextcloud, but that directory is empty.