Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error retrieving current directory: getcwd:
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
funkoolow
Guru
Guru


Joined: 21 Sep 2004
Posts: 545
Location: er paese delle anguille

PostPosted: Thu Jan 29, 2009 4:52 pm    Post subject: error retrieving current directory: getcwd: Reply with quote

salve a tutti,
improvvisamente ricevo questo output praticamente per ogni servizio che provo a manipolare, nell'esempio c'è l'output che ottengo riavviando apache.

Code:

funkserver # /etc/init.d/apache2 restart
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 * Stopping apache2 ...
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory                          [ ok ]
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
 * Starting apache2 ...
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory                          [ ok ]
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory


passato l'infarto, ho notato che cmq il servizio e tutto il resto sembra funzionare normalmente (nell'esempio sopra, apache si è correttamente riavviato).
cosa può essere? di recente non mi sembra di aver aggiornato niente di fondamentale.
_________________
SabaziaLUG: il LUG a nord di Roma
Back to top
View user's profile Send private message
Ic3M4n
Advocate
Advocate


Joined: 02 Nov 2004
Posts: 3489
Location: Bergamo.

PostPosted: Thu Jan 29, 2009 6:39 pm    Post subject: Reply with quote

mmm, questo te lo fa sempre? o ti è successo una volta sola? L'errore "impossibile ottenere la dir corrente" può essere dato dal fatto che una volta entrato in una directory l'hai rinominata o eliminata. Nel tal caso ti basta cambiare la dir...
scusa, lo so che ho detto una cosa banale ma una volta mi è successa la stessa cosa e mi sono dato dell'idiota 5 minuti dopo quando ho ripensato con calma alle cose che avevo fatto.
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Thu Jan 29, 2009 7:06 pm    Post subject: Reply with quote

revdep-rebuild && etc-update
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
funkoolow
Guru
Guru


Joined: 21 Sep 2004
Posts: 545
Location: er paese delle anguille

PostPosted: Fri Jan 30, 2009 11:02 am    Post subject: Reply with quote

mah, non so che dire, il problema è svanito ed ora i servizi si riavviano più silenziosamente.
Il revdep non segnalava niente da riemergere, così come l'etc-update niente da aggiornare.
riguardo ad eventuale cambiamento di cartelle, non ricordo di aver cambiato assolutamente niente, al massimo avrò smontato un disco che uso per fare i backup, ma non ero nella cartella pertinente (altrimenti non mi avrebbe fatto smontare).

questo getcwd tirato in ballo che cos'è?
_________________
SabaziaLUG: il LUG a nord di Roma
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Fri Jan 30, 2009 1:19 pm    Post subject: Reply with quote

:P :P :P
Code:
man getcwd

_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
mattylux
Apprentice
Apprentice


Joined: 19 Jul 2008
Posts: 240
Location: bologna

PostPosted: Fri Jan 30, 2009 1:40 pm    Post subject: Reply with quote

il motivo e che si trova in una directory cancellata.... da un altra konsole
prova a spostarti un altra vedi che il problema sparisce...
_________________
persempre gentoo
il mio progetto in fase di lavoro
Http://stradedicarta.netsons.org
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Fri Jan 30, 2009 4:13 pm    Post subject: Reply with quote

djinnZ wrote:
:P :P :P
Code:
man getcwd


io sotto GNU/Linux, non ho quel comando
qui me la da solo come system call, quindi - sinceramente - non capisco com'è che uno script di avvio spari fuori quella roba lì
tra l'altro ho fatto una prova
Code:
~ # mkdir temp
~ # cd temp/
temp # pwd
/root/temp

da un'altra parte ho dato:
Code:
~ # rmdir temp

tornando di là:
Code:
temp # /etc/init.d/apache2 restart
* Stopping apache2...[ ok ]
* Starting apache2...[ ok ]
temp # pwd
/root/temp
temp # ls -la
totale 0
temp # ls -la ../temp
ls: impossibile accedere a ../temp: No such file or directory

:D
qui niente pax grsec o robe hard del genere...
però rimane comunque possibile che un programma c che usa getcwd() possa sparare fuori un po' di errori. Non capisco perché dovrebbe farlo apache, tramite initscript (al massimo lo fa l'eseguibile di apache e il suo output dovrebbe essere gestito da syslog... TEORICAMENTE)
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
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