Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39939 - When untar stage3-x86-20040128.tar.bz2 get jfs_strtoUCS: char2uni returned -22 error
Summary: When untar stage3-x86-20040128.tar.bz2 get jfs_strtoUCS: char2uni returned -2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-30 22:44 UTC by Joe Millenbach
Modified: 2005-05-13 13:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Millenbach 2004-01-30 22:44:16 UTC
Downloaded stage3 from OSU and tried to untar to my JFS root drive.  I noticed an error go by in the filenames...so I tried to redirect stdout to a file.  Then I got the below text (after running "tar -xvjpf stage3-*.tar.bz2>tarout"...

jfs_strtoUCS: char2uni returned -22
charset = iso8859-1, char = 0x99
tar: ./usr/share/doc/kbd-1.08-r4/html/utf/\342\231\252\342\231\254: Cannot open: Invalid argument
tar: Error exit delayed from previous errors

Reproducible: Didn't try
Steps to Reproduce:
1. Boot with 20040128 Live CD
2. Created ext3 boot, a swap, and a jfs root partition
3. mounted root and boot (after creating boot dir on root)
4. used links to download stage3 tarball from OSU's experimental x86 dir to /mnt/gentoo
5. ran "tar -xvjpf stage3-*.tar.bz2>tarout" without quotes

Actual Results:  
Got error listed in description

Expected Results:  
No errors (and correct files in correct places, etc)
Comment 1 Joe Millenbach 2004-02-01 16:28:21 UTC
Also happens with downloaded v1.08-r5 package (when tried to "emerge system").  Downloaded from "http://gentoo.oregonstate.edu/distfiles/kbd-1.08.tar.gz".

This time the error text is...
"...
>>> Unpacking source...
>>> Unpacking kbd-1.08.tar.gz to /var/tmp/portage/kbd-1.08-r5/work
jfs_strtoUCS: iso8859-1, char = 0x99
tar: ./kbd-1.08/doc/utf/\342\231\252\342\231\254: Cannot open: Invalid argument
tar: Error exit delayed from previous errors

!!! ERROR: sys-apps/kbd-1.08-r5 failed.
!!! Function unpack, Line 306, Exitcode 2
!!! failure unpacking kbd-1.08.tar.gz"
Comment 2 Joe Millenbach 2004-02-11 22:29:43 UTC
Still happens with stage1-x86-20040204.tar.bz2 when attempt to run "emerge system" after bootstrap.sh completed.
Comment 3 Benjamin Judas (RETIRED) gentoo-dev 2004-02-12 11:14:07 UTC
See this one on LKML

http://lkml.org/lkml/2004/2/11/105

Will try to set a default NLS next time
Comment 4 Jonathan Heaney 2004-02-16 14:17:24 UTC
I'm getting the same problem as comment #1 with kbd errors on JFS... is there a temporary work-around for this?
Comment 5 John Davis (zhen) (RETIRED) gentoo-dev 2004-03-04 22:58:45 UTC
beejay, was this taken care of?
Comment 6 Gabe Martin 2004-03-15 09:06:44 UTC
I am still getting same error message as Comment #1.  I am very new to Linux (and Gentoo) and was following the gentoo installation handbook from stage 1.  It had said that using any filesystem would work, although this appears to be a file system bug (jfs).  It would be nice if we could fix this bug or update the gentoo installation handbook (http://www.gentoo.org/doc/en/handbook/handbook.xml?part=1&chap=4#doc_chap9) so as to not recommend using the JFS for the / mount point.
Comment 7 Michael K 2004-03-30 14:14:02 UTC
Is this *ever* going to be fixed???

Can we get SOME kind of work around, or something? I'm using JFS for a reason.
Comment 8 steve 2004-04-04 21:55:47 UTC
KBD also fails on stage-2 installs when using the JFS FS with both universal and minimal live CDs and with a variety of errors.
see these forum post for more details:
http://forums.gentoo.org/viewtopic.php?t=153261
http://forums.gentoo.org/viewtopic.php?t=135070
http://forums.gentoo.org/viewtopic.php?t=157494
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-14 13:17:02 UTC
So this is still an issue with 2004.1?
Comment 10 John Davis (zhen) (RETIRED) gentoo-dev 2004-06-13 20:40:57 UTC
let me try and dig up some extra hardware to test this on ...
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-14 05:55:43 UTC
Is this even an issue if you use the CD in http://dev.gentoo.org/~wolf31o2/releng to boot from?  Since those JFS fixes were made a while back (February), I would think they had made it into our kernel tree.  Not to mention, we have a default NLS set.
Comment 12 Joe Millenbach 2004-06-15 15:56:05 UTC
Still happens when unpacking as initially described (I assume it will in the second case I listed below too).  I just tested with 2004.1 minimal CD and the current x86 stage3 tar.
Comment 13 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-16 05:22:25 UTC
I really need you to test with *my* CD, otherwise this will not get fixed for 2004.2, as my CDs are the proving grounds for new technologies for 2004.2.

Thanks
Comment 14 Joe Millenbach 2004-06-22 16:54:33 UTC
With gentoo-2004.2-test4.iso and newest experimental stage3.bz2 I got only the bottom two lines of the previous error.

tar: ./usr/share/doc/kbd-1.08-r5/html/utf/\342\231\252\342\231\254: Cannot open: Invalid argument
tar: Error exit delayed from previous errors

So I guess those were two seperate errors.  Should I open another bug for this one?
Comment 15 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-22 18:33:43 UTC
There is no need to open another bug, as it appears that the issue is simply with the JFS version on the CD.

I am going to assume that you are using the "gentoo" kernel and not the "smp" kernel, correct?

Could you try again with the "smp" kernel on that CD?
Comment 16 Chris Gianelloni (RETIRED) gentoo-dev 2004-07-20 19:19:36 UTC
Joe, what if you mount your JFS with "-t jfs -o iocharset=utf8"?

Also, you need to set CONFIG_NLS_DEFAULT in your kernel.
Comment 17 molotov 2004-08-04 02:27:24 UTC
I have find this problem also installing from this iso:
install-x86-universal-2004.2.iso

when I untar the stage3 in a raiserFS

on the shell are printed this error:

tar: Error exit delayed from previous errors

i have check the MD5sum of the iso, and is correct. This mean that the stage3*.tar.bz on this live cd are bud I think.

i have tryed with both stage3*x86*.tar.bz and stage3*i686*.tar.bz .

here the (is correct, i've already check) md5:
df2dd58ea0afc7a1d7b94a518097f809
Comment 18 Chris Gianelloni (RETIRED) gentoo-dev 2004-08-04 06:29:28 UTC
Are you POSITIVE that the tar error is really an error and not a result of being unable to create a .keep file in /proc (which you probably have bind mounted)?
Comment 19 Chris Gianelloni (RETIRED) gentoo-dev 2004-09-17 18:33:12 UTC
It appears that this still persists even on the latest LiveCD... is this something you guys can fix or know of a workaround that we can employ that works?
Comment 20 Daniel Drake (RETIRED) gentoo-dev 2004-09-29 02:44:44 UTC
Related to #58428 ?
Comment 21 Chris Gianelloni (RETIRED) gentoo-dev 2004-09-29 03:08:15 UTC
They look to be similar, and could even be the same problem, but since I don't use JFS, I am not very familiar with it to tell you authoratatively.
Comment 22 Chris Gianelloni (RETIRED) gentoo-dev 2004-10-21 22:15:02 UTC
Can you try one of the new -test series at /experimental/x86/livecd/x86 on your favorite mirror?  I am hoping this has been fixed in later kernels.
Comment 23 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-13 13:52:09 UTC
I honestly can't tell you when or what fixed this, but I just tested this with 2005.0, and it works flawlessly.