<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: tar - exit code 5 ??? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680046#M52872</link>
    <description>Thank You !&lt;BR /&gt;&lt;BR /&gt;One of files, listed in files.txt (files.txt contains 16823 files), have incorect uid/gid !&lt;BR /&gt;&lt;BR /&gt;Look:&lt;BR /&gt;&lt;BR /&gt;a KSI/archiv/65CILB49000ER1-COP 8477 blocks&lt;BR /&gt;[my comment] 0 - error code&lt;BR /&gt;tar: KSI/archiv/ls.txt: cannot open file&lt;BR /&gt;[my comment] 5 - error code&lt;BR /&gt;&lt;BR /&gt;-rw-rw-rw-   1 ksimail    ksimail    4340120 GRU 17 12:47 /u/ksimail/KSI/archiv/65CILB49000ER1-COP&lt;BR /&gt;&lt;BR /&gt;-rw-------   1 root       sys        10570521 GRU 21 09:47 /u/ksimail/KSI/archiv/ls.txt&lt;BR /&gt;&lt;BR /&gt;This is a problem. This was a problem !&lt;BR /&gt;&lt;BR /&gt;Thx !&lt;BR /&gt;KRI&lt;BR /&gt;</description>
    <pubDate>Mon, 11 Mar 2002 12:11:28 GMT</pubDate>
    <dc:creator>KRI</dc:creator>
    <dc:date>2002-03-11T12:11:28Z</dc:date>
    <item>
      <title>tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680039#M52865</link>
      <description>Hi !&lt;BR /&gt;How can I get detailed error destription about tar exit code 5 ?&lt;BR /&gt;Why my tar cvf /dev/rmt/0mn `cat files.txt` ends with error number 5 ???&lt;BR /&gt;&lt;BR /&gt;Reasons exit(5):&lt;BR /&gt;tar: Cannot change directory to '%s' &lt;BR /&gt;tar: Path '%s' skipped &lt;BR /&gt;tar: cannot open %s &lt;BR /&gt;Missing links to %s &lt;BR /&gt;tar: %s: cannot access file &lt;BR /&gt;tar: Out of memory. Cannot detect symbolic link loops &lt;BR /&gt;tar: Loop of symbolic links detected, tar terminated &lt;BR /&gt;tar: cannot stat %s. Not dumped. &lt;BR /&gt;tar: Size of %s &amp;gt; %s. Not dumped. &lt;BR /&gt;tar: %s: directory read error &lt;BR /&gt;tar: %s: directory read error &lt;BR /&gt;tar: %s: symbolic link too long &lt;BR /&gt;tar: can't read symbolic link &lt;BR /&gt;tar: %s: cannot open file &lt;BR /&gt;tar: %s: link to name too long &lt;BR /&gt;Out of memory. Link information lost &lt;BR /&gt;%s: file changed size &lt;BR /&gt;tar: %s is not a file. Not dumped &lt;BR /&gt;tar: %s: symbolic link failed &lt;BR /&gt;%s: cannot link &lt;BR /&gt;tar: %s couldn't create character device &lt;BR /&gt;tar: %s couldn't create block device &lt;BR /&gt;tar: %s couldn't create fifo &lt;BR /&gt;tar: %s couldn't create directory &lt;BR /&gt;tar: %s couldn't create directory &lt;BR /&gt;tar: %s - cannot create &lt;BR /&gt;tar: chmod failed &lt;BR /&gt;tar: chown failed &lt;BR /&gt;tar: couldn't get uname for uid %d &lt;BR /&gt;tar: couldn't get gname for gid %d &lt;BR /&gt;tar: pwd failed &lt;BR /&gt;tar: %s: pathname too long &lt;BR /&gt;tar: %s: prefix too long &lt;BR /&gt;tar: %s: file name too long &lt;BR /&gt;%s: file name too long &lt;BR /&gt;&lt;BR /&gt;KRI&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2002 10:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680039#M52865</guid>
      <dc:creator>KRI</dc:creator>
      <dc:date>2002-03-11T10:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680040#M52866</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you use command substitution for your tar input, which only works, if the output is a list of files.&lt;BR /&gt;&lt;BR /&gt;try the following command instead:&lt;BR /&gt;&lt;BR /&gt;cd /path_to_desired_directory_whith_file.txt&lt;BR /&gt;&lt;BR /&gt;tar cvf /dev/rmt/0mn file.txt&lt;BR /&gt;&lt;BR /&gt;this should work...&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 11 Mar 2002 10:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680040#M52866</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-03-11T10:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680041#M52867</link>
      <description>Errno 5 is a general I/O error.&lt;BR /&gt;Can you post the output of "cat files.txt"?</description>
      <pubDate>Mon, 11 Mar 2002 11:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680041#M52867</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-03-11T11:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680042#M52868</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;files.txt contains list of files to archive.&lt;BR /&gt;&lt;BR /&gt;I want to find decrtiption about tar exit code 5.&lt;BR /&gt;Example 1:&lt;BR /&gt;&amp;gt; tar cvf /dev/rmt/0mn `cat files.txt`&lt;BR /&gt;:&lt;BR /&gt;a /tmp/AAAa16909.TMP 16291 blocks &lt;BR /&gt;a /tmp/AAAa17203.TMP 811 blocks &lt;BR /&gt;a /tmp/AAAa19393.TMP 308 blocks &lt;BR /&gt;a /tmp/AAAa21440.TMP 811 blocks&lt;BR /&gt;&amp;gt; echo $?&lt;BR /&gt;5&lt;BR /&gt;&lt;BR /&gt;Example 2:&lt;BR /&gt;&amp;gt; tar cvf /dev/null `cat files.txt`&lt;BR /&gt;:&lt;BR /&gt;a /tmp/AAAa16909.TMP 16291 blocks &lt;BR /&gt;a /tmp/AAAa17203.TMP 811 blocks &lt;BR /&gt;a /tmp/AAAa19393.TMP 308 blocks &lt;BR /&gt;a /tmp/AAAa21440.TMP 811 blocks&lt;BR /&gt;&amp;gt; echo $?&lt;BR /&gt;5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What means 5 ???&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;KRI</description>
      <pubDate>Mon, 11 Mar 2002 11:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680042#M52868</guid>
      <dc:creator>KRI</dc:creator>
      <dc:date>2002-03-11T11:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680043#M52869</link>
      <description>Well, if you look in /usr/include/sys/errno.h, you'll find that 5 is the number for EIO (I/O Error)&lt;BR /&gt;&lt;BR /&gt;'man errno' also tells you that EIO is "I/O error - some physical I/O error.  This error may in some cases occur on a call following the one to which it actually applies."&lt;BR /&gt;&lt;BR /&gt;Its a very general error message, though. Is the tar you are getting valid? As in, does "tar xvf &lt;TAR-FILE&gt;" extract the files correctly?                  &lt;BR /&gt;&lt;/TAR-FILE&gt;</description>
      <pubDate>Mon, 11 Mar 2002 11:14:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680043#M52869</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-03-11T11:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680044#M52870</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Tar codes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;exit(0) &lt;BR /&gt;no error &amp;amp; no warning. &lt;BR /&gt;&lt;BR /&gt;exit(1) &lt;BR /&gt;Tar: cannot create temporary file (%s) &lt;BR /&gt;Invalid blocksize. (Max %d) &lt;BR /&gt;tar: blocksize %d too big, can't get memory &lt;BR /&gt;tar:Invalid or non-existent device file %s &lt;BR /&gt;Can only create standard output archives &lt;BR /&gt;tar: cannot open %s &lt;BR /&gt;tar: option not supported for this device %s &lt;BR /&gt;tar: cannot write to %s: write protected &lt;BR /&gt;tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] ...... &lt;BR /&gt;Attempt to create archive of no files. Nothing dumped. &lt;BR /&gt;tar: cannot preserve extent attributes for %s. aborting... &lt;BR /&gt;Tar: cannot create temporary file (%s) &lt;BR /&gt;Invalid blocksize. (Max %d) &lt;BR /&gt;tar: blocksize %d too big, can't get memory &lt;BR /&gt;tar:Invalid or non-existent device file %s &lt;BR /&gt;Can only create standard output archives &lt;BR /&gt;&lt;BR /&gt;exit(2) &lt;BR /&gt;directory checksum error &lt;BR /&gt;tar: %s: HELP - extract write error &lt;BR /&gt;tar: Cannot close %s &lt;BR /&gt;Tar: tape write error &lt;BR /&gt;&lt;BR /&gt;exit(3) &lt;BR /&gt;Tar: tape read error &lt;BR /&gt;Tar: tape blocksize error &lt;BR /&gt;Tar: blocksize = 0; broken pipe? &lt;BR /&gt;Tar: error! blocksize changed &lt;BR /&gt;&lt;BR /&gt;exit(4) &lt;BR /&gt;Tar: tape backspace error &lt;BR /&gt;Tar: ioctl to write filemarks failed (%d). aborting... &lt;BR /&gt;Tar: ioctl to determine device online failed. aborting... &lt;BR /&gt;&lt;BR /&gt;exit(5) &lt;BR /&gt;tar: Cannot change directory to '%s' &lt;BR /&gt;tar: Path '%s' skipped &lt;BR /&gt;tar: cannot open %s &lt;BR /&gt;Missing links to %s &lt;BR /&gt;tar: %s: cannot access file &lt;BR /&gt;tar: Out of memory. Cannot detect symbolic link loops &lt;BR /&gt;tar: Loop of symbolic links detected, tar terminated &lt;BR /&gt;tar: cannot stat %s. Not dumped. &lt;BR /&gt;tar: Size of %s &amp;gt; %s. Not dumped. &lt;BR /&gt;tar: %s: directory read error &lt;BR /&gt;tar: %s: directory read error &lt;BR /&gt;tar: %s: symbolic link too long &lt;BR /&gt;tar: can't read symbolic link &lt;BR /&gt;tar: %s: cannot open file &lt;BR /&gt;tar: %s: link to name too long &lt;BR /&gt;Out of memory. Link information lost &lt;BR /&gt;%s: file changed size &lt;BR /&gt;tar: %s is not a file. Not dumped &lt;BR /&gt;tar: %s: symbolic link failed &lt;BR /&gt;%s: cannot link &lt;BR /&gt;tar: %s couldn't create character device &lt;BR /&gt;tar: %s couldn't create block device &lt;BR /&gt;tar: %s couldn't create fifo &lt;BR /&gt;tar: %s couldn't create directory &lt;BR /&gt;tar: %s couldn't create directory &lt;BR /&gt;tar: %s - cannot create &lt;BR /&gt;tar: chmod failed &lt;BR /&gt;tar: chown failed &lt;BR /&gt;tar: couldn't get uname for uid %d &lt;BR /&gt;tar: couldn't get gname for gid %d &lt;BR /&gt;tar: pwd failed &lt;BR /&gt;tar: %s: pathname too long &lt;BR /&gt;tar: %s: prefix too long &lt;BR /&gt;tar: %s: file name too long &lt;BR /&gt;%s: file name too long &lt;BR /&gt;&lt;BR /&gt;NOTE: exit code is condsidered as 'NONFATAL_ERRCODE' &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Mon, 11 Mar 2002 11:30:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680044#M52870</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-03-11T11:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680045#M52871</link>
      <description>Hi Krzysztof,&lt;BR /&gt;&lt;BR /&gt;is it possible, that the output of your command line is longer than 1024 characters alltogether? This would cause an error like described, because your total lenght of command line is limited!&lt;BR /&gt;&lt;BR /&gt;Check the same command with a shorter input file and see if it works.&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 11 Mar 2002 11:39:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680045#M52871</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-03-11T11:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680046#M52872</link>
      <description>Thank You !&lt;BR /&gt;&lt;BR /&gt;One of files, listed in files.txt (files.txt contains 16823 files), have incorect uid/gid !&lt;BR /&gt;&lt;BR /&gt;Look:&lt;BR /&gt;&lt;BR /&gt;a KSI/archiv/65CILB49000ER1-COP 8477 blocks&lt;BR /&gt;[my comment] 0 - error code&lt;BR /&gt;tar: KSI/archiv/ls.txt: cannot open file&lt;BR /&gt;[my comment] 5 - error code&lt;BR /&gt;&lt;BR /&gt;-rw-rw-rw-   1 ksimail    ksimail    4340120 GRU 17 12:47 /u/ksimail/KSI/archiv/65CILB49000ER1-COP&lt;BR /&gt;&lt;BR /&gt;-rw-------   1 root       sys        10570521 GRU 21 09:47 /u/ksimail/KSI/archiv/ls.txt&lt;BR /&gt;&lt;BR /&gt;This is a problem. This was a problem !&lt;BR /&gt;&lt;BR /&gt;Thx !&lt;BR /&gt;KRI&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2002 12:11:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680046#M52872</guid>
      <dc:creator>KRI</dc:creator>
      <dc:date>2002-03-11T12:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: tar - exit code 5 ???</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680047#M52873</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Incorrect UID/GID&lt;BR /&gt;&lt;BR /&gt;Check you passwd / group files for duplicates.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Mon, 11 Mar 2002 12:23:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tar-exit-code-5/m-p/2680047#M52873</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-03-11T12:23:22Z</dc:date>
    </item>
  </channel>
</rss>

