Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing errors on folder with don't-Sync setup #193

Open
euneuber opened this issue Mar 1, 2021 · 9 comments
Open

Confusing errors on folder with don't-Sync setup #193

euneuber opened this issue Mar 1, 2021 · 9 comments
Labels

Comments

@euneuber
Copy link

euneuber commented Mar 1, 2021

Steps to reproduce

  1. Create an invisible tag "don't-sync"
  2. Create a workflow rule to deny access if file/folder is tagged by "don't-sync" and user-agent is desktop-client
  3. Tag an existing file "file.md" and an existing folder "dir" with the tag "don't-sync"

Expected behaviour

  • File "file.md" and folder "dir" are removed.
  • No errors are mentioned in error logs.
  • Desktop-Client says success.

Actual behaviour

  • File "file.md" is truncated to length of 1 byte.
  • File "file.md" was not deleted.
  • Folder "dir" was not deleted.
  • Desktop-Client indicator in desktop control bar shows an error for not being able to access "file.md" an folder "dir".
  • File access error is repeated on each sync.
  • Sync seams broken, user is confused!

Server configuration

Operating system: Linux 4.19.0-11-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64

Webserver: Apache/2.4.38 (Debian) (fpm-fcgi)

Database: mysql 10.3.27

PHP version: 7.4.15

Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, msgpack, mysqli, pdo_mysql, pdo_sqlite, apc, posix, readline, shmop, SimpleXML, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Phar, memcached, Zend OPcache

Nextcloud version: 20.0.8 - 20.0.8.1

Updated from an older Nextcloud/ownCloud or fresh install: updated

Where did you install Nextcloud from: tgz from Nextcloud

Signing status:

No errors have been found.

List of activated apps:

Enabled:
 - accessibility: 1.6.0
 - activity: 2.13.4
 - admin_audit: 1.10.0
 - audioplayer: 3.1.0
 - bookmarks: 4.1.0
 - cloud_federation_api: 1.3.0
 - comments: 1.10.0
 - contacts: 3.4.3
 - contactsinteraction: 1.1.0
 - dashboard: 7.0.0
 - dav: 1.16.2
 - deck: 1.2.4
 - documentserver_community: 0.1.9
 - drawio: 0.9.8
 - federatedfilesharing: 1.10.2
 - federation: 1.10.1
 - files: 1.15.0
 - files_accesscontrol: 1.10.2
 - files_downloadactivity: 1.9.0
 - files_pdfviewer: 2.0.1
 - files_rightclick: 0.17.0
 - files_sharing: 1.12.2
 - files_trashbin: 1.10.1
 - files_versions: 1.13.0
 - files_videoplayer: 1.9.0
 - firstrunwizard: 2.9.0
 - forms: 2.1.0
 - logreader: 2.5.0
 - lookup_server_connector: 1.8.0
 - mail: 1.8.3
 - nextcloud_announcements: 1.9.0
 - notifications: 2.8.0
 - oauth2: 1.8.0
 - onlyoffice: 6.3.0
 - password_policy: 1.10.1
 - photos: 1.2.3
 - privacy: 1.4.0
 - provisioning_api: 1.10.0
 - qownnotesapi: 20.9.0
 - quicknotes: 0.6.3
 - recommendations: 0.8.0
 - serverinfo: 1.10.0
 - settings: 1.2.0
 - sharebymail: 1.10.0
 - spreed: 10.1.2
 - support: 1.3.0
 - survey_client: 1.8.0
 - systemtags: 1.10.0
 - tasks: 0.13.6
 - text: 3.1.0
 - theming: 1.11.0
 - twofactor_backupcodes: 1.9.0
 - updatenotification: 1.10.0
 - user_status: 1.0.1
 - viewer: 1.4.0
 - weather_status: 1.0.0
 - workflowengine: 2.2.0
Disabled:
 - analytics
 - bruteforcesettings
 - calendar
 - encryption
 - files_external
 - news
 - phonetrack
 - user_ldap
 - user_usage_report

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.178.30",
            "nextcloud.lin-serv.at"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/nextcloud.lin-serv.at\/",
        "dbtype": "mysql",
        "version": "20.0.8.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "custom_csp_policy": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' data:; media-src *",
        "theme": "",
        "maintenance": false,
        "loglevel": 0,
        "trashbin_retention_obligation": "auto",
        "ldapIgnoreNamingRules": false,
        "appstore.experimental.enabled": true,
        "updater.release.channel": "stable",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "mysql.utf8mb4": true,
        "app_install_overwrite": [
            "githubmergetracker"
        ]
    },
    "apps": {
        "accessibility": {
            "enabled": "yes",
            "installed_version": "1.6.0",
            "types": ""
        },
        "activity": {
            "enabled": "yes",
            "installed_version": "2.13.4",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "logging"
        },
        "analytics": {
            "enabled": "no",
            "installed_version": "3.3.3",
            "types": ""
        },
        "audioplayer": {
            "enabled": "yes",
            "installed_version": "3.1.0",
            "types": "filesystem"
        },
        "backgroundjob": {
            "lastjob": "1529"
        },
        "bookmarks": {
            "enabled": "yes",
            "installed_version": "4.1.0",
            "types": ""
        },
        "bruteforcesettings": {
            "enabled": "no",
            "installed_version": "2.0.1",
            "types": ""
        },
        "calendar": {
            "enabled": "no",
            "installed_version": "2.1.3",
            "types": ""
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "3.4.3",
            "types": "dav"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.1.0",
            "types": "dav"
        },
        "core": {
            "OC_Channel": "stable",
            "backgroundjobs_mode": "cron",
            "enterpriseLogoChecked": "yes",
            "global_cache_gc_lastrun": "1425510340",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1425487751.9614",
            "lastcron": "1614612906",
            "lastupdateResult": "[]",
            "lastupdatedat": "1614612037",
            "moveavatarsdone": "yes",
            "oc.integritycheck.checker": "[]",
            "previewsCleanedUp": "1",
            "public_caldav": "calendar\/share.php",
            "public_calendar": "calendar\/share.php",
            "public_documents": "documents\/public.php",
            "public_files": "files_sharing\/public.php",
            "public_gallery": "gallery\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "remote_caldav": "dav\/appinfo\/v1\/caldav.php",
            "remote_calendar": "dav\/appinfo\/v1\/caldav.php",
            "remote_carddav": "dav\/appinfo\/v1\/carddav.php",
            "remote_contacts": "dav\/appinfo\/v1\/carddav.php",
            "remote_dav": "dav\/appinfo\/v2\/remote.php",
            "remote_files": "dav\/appinfo\/v1\/webdav.php",
            "remote_webdav": "dav\/appinfo\/v1\/webdav.php",
            "repairlegacystoragesdone": "yes",
            "scss.variables": "05dc2b5b3f892ad1bb592b3bf6e825f8",
            "shareapi_allow_public_upload": "yes",
            "shareapi_allow_resharing": "no",
            "theming.variables": "62211496f1f5d805e641d002ce734a09",
            "umgmt_show_backend": "false",
            "umgmt_show_email": "true",
            "umgmt_show_last_login": "true",
            "umgmt_show_storage_location": "true",
            "updater.secret.created": "1614343441",
            "vendor": "nextcloud"
        },
        "dashboard": {
            "enabled": "yes",
            "installed_version": "7.0.0",
            "types": ""
        },
        "dav": {
            "OCA\\DAV\\Migration\\ValueFixInsert_ran": "true",
            "buildCalendarReminderIndex": "yes",
            "buildCalendarSearchIndex": "yes",
            "chunks_migrated": "1",
            "enabled": "yes",
            "installed_version": "1.16.2",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "types": "filesystem"
        },
        "deck": {
            "enabled": "yes",
            "installed_version": "1.2.4",
            "types": "dav"
        },
        "documents": {
            "enabled": "no",
            "installed_version": "0",
            "ocsid": "168711",
            "types": ""
        },
        "documentserver_community": {
            "enabled": "yes",
            "installed_version": "0.1.9",
            "types": "filesystem"
        },
        "drawio": {
            "enabled": "yes",
            "installed_version": "0.9.8",
            "types": "filesystem"
        },
        "external": {
            "enabled": "no",
            "installed_version": "1.2",
            "ocsid": "166046",
            "sites": "***REMOVED SENSITIVE VALUE***",
            "types": ""
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.10.2",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.10.1",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "1.15.0",
            "types": "filesystem"
        },
        "files_accesscontrol": {
            "enabled": "yes",
            "installed_version": "1.10.2",
            "types": "filesystem"
        },
        "files_downloadactivity": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": "filesystem"
        },
        "files_locking": {
            "enabled": "no",
            "installed_version": "",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "2.0.1",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "yes",
            "installed_version": "0.17.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.12.2",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "no",
            "installed_version": "2.8.0",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.10.1",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "types": "filesystem,dav"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": ""
        },
        "files_videoviewer": {
            "enabled": "no",
            "installed_version": "0.1.3",
            "ocsid": "166054",
            "types": ""
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "2.9.0",
            "types": "logging"
        },
        "forms": {
            "enabled": "yes",
            "installed_version": "2.1.0",
            "types": ""
        },
        "gallery": {
            "enabled": "no",
            "installed_version": "18.4.0",
            "types": ""
        },
        "keeweb": {
            "enabled": "no",
            "installed_version": "0.5.1",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.5.0",
            "types": ""
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "authentication"
        },
        "mail": {
            "enabled": "yes",
            "installed_version": "1.8.3",
            "types": ""
        },
        "music": {
            "enabled": "no",
            "installed_version": "0.3.5",
            "types": "filesystem"
        },
        "news": {
            "enabled": "no",
            "installed_version": "5.2.7",
            "ocsid": "168040",
            "types": ""
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.8.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "types": "authentication"
        },
        "ojsxc": {
            "boshUrl": "\/http-bind\/",
            "enabled": "no",
            "iceCredential": "numb0owncloud",
            "iceSecret": "",
            "iceTtl": "",
            "iceUrl": "numb.viagenie.ca",
            "iceUsername": "[email protected]",
            "installed_version": "1.1.0",
            "ocsid": "162257",
            "types": "",
            "xmppDomain": "info.lin-serv.at",
            "xmppOverwrite": "false",
            "xmppResource": ""
        },
        "onlyoffice": {
            "DocumentServerInternalUrl": "",
            "DocumentServerUrl": "https:\/\/nextcloud.lin-serv.at\/index.php\/apps\/documentserver_community\/",
            "StorageUrl": "",
            "defFormats": "{\"doc\":true,\"docx\":true,\"odp\":true,\"ods\":true,\"odt\":true,\"ppt\":true,\"pptx\":true,\"xls\":true,\"xlsx\":true}",
            "demo": "{\"available\":true,\"enabled\":false,\"start\":{\"date\":\"2020-03-12 21:04:07.536020\",\"timezone_type\":3,\"timezone\":\"UTC\"}}",
            "editFormats": "{\"csv\":true,\"docx\":true,\"odp\":true,\"ods\":true,\"odt\":true,\"pptx\":true,\"rtf\":true,\"txt\":true,\"xlsx\":true}",
            "enabled": "yes",
            "installed_version": "6.3.0",
            "jwt_secret": "",
            "sameTab": "true",
            "types": "filesystem"
        },
        "ownnote": {
            "enabled": "no",
            "installed_version": "1.08",
            "types": ""
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "1.10.1",
            "types": "authentication"
        },
        "phonetrack": {
            "enabled": "no",
            "installed_version": "0.6.7",
            "types": ""
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "1.2.3",
            "types": ""
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "readableLocation": "at",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "prevent_group_restriction"
        },
        "qownnotesapi": {
            "enabled": "yes",
            "installed_version": "20.9.0",
            "types": ""
        },
        "quicknotes": {
            "enabled": "yes",
            "installed_version": "0.6.3",
            "types": ""
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "0.8.0",
            "types": ""
        },
        "search_lucene": {
            "enabled": "no",
            "installed_version": "0.6.0",
            "ocsid": "168709",
            "types": "filesystem"
        },
        "serverinfo": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": ""
        },
        "settings": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "sendpasswordmail": "no",
            "types": "filesystem"
        },
        "spreed": {
            "enabled": "yes",
            "has_reference_id": "yes",
            "installed_version": "10.1.2",
            "project_access_invalidated": "1",
            "stun_servers": "***REMOVED SENSITIVE VALUE***",
            "types": "dav,prevent_group_restriction"
        },
        "spreedme": {
            "enabled": "no",
            "installed_version": "0.1.4",
            "ocsid": "174436",
            "types": ""
        },
        "support": {
            "SwitchUpdaterServerHasRun": "yes",
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "session"
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "1.8.0",
            "last_report": "{\"id\":\"oc0h3jcitg8s\",\"items\":[[\"server\",\"version\",\"20.0.6.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"none\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"7.4.14\"],[\"php\",\"memory_limit\",-1],[\"php\",\"max_execution_time\",0],[\"php\",\"upload_max_filesize\",2097152],[\"database\",\"type\",\"mysql\"],[\"database\",\"version\",\"10.3.27\"],[\"database\",\"size\",27541504],[\"apps\",\"accessibility\",\"1.6.0\"],[\"apps\",\"activity\",\"2.13.4\"],[\"apps\",\"admin_audit\",\"1.10.0\"],[\"apps\",\"analytics\",\"3.2.0\"],[\"apps\",\"audioplayer\",\"disabled\"],[\"apps\",\"bookmarks\",\"4.0.8\"],[\"apps\",\"bruteforcesettings\",\"disabled\"],[\"apps\",\"calendar\",\"disabled\"],[\"apps\",\"cloud_federation_api\",\"1.3.0\"],[\"apps\",\"comments\",\"1.10.0\"],[\"apps\",\"contacts\",\"3.4.3\"],[\"apps\",\"contactsinteraction\",\"1.1.0\"],[\"apps\",\"dashboard\",\"7.0.0\"],[\"apps\",\"dav\",\"1.16.2\"],[\"apps\",\"deck\",\"1.2.3\"],[\"apps\",\"documents\",\"disabled\"],[\"apps\",\"documentserver_community\",\"0.1.8\"],[\"apps\",\"drawio\",\"0.9.8\"],[\"apps\",\"external\",\"disabled\"],[\"apps\",\"federatedfilesharing\",\"1.10.2\"],[\"apps\",\"federation\",\"1.10.1\"],[\"apps\",\"files\",\"1.15.0\"],[\"apps\",\"files_downloadactivity\",\"disabled\"],[\"apps\",\"files_locking\",\"disabled\"],[\"apps\",\"files_pdfviewer\",\"2.0.1\"],[\"apps\",\"files_rightclick\",\"0.17.0\"],[\"apps\",\"files_sharing\",\"1.12.2\"],[\"apps\",\"files_texteditor\",\"disabled\"],[\"apps\",\"files_trashbin\",\"1.10.1\"],[\"apps\",\"files_versions\",\"1.13.0\"],[\"apps\",\"files_videoplayer\",\"1.9.0\"],[\"apps\",\"files_videoviewer\",\"disabled\"],[\"apps\",\"firstrunwizard\",\"2.9.0\"],[\"apps\",\"forms\",\"2.1.0\"],[\"apps\",\"gallery\",\"disabled\"],[\"apps\",\"keeweb\",\"disabled\"],[\"apps\",\"logreader\",\"2.5.0\"],[\"apps\",\"lookup_server_connector\",\"1.8.0\"],[\"apps\",\"mail\",\"1.8.0\"],[\"apps\",\"music\",\"disabled\"],[\"apps\",\"news\",\"disabled\"],[\"apps\",\"nextcloud_announcements\",\"1.9.0\"],[\"apps\",\"notifications\",\"2.8.0\"],[\"apps\",\"oauth2\",\"1.8.0\"],[\"apps\",\"ojsxc\",\"disabled\"],[\"apps\",\"onlyoffice\",\"6.2.0\"],[\"apps\",\"ownnote\",\"disabled\"],[\"apps\",\"password_policy\",\"1.10.1\"],[\"apps\",\"phonetrack\",\"disabled\"],[\"apps\",\"photos\",\"1.2.3\"],[\"apps\",\"privacy\",\"1.4.0\"],[\"apps\",\"provisioning_api\",\"1.10.0\"],[\"apps\",\"qownnotesapi\",\"20.9.0\"],[\"apps\",\"quicknotes\",\"0.6.3\"],[\"apps\",\"recommendations\",\"0.8.0\"],[\"apps\",\"search_lucene\",\"disabled\"],[\"apps\",\"serverinfo\",\"1.10.0\"],[\"apps\",\"settings\",\"1.2.0\"],[\"apps\",\"sharebymail\",\"1.10.0\"],[\"apps\",\"spreed\",\"disabled\"],[\"apps\",\"spreedme\",\"disabled\"],[\"apps\",\"support\",\"1.3.0\"],[\"apps\",\"survey_client\",\"1.8.0\"],[\"apps\",\"systemtags\",\"1.10.0\"],[\"apps\",\"tasks\",\"0.13.6\"],[\"apps\",\"templateeditor\",\"disabled\"],[\"apps\",\"text\",\"3.1.0\"],[\"apps\",\"theming\",\"1.11.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.9.0\"],[\"apps\",\"updatenotification\",\"1.10.0\"],[\"apps\",\"updater\",\"disabled\"],[\"apps\",\"user_ldap\",\"disabled\"],[\"apps\",\"user_status\",\"1.0.1\"],[\"apps\",\"user_usage_report\",\"disabled\"],[\"apps\",\"viewer\",\"1.4.0\"],[\"apps\",\"weather_status\",\"1.0.0\"],[\"apps\",\"workflowengine\",\"2.2.0\"],[\"stats\",\"num_files\",48017],[\"stats\",\"num_users\",6],[\"stats\",\"num_storages\",26],[\"stats\",\"num_storages_local\",3],[\"stats\",\"num_storages_home\",6],[\"stats\",\"num_storages_other\",17],[\"stats\",\"num_comments\",3],[\"stats\",\"num_comment_markers\",0],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",17],[\"files_sharing\",\"num_shares_user\",16],[\"files_sharing\",\"num_shares_groups\",0],[\"files_sharing\",\"num_shares_link\",1],[\"files_sharing\",\"num_shares_link_no_password\",1],[\"files_sharing\",\"num_fed_shares_sent\",0],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_0_1\",\"4\"],[\"files_sharing\",\"permissions_0_15\",\"8\"],[\"files_sharing\",\"permissions_3_17\",\"1\"],[\"files_sharing\",\"permissions_0_31\",\"4\"],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"no\"]]}",
            "last_sent": "1613337908",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "logging"
        },
        "tasks": {
            "enabled": "yes",
            "installed_version": "0.13.6",
            "types": ""
        },
        "templateeditor": {
            "enabled": "no",
            "installed_version": "0.2",
            "types": ""
        },
        "text": {
            "enabled": "yes",
            "installed_version": "3.1.0",
            "types": "dav"
        },
        "theming": {
            "cachebuster": "8",
            "enabled": "yes",
            "installed_version": "1.11.0",
            "types": "logging"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": ""
        },
        "updatenotification": {
            "analytics": "3.3.3",
            "audioplayer": "2.13.1",
            "bookmarks": "4.1.0",
            "calendar": "2.0.4",
            "contacts": "3.4.3",
            "core": "20.0.8.1",
            "deck": "1.2.4",
            "documentserver_community": "0.1.9",
            "drawio": "0.9.8",
            "enabled": "yes",
            "files_pdfviewer": "1.1.2",
            "files_rightclick": "0.15.1",
            "forms": "2.1.0",
            "installed_version": "1.10.0",
            "keeweb": "0.3.1",
            "mail": "1.8.0",
            "onlyoffice": "6.3.0",
            "phonetrack": "0.6.4",
            "qownnotesapi": "20.9.0",
            "quicknotes": "0.6.3",
            "spreed": "9.0.6",
            "tasks": "0.13.6",
            "types": "",
            "update_check_errors": "0",
            "user_usage_report": "1.2.3"
        },
        "updater": {
            "enabled": "no",
            "installed_version": "0.6",
            "types": ""
        },
        "user_ldap": {
            "cleanUpJobOffset": "0",
            "enabled": "no",
            "has_memberof_filter_support": "0",
            "home_folder_naming_rule": "",
            "installed_version": "0.7.0",
            "last_jpegPhoto_lookup": "0",
            "ldap_agent_password": "***REMOVED SENSITIVE VALUE***",
            "ldap_attributes_for_group_search": "",
            "ldap_attributes_for_user_search": "",
            "ldap_backup_host": "",
            "ldap_backup_port": "",
            "ldap_base": "dc=info,dc=lin-serv,dc=at",
            "ldap_base_groups": "dc=info,dc=lin-serv,dc=at",
            "ldap_base_users": "dc=info,dc=lin-serv,dc=at",
            "ldap_cache_ttl": "600",
            "ldap_configuration_active": "1",
            "ldap_display_name": "displayName",
            "ldap_dn": "uid=zarafaservice,dc=info,dc=lin-serv,dc=at",
            "ldap_email_attr": "",
            "ldap_experienced_admin": "0",
            "ldap_expert_username_attr": "",
            "ldap_expert_uuid_group_attr": "",
            "ldap_expert_uuid_user_attr": "",
            "ldap_group_display_name": "cn",
            "ldap_group_filter": "",
            "ldap_group_filter_mode": "0",
            "ldap_group_member_assoc_attribute": "uniqueMember",
            "ldap_groupfilter_groups": "",
            "ldap_groupfilter_objectclass": "",
            "ldap_host": "localhost",
            "ldap_login_filter": "(&(|(objectclass=inetOrgPerson))(uid=%uid))",
            "ldap_login_filter_mode": "0",
            "ldap_loginfilter_attributes": "",
            "ldap_loginfilter_email": "0",
            "ldap_loginfilter_username": "1",
            "ldap_nested_groups": "0",
            "ldap_override_main_server": "",
            "ldap_paging_size": "500",
            "ldap_port": "389",
            "ldap_quota_attr": "",
            "ldap_quota_def": "",
            "ldap_tls": "0",
            "ldap_turn_off_cert_check": "0",
            "ldap_user_filter_mode": "0",
            "ldap_userfilter_groups": "",
            "ldap_userfilter_objectclass": "zarafa-user",
            "ldap_userlist_filter": "(|(objectclass=zarafa-user))",
            "types": "authentication",
            "use_memberof_to_detect_membership": "1"
        },
        "user_status": {
            "enabled": "yes",
            "installed_version": "1.0.1",
            "types": ""
        },
        "user_usage_report": {
            "enabled": "no",
            "installed_version": "1.4.2",
            "types": "filesystem"
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.2.0",
            "types": "filesystem"
        }
    }
}

Are you using external storage, if yes which one: no
Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Desktop-Client Version 3.1.3 (openSuse)

Operating system:

Logs

Nextcloud log (data/owncloud.log)

Browser log

@euneuber
Copy link
Author

euneuber commented Mar 1, 2021

I'm not sure if my issue belongs here or to the Desktop-Client but since it was suggested here: https://help.nextcloud.com/t/administrative-control-to-block-folders-or-files-from-being-syncd-by-clients/29214/12 to use File access control to prevent syncing from the server (not the client!), I post this here.

Our intention is to prevent syncing of some folder/files without any setup on the client side. But since this is a management decision no errors or warnings should ever irritate any brave user.

I'm sure many organizations have such requirements and do not like to increase support calls to their IT department 😄

@nickvergessen
Copy link
Member

File "file.md" and folder "dir" are removed.

This is not the intended way this app works. The designed case is to have it still locally.
What you want can not be done right now

@euneuber
Copy link
Author

euneuber commented Mar 1, 2021

Can we get rid of any errors shown in the desktop client, at least?

@nickvergessen
Copy link
Member

No because for all other cases it's important to know that the sync didn't work

@euneuber
Copy link
Author

euneuber commented Mar 3, 2021

So since errors are not what we can offer to the management, what is the preferred way to prohibit the sync of files/folders from the server side?

@RuudschMaHinda
Copy link
Member

Also error logging on the server side is confusing and spamming logs. I got folders set up as "Archive" to put things into they don't need frequent access to anymore. Move in there, that folder doesn't get synced to hard drives.
grafik
So it is very much expected behaviour on the server side that no sync is happening. But a "Fatal Error" is being logged constantly that someone has not got read permissions if they don't unselect that Archive folder from being downloaded.
grafik

@farhills
Copy link

I would like to joint this issue for a related case of nuisance logging/errors.

I've added a server-side rule to globally ignore nuisance files that are saved in the working directory. AutoCAD creates autosave/restore files [filename].bak, *.dwl and *.dwl2 in the working directory which are constantly written when a file is open, resulting in a ton of sync churn across the whole server and all users. I've added this rule:

image

Logs are now full of 'Error' level access denied log entries. The log entries look like legitimate errors and the presentation of the error in the admin web log viewer doesn't indicate the source of the error without downloading the log and reading the full entry. The error entries all refer to DAV (which I suppose is technically true), but there is no mention of this app as the true source.

image

Preferred Behavior:
Access denied entries for configured rules should be logged at a lower level ('Info' is probably reasonable to enable troubleshooting when creating rules in the app). And preferably, the log entries will have a more meaningful message in the web viewer pointing to the file access control app rule.

@sgiunchi
Copy link

Just a +1. I need to make sure a file is edited in Collabora, while the others are client-synced. I created a file access control rule to deny the sync of that file in the NC Client, but now the client says the sync is in error.

@pieter-groeneweg
Copy link

Same here. A flow set to prevent syncing should NOT trigger an Error. Simply because it isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants