LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-03-2007, 01:09 AM   #1
rajibshovan
LQ Newbie
 
Registered: Dec 2006
Location: Dhaka, Bangladesh
Distribution: RedHat 9
Posts: 14

Rep: Reputation: 0
ftp connection refused (vsftpd on RedHat 9.0)


Can't restart the vsftpd process...

when "service vsftpd status" command is entered, the following msg is shown...

vsftpd dead but subsys locked

So when try to "ftp localhost", connection refused....

what can I do now???

plz help....
 
Old 01-03-2007, 03:53 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
Is there any reason why you are using Redhat 9? This is very old and unsupported now (Redhat stopped supporting it in 2004).

I suggest that you get a more recent version of Linux, such as Fedora Core 6 (successor to Redhat 9).

--Ian
 
Old 01-03-2007, 04:32 AM   #3
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 356

Rep: Reputation: 40
And to help you out on this one, you can try 'service vsftpd start' and if that doesn't work preceed it with a 'service vsftpd stop' to clean the lock.

See if that helps..
 
Old 01-04-2007, 05:19 AM   #4
rajibshovan
LQ Newbie
 
Registered: Dec 2006
Location: Dhaka, Bangladesh
Distribution: RedHat 9
Posts: 14

Original Poster
Rep: Reputation: 0
Thanx...I've tried to stop the service...but the subsys is still locked....
 
Old 01-04-2007, 07:15 AM   #5
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 356

Rep: Reputation: 40
I tried to reproduce the problem by starting with 'service vsftpd start', followed by 'kill -9 <pid_of_vsftpd>'.

'service vsftpd status' tells me that it's dead but still locked. A simple 'service vsftpd start' remedies the issue.

Try to just start vsftpd 'service vsftpd start' and check with 'service vsftpd status' it should say that it is running again.

If not, check your logs for error messages. Perhaps a faulty config causes vsftp to die unexpectedly?
 
Old 01-05-2007, 03:07 AM   #6
rajibshovan
LQ Newbie
 
Registered: Dec 2006
Location: Dhaka, Bangladesh
Distribution: RedHat 9
Posts: 14

Original Poster
Rep: Reputation: 0
Dear rhoekstra

When I restart the service, it says [0k]

when stop the service, it says [FAILED]

But there is no running pid for vsftpd...then what to kill!!!
Then I tried few things also:
0)view the log files,,,but nothing found
1) removed vsftpd lock file from /var/lock/subsys
2)remove xinetd lock file
3)reboot the server..
4)again tried to start/stop the service....

and I think that the vsftpd.conf is in default configuration now..

but no help....the problem is really annoying...
thanx for ur help....any more??? plz
 
Old 01-05-2007, 04:45 AM   #7
rhoekstra
Member
 
Registered: Aug 2004
Location: The Netherlands
Distribution: RedHat 2, 3, 4, 5, Fedora, SuSE, Gentoo
Posts: 356

Rep: Reputation: 40
When you do 'service vsftpd start'
what does 'ps -ef|grep vsftp' say ?

Do you have vsftp also configured through xinet? try not to do so... for example, for testing, disable xinetd, start vsftpd and try the ps command. Is it running?

BTW.. did it work before? and what has been changed since?
 
Old 01-06-2007, 10:21 AM   #8
rajibshovan
LQ Newbie
 
Registered: Dec 2006
Location: Dhaka, Bangladesh
Distribution: RedHat 9
Posts: 14

Original Poster
Rep: Reputation: 0
'ps -ef|grep vsftp' says its runnig process Info like:

root 2276 2174 0 21:12 tty1 grep vsftp

No i didn't configure vsftpd through xinet..

Yeh It worked before....I was editing the vsftpd.conf file..but no big deals i think..

When the pc shutdown, then It also show the message that

service vsftpd stop [FAILED]

I think...there's no way but reinstall the package..do u think so??

Thanx.....
 
  


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
vsftpd : localhost connection refused problem dazz Linux - Newbie 5 04-14-2006 06:52 AM
vsftpd - local connection refused simonmccourt Linux - Networking 15 11-02-2003 04:35 PM
vsftpd connection refused rhonneil Linux - Newbie 0 09-25-2003 01:30 AM
vsftpd Connection Refused Errors SForsgren Linux - General 2 04-27-2003 12:46 AM
Redhat 8.0 ftp connection refused GabeF Linux - Networking 5 11-14-2002 05:52 PM


All times are GMT -5. The time now is 05:17 AM.

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