Bobcares

Rsync error code 11 – How we fix it?

by | Oct 14, 2019

Did your daily backup ended up with Rsync error code 11?

The error code description says it’s an error with the file I/O.

Basically, rsync error 11 occurs when the disk space is full or if the system cannot detect the external drive.

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 this rsync error.

 

What is Rsync error code 11?

Rsync is a useful tool in syncing files both locally and remotely. The most common use of Rsync comes during backing up of files. Recently, during a backup operation, one of our customers got an error message. The rsync error message was:

rsync: write failed on "/home/xxxxxx/backup/daily/bandwidth_db.json": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(301) [receiver=3.0.6]
rsync: connection unexpectedly closed (53 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [generator=3.0.6]

This message indicates that there is no space left in the disk to copy some files. So, the basic reason for the termination of the rsync operation was error code 11.

For instance, the error code 11 denotes Error in the file I/O. This is a tricky error. It doesn’t specify the reason for the error. But our Dedicated Engineers with expertise over a decade fixed this error for our customers.

 

How we fix the rsync error 11?

Let’s now check on how we normally fix the rsync error 11.

Basically, the rsync error exit with code 11 when the disk space is full. So, when customers approach us with this error code initially we check for the server disk space.

For instance, we check the disk space of the backup server using the command,

df -h

This command displays the total disk usage in human-readable form. From the results, we found that the /home directory of the user was 100% used. So, when the rsync backup file to it, the user got error 11.

Hence it is necessary to clear, some irrelevant data or adds extra disk space to the server. To analyze disk usage at the directory level, we execute the command,

du -sch *

Here the options used are:

  • -s indicates –summarize which display only a total for each argument.
  • -c produces a grand total of the space used.
  • -h displays the disk space in human-readable form.

After clearing some unwanted data the issue resolved.

Yet another reason for this error is the non-detection of hard disk in the system. In this case, the rsync operation copies all files to RAM. When the RAM is full, users get the error 11.

So, our Support Engineers recommend changing the system configuration. Usually, this involves changing the way that connects the hard drive or disk to the computer. For instance, it requires the hard disk to operate in AHCI mode which can write data at higher speeds.

 

How we prevent disk full errors?

When the root cause itself is 100% disk usage, avoiding such a scenario really helps. That’s why our Dedicated Engineers do the following to prevent Rsync error code 11.

  1. Keep a regular watch on the Rsync progress
  2. Use monitoring scripts to constantly evaluate disk space on the server. Ideally, we set up a script to alert us via email when the free disk space falls below a preset value.
  3. For large migration, we always do it in batches. This would help us to have better tracking.
  4. Systematic cleanup of backups related to already restored data.

 

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

 

Conclusion

In short, rsync error code 11 usually indicates that the disk space is full. Hence, the rsync operation terminates without the complete file transfer. Today, we saw how our Support Engineers fix this error and proactively avoid it.

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