Sync gnome (Nautilus, Calendar), can't connect to nextcloud

Nextcloud version (eg, 20.0.5): 23.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): reverse proxy: Nginx 1.21.6 (dockerized with jwilder/nginx-proxy), then apache 2.4.53-1 in the docker nextcloud
PHP version (eg, 7.4): 8.0.18

The issue you are facing:

This was working two weeks ago:
I have my nextcloud account configured in my computer who runs Manjaro Linux with Gnome 41 (with some parts in Gnome 42).
Suddenly the directory cannot be mounted and my calendars will not sync.
What happened in the middle (since it was working to now) is:

This is not working there, but it works on the nextcloud client on iOS and nextcloud client on macOS.

Some things I tried without success:

  • remove/re-add the account
  • create a clean user and try to add the account there
  • install a fresh nextcloud on the server, to see if something in my configuration is damaged

Any help?

Thanks!

EDIT: Since the log had a bunch of unauthorized access, I tried to recreate accounts with app token/regular password. Still same result.

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

Steps to replicate it:

  1. add account to gnome account
  2. try to open the nextcloud directory on nautilus, or try to sync a calendar

The output of your Nextcloud log in Admin > Logging:

There is no output when I try to make the connection (all events are hours before) 

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'passwordsalt' => 'SECREY',
  'secret' => 'SECREY',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.mydomain.eu',
  ),
  'trusted_proxies' =>
  array (
    0 => 'SOMEIP',
  ),
  'trusted_hosts' =>
  array (
    0 => 'mydomain.eu',
    1 => '127.0.0.1',
    2 => 'SOMEIP',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '23.0.3.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'mariadb',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'instanceid' => 'AN_ID',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'SECRET',
  'installed' => true,
  'updater.release.channel' => 'stable',
  'loglevel' => 2,
  'maintenance' => false,
  'default_phone_region' => 'FR',
  'overridehost' => 'mydoman.eu',
  'overwriteprotocol' => 'https',
  'mail_from_address' => 'username',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'mydomain.eu',
  'mail_smtphost' => 'mail.mydomain.eu',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'user@mydomain.eu',
  'mail_smtppassword' => 'SECRET',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
);
~                     

The output of your Apache/nginx/system log in /var/log/____:

nextcloud    | 88.122.168.83 - - [29/Apr/2022:10:57:36 +0000] "GET /remote.php/webdav/ HTTP/1.1" 401 1715 "-" "-"
nextcloud    | 88.122.168.83 - estebanlm [29/Apr/2022:10:57:36 +0000] "GET /remote.php/webdav/ HTTP/1.1" 200 1480 "-" "-"
nextcloud    | 88.122.168.83 - - [29/Apr/2022:10:57:42 +0000] "OPTIONS /remote.php/webdav HTTP/1.1" 401 1721 "-" "gvfs/1.50.0"
nextcloud    | 88.122.168.83 - estebanlm [29/Apr/2022:10:57:42 +0000] "OPTIONS /remote.php/webdav HTTP/1.1" 401 1082 "-" "gvfs/1.50.0"
nextcloud    | 88.122.168.83 - estebanlm [29/Apr/2022:10:58:53 +0000] "OPTIONS /remote.php/webdav HTTP/1.1" 200 811 "-" "gvfs/1.50.0"
nextcloud    | 88.122.168.83 - estebanlm [29/Apr/2022:10:58:53 +0000] "PROPFIND /remote.php/webdav HTTP/1.1" 207 3338 "-" "gvfs/1.50.0"
nextcloud    | 88.122.168.83 - estebanlm [29/Apr/2022:10:58:53 +0000] "OPTIONS /remote.php/ HTTP/1.1" 404 3335 "-" "gvfs/1.50.0"

Uhm… this may be related to this issue: https://forum.manjaro.org/t/nextcloud-mounting-error/108999/2

1 Like

answering my own request, in case someone has the same problem in the future:

This was not a problem of Nextcloud but Manjaro:

after verifying that there was a problem with gvfs package that was preventing directories to sync, I switched to testing branch and installed new gvfs version 1.50.1 which solved the mount directory problem, so I made the educated guess the calendar problem should be solved too, so I updated all packages from testing version and indeed, calendar is working again now :slight_smile:

So, to fix this problem: install testing version (and say hello to gnome 42 :wink:) or wait until testing is moved to stable.