LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-25-2005, 09:31 PM   #1
lowpro2k3
Member
 
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Rep: Reputation: 30
Problem with X consoles - "shell-init: error retrieving current directory"


I'm still trying to figure out how this happened. Lets see, I'm working on my desktop and trying to configure it the way I like. I started with a default install, xorg was working. Of course I decided "if it ain't broke, you need to tinker some more" so I ran xorgconfig and screwed up my X-server. It complained of lack of screens. I installed my nVidia drivers and ran xorgsetup, things work now. I was starting to set up X and editing some files in rxvt when I tried to tab-complete a filename and got this error message:

Code:
$ cd /et[tab-complete]
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
$ pwd
pwd:error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
This doesn't just happen in rxvt, it also happens in X-console, and I tried the Gnome console but that won't work. I'm using the fluxbox off the CD.

Any ideas? This is annoying as heck, I've grown into a tab-complete addict!
 
Old 07-26-2005, 05:17 AM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
You've really been messing with things, eh?

That's an error I'd be proud to get! (My personal favourite was "Mystery Error" in the logs for lpr ... genius!)

Anyway ... moving on ...

Do you get the same tab-complete problems in a raw console? Ie: the bit before the GUI?

If tab complete works fine there, then it sounds like there might be a problem with the terminal emulators, or further down the tree (to affect them all). To be honest I'm not sure what you'd have to tweak to fix it, but take a look and see what sort of common dependencies they share, and that might help you locate the source of the problem.

Good luck, and, great error message!
- Piete.
 
Old 07-26-2005, 06:35 AM   #3
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Indeed something one doesnt see everyday.. (:

A few things to check out and narrow the problem:

- Do you have bash-complete installed? You know, the extra completion..
- Does this happen with _any_ completion, anywhere? Meaning, also commands from the PATH, or just directories? And both on xterms, tty's and on a pure non modified Konsole / gnome-terminal?
- if doing /et<tab> goes wrong, does
Code:
ls $(pwd) && ls /etc/
still work anyways?
 
1 members found this post helpful.
Old 02-01-2006, 05:11 AM   #4
mutschaedi
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
.ICEauthority

peace

i stumbled over this page when i searched for my problem, that said the same error.

my error was to move my home directory to another partition and symlinked it back to the required location. while moving i ignored a problem that the ~/.ICEauthority did not move as everything else. so i deleted it and symlinked the dir - of course the error happened to me later when i used the console again (bash)

i moved the homedir back to the previous partition - same problem
i restarted x - same problem
i logged in at a vt - no problem
i logged in as a other user in the xterm that was failing with my user - no problem
i stopped x and logged out and in again - everything was fine again

maybe someone can explain what this ice file means, but this was obvoiously the problem.

hopefull this post helps somebody in the future

a*men
 
Old 03-26-2007, 06:36 PM   #5
RayJ
Member
 
Registered: Sep 2003
Location: Las Vegas
Distribution: Ubuntu 6
Posts: 31

Rep: Reputation: 15
Cool

Quote:
Originally Posted by mutschaedi
i stumbled over this page when i searched for my problem, that said the same error.
I may have solved this issue!

Here is what happened to me...

as root I entered:

Code:
cd /usr/lib/mailman/cron
rpm -e mailman
locate -u
THESE ERRORS START HAPPENING
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
AND
fatal error: locate: create_db(): chdir: No such file or directory

tried:

Quote:
Originally Posted by Artanicus
ls $(pwd) && ls /etc/
the result!

ls: /usr/lib/mailman/cron: No such file or directory

Duh! The directory that I am in longer exists! (as it was removed by "rpm -e mailman")

entered:

cd /

Solved?
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I got a error flag "init: /dev/initctl: no such file" mst700 Linux - Newbie 4 10-28-2007 08:00 AM
"kernel panic : no init found " error with user-mode-linux tuxfood Linux - Software 2 05-06-2005 03:29 PM
"WARNING: Circular directory structure" error when deleting directory pistonbrew Linux - Software 5 02-03-2005 06:05 AM
Linux boot hang : "init: error loading shared libraries" colinprice72 Linux - General 0 01-16-2004 09:04 AM
RH "null" beta system freezes right after printing "INIT" markus1982 Linux - Hardware 0 09-09-2002 03:31 PM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration