ProFTPD Server problem

Issues related to software problems.
Divejobsonline
Posts: 25
Joined: 2010/05/10 20:06:57
Location: Sweden
Contact:

ProFTPD Server problem

Post by Divejobsonline » 2010/05/10 20:26:04

I have ProFTPD server 1:22.
The problem I have is that ProFTPD server disconnects after approx. 10 min and I have to reboot the server for it to go up again. It is quite disturbing.

I have followed CentOS manual by the letter but it does not work despite it, I don't get any error codes or other (what I know about) is there anyone else who has encountered something similar? I do not know what to ask!? And yes it is certainly a n00b question but this is now. Have tried more or less all the clients I could find but it is the same error in spite of different clients. Have tested on the inside and the outside to FW.

What do you need to help me? PLEASE :-(

wedgeshot
Posts: 17
Joined: 2010/01/27 04:25:53

Re: ProFTPD Server problem

Post by wedgeshot » 2010/05/11 02:49:04

Where did you get the RPM for proftp from or did you build from source? Does anything else on the machine stop working? Do you have httpd running also?

run via sudo or as root in a terminal ---> service proftpd status

Have you looked at the log files for errors? Start with /var/log/messages /var/log/proftpd.log /var/log/secure

In a terminal type --> dmesg and look for and errors about ftp crashing.

Is SELinux enabled? In a terminal type --> sestatus

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

ProFTPD Server problem

Post by pschaff » 2010/05/11 17:30:25

Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]

In addition to the questions posed by [b]wedgeshot[/b] the output "./getinfo.sh package" from the 4th link may be helpful.

Divejobsonline
Posts: 25
Joined: 2010/05/10 20:06:57
Location: Sweden
Contact:

Re: ProFTPD Server problem

Post by Divejobsonline » 2010/05/11 21:42:29

[quote]
wedgeshot wrote:
Where did you get the RPM for proftp from or did you build from source?
[/quote]
It was included in the package i installed

[quote]
Does anything else on the machine stop working?
[/quote]
Not what i now off

[quote]
Do you have httpd running also?
[/quote]

I have Apache runing if that?s what you meen, It?s working the whole time.

[quote]
run via sudo or as root in a terminal ---> service proftpd status
[/quote]
Answer: > service proftpd status
proftpd is stopped

[quote]
Have you looked at the log files for errors? Start with /var/log/messages /var/log/proftpd.log /var/log/secure
[/quote]
Don?t see anything strange in the logs

[quote]
In a terminal type --> dmesg and look for and errors about ftp crashing.
[/quote]
See the file at http://81.201.222.238/dmeag.txt

[quote]
Is SELinux enabled? In a terminal type --> sestatus
[/quote]
> sestatus
SELinux status: disabled


When i tries to restart protfp in webmin i get this error msg:
Failed to start FTP server : You cannot start the server daemon when in inetd mode.
[Moderator edit to fix quoting.]

r_hartman
Posts: 706
Joined: 2009/03/23 15:08:11
Location: Netherlands
Contact:

Re: ProFTPD Server problem

Post by r_hartman » 2010/05/12 10:18:17

It would seem you are not running a real CentOS system, as proftpd is not in the CentOS repositories.
As [b]pschaff[/b] suggested, you may want to post the output of "./getinfo.sh package".

A quick kernel identification could be provided by "uname -r"

Edit 1:
As the last line of your post indicates you have proftpd running in inetd mode, you cannot start or stop it using the service commands. While you're troubleshooting, there should be no need to restart the box, however, restarting xinetd should suffice:
[code]# service xinetd restart[/code]

You may want to do
[code]# grep disable /etc/xinetd.d/* | grep no[/code]
first, to see if any other services in inetd mode will be affected by such a restart.

Edit 2:
You can verify whether your FTP server is running using:
[code]# netstat -an | grep -F tcp | grep -F LISTEN | grep -F 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: ProFTPD Server problem

Post by pschaff » 2010/05/12 10:33:40

[quote]
r_hartman wrote:
...
As [b]pschaff[/b] suggested, you may want to post the output of "./getinfo.sh package".
[/quote]
Please do.

[quote]
A quick kernel identification could be provided by "uname -r"
[/quote]
The dmesg link shows:
Linux version 2.6.18-164.11.1.el5xen (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 20 08:53:10 EST 2010

r_hartman
Posts: 706
Joined: 2009/03/23 15:08:11
Location: Netherlands
Contact:

Re: ProFTPD Server problem

Post by r_hartman » 2010/05/12 10:45:34

Interesting. I missed that.
Then the OP either did not get proftpd "with the package" or the server was installed from a custom package.

A "yum list proftpd" on my i386 box returns:
[code]# yum list proftpd
Loaded plugins: priorities, security
519 packages excluded due to repository priority protections
Available Packages
proftpd.i386 1.3.2-1.el5.rf rpmforge[/code]
so I'd say it's not part of CentOS (which undoubtedly prompted you to ask the OP where the RPM originated from).

Divejobsonline
Posts: 25
Joined: 2010/05/10 20:06:57
Location: Sweden
Contact:

Re: ProFTPD Server problem

Post by Divejobsonline » 2010/05/12 18:28:43

[quote]
pschaff wrote:
[quote]
r_hartman wrote:
...
As [b]pschaff[/b] suggested, you may want to post the output of "./getinfo.sh package".
[/quote]
Please do.

[quote]
A quick kernel identification could be provided by "uname -r"
[/quote]
The dmesg link shows:
Linux version 2.6.18-164.11.1.el5xen (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 20 08:53:10 EST 2010[/quote]




[color=FF0000]Here are the info from ./getinfo.sh package [/color] http://81.201.222.238/basedata.s11730.txt

Divejobsonline
Posts: 25
Joined: 2010/05/10 20:06:57
Location: Sweden
Contact:

Re: ProFTPD Server problem

Post by Divejobsonline » 2010/05/12 18:33:34

[quote]
r_hartman wrote:
Interesting. I missed that.
Then the OP either did not get proftpd "with the package" or the server was installed from a custom package.

A "yum list proftpd" on my i386 box returns:
[code]# yum list proftpd
Loaded plugins: priorities, security
519 packages excluded due to repository priority protections
Available Packages
proftpd.i386 1.3.2-1.el5.rf rpmforge[/code]
so I'd say it's not part of CentOS (which undoubtedly prompted you to ask the OP where the RPM originated from).[/quote]

[color=FF0000]I have installed it from rpm, this is my first linux server installation, so i makes mistakes[/color]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: ProFTPD Server problem

Post by pschaff » 2010/05/12 22:36:42

[quote]
Divejobsonline wrote:
...
I have installed it from rpm, this is my first linux server installation, so i makes mistakes[/quote]
Understandable and common. It is still not clear where you got the RPM package as you do not have a repo configured that supplies it. Please read about [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url], and [url=http://wiki.centos.org/AdditionalResources/Repositories]Repositories[/url], and note the warnings and advice about installing and configuring the [url=http://wiki.centos.org/PackageManagement/Yum/Priorities]yum priorities plugin[/url].

Installing software from a known repo both helps assure higher quality and compatible packages, and can use yum to resolve and satisfy dependencies. Why did you not use the supplied vsftpd?

Post Reply

Return to “CentOS 5 - Software Support”