LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-04-2017, 09:50 AM   #1
linuxious
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Rep: Reputation: Disabled
Rsync issue: some files/attrs were not transferred


(I turn the whole internet upside down for the past 20 hours, none of the similar threads helped)

This is between two debian(from) and ubuntu(to) servers moving files from one machine to a remote machine.

Yesterday I tried to move over 1.5 TB folder from my old server to a new one. I was advised to use rsync command. I ran the command like this.

Code:
sudo rsync -zvh -e ssh —progress /my/old/server/from/ root@123.123.123.123:/my/new/server/to/
First time it was going just fine and after a minute I accidentally stopped the process by ctrl+c . Now whenever I execute the command again, it doesnt work and tells me:

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
 
Old 10-04-2017, 11:08 AM   #2
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
This is more than likely due to permissions. I have the same issue with my gnupg keys but have not solved it - it just started. I'll see if I can find a solution and post back if I find something that works.

You can see the file(s) that are having issues with
Code:
rsync -anq
and use the source and destination you normally would. It will just show you what wasn't copied.

Last edited by sevendogsbsd; 10-04-2017 at 11:10 AM.
 
Old 10-04-2017, 12:00 PM   #3
linuxious
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
@sevendogsbsd thanks for taking the time bud, I desperately need to make this work searched the whole web and no one has ever found a solution for it.

I wanted to use SCP but not sure why after a few minutes it slows down so I turned to rsync and this one is playing up wired.

The command you mentioned, I ran it, just some help tips and commands came up, nothing about the files it had issues copying.
 
Old 10-04-2017, 12:42 PM   #4
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
No worries, happy to help - in my case, it is refusing to copy a file in my .gnupg directory and I get the exact error message you do. I don't have a solution but was hoping the commands would at least show what wasn't being copied.
 
Old 10-04-2017, 01:05 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,786

Rep: Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215
Error 23 is "Too many open files in system". That's a system limit, not a per-process limit, and makes very little sense in this situation. rsync just doesn't keep a lot of files open except, perhaps, in the case of an unconscionably deep directory structure.
 
Old 10-04-2017, 01:10 PM   #6
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Quote:
Originally Posted by rknichols View Post
Error 23 is "Too many open files in system". That's a system limit, not a per-process limit, and makes very little sense in this situation. rsync just doesn't keep a lot of files open except, perhaps, in the case of an unconscionably deep directory structure.
Interesting - I am getting this error on a workstation for a single file. Could the error also be generated if that one file is open?
 
Old 10-04-2017, 01:20 PM   #7
linuxious
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rknichols View Post
Error 23 is "Too many open files in system". That's a system limit, not a per-process limit, and makes very little sense in this situation. rsync just doesn't keep a lot of files open except, perhaps, in the case of an unconscionably deep directory structure.
Appreciate the message.

The server I am migrating the data from, is a 12 TB server with RAID5 I think. and it is almost full I managed to make 30 gigabytes free so not sure if this is causing issues.

The problem is rsync fails to run on a specific folder with mkv and mp4 files in it but it has no issue transferring another folder with some other video files but with the folder that it goes on with transferring, the transfer speed slows down step by step from 80MB/s to 100KB/s.

The target server is a 16TB and I have set RAID0 to the server.

I am migrating from OVH to Online.net
 
Old 10-04-2017, 05:02 PM   #8
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
Probably won't work, but try adding "--delete" option to rsync. Without it, it will NOT delete files which don't exist in the source. Maybe something weird got left over when you interrupted things before.

In my case, this gave me a problem when I had switched a symlink to an actual folder with the same name (or vice versa, I don't remember). With the "--delete" option, this would be no problem. rsync deletes the symlink first, then creates the desired folder...no conflicts. But without the "--delete" option, it leaves the symlink there and then bombs when it tries to create the folder with the same name...or something like that. I don't remember precisely what.
 
Old 10-05-2017, 11:58 AM   #9
kjsubbu
Member
 
Registered: Apr 2003
Location: india
Posts: 73

Rep: Reputation: 15
use lsysnc command .. rsync may not help for transferring huge files and more likely auto resume..
 
Old 10-05-2017, 12:37 PM   #10
linuxious
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by kjsubbu View Post
use lsysnc command .. rsync may not help for transferring huge files and more likely auto resume..
I heard exactly the opposite.

Anyways I found the issue, My destination server had RAID0 and it even cause the server some software issues like not rebooting when I executed the reboot command. I reconfigured that server with RAID5 and wallah
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LVM issue with transferred disks herkalurk CentOS 6 09-18-2016 12:41 AM
Rsync error 23: some files were not transferred iFunction Linux - Newbie 6 02-05-2016 10:14 AM
[SOLVED] Rsync issue with files with spaces. Mortuus Linux - Newbie 7 09-01-2010 12:24 PM
rsync --files-from issue (v2.6.9) qwertywin Linux - Software 1 08-06-2008 02:06 PM
performance issue: rsync sends existing files microtim Linux - Networking 1 12-02-2004 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration