Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
@ERROR chroot failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
icarrion
n00b
n00b


Joined: 11 Jul 2002
Posts: 9

PostPosted: Thu Jul 11, 2002 7:01 pm    Post subject: @ERROR chroot failed Reply with quote

Any help much appreciated.

Just started using gentoo this morning so I'm fairly new. My LINUX background is about 2 months straight using Debian, so I'm still fresh meat. Anyway....

When I run "emerge rsync" during the install process I get the error "@ERROR chroot failed". Prior to this I ran "emerge sync".

What am I doing wrong. Should I RTFM or MFTR? :twisted:

Thanks!
:D
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Thu Jul 11, 2002 7:27 pm    Post subject: Reply with quote

So I assume you are following the Gentoo Installation Guide found here
http://gentoo.org/doc/en/build.xml and that you are actually to this point in the document http://gentoo.org/doc/en/build.xml#doc_chap10. Given those two assumptions to be true, I'll insert one more that you are installing a new Gentoo system from scratch (meaning not from within an existing Debian install), let me take a guess and ask some questions.

Are you sure that in the earlier step 9 of the build document that you properly chroot(ed) into your gentoo system that you built from the tarball? Are you sure you passed the /bin/bash argument when you did the chroot? You might want to double check your steps and be sure that you are following the document. During my first installation of Gentoo I found that any problems I ran into turned out to be my fault; I had either missed a step, had a type-o, or I had done something stupid. So I would suggest trying again and paying very careful (explicit) attention to the documentation on how to build.

Let me know if all my assumptions are correct (Because if they are not I am likely WAY off base here) and how things turned out for you!

Good luck, and be sure to post good results if you get them--and what it took to correct any issues so that others can benefit from your hard work!!

Regards,
BonezTheGoon
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 11, 2002 7:33 pm    Post subject: Reply with quote

rsync internally does a chroot, and that is what's failing. clientserver.c, lines 281-283:

Code:
             if (chroot(lp_path(i))) {
                     rsyserr(FERROR, errno, "chroot %s failed", lp_path(i));
                     io_printf(fd,"@ERROR: chroot failed\n");


man 2 chroot defines these failure conditions:
Code:
       EPERM  The effective UID is not zero.

       EFAULT path points outside your accessible address space.

       ENAMETOOLONG
              path is too long.

       ENOENT The file does not exist.

       ENOMEM Insufficient kernel memory was available.

       ENOTDIR
              A component of path is not a directory.

       EACCES Search permission is denied on a component of the path prefix.

       ELOOP  Too many symbolic links were encountered in resolving path.

       EIO    An I/O error occurred.


Now, which of them is it?
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
icarrion
n00b
n00b


Joined: 11 Jul 2002
Posts: 9

PostPosted: Thu Jul 11, 2002 7:50 pm    Post subject: CHROOT Error Reply with quote

I think I followed the directions correctly. I agree though that most of the times i've had problems in the past, they have been due to a typo or skimming through instructions and manuals.

Anyway, this is what happened,

I got to the steps that say to "chroot /mnt/gentoo /bin/bash" and "env-update" and "source /etc/profile" and I received an error message (Can't recall specifically) .... something about a file being missing or not found and it recommended I run "emerge sync". So I geared a little of the instruction path and ran it. Then I ran "emerge rsync" and received the "@ERROR chroot failed"

So what I did to fix this was run those commands again and it seems to be working now.

#env-update
#source /etc/profile

Thanks for the quick responses!

I wish I knew what I did wrong, but anyway glad that it works!
:P
Back to top
View user's profile Send private message
BonezTheGoon
Bodhisattva
Bodhisattva


Joined: 14 Jun 2002
Posts: 1408
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

PostPosted: Thu Jul 11, 2002 7:52 pm    Post subject: Reply with quote

As long as it is working now, eh? Good job! Besides now we have that specific problem "Documented" and you have now provided a verified fix for it!!! Good job!

Regards,
BonezTheGoon
_________________
mcgruff wrote:
I can't promise to be civil.


pjp wrote:
The greater evil is voting for the "lesser evil."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum