Skip to content

rsync fix for TagManager does not work for SMB mounted data volumes (such as azure-files) #78

@noderat

Description

@noderat

Behaviour

The addition of rsync -a added to resolve #68 does not work if the destination is a mounted SMB (NTFS) filesystem such as when using azure-files storage provider in kubernetes. The destination file system does not support the permissions and results in this error:

Checking Matomo js folder...
rsync: mkstemp "/data/tmp/js/.LICENSE.txt.obalbG" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.README.md.jCIKNJ" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.index.php.hdDMkl" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.piwik.js.jCnmKo" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.piwik.min.js.JpjdoJ" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.tracker.php.iMeeEC" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]

Steps to reproduce this issue

  1. Follow the reproduction steps detailed in TagManager container javascript not regenerated on all replicas in a load balanced environment #68 using a SMB NTFS mounted volume for /data
  2. Inspect container logs.

Expected behaviour

Both replicas (re)generate container javascript on archival and/or on updates to the TagManager container

Actual behaviour

Only one replica (re)generates container javascript

Logs

Checking Matomo js folder...
rsync: mkstemp "/data/tmp/js/.LICENSE.txt.obalbG" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.README.md.jCIKNJ" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.index.php.hdDMkl" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.piwik.js.jCnmKo" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.piwik.min.js.JpjdoJ" failed: Operation not permitted (1)
rsync: mkstemp "/data/tmp/js/.tracker.php.iMeeEC" failed: Operation not permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions