Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[sconf] urge salvataggio in extremix [risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4810
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Tue Apr 25, 2006 9:11 pm    Post subject: [sconf] urge salvataggio in extremix [risolto] Reply with quote

Ahi, ahi.

ho rotto un sistema.
In avvio, udev (-090) si blocca cercando informazioni dal ldap (chissà perché).

Ho caricato l'hd esternamente su un'altra macchina, per ricostruire system, ma emerge rimane impallato in avvio per qualunque pacchetto.
Questo è uno strace del fenomeno:
Code:

...
open("/var/tmp/portage/patch-2.5.9-r1/temp", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = -1 ENOENT (No such file or directory)
stat("/var/tmp/portage/patch-2.5.9-r1/temp", 0x7fffffc6b400) = -1 ENOENT (No such file or directory)
stat("/var/tmp/portage/patch-2.5.9-r1", {st_mode=S_IFDIR|0775, st_size=2, ...}) = 0
mkdir("/var/tmp/portage/patch-2.5.9-r1/temp", 0777) = 0
mkdir("/var/tmp/portage/patch-2.5.9-r1/temp/logging", 0777) = 0
stat("/var/tmp/portage/patch-2.5.9-r1/temp/logging", {st_mode=S_IFDIR|0755, st_size=2, ...}) = 0
futex(0x501b30, FUTEX_WAKE, 1)          = 0
chown("/var/tmp/portage/patch-2.5.9-r1/temp/logging", 4294967295, 250) = 0
chmod("/var/tmp/portage/patch-2.5.9-r1/temp/logging", 0775) = 0
stat("/var/tmp/portage", {st_mode=S_IFDIR|0775, st_size=6, ...}) = 0
mkdir("/var/tmp/portage/homedir", 0777) = 0
stat("/var/tmp/portage/homedir", {st_mode=S_IFDIR|0755, st_size=2, ...}) = 0
futex(0x501b30, FUTEX_WAKE, 1)          = 0
chown("/var/tmp/portage/homedir", 4294967295, 250) = 0
chmod("/var/tmp/portage/homedir", 02775) = 0
stat("/var/tmp/portage", {st_mode=S_IFDIR|0775, st_size=7, ...}) = 0
mkdir("/var/tmp/portage/patch-2.5.9-r1", 0777) = -1 EEXIST (File exists)
stat("/var/tmp/portage/patch-2.5.9-r1", {st_mode=S_IFDIR|0775, st_size=3, ...}) = 0
futex(0x501b30, FUTEX_WAKE, 1)          = 0
stat("/var/tmp/portage/patch-2.5.9-r1", {st_mode=S_IFDIR|0775, st_size=3, ...}) = 0
mkdir("/var/tmp/portage/patch-2.5.9-r1/temp", 0777) = -1 EEXIST (File exists)
stat("/var/tmp/portage/patch-2.5.9-r1/temp", {st_mode=S_IFDIR|0755, st_size=3, ...}) = 0
futex(0x501b30, FUTEX_WAKE, 1)          = 0
chown("/var/tmp/portage/patch-2.5.9-r1/temp", 4294967295, 250) = 0
chmod("/var/tmp/portage/patch-2.5.9-r1/temp", 02775) = 0
stat("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=648, ...}) = 0
mkdir("/var/tmp/portage", 0777)         = -1 EEXIST (File exists)
stat("/var/tmp/portage", {st_mode=S_IFDIR|0775, st_size=7, ...}) = 0
futex(0x501b30, FUTEX_WAKE, 1)          = 0
stat("/var/tmp/portage/patch-2.5.9-r1/work", 0x7fffffc6b820) = -1 ENOENT (No such file or directory)
stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=769432, ...}) = 0
access("/bin/bash", X_OK)               = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2af63b201110) = 30975
wait4(30975,

In pratica, la cartella /var/tmp/portage/patch-2.5.9-r1/work rimane vuota e l'installazione muore. Idem usando l'opzione -K di emerge.
Cosa potrei fare per rientrare in gioco?
_________________
vu vu vu
gentù
mi piaci tu


Last edited by cloc3 on Wed Apr 26, 2006 3:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
skakz
Guru
Guru


Joined: 03 Jul 2004
Posts: 380
Location: Ischia/Napoli/Italia/Terra

PostPosted: Tue Apr 25, 2006 9:54 pm    Post subject: Reply with quote

intato potresti provare questo
so che esistono dei tarball portage-rescue* proprio per rendere riutilizzabile emerge nelle situazione più disastrose...
_________________
Linux Registered User n.340423
Linux User Group Ischia
www.tush.it
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Apr 26, 2006 10:32 am    Post subject: Re: [conf] urge salvataggio in extremix Reply with quote

cloc3 wrote:
stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=769432, ...}) = 0
access("/bin/bash", X_OK) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2af63b201110) = 30975
wait4(30975,


Quello che sembra é che abbia avviato una shell e che questa non termini.

Partiamo dall'inizio. Se il problema era udev perché sei andato su un'altra macchina per ricostruire il system? Oppure é stata l'ultima risorsa e avevi già provato altro? Perché dici che cerca ldap?
Sull'altra macchina accedi alla partizione in chroot, suppongo. Corretto?
_________________
Ciao da me!
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4810
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Wed Apr 26, 2006 11:49 am    Post subject: Re: [conf] urge salvataggio in extremix Reply with quote

randomaze wrote:
Perché dici che cerca ldap?

Perché lui scrive Failed to bind to LDAP Server ...
Effettivamente su quella macchina è installato un servizio ldap per l'autenticazione, ma non la stavo usando da parecchio tempo.
Durante l'aggiornamento pasticciato (e non dico quanto 8) )che ha prodotto il fenomeno ho anche aggiornato openldap, e potrebbe essere che abbia toccato qualcosa lì. In ogni caso, manipolando o spostando il file nsswitch.ldap, è possibile modificare il comportamento, così che udev si impalli in modo diverso.

Ho scelto di mettere l'hd su un'altra macchina perché mi veniva più semplice e perché lì ho una intera installazione non pasticciata. Molto meglio del cdrom.

Favoloso il link di darkdude. Ma purtroppo mi conferma che sto facendo le cose giuste, cioè cercare di installare un portage preconfezionato.

Intanto ho scoperto una cosa nuova: il chroot dentro l'installazione balorda funziona, ma si ripetono gli stessi problemi con portage.
In più, ho scoperto che il problema, con tutta probabilità, è legata alla fase di estrazione, perché anche il programma tar si impalla, dentro il chroot, mentre funziona da fuori. Forse udev si impalla proprio cercando di eseguire un tar.

A questo punto, penso che dovrei provare a reinstallare tar, oppure bash (che spesso è una dipendenza di tutto).
Quasi quasi, provo un emerge dal sistema esterno, con la variabile ROOT="/media/sdb3".
Perso, per perso, provo a testare questa opzione su una installazione completa.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4810
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Wed Apr 26, 2006 2:06 pm    Post subject: Reply with quote

Code:

ROOT=/media/sdb3" emerge -a tutto-quello che vuoi

:D :D :D
Tutto è bene quel che finisce bene.
Ho tolto nss_ldap, che per ora non mi serve, messo udev-087 e rimesso udev-090.
Adesso funziona tutto, tar e bash compresi.

Invece, rimane un problema legato a questo baco.
In teoria, basterebbe emergere la nuova versione di splashutils, ma ho qualche problema.
Code:

svcdir: readonly variable

Non ho tempo di approfondire, ma ne salterò fuori di certo, perchè almeno non è colpa mia.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
randomaze
Bodhisattva
Bodhisattva


Joined: 21 Oct 2003
Posts: 9985

PostPosted: Wed Apr 26, 2006 2:36 pm    Post subject: Re: [conf] urge salvataggio in extremix Reply with quote

cloc3 wrote:
Intanto ho scoperto una cosa nuova: il chroot dentro l'installazione balorda funziona, ma si ripetono gli stessi problemi con portage.
In più, ho scoperto che il problema, con tutta probabilità, è legata alla fase di estrazione, perché anche il programma tar si impalla, dentro il chroot, mentre funziona da fuori. Forse udev si impalla proprio cercando di eseguire un tar.


Domanda: Sei sicuro che l'HD stia bene?
_________________
Ciao da me!
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4810
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Wed Apr 26, 2006 2:59 pm    Post subject: Re: [conf] urge salvataggio in extremix Reply with quote

randomaze wrote:

Domanda: Sei sicuro che l'HD stia bene?

Fino a prova contraria, direi di sì. Anche se non ho ancora controllato.
I problemi che ho incontrato sono legati a problemi di configurazione (anzi, ribattezzo il tag [sconf] nel titolo), oppure a bug esistenti.

Tolto anche splashutils, tutto è ripartito correttamente.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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