FTPd not working properly? Shows no files,directories on log in

10 posts / 0 new
Last post
#1 Wed, 02/01/2012 - 14:11
rulez22

FTPd not working properly? Shows no files,directories on log in

Something weird is going on with FTP server after migration.
When I log in to any web site within the server it shows blank page - no directories/files.
ftp client - FAR MANAGER
tried normal mode/passive mode - same thing
Tried adding custom command "LIST -la" - nothing..

window log:
"entering passive mode.."
"200 type set to A" - (here it stalls for like 10 sec! it's definitely nothing to do with connection speed)
"abort successful..."
blank page

What has to be checked to have FTP working properly?
I cannot update sites over this..

Thanks.

Wed, 02/01/2012 - 15:17
helpmin

your firewall probably blocked the "passive ftp ports"?

Wed, 02/01/2012 - 16:27
andreychek

Howdy,

You may also want to check out the "FTP Service Isn't Working" question here, which discusses a kernel module you may be able to use to resolve that:

https://virtualmin.com/documentation/web/faq

Fri, 02/03/2012 - 05:43
rulez22

thats strange!
after running command "modprobe ip_conntrack_ftp" it works perfect
does it have to added to autorun somewhere though? what will happen after server reboot?

Fri, 02/03/2012 - 09:41
andreychek

Oh nuts, you're right, the documentation completely fails to mention how to make that work after a reboot :-)

I'll have to fix that!

You do need to automate running that command on reboot... the typical way of doing that with a kernel module on CentOS is to add the module name to /etc/rc.modules, as described here:

http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-kernel-modul...

On Debian/Ubuntu, you can just add it to /etc/modules.

-Eric

Fri, 02/03/2012 - 12:13
rulez22

I am on Centos 6.2 and there is no "/etc/rc.modules" ?

Fri, 02/03/2012 - 13:03
andreychek

I am on Centos 6.2 and there is no "/etc/rc.modules"?

Yup! That's normal, you can follow the instructiosn in the CentOS link above in order to create that file.

-Eric

Mon, 02/13/2012 - 04:45
rulez22

occasionally (once in 5 days or so) I have to do it again ("modprobe ip_conntrack_ftp")
server hasn't been rebooted or any service restarted
does this mod get unloaded somehow?

Mon, 02/13/2012 - 09:30
andreychek

It shouldn't! I've never heard of a module being unloaded... if you look at the "dmesg" output, do you see anything in that which suggests the module may be crashing?

-Eric

Mon, 02/13/2012 - 18:32 (Reply to #9)
rulez22

dmesg gives me loads of in/out kernel iptables firewall messages
nothing about ftpd

Topic locked