question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error detail-

Error Info:
error code = 23
cmd ['rsync', '-a', '/Library/LaunchDaemons/', '/Users/sanimkhan/Dropbox/MacPrefsBackup/StartupItems/LaunchDaemons/AllUsers/']
error message:rsync: send_files failed to open "/Library/LaunchDaemons/com.microsoft.teams.TeamsUpdaterDaemon.plist": Permission denied (13)
rsync error: some files could not be transferred (code 23) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/main.c(996) [sender=2.6.9]

Traceback-

  File "/usr/local/bin/macprefs", line 73, in <module>
    main()
  File "/usr/local/bin/macprefs", line 69, in main
    invoke_func(args)
  File "/usr/local/bin/macprefs", line 39, in invoke_func
    args.func()
  File "/usr/local/bin/macprefs", line 17, in backup
    startup_items.backup()
  File "/usr/local/Cellar/macprefs/1.0.26/bin/startup_items.py", line 10, in backup
    backup_system_daemons_agents()
  File "/usr/local/Cellar/macprefs/1.0.26/bin/startup_items.py", line 35, in backup_system_daemons_agents
    copy_dir(source, dest)
  File "/usr/local/Cellar/macprefs/1.0.26/bin/utils.py", line 31, in copy_dir
    execute_shell(command)
  File "/usr/local/Cellar/macprefs/1.0.26/bin/utils.py", line 12, in execute_shell
    cwd=cwd, stderr=STDOUT).strip().decode("utf-8")
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 223, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['rsync', '-a', '/Library/LaunchDaemons/', '/Users/sanimkhan/Dropbox/MacPrefsBackup/StartupItems/LaunchDaemons/AllUsers/']' returned non-zero exit status 23

System detail- macOS Catalina version 10.15.7

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

8reactions
trubesvcommented, Jan 27, 2021

Hello @sanimkhan 😃

I just encountered the same error and stumbled upon your issue while searching for a solution, which I found later:

Following that I just ticked “Terminal” in “Full Disk Access” under “System Preferences > Security & Privacy > Privacy”

Running macprefs backup afterwards performed successfully 🎉

2reactions
trubesvcommented, Jan 27, 2021

@sanimkhan Glad it helped 😃

I think your issue is that you ran it as sudo so only the root user can edit that folder.

You can change this folder ownership with the chowncommand & change its permissions with chmod.

Then you can run macprefs again and it should work 🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rsync error code 23 - How we sort it out? - Bobcares
The rsync error code 23 denotes partial transfer due to error. The error can be anything from typos in rsync command to permission...
Read more >
Rsync Error 23: Can I tell which files were not transferred?
The reason is that the source drive has an error-ful NTFS and I don't have access to a Windows PC to repair the...
Read more >
Comprehensive list of rsync error codes [closed]
The most common rsync errors and their codes? A link to a comprehensive rsync error code page? Most importantly, rsync (at least on...
Read more >
Rsync exit codes - Lxadm.com
List of standard rsync exit codes. This is a list of rsync exit codes (rsync status codes / rsync error codes / rsync...
Read more >
rsync errors out reproducibly on specific files ... - GitHub
rsync errors out reproducibly on specific files - caused by --compress ... returned -3 (224 bytes) rsync error: error in rsync protocol data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found