Bobcares

Rsync error code 23 – How we sort it out?

by | Oct 12, 2019

Rsync error: some files could not be transferred (code 23).

Got this error message and looking for a fix? Basically, the rsync error code 23 denotes ‘partial transfer due to error’. This happens due to file permission problems. At Bobcares, we often get requests to fix rsync errors, as a part of our Server Management Services. Today, let’s see how our Support Engineers fix the rsync error 23 for our customers.

Overview
  1. What does rsync error code 23 mean?
  2. What Causes the Error?
  3. How we fix rsync error code 23?
  4. Conclusion

What does rsync error code 23 mean?

Rsync stands for remote sync. Actually, Rsync is a fast, flexible and secure file synchronization tool. But in many situations, the file transfer via Rsync ends up in errors. Usually, the error code 23 denotes a partial transfer. This code does not provide the reason for the incomplete transfer.

So, the error code 23 is basically a status code denoting an incomplete file transfer. The reason for this can be permission denial, input/output errors, typos in rsync command and so on. A typical error shows up as:

What Causes the Error?

Common Causes of Rsync Error Code 23:

  • Permissions Issue: Rsync lacks read/write permissions on files. Ensure the user has the needed permissions.
  • File Not Found: Rsync can’t locate some files, often due to outdated paths. Confirm all source files exist.
  • Symbolic Links or Special Files: Issues arise if rsync handles links or device files unsupported by the destination. Use -L for links.
  • Insufficient Space: Not enough space on the destination drive. Check disk capacity.
  • Filename Length: Long filenames may be unsupported. Shorten file names if needed.
  • Files in Use: Files locked by other applications can cause issues. Stop the application or add –ignore-errors.
  • Network Issues: Network drops during remote transfers can interrupt rsync.
  • File System Issues: Corrupted files can block transfers. Run a disk check (e.g., fsck on Linux).

How we fix rsync error code 23?

The Dedicated Engineers at Bobcares debug and fix rsync errors for our customers. Now let’s see a few situations were our customers got the rsync error code 23.

1. Error code 23 due to permission denial

In the first instance, a customer executed a rsync command to transfer files within his system. Here the command was:

rsync -avz /home/user_name /home/guest/backup

But, this command ended up in error code 23. Our Support Engineers re-executed the rsync command with -av options. Then we got an error message:

rsync: link_stat "xxxx/xxxxx/xxx" failed: Permission denied (13).

So, the partial file transfer was because of the permission denied error. Hence we fixed the permissions of the files and folders to resolve the error.

2. To find the files that are not transferred

Again, one of the major challenges in failed Rsync transfer is to find the files that didn’t transfer. To overcome this problem, users always monitor the rsync operations by executing the command:

rsync -av --progress

Usually, this command gives an entire terminal output along with the errors. The rsync operation ends up in error code 23. But, from a large number of output lines, it may be difficult to find the reason for error code 23. In this situation, our Support Engineers execute the rsync command again with option-n.

Basically, the option-n denotes dry run, that is, it performs a trial run with no changes made. Thus we could actually see the files that are not transferred. And we could fix errors with these files. A snippet from one of our servers :

root@awsxxx:~# rsync -azhv -e "ssh -p 2212" --dry-run /home/bobcares/test_200719 --delete-after --dry-run root@5x.136.xxx.121:/home/bobcares/test_200719
building file list ... done
created directory /home/bobcares/test_200719
test_200719/
test_200719/test
sent 79 bytes received 70 bytes 298.00 bytes/sec total size is 0 speedup is 0.00 (DRY RUN).

Similarly, we could also use the option-q to suppress non-error messages. Finally, we also make sure that typos in the rsync command do not cause the error.

[Still having trouble in fixing rsync errors? – We’ll fix it for you.]

Conclusion

In short, the rsync error code 23 denotes partial transfer due to error. The error can be anything from typos in the rsync command to permission denial of files. Today, we saw how our Support Engineers sort out the error code 23.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF