Operating System - HP-UX
1748165 Members
3957 Online
108758 Solutions
New Discussion юеВ

Re: ls command is hang when ftp

 
SOLVED
Go to solution
mohdamir
Frequent Advisor

ls command is hang when ftp

Hi gurus,
I tried to ftp to one server. I can login without any problem. Even execute cd command also. But there problem is when I tried to execute ls, it's hang. I tried using Sun Solaris, it can execute ls without issue.

Thanks in advance for your help.
15 REPLIES 15
Steven Schweda
Honored Contributor

Re: ls command is hang when ftp

> I tried to ftp to one server. [...]

Not a useful description of what you did, or
of "one server".

> I tried using Sun Solaris, [...]

For what?
mohdamir
Frequent Advisor

Re: ls command is hang when ftp

Sorry because not elaborate. My server is using HP-UX and named as A. There is one server, which using Sun Solaris, for me to ftp out/in some file. I named it as B. So right now when I try to ftp to server B from server A it works. I can cd to other directories in server B. However when I try to execute ls, it hangs. Then I try to use server C, which running on Sun Solaris to ftp into server B. It works without any problem.

TQ
bullz
Super Advisor

Re: ls command is hang when ftp

There might be sevral reason for it,

as of i know there might be more number of files located, where you run ls commnad,

plz check

additionaly plz check the user ftp access, what kind of access?
Raynald Boucher
Super Advisor
Solution

Re: ls command is hang when ftp

Did you try using "passive".
Laurent Menase
Honored Contributor

Re: ls command is hang when ftp

It can be a buffer cache sizing pb
or kernel memory contention.
TTr
Honored Contributor

Re: ls command is hang when ftp

Usually the ls error happens when the ftp user's home directory is jailed (chroot) on the ftp server. Is this the case with your server?
Steven Schweda
Honored Contributor

Re: ls command is hang when ftp

> Usually the ls error happens [...]

Which ls error is _the_ ls error?

> [...] (chroot) [...]

_That_ ls error is, in my experience, no ls
output, not a hung condition.
Suraj K Sankari
Honored Contributor

Re: ls command is hang when ftp

Hi,

Your ftp user is configure with "chroot" this is what you are getting this error.

Suraj
mohdamir
Frequent Advisor

Re: ls command is hang when ftp

Hi bullz,
Attached is my ftpaccess. I don't think ftpaccess is a reason because I can ftp to other HP-UX machine without any problem.

Hi Raynald,

What is passive? Can you explain it a little bit?

Hi Laurent,
On my HP-UX server or Sun Solaris server?

Hi TTr and Suraj,
But if I use Sun Solaris server to ftp in using the same ftp user, it works. Is it because the chroot also?