LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-10-2017, 04:50 AM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Rep: Reputation: Disabled
tar - file changed as we read it


mmm... im getting errors when running this command -

cd /vol/cha-work/_ARCHIVE/to_be_archived/audio/robert_test/

tar -cf /vol/cha-archive/audio/after_louise_1606.tar after_louise_1606/

tar: after_louise_1606/renders_from/from_clipster/160922_after_louise_prores422_cont_51_clp_jd: file changed as we read it
tar: after_louise_1606/renders_from/from_clipster: file changed as we read it
tar: after_louise_1606/renders_from: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/161019: file changed as we read it
Attached Thumbnails
Click image for larger version

Name:	tar.PNG
Views:	208
Size:	45.2 KB
ID:	24456  
 
Old 03-10-2017, 05:28 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,969

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
I wouldn't say it was an error. It looks like files were changes during tar, that was reported, and that's all. I think you you need to check if those file were really modified.
 
Old 03-10-2017, 05:46 AM   #3
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
well thats what i thought, its just a warning not an error then it stopped creating the tar -

tar: after_louise_1606/renders_from/from_clipster/160922_after_louise_prores422_cont_51_clp_jd: file changed as we read it
tar: after_louise_1606/renders_from/from_clipster: file changed as we read it
tar: after_louise_1606/renders_from: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/161019: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/reel_5/160804/ No effects guide for SRC check : file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/reel_5/160804: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines/reel_5: file changed as we read it
tar: after_louise_1606/conform_materials/feature/offlines: file changed as we read it
tar: after_louise_1606/conform_materials/feature: file changed as we read it
tar: after_louise_1606/conform_materials: file changed as we read it
tar: after_louise_1606/audio/Continuous Mix: file changed as we read it
tar: after_louise_1606/audio: file changed as we read it
tar: after_louise_1606/renders_for/for_VT/160925_after_louise_prores422_cont_51_clp_iz: file changed as we read it
tar: after_louise_1606/renders_for/for_VT: file changed as we read it
tar: after_louise_1606/renders_for/for_online/161117_after_louise_reel_05_dnx36_rec709_f2l_bl_or/1920x1080: file changed as we read it
tar: after_louise_1606/renders_for/for_online/161117_after_louise_reel_05_dnx36_rec709_f2l_bl_or: file changed as we read it
tar: after_louise_1606/renders_for/for_online: file changed as we read it
tar: after_louise_1606/renders_for: file changed as we read it
tar: after_louise_1606: file changed as we read it
something went wrong with the tar, please do manually
 
Old 03-10-2017, 05:51 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,969

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
how do you think tar can create a tarfile for you if the sources are continuously changing? What is the expected result?
 
Old 03-10-2017, 05:58 AM   #5
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
looks like hasnt been touched -

drwxrwxrwx 12 root cha-work 307 Mar 9 12:34 .
drwxrwxrwx 3 root cha-work 35 Mar 10 09:21 ..
drwxrwxrwx 12 root cha-work 368 Mar 9 11:51 audio
drwxrwxrwx 4 root cha-work 62 Mar 9 11:53 blfx
drwxrwxrwx 4 root cha-work 102 Mar 9 11:04 conform_materials
drwxrwxrwx 4 root cha-work 100 Mar 9 10:34 DCI
-rwxrwxrwx 1 root cha-work 4.0K Mar 9 11:04 ._.DS_Store
-rwxrwxrwx 1 root cha-work 6.1K Mar 9 11:48 .DS_Store
drwxrwxrwx 7 root cha-work 185 Mar 9 11:53 gfx
drwxrwxrwx 5 root cha-work 104 Mar 9 11:52 media
drwxrwxrwx 10 root cha-work 285 Mar 9 12:34 renders_for
drwxrwxrwx 8 root cha-work 182 Mar 9 11:04 renders_from
drwxrwxrwx 2 root cha-work 0 Mar 9 11:53 _temp
drwxrwxrwx 5 root cha-work 168 Mar 9 12:35 _tests
 
Old 03-10-2017, 06:01 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,969

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
sorry, but I do not understand. if it was the directory /vol/cha-work/_ARCHIVE/to_be_archived the times here are irrelevant.
 
Old 03-10-2017, 06:03 AM   #7
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
sorry that ls-lah is for the after_louise_1606/ directory
 
Old 03-10-2017, 09:50 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,969

Rep: Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333Reputation: 7333
still unclear, that output has no real meaning if we do not know anything else about that issue.
 
Old 03-10-2017, 10:39 AM   #9
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
mmm...

looks like its working as i have created a 10gig file using the dd comand and its located in untitledfolder/

tar -cf /vol/cha-archive/audio/untitledfolder.tar untitledfolder/

and that works without any warnings about file changed as we read it

but i cant work it out because the folder after_louise_1606 i know 100% def it is not being written/read to at all so i dont know why its giving me these warnings and then failing on the tar

oh well
 
Old 03-10-2017, 10:45 AM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
You have no background processes, perhaps anti-malware scanners, filesystem checkers or similar, that could be touching files?

If you want to investigate further, you could take a look at inotify.
 
Old 03-10-2017, 11:48 AM   #11
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
what about if i use any of these option with the tar command

--ignore-failed-read

--ignore-command-error
 
Old 03-10-2017, 11:54 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
--warning=no-file-changed might be more relevant. However, I imagine that it would be better, although possibly non-critical, to find out what's actually causing the problem.
 
Old 03-10-2017, 11:56 AM   #13
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
yes exactly work out the real problem why it doesnt do it in the first place but you think if i use that option you provided it will not fail the tar command?
 
Old 03-10-2017, 12:04 PM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by robertkwild View Post
yes exactly work out the real problem why it doesnt do it in the first place but you think if i use that option you provided it will not fail the tar command?
If those are the only warnings that are being generated then tar should work ok (unless, for example, tar decides that it has surpassed a warning limit or that some combination of events is deemed a critical failure).

Give it a go.
 
Old 03-11-2017, 07:42 AM   #15
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
You think its still tarring up those individual files its producing the warning for or it just gives up altogether and fails the whole tar as its producing loads of warnings for individual files?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup Script Using tar - Error "file changed as we read it" 3rods Linux - Software 6 03-08-2014 05:18 AM
Script to find tar archives, read tar file contents, output content to an index file. bluesword1969 Linux - General 4 02-07-2011 12:15 PM
Why My ext3 file system changed to read only chandruk Linux - Software 1 01-11-2006 12:15 PM
tar command : error: file changed as we read it sneezesnoeze Linux - General 2 04-05-2004 06:56 PM
Problem creating tar.gz archive - File changed as we read it doctorwebbox Linux - General 1 02-04-2004 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:44 AM.

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