Debian installation fehlgeschlagen

Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

Re: Debian installation fehlgeschlagen

Beitrag von Kathrin »

Hallo,

bei mir steht clientconfig.depot.protocol schon immer auf cifs und es funktioniert nicht.

Über den ursprünglichen chmod Fehler komme ich jetzt auch hinaus, jedoch bekomme ich einen anderen Fehler.

Auszug aus dem Logfile:

Code: Alles auswählen

[5] [Dez 30 14:25:25] Installing base system .... (debian.py|145)
[6] [Dez 30 14:25:25] Executing: DEBOOTSTRAP_DIR=/mnt/opsi/debian/debootstrap/share/debootstrap /sbin/debootstrap --verbose --no-check-gpg --arch amd64 wheezy /mnt/hd http://ftp.de.debian.org/debian (Posix.py|736)
[6] [Dez 30 14:25:25] Using encoding 'ANSI_X3.4-1968' (Posix.py|769)
[7] [Dez 30 14:25:25] >>> /sbin/debootstrap: 22: .: Can't open /mnt/opsi/debian/debootstrap/share/debootstrap/functions (Posix.py|813)
[7] [Dez 30 14:25:25] Exit code: 2 (Posix.py|820)
[5] [Dez 30 14:25:25] debootstrap failed - retrying.... (debian.py|153)
[6] [Dez 30 14:25:25] Executing: /bin/sleep 10 (Posix.py|736)
[6] [Dez 30 14:25:25] Using encoding 'ANSI_X3.4-1968' (Posix.py|769)
[7] [Dez 30 14:25:35] Exit code: 0 (Posix.py|820)
[6] [Dez 30 14:25:35] Executing: DEBOOTSTRAP_DIR=/mnt/opsi/debian/debootstrap/share/debootstrap /sbin/debootstrap --verbose --no-check-gpg --arch amd64 wheezy /mnt/hd http://ftp.de.debian.org/debian (Posix.py|736)
[6] [Dez 30 14:25:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|769)
[7] [Dez 30 14:25:35] >>> /sbin/debootstrap: 22: .: Can't open /mnt/opsi/debian/debootstrap/share/debootstrap/functions (Posix.py|813)
[7] [Dez 30 14:25:35] Exit code: 2 (Posix.py|820)
[5] [Dez 30 14:25:35] debootstrap failed - retrying.... (debian.py|158)
[6] [Dez 30 14:25:35] Executing: /bin/sleep 10 (Posix.py|736)
[6] [Dez 30 14:25:35] Using encoding 'ANSI_X3.4-1968' (Posix.py|769)
[7] [Dez 30 14:25:45] Exit code: 0 (Posix.py|820)
[6] [Dez 30 14:25:45] Executing: DEBOOTSTRAP_DIR=/mnt/opsi/debian/debootstrap/share/debootstrap /sbin/debootstrap --verbose --no-check-gpg --arch amd64 wheezy /mnt/hd http://ftp.de.debian.org/debian (Posix.py|736)
[6] [Dez 30 14:25:45] Using encoding 'ANSI_X3.4-1968' (Posix.py|769)
[7] [Dez 30 14:25:45] >>> /sbin/debootstrap: 22: .: Can't open /mnt/opsi/debian/debootstrap/share/debootstrap/functions (Posix.py|813)
[7] [Dez 30 14:25:45] Exit code: 2 (Posix.py|820)
[5] [Dez 30 14:25:45] debootstrap failed - giving up.... (debian.py|163)
[2] [Dez 30 14:25:46] Traceback: (Logger.py|767)
[2] [Dez 30 14:25:46]      line 1464 in '<module>' in file '/usr/local/bin/master.py' (Logger.py|767)
[2] [Dez 30 14:25:46]      line 164 in '<module>' in file '/tmp/debian.py' (Logger.py|767)
[2] [Dez 30 14:25:46]      ==>>> debootstrap failed - giving up.... (master.py|1512)
[7] [Dez 30 14:25:46] Backend: <OPSI.Backend.JSONRPC.JSONRPCBackend instance at 0xe21d88> (master.py|1515)
[7] [Dez 30 14:25:46] ProductId: debian (master.py|1516)

Ich werde ihnen aber gleich noch die komplette Logdatei zuschicken.

Gruß
Kathrin


P.S.: Ich hatte heute morgen mal die beiden Anpassungen von Automatix händisch in debian.py eingetragen und da funktionierte die Installation
Automatix
Beiträge: 8
Registriert: 03 Apr 2011, 00:36

Re: Debian installation fehlgeschlagen

Beitrag von Automatix »

Hallo zusammen,

clientconfig.depot.protocol ist schon immer auf cifs und es funktioniert nicht.

Die modifikationen des copy-Befehls funktionieren bei mir.
Und wie es aussieht, macht depot.copy() die Arbeit.

Was aber bei mir auch nicht geht ist "DEBOOTSTRAP_DIR=" als Variable.
Ich habe als Lösung, den Inhalt des Ordners aus dem Depot auf das aktive System kopiert.
Da ich in den Scripts von debootstrap noch "jessie" hinzugefügt habe, wurde das notwendig.

Code: Alles auswählen

depot.copy(SCRIPT_PATH+'/debootstrap/share/*','/usr/share/')
Danach ohne "DEBOOTSTRAP_DIR=" aufgerufen, dann läuft alles sauber.

Was Interessant ist, "http_proxy=" funktioniert.

Gruss
Automatix
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Debian installation fehlgeschlagen

Beitrag von d.oertel »

Hi,

nächster Versuch:
Neue debian und ubuntu Pakete unter
http://download.uib.de/opsi4.0/experimental/opsi-linux/
Funktionieren bei mir mit cifs und webdav.
Ich habe jetzt das DEBOOTSTRAP_DIR raus genommen und kopiere explizit das debootstrap release script.

Warum das bei manchen geklappt hat und bei anderen nicht ist mir nach wie vor ein Rätsel.

Von daher freue ich mich über Rückmeldungen ob es jetzt überall klappt.

Vie Forschung will ich aber nicht mehr reinstecken, da die Linux netboot Produkte alle komplett umgebaut werden sollen:
Die nächste Generation wird (analog zur Windows installation) voll auf den distributions eigenen Installer setzen (debian-installer, autoyast, anaconda) ....

gruß
d.oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
Automatix
Beiträge: 8
Registriert: 03 Apr 2011, 00:36

Re: Debian installation fehlgeschlagen

Beitrag von Automatix »

Hallo,

Das neue Paket funktioniert bei mir.

Der copy()-Befehl funktioniert bei mir nur wenn die Destination über os.path.join() gesetzt wird.

Die Datei /etc/environment wird unter Debian nicht mehr verwendet.
Dafür habe ich /etc/default/console-setup für meine Installation angepasst, da bei mir CHARMAP= nicht passte.

Gruss
Automatix
Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

Re: Debian installation fehlgeschlagen

Beitrag von Kathrin »

Hallo,

bei mir funktioniert es jetzt auch ohne Probleme.

Danke und Gruß
Kathrin
Antworten