MacOS Client: Local Folders Permission

Nextcloud version (eg, 20.0.5): 28.0.5
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.59
PHP version (eg, 7.4): 8.1.17
Nextcloud MacOS Desktop app version: 3.13.0
Nextcloud is running as a Proxmox LXC.

The issue you are facing:

New folders that are added to my server (an External storage), have started to be added to my mac with the following permissions:

dr-xr-xr-x 2 macuser staff 64 May 7 23:33 new_folder_name.

This makes the MacOS app show an X and logs the error (folder name redacted from image):

I can fix this by running chmod -R +w * on my Mac, then the client syncs. However, this is happening with every new folder that I’m adding on my External storage item. The username and password on the external storage have not changed and on the Nextcloud server itself I see:

drwxr-xr-x 2 nobody nogroup 23 May 7 17:26 new_folder_name

And on the NAS (Proxmox host), I see this:

drwxr-xr-x 2 nasuser nasuser 23 May 7 10:26 new_folder_name

My External share is set for that user (nasuser).

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

Recently, yes. It started happening within the last few weeks.

Steps to replicate it:

  1. Just adding a new folder on my NAS will cause this to happen on my Mac.

The output of your Nextcloud log in Admin > Logging:
Noting relevant to the Mac app.

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

<?php
$CONFIG = array (

  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'redacted',
    2 => 'redacted',
  ),
  'datadirectory' => '/mnt/nas/nextcloud/user_dirs/',
  'dbtype' => 'mysql',
  'version' => '28.0.5.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'redacted',
  'installed' => true,
  'instanceid' => 'e31f77d244594',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'default_phone_region' => 'US',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'redacteds',
  'mail_domain' => 'gmail.com',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'redacted',
  'mail_smtppassword' => 'redacted',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'check_data_directory_permissions' => false,
  'maintenance_window_start' => 8,
);

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

root@serv01d-Nextcloud /var/log# tail syslog
May  8 14:30:01 serv01d-Nextcloud postfix/cleanup[36240]: 6DCC225EBC: message-id=<20240508143001.6DCC225EBC@nextcloud>
May  8 14:30:01 serv01d-Nextcloud postfix/qmgr[1048]: 6DCC225EBC: from=<www-data@nextcloud>, size=709, nrcpt=1 (queue active)
May  8 14:30:01 serv01d-Nextcloud postfix/local[36242]: 6DCC225EBC: to=<www-data@nextcloud>, orig_to=<www-data>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
May  8 14:30:01 serv01d-Nextcloud postfix/qmgr[1048]: 6DCC225EBC: removed
May  8 14:35:01 serv01d-Nextcloud CRON[36267]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
May  8 14:39:01 serv01d-Nextcloud CRON[36288]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
May  8 14:39:25 serv01d-Nextcloud systemd[1]: Starting Clean php session files...
May  8 14:39:25 serv01d-Nextcloud systemd[1]: phpsessionclean.service: Succeeded.
May  8 14:39:25 serv01d-Nextcloud systemd[1]: Finished Clean php session files.
May  8 14:40:01 serv01d-Nextcloud CRON[36345]: (www-data) CMD (php -f /var/www/nextcloud/cron.php)
root@serv01d-Nextcloud /var/log# tail apache2/error.log
[Wed May 08 00:00:35.684873 2024] [ssl:warn] [pid 392] AH01882: Init: this version of mod_ssl was compiled against a newer library (OpenSSL 1.1.1w  11 Sep 2023 (OpenSSL 1.1.1n  15 Mar 2022), version currently loaded is 0x101010EF) - may result in undefined or erroneous behavior
[Wed May 08 00:00:35.685436 2024] [ssl:warn] [pid 392] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Wed May 08 00:00:35.685496 2024] [ssl:error] [pid 392] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=nextcloud.localdomain / issuer: CN=nextcloud.localdomain / serial: 1B0191C9FE75DF082FB6EDB2C7F61673C0BEDE84 / notbefore: Jun  3 16:03:20 2023 GMT / notafter: Jun  3 16:03:20 2033 GMT]
[Wed May 08 00:00:35.685502 2024] [ssl:error] [pid 392] AH02604: Unable to configure certificate localhost:443:0 for stapling
[Wed May 08 00:00:35.685621 2024] [ssl:warn] [pid 392] AH01909: localhost:12322:0 server certificate does NOT include an ID which matches the server name
[Wed May 08 00:00:35.685662 2024] [ssl:error] [pid 392] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=nextcloud.localdomain / issuer: CN=nextcloud.localdomain / serial: 1B0191C9FE75DF082FB6EDB2C7F61673C0BEDE84 / notbefore: Jun  3 16:03:20 2023 GMT / notafter: Jun  3 16:03:20 2033 GMT]
[Wed May 08 00:00:35.685665 2024] [ssl:error] [pid 392] AH02604: Unable to configure certificate localhost:12322:0 for stapling
[Wed May 08 00:00:35.685709 2024] [mpm_prefork:notice] [pid 392] AH00163: Apache/2.4.59 (Debian) OpenSSL/1.1.1n configured -- resuming normal operations
[Wed May 08 00:00:35.685714 2024] [core:notice] [pid 392] AH00094: Command line: '/usr/sbin/apache2'

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.

Lots of errors like this, but I think this is a different issue:

{
  "reqId": "cs3E5iLBKvxXSlXzlJ7K",
  "level": 3,
  "time": "2024-05-08T06:01:33+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "core",
  "method": "",
  "url": "--",
  "message": "Can't get app storage, app files_external, user not logged in",
  "userAgent": "--",
  "version": "28.0.5.1",
  "data": {
    "app": "core"
  },
  "id": "663b8cb2f01ba"
}