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

Permission errors on files without write permissions #629

Open
pdagosto opened this issue Aug 14, 2024 · 2 comments
Open

Permission errors on files without write permissions #629

pdagosto opened this issue Aug 14, 2024 · 2 comments

Comments

@pdagosto
Copy link

rsync version 3.1.2 protocol version 31 CentOS 7.9.2009

rsync is producing Permission errors at the destination for files with 544 permissions:

2024/07/31 21:07:36 [15453] rsync: recv_generator: failed to stat "/panzura/MiSeq/230929_M06717_0137_000000000-KYLRM/Thumbnail_Images/L001/C54.1/s_1_2117_c.jpg": Permission denied (13)
2024/07/31 21:07:36 [15453] rsync: close failed on "/panzura/MiSeq/230929_M06717_0137_000000000-KYLRM/Thumbnail_Images/L001/C533.1/.s_1_1104_t.jpg.5dffqa": Permission denied (13)

/panzura/MiSeq/230929_M06717_0137_000000000-KYLRM/Thumbnail_Images/L001/C54.1/s_1_2117_c.jpg

does exist

ll /panzura/MiSeq/230929_M06717_0137_000000000-KYLRM/Thumbnail_Images/L001/C54.1/s_1_2117_c.jpg
-r-xr--r-- 1 mpsdata mpsdata 75484 Sep 29  2023 /panzura/MiSeq/230929_M06717_0137_000000000-KYLRM/Thumbnail_Images/L001/C54.1/s_1_2117_c.jpg

/panzura/MiSeq/230929_M06717_0137_000000000KYLRM/Thumbnail_Images/L001/C533.1/.s_1_1104_t.jpg.5dffqa

does not. On the source side there is a file with a related name:

mpsdata@glampsdata01 RsyncLogs]$ ll -a /data/mpsdata/MiSeq/230929_M06717_0137_000000000-KYLRM/Thumbnail_Images/L001/C533.1/s_1_1104_t.jpg
-r-xr--r-- 1 mpsdata mpsdata 71498 Oct  1  2023 /data/mpsdata/MiSeq/230929_M06717_0137_000000000-KYLRM/Thumbnail_Images/L001/C533.1/s_1_1104_t.jpg

so the file on the destination side seems to be a temporary file created by rsync in the process of synchronizing the directory tree.

The common thread of these two errors seems to be the 544 permissions meaning the user running the rsync process does not have write permissions on the file. However, many other similiar files were synchronized to the destination without error.

I have not been able to find any known bug in rsync that would account for this.

We are unable to update the rsync version since CentOS is no longer being supported and there doesn't seem to be a package for later versions than 3.1.2 for that OS.

@realsimix
Copy link

Is the destination filesystem local or on some kind of NAS? Are directory permissions okay, do they allow access?

@pdagosto
Copy link
Author

No its a remote system mounted by NFS. The directory permissions do allow writing by the user account running the rsync job.

I do notice a lot of interruptions to the connection to the remote destination in /var/log/messages. But shouldn't the temp file still be there if it couldn't be re-named because the permissions changed to 544 before the network interruption?

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

No branches or pull requests

2 participants