Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error retrieving current directory: getcwd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
puke
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2002
Posts: 128

PostPosted: Mon Aug 28, 2006 8:41 pm    Post subject: error retrieving current directory: getcwd Reply with quote

Hi,

After updating my system (emerge -u system) I'm getting these strange errors when calling any init script:

Code:
# /etc/init.d/syslog-ng status
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
 * status:  started


It doesn't seem to adversely affect service startup or shutdown. I have performed source /etc/profile && env-update to no avail.. anyone seen this before?
Back to top
View user's profile Send private message
cerebus_k
Apprentice
Apprentice


Joined: 20 Jun 2003
Posts: 173
Location: Flower Mound, Texas

PostPosted: Tue Aug 29, 2006 12:19 am    Post subject: Reply with quote

My guess is the service is still running but because of the update some file/directory is no longer there or has moved. Can you do a

Code:

/etc/init.d/syslog-ng restart


and see if that cures it?
_________________
Gettin old isn't for wimps
Back to top
View user's profile Send private message
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Thu Aug 31, 2006 4:39 pm    Post subject: Reply with quote

Having had the problem. For me it was a simple permission thing. Simply go to your root directory, and run the command again
Back to top
View user's profile Send private message
deepspace9
Apprentice
Apprentice


Joined: 29 Jan 2003
Posts: 214
Location: Netherlands

PostPosted: Wed Sep 06, 2006 7:01 pm    Post subject: Reply with quote

I have exactly the same... it started after I unmerged resin

It has nothing to do with the package itself. a lot of stuff is not working anymore...

In what package should getcwd be in?
_________________
Athlon 64 X2 3800+
MSI K8N Neo4 FI
Geil Ultra-X PC3200 400MHz CL2 5-2-2 DDR 2x512 GB
Asus 6600 Silence GFX
Watercooling (I just love the silence :) )
Back to top
View user's profile Send private message
Hydraulix
Guru
Guru


Joined: 12 Dec 2003
Posts: 447

PostPosted: Tue Oct 03, 2006 6:25 am    Post subject: Reply with quote

I had the same problem. I was in my vmware folder and I deleted a VM. Vmware also deleted the folder that I was consoled into. I just changed directories and everything perfect.
_________________
It is the fate of operating systems to become free.
- Neal Stephenson
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: Sat Mar 31, 2007 12:43 am    Post subject: Reply with quote

same to me, just suddenly appeared as long as immediately disappeared when changin directory. Any clue?
_________________
SabaziaLUG: il LUG a nord di Roma
Back to top
View user's profile Send private message
Psychosis
n00b
n00b


Joined: 25 Jan 2004
Posts: 9

PostPosted: Sat Mar 31, 2007 4:19 am    Post subject: Reply with quote

Like he said do this:

Code:

cd /root
/etc/init.d/syslog-ng restart


Works fine.
Back to top
View user's profile Send private message
Simplimus
n00b
n00b


Joined: 14 Mar 2006
Posts: 30
Location: Dresden, Germany

PostPosted: Sun Apr 01, 2007 8:16 am    Post subject: Same Error Reply with quote

Well, it is even more simple....

Code:
cd /


done...

It is really strange, the error appeared while I was in my /usr/portage/ directory. Changing back to the root directory solved it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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