LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-27-2005, 10:47 PM   #1
Slith(++1)
Member
 
Registered: Sep 2005
Posts: 36

Rep: Reputation: 15
Pure-Ftpd Address already in use


I installed pure-ftpd (ftp server) from a rpm package. When i try to run it using

/usr/local/sbin/pure-ftpd &

As said in the documentation. I get the following error.

"Unable to start a standalone server: Address already in use"

If you dont know how to get it working but know whats happening great. If you know how to fix it even better! So Whats happening?

Ps, Im logged in as root
 
Old 09-28-2005, 03:41 AM   #2
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Rep: Reputation: 15
Try to start the server using -S string /usr/local/sbin/pure-ftpd -S your.ip.address:port &
see man page of pure-ftpd it will be useful to you
 
Old 09-28-2005, 09:01 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I've not used pure-ftpd but my first thought was perhaps it is trying to use the standard ftpd port and you're running ftpd already?

Do a "grep ftp /etc/services" to see ports assigned for ftp.

Then run an "lsof -i: <port> for each of the ports seen. This will show you if any of those ports is currently open for a process and give you the process name and PID.
 
Old 09-28-2005, 09:06 PM   #4
Slith(++1)
Member
 
Registered: Sep 2005
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
/usr/local/sbin/pure-ftpd -S your.ip.addressort
Same error



Quote:
Do a "grep ftp /etc/services" to see ports assigned for ftp.
# 21 is registered to ftp, but also used by fsp
ftp 21/tcp
ftp 21/udp fsp fspd
tftp 69/tcp
tftp 69/udp
sftp 115/tcp
sftp 115/udp
tftp-mcast 1758/tcp
tftp-mcast 1758/udp
venus-se 2431/udp # udp sftp side effect
codasrv-se 2433/udp # udp sftp side effectQ

Does it mean somthing is already running on port 21?
 
Old 09-29-2005, 01:58 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
The 'grep' does not have much of a meaning. It only tells you which port-number is associated with a service.

My guess is that you already have a server-application that is using the ftp-port (probably another ftp-server). This is also what jlightner stated in his post.

You can try the commands below. If you get a connection, it proves that there's another server-application using the ftp-port. If you don't get a connection, there's either no server-app running that uses the ftp-port or a firewall blocks access to thid port (so in that case the btest is non-conclusive).

ftp localhost
ftp ip-address

Last edited by Wim Sturkenboom; 09-29-2005 at 02:02 AM.
 
Old 09-29-2005, 08:34 AM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The grep was to give you a list of ftp related ports on your server (assuming they are there - if the application requests a specific port number it doesn't have to be in /etc/services - it is just a lookup table).

The command that would let you know if the port is already in use is the lsof I mentioned:

For example:
lsof -i :21
Would show you any process that had port 21 in use.

lsof -i :115
Would show you any process that had port 115 in use.

Essentially you need to find out what port pure-ftp uses then run lsof -i :<port> to insure that port isn't already in use.
 
Old 09-29-2005, 11:54 PM   #7
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Mea culpa, mea culpa

I did not read your post properly
 
Old 10-03-2005, 01:00 PM   #8
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally posted by Wim Sturkenboom
Mea culpa, mea culpa

I did not read your post properly

No problem. Though I am loathe to admit it there was at least one occasion in my life when I was wrong about something - it took me years to get over it. The flashbacks still bother me...
 
Old 01-24-2006, 01:34 PM   #9
laggerific
Member
 
Registered: Jan 2006
Posts: 65

Rep: Reputation: 15
Thanks for the info...I was banging my head on this one too...and being a fairly new linux user I wasn't sure where or how to start troubleshooting this.

The info here will certainly be helpful for the future...and it's true about the MAN page...it was extremely helpful as the suggested line to run "... -S IPADDR:PORT" didn't work for me...but reading the MAN page I discovered that it should be IPADDR,PORT. So good information on all levels for a newbie...thanks.
 
  


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
pure-ftpd help. Drolith Linux - Software 3 11-13-2005 01:50 PM
pure-ftpd help hongman Linux - Software 16 04-06-2005 11:18 AM
Pure-ftpd Yoinx Linux - Software 0 10-18-2004 12:12 PM
Limit access to pure-ftpd by ip address smolz Linux - Software 0 08-03-2004 07:54 PM
Pure-ftpd help ksgill Linux - Newbie 15 04-18-2003 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:04 PM.

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