Skip to content

Rsync group permission on folder #38

@pbitzer

Description

@pbitzer

Error: Exit code 23 - rsync: chgrp "/var/www/hamma.dev/public_html/latest/." failed: Operation not permitted (1)

Root Cause:

  • The target directory /var/www/hamma.dev/public_html/latest is owned by monitor:html_write (775 permissions)
  • The pi user is a member of the html_write group, but does not own the directory
  • When rsync runs with -avz (archive mode), it attempts to preserve group ownership on all transferred items including the directory itself (.)
  • Non-owners cannot change group ownership on directories, even if they're members of the target group

Impact:

  • Files ARE being transferred (rsync continues despite the error)
  • The error is specifically about setting metadata on the directory itself, not the files
  • Exit code 23 means "some files/attrs were not transferred" - in this case just the directory metadata
  • The plugin logs this at INFO level as "Rsync failure" but continues operation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions