LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-20-2007, 08:32 AM   #1
Rams3377
LQ Newbie
 
Registered: Aug 2007
Location: Miami, FL
Distribution: Debian Etch 4.0
Posts: 15

Rep: Reputation: 0
system commands like "ls" says "cannot connect to database"


Good day everyone! I"m not 100% sure that this is the right forum for this, however i've been having a problem with Debian that i can't seem to find a solution to. I"m fairly new to Debian and I'm running version 4.0. Everytime i type in a command such as "ls", "chown", etc it gives me the response "could not connect to database. It always executes the command but it leaves me that message prior to displaying any output from the command.

I noticed that it does the same thing when it's booting. I checked the DMESG file and the "could not connect to database" message was no where to be found, however i see it when the machine is booting up. I have both PostgreSQL v7.1 and 8 as well as MySQL running. I'm not sure why three DB's are running but they are. I also have apache and apache2 and some funky gForge program that I'm also having trouble getting rid of. Anyone have any suggestions?

Thanks for the help.

Rams

P.S. if i posted this in the wrong forum, can someone recomend another?
 
Old 11-20-2007, 08:48 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Very strange problem!!

First maybe tell us a bit about the background.. where is this box coming from?

I guess it's a server if Gforge is running. Gforge is a great software!

At first glance it looks like every command is logged to a database. But this is insane!

what is the result of these, to be run in a shell
echo $0
type ls
echo $LD_LIBRARY_PATH
echo $LD_PRELOAD
cat /etc/ld.so.conf
ls -la /etc/ld.so.*

Hum maybe I'm completly missing the solution here..
 
Old 11-20-2007, 08:51 AM   #3
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Don't worry, your question is perfectly OK here.

Some commands, like locate, need a database to search through. To update this database for locate, issue the "updatedb" command (w/o the ") as root. Probably won't solve your issue though...

Use the aptitude program (or it's graphical sister Synaptic) to install and remove programs and packages. In aptitude, use the / key to enter a search string and the n key to cycle through the results. The + and - keys on the Num. keyboard (with Num-lock on!) install or remove programs. Use the g key twice to actually start the install/removal process.
 
Old 11-20-2007, 08:58 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Yes but /bin/ls doesn't require a database!
Or maybe on vista with their winfs that they were never able to implement
 
Old 11-20-2007, 09:16 AM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by nx5000 View Post
Yes but /bin/ls doesn't require a database!
That's why I said *some* commands In fact, I only know about the locate command as it uses a database to store info on all files present on a system.
 
Old 11-20-2007, 09:24 AM   #6
Rams3377
LQ Newbie
 
Registered: Aug 2007
Location: Miami, FL
Distribution: Debian Etch 4.0
Posts: 15

Original Poster
Rep: Reputation: 0
Well here's what i get from the commands

hostfessionals:/home/rams# echo $0
bash
hostfessionals:/home/rams# type ls
ls is aliased to `ls --color'
hostfessionals:/home/rams# echo $LD_LIBRARY_PATH

hostfessionals:/home/rams# echo $LD_PRELOAD

hostfessionals:/home/rams# cat /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
/usr/lib/atlas/sse2
/usr/lib/sse2
/usr/lib/atlas/sse
/usr/lib/sse
/usr/lib/atlas
/usr/lib/grass/lib
hostfessionals:/home/rams# ls -la /etc/ld.so.*
-rw-r--r-- 1 root root 194769 2007-11-13 09:40 /etc/ld.so.cache
-rw-r--r-- 1 root root 133 2007-11-12 16:03 /etc/ld.so.conf
-rw-r--r-- 1 root root 53 2007-10-30 18:03 /etc/ld.so.hwcappkgs

/etc/ld.so.conf.d:
total 20
drwxr-xr-x 2 root root 4096 2007-10-30 18:02 .
drwxr-xr-x 199 root root 12288 2007-11-16 15:01 ..
-rw-r--r-- 1 root root 64 2007-07-30 16:27 i486-linux-gnu.conf

I installed Debian myself on a extra box i had. I used the netinst CD to install it. I don't know if that was the right cd or not. The "updatedb" command still didn't resolve the problem. But I never knew about it. Just read the man page and it seems pretty useful.

Thanks for all the help so far!
 
Old 11-20-2007, 09:32 AM   #7
Rams3377
LQ Newbie
 
Registered: Aug 2007
Location: Miami, FL
Distribution: Debian Etch 4.0
Posts: 15

Original Poster
Rep: Reputation: 0
Hmmm! It's not donig it anymore, I'm not sure what the echo statements did, but now i'ts allowing to do everything without displaying that message. THANKS!!!
 
Old 11-20-2007, 09:47 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Dutch Master
That's why I said *some* commands
Yeah I had seen, just being scared that he would change the system with aptitude and loose information.
Sorry

Quote:
Originally Posted by Rams3377
Hmmm! It's not donig it anymore, I'm not sure what the echo statements did, but now i'ts allowing to do everything without displaying that message. THANKS!!!
Hummmm more and more strange!
The echo command simply displays your shell so it has no influence.

<paranoiac version>
Maybe this box is being monitored by someone looking at what every command typed.
</>
There would be other commands to run to know what's going on there.
Best is to ask the person who installed it..

Quote:
Originally Posted by Rams3377
I installed Debian myself on a extra box i had. I used the netinst CD to install it. I don't know if that was the right cd or not. The "updatedb" command still didn't resolve the problem. But I never knew about it. Just read the man page and it seems pretty useful.
I asked you about THIS machine, not another one...
And yes the netinst is the method I use.

Could be still that I'm completly missing the point in this thread.. Maybe nothing critical..

Last edited by nx5000; 11-20-2007 at 09:48 AM.
 
Old 11-20-2007, 10:01 AM   #9
Rams3377
LQ Newbie
 
Registered: Aug 2007
Location: Miami, FL
Distribution: Debian Etch 4.0
Posts: 15

Original Poster
Rep: Reputation: 0
I'm going to keep an eye on it through out the day, and I'll post back here if anything strange happens. I"m mostly using this box to build a web platform so i was immediately lost. I got gForge uninstalled thanks for the help with that as well. I never used that app before so i wasn't to sure of it. But it got some high remarks in the forum.
 
  


Reply



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
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-29-2004 11:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration