Re: my fai-setup.log

2010-08-23 Diskussionsfäden mamadou diop
Thank you Robert. I have replaced hardy by jaunty and the problem persists.
I'm going to give up
fai-mirror and take a script that Stephan Hermann gave me.

2010/8/23 Robert Markula robert.mark...@gmx.net

 Hi,

 mamadou diop wrote:
  Thnk you Robert. The contents of my 'make-fai-nfsroot' are:

 [...]
  FAI_DEBOOTSTRAP  = hardy http://10.10.1.200/debmirror;
 [...]

 FAI_DEBOOTSTRAP tells FAI not only where to get the packages for
 building the NFSROOT, but also which release to use. The above line
 tells FAI to build a 'hardy' NFSROOT, that's why you see the wrong
 distribution release in your mirror. For jaunty the line should read:

 FAI_DEBOOTSTRAP  = jaunty http://10.10.1.200/debmirror;

 Cheers,
 Robert




Re: my fai-setup.log

2010-08-22 Diskussionsfäden mamadou diop
Thnk you Robert. The contents of my 'make-fai-nfsroot' are:


NFSROOT = /srv/fai/nfsroot

FAI_DEBOOTSTRAP  = hardy http://10.10.1.200/debmirror;

NFSROOT_ETC_HOSTS = 10.10.1.200 faiserver

FAI_ROOTPW = '$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'

NFSROOT_HOOKS = /etc/fai/nfsroot-hooks


2010/8/22 Robert Markula robert.mark...@gmx.net

 mamadou diop wrote:
  Thank you Robert. Before giving you the output of 'apt-get update', i
 just
  tell you that the distribution name of my ubuntu server
  is jaunty and after creating the mirror whith 'fai-mirror', the only
  distribution present in /files/scratch/debmirror/dists is hardy.
  The output of the command is:
  Err http://sn.archive.ubuntu.com jaunty Release.gpg
Ne parvient pas à résoudre « sn.archive.ubuntu.com »
 [...]

 Hm, strange. The good news is that we now know that the problem is
 connected with the mirror, which fetches the wrong distribution release.

 What's the contents of /etc/fai/make-fai-nfsroot.conf?

 Cheers,
 Robert



Re: my fai-setup.log

2010-08-22 Diskussionsfäden Robert Markula
mamadou diop wrote:
 Thank you Robert. Before giving you the output of 'apt-get update', i just
 tell you that the distribution name of my ubuntu server
 is jaunty and after creating the mirror whith 'fai-mirror', the only
 distribution present in /files/scratch/debmirror/dists is hardy.
 The output of the command is:
 Err http://sn.archive.ubuntu.com jaunty Release.gpg
   Ne parvient pas à résoudre « sn.archive.ubuntu.com »
[...]

Hm, strange. The good news is that we now know that the problem is
connected with the mirror, which fetches the wrong distribution release.

What's the contents of /etc/fai/make-fai-nfsroot.conf?

Cheers,
Robert


Re: my fai-setup.log

2010-08-22 Diskussionsfäden mamadou diop
Thank you Robert. Before giving you the output of 'apt-get update', i just
tell you that the distribution name of my ubuntu server
is jaunty and after creating the mirror whith 'fai-mirror', the only
distribution present in /files/scratch/debmirror/dists is hardy.
The output of the command is:
Err http://sn.archive.ubuntu.com jaunty Release.gpg
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty/main Translation-fr
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty/restricted Translation-fr
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty/universe Translation-fr
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty/multiverse Translation-fr
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty-updates Release.gpg
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty-updates/main Translation-fr
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty-updates/restricted Translation-fr
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty-updates/universe Translation-fr
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://sn.archive.ubuntu.com jaunty-updates/multiverse Translation-fr
  Ne parvient pas à résoudre « sn.archive.ubuntu.com »
Err http://security.ubuntu.com jaunty-security Release.gpg
  Ne parvient pas à résoudre « security.ubuntu.com »
Err http://security.ubuntu.com jaunty-security/main Translation-fr
  Ne parvient pas à résoudre « security.ubuntu.com »
Err http://security.ubuntu.com jaunty-security/restricted Translation-fr
  Ne parvient pas à résoudre « security.ubuntu.com »
Err http://security.ubuntu.com jaunty-security/universe Translation-fr
  Ne parvient pas à résoudre « security.ubuntu.com »
Err http://security.ubuntu.com jaunty-security/multiverse Translation-fr
  Ne parvient pas à résoudre « security.ubuntu.com »
Ign http://10.10.1.200 jaunty Release.gpg
Ign http://10.10.1.200 jaunty/main Translation-fr
Ign http://10.10.1.200 jaunty/restricted Translation-fr
Ign http://10.10.1.200 jaunty/universe Translation-fr
Ign http://10.10.1.200 jaunty/multiverse Translation-fr
Ign http://10.10.1.200 jaunty Release
Ign http://10.10.1.200 jaunty/main Packages
Ign http://10.10.1.200 jaunty/restricted Packages
Ign http://10.10.1.200 jaunty/universe Packages
Ign http://10.10.1.200 jaunty/multiverse Packages
Ign http://10.10.1.200 jaunty/main Packages
Ign http://10.10.1.200 jaunty/restricted Packages
Ign http://10.10.1.200 jaunty/universe Packages
Ign http://10.10.1.200 jaunty/multiverse Packages
Err http://10.10.1.200 jaunty/main Packages
  404 Not Found
Err http://10.10.1.200 jaunty/restricted Packages
  404 Not Found
Err http://10.10.1.200 jaunty/universe Packages
  404 Not Found
Err http://10.10.1.200 jaunty/multiverse Packages
  404 Not Found
Lecture des listes de paquets...

2010/8/21 Robert Markula robert.mark...@gmx.net

 Hi mamadou,

 mamadou diop wrote:
  Thank you. I have tried but i don't know what is the cause of this
 problem.
  May be it's a problem of fai-mirror.

 First and foremost you should check and make sure that your fai-mirror
 works. Otherwise troubleshooting will be like the search for a needle in
 a haystack.

 Test your mirror on a working installation (a Live-CD would suffice) of
 Jaunty. I'll guide you through this:

 1. After booting into ubuntu, open a terminal (if not already on a shell).

 2. Open your sources.list. To do so, type in a terminal:

 sudo nano /etc/apt/sources.list

 Go to the last line and insert the following line (it should be a single
 line, even if there is a linebreak in this mail):

 deb http://192.168.1.250/debmirror/ubuntu jaunty main restricted
 universe multiverse

 Save and close.

 3. Reload the packages list:

 sudo apt-get update

 4. Check the output of the above command. If there are error messages,
 then the line inserted in the sources.list is wrong and/or your
 fai-mirror is broken. Please post the output on this list.

 Good luck!
 Robert



Re: my fai-setup.log

2010-08-22 Diskussionsfäden Robert Markula
Hi,

mamadou diop wrote:
 Thnk you Robert. The contents of my 'make-fai-nfsroot' are:

[...]
 FAI_DEBOOTSTRAP  = hardy http://10.10.1.200/debmirror;
[...]

FAI_DEBOOTSTRAP tells FAI not only where to get the packages for
building the NFSROOT, but also which release to use. The above line
tells FAI to build a 'hardy' NFSROOT, that's why you see the wrong
distribution release in your mirror. For jaunty the line should read:

FAI_DEBOOTSTRAP  = jaunty http://10.10.1.200/debmirror;

Cheers,
Robert



my fai-setup.log

2010-08-21 Diskussionsfäden mamadou diop
Hello, who can help me by reading my fai-setup.log:

Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir.

By default it needs more than 330 MBytes disk space.

This may take a long time.

Creating base system using debootstrap version

Calling debootstrap hardy /srv/fai/nfsroot/live/filesystem.dir
http://10.10.1.200/debmirror

chroot: cannot run command `apt-get': No such file or directory

Creating base.tgz

Upgrading /srv/fai/nfsroot/live/filesystem.dir

mount: mount point /srv/fai/nfsroot/live/filesystem.dir/dev/pts does not
exist

chroot: cannot run command `apt-get': No such file or directory

chroot: cannot run command `aptitude': No such file or directory

chroot: cannot run command `apt-get': No such file or directory

dpkg-divert: cannot open diversions: No such file or directory

dpkg-divert: cannot open diversions: No such file or directory

chroot: cannot run command `apt-get': No such file or directory

install_packages: reading config files from directory /etc/fai

Adding additional packages to /srv/fai/nfsroot/live/filesystem.dir:

nfs-common fai-nfsroot module-init-tools dhcp3-client ssh rdate lshw portmap
bootpc rsync lftp less dump reiserfsprogs ext2resize usbutils hwinfo psmisc
pciutils hdparm smartmontools parted mdadm lvm2 dnsutils ntpdate dosfstools
cvs jove xfsprogs xfsdump sysutils dialog discover mdetect console-tools
console-common expect iproute udev subversion sysvinit upstart-
live-initramfs linux-image-generic cfengine2 libapt-pkg-perl grub lilo
read-edid

install_packages: reading config files from directory /etc/fai

chroot: cannot run command `apt-get': No such file or directory

ERROR: 32512 32512

ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code
127

chroot: cannot run command `aptitude': No such file or directory

ERROR: 32512 32512

ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir aptitude -R -y -o
Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold
install nfs-common fai-nfsroot module-init-tools dhcp3-client ssh rdate lshw
portmap bootpc rsync lftp less dump reiserfsprogs ext2resize usbutils hwinfo
psmisc pciutils hdparm smartmontools parted mdadm lvm2 dnsutils ntpdate
dosfstools cvs jove xfsprogs xfsdump sysutils dialog discover mdetect
console-tools console-common expect iproute udev subversion sysvinit
upstart- live-initramfs linux-image-generic cfengine2 libapt-pkg-perl grub
lilo read-edid return code 127

chroot: cannot run command `apt-get': No such file or directory

ERROR: 32512 32512

ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code
127

chroot: cannot run command `apt-get': No such file or directory

ERROR: 32512 32512

ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code
127

4 errors during executing of commands

install_packages exit code: 3

chpasswd: can't open password file

cp: la cible `/srv/fai/nfsroot/live/filesystem.dir/etc/fai' n'est pas un
répertoire

/usr/sbin/make-fai-nfsroot: line 232:
/srv/fai/nfsroot/live/filesystem.dir/etc/fai/fai.conf: Aucun fichier ou
dossier de ce type

chroot: cannot run command `shadowconfig': No such file or directory

ln: création d'un lien symbolique `etc/init.d/rcS': Le fichier existe

cp: ne peut évaluer `/srv/fai/nfsroot/live/filesystem.dir/boot/vmlinuz-*':
Aucun fichier ou dossier de ce type

cp: ne peut évaluer
`/srv/fai/nfsroot/live/filesystem.dir/boot/initrd.img-*': Aucun fichier ou
dossier de ce type

DHCP environment prepared. If you want to use it, you have to enable the
dhcpd and the tftp-hpa daemon.

ERROR: live-initramfs was not installed inside the nfsroot.

Log file written to /var/log/fai/make-fai-nfsroot.log

Aborting

dpkg-divert: cannot open diversions: No such file or directory

umount: /srv/fai/nfsroot/live/filesystem.dir/dev/pts: n'a pas été trouvé

Log file written to /var/log/fai/make-fai-nfsroot.log

 * Re-exporting directories for NFS kernel daemon...

   ...done.

FAI setup finished.


Re: my fai-setup.log

2010-08-21 Diskussionsfäden Michael Tautschnig
Hi,

 Hello, who can help me by reading my fai-setup.log:
 
 Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir.
 
 By default it needs more than 330 MBytes disk space.
 
 This may take a long time.
 
 Creating base system using debootstrap version
 
 Calling debootstrap hardy /srv/fai/nfsroot/live/filesystem.dir
 http://10.10.1.200/debmirror
 
 chroot: cannot run command `apt-get': No such file or directory
 

[...]

Basically it's broken at this point. If I remember it correctly, doing

export debug=1; fai-setup -v

should give you a lot more insight in the debootstrap phase.

Best,
Michael



pgpo0YTaR4Joy.pgp
Description: PGP signature


Re: my fai-setup.log

2010-08-21 Diskussionsfäden mamadou diop
Thank you. I have tried but i don't know what is the cause of this problem.
May be it's a problem of fai-mirror.
Now i am writing a memory whose subject is remote deployment of operating
systems. The solution i have chosen to deploy our ubuntu
systems is FAI. I risk to give up fai-mirror and choose another tool.

2010/8/21 Michael Tautschnig m...@debian.org

 Hi,

  Hello, who can help me by reading my fai-setup.log:
 
  Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir.
 
  By default it needs more than 330 MBytes disk space.
 
  This may take a long time.
 
  Creating base system using debootstrap version
 
  Calling debootstrap hardy /srv/fai/nfsroot/live/filesystem.dir
  http://10.10.1.200/debmirror
 
  chroot: cannot run command `apt-get': No such file or directory
 

 [...]

 Basically it's broken at this point. If I remember it correctly, doing

 export debug=1; fai-setup -v

 should give you a lot more insight in the debootstrap phase.

 Best,
 Michael