Failing sync related to one share - Call to a member function getPermissions() on array

Nextcloud version (eg, 29.0.5): 29.0.8
Operating system and version (eg, Ubuntu 24.04): Ubuntu 22.04.5 LTS
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 8.3): 8.1.2-1ubuntu2.19

The issue you are facing:

Our Nextcloud Clients on Mac OS refuses any synchronization for about two weeks with a Server Error. The problem is related to one specific WebDav share but stops all activity.

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

Steps to replicate it:

  1. I can’t replicate it. I don’t know what the problem with that specific share is.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"WOzrPJMnmtTDPS7WLKlA","level":3,"time":"2024-10-23T11:07:13+02:00","remoteAddr":"189.6.236.68","user":"Tais","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/Tais/","message":"Call to a member function getPermissions() on array","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.14.1daily (Nextcloud, macos-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"29.0.8.1","exception":{"Exception":"Error","Message":"Call to a member function getPermissions() on array","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","line":106,"function":"getDirectoryContent","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Share20/DefaultShareProvider.php","line":701,"function":"getDirectoryListing","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/lib/private/Share20/Manager.php","line":1250,"function":"getSharesInFolder","class":"OC\\Share20\\DefaultShareProvider","type":"->"},{"function":"OC\\Share20\\{closure}","class":"OC\\Share20\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Share20/Manager.php","line":1259,"function":"array_reduce"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php","line":145,"function":"getSharesInFolder","class":"OC\\Share20\\Manager","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/SharesPlugin.php","line":206,"function":"getSharesFolder","class":"OCA\\DAV\\Connector\\Sabre\\SharesPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"handleGetProperties","class":"OCA\\DAV\\Connector\\Sabre\\SharesPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":61,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":393,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Files/View.php","Line":1529,"message":"Call to a member function getPermissions() on array","exception":[],"CustomMessage":"Call to a member function getPermissions() on array"},"id":"6718c1c52e520"}

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

root@xxx:/var/www/nextcloud/config# more config.php 
<?php
$CONFIG = array (
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '192.168.2.77',
    2 => 'nextcloud',
    3 => 'xxx',
    4 => 'xxx',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '29.0.8.1',
  'overwrite.cli.url' => 'https://xxx.dedyn.io',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud_db_user',
  'dbpassword' => 'xxx',
  'installed' => true,
  'instanceid' => 'oceo4duigoph',
  'upgrade.disable-web' => true,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '1800',
  'log_rotate_size' => '10485760',
  'trashbin_retention_obligation' => 'auto, 60',
  'versions_retention_obligation' => 'auto, 180',
  'activity_expire_days' => '120',
  'simpleSignUpLink.shown' => false,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => 'xx',
  ),
  'default_phone_region' => 'us',
  'logtimezone' => 'Europe/Berlin',
  'htaccess.RewriteBase' => '/',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_from_address' => 'andreas.reiss',
  'mail_domain' => 'reiss-zago.de',
  'mail_smtphost' => 'smtp.1und1.de',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'axxx',
  'mail_smtppassword' => 'xxx',
  'preview_concurrency_new' => '6',
  'preview_concurrency_all' => '12',
  'maintenance' => false,
  'updater.release.channel' => 'stable',
);

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

PASTE HERE

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.