can not change directory

Advertisement

cu
Guest

can not change directory

I'm a new user of winscp. I used sftp protocol to connect to our f secure ftp server. There are four directories there, when I tried to access a directory by doubleclicking its name, I got an error:
Error changind directory to 'xxx'

General failure.
Error code: 4
Error message from server: None (?)
Request code: 11
What is the cause of it?

Thanks

Cu

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: can not change directory

I have no idea, the server does not report any cause, as you may see yourself. Are you able to enter at least some directory? Also post a WinSCP log file, if you can.

Reply with quote

Guest

change directory

I found out our server is a fsecure windows nt server, would this affect anything?

The log I have is:
Changing directory to "PostProcessed".
. Getting real path for '/PostProcessed'
> Type: SSH_FXP_REALPATH, Size: 23, Number: 1808
< Type: SSH_FXP_NAME, Size: 151, Number: 1808
. Real path is '///hf1fs1/users1$/server12/support/test/postprocessed'
. Trying to open directory "///hf1fs1/users1$/server12/support/test/postprocessed".
> Type: SSH_FXP_OPENDIR, Size: 74, Number: 2059
< Type: SSH_FXP_STATUS, Size: 9, Number: 2059
< Status/error code: 4, Message: 2059, Server: None, Language: ?
* (ECommand) Error changing directory to 'PostProcessed'.
* General failure.
* Error code: 4
* Error message from server: None (?)
* Request code: 11
Thanks

cu

Reply with quote

martin
Site Admin
martin avatar

Re: change directory

I would like to see a full log file or at least I need to know in what directory you were before changing to 'PostProcessed'.

Reply with quote

Guest

Re: change directory

One of my colleague tried winscp with an older version, he said he didn't get this error. I've tried both english and international multilanguage installation with the same problem. After he upgraded to the 3.5 version, he got the same problem. Can we still download the previous version of Winscp somewhere?

Thanks
cu

Below is the complete log:
. --------------------------------------------------------------------------
. WinSCP Version 3.5.0 (Build 204)
. Login time: ...
. --------------------------------------------------------------------------
 
. Transfer Protocol: SFTP
. SSH protocol version: 2; Compression: No
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. SSH Bugs: 
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: default, Remote directory: home, Update: No, Cache: Yes
. Cache directory changes: Yes, Permanent: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
.//
. Connecting to 219.73.89.81 port 22
. Server version: SSH-2.0-2.4.0 F-Secure SSH Windows NT Server
. We claim version: SSH-2.0-WinSCP-release-3.5
. Using SSH protocol version 2
. Doing Diffie-Hellman key exchange
. Asking user:
. The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's key fingerprint is: ssh-dss 1024 f0:e1:c0:36:c1:19:00:8b:ef:82:6c:76:67:ca:2c:eb
. 
. If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
. 
. Continue connecting and add host key to the cache? ()
. Host key fingerprint is:
. ssh-dss 1024 f0:e1:c0:36:c1:19:00:8b:ef:82:6c:76:67:ca:2c:eb
. Initialised Blowfish client->server encryption
. Initialised Blowfish server->client encryption
! Using username "cui_ftp".
. Session password prompt ()
. Using stored password.
. Sent password
. Access granted
. Opened channel for session
. Started a shell/command
. --------------------------------------------------------------------------
. Using SFTP protocol.
. Doing startup conversation with host.
> Type: SSH_FXP_INIT, Size: 5, Number: -1
< Type: SSH_FXP_VERSION, Size: 5, Number: -1
. SFTP version 2 negotiated.
. Getting current directory name.
. Getting real path for '.'
> Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< Type: SSH_FXP_NAME, Size: 23, Number: 16
. Real path is '/'
. Listing directory "/".
> Type: SSH_FXP_OPENDIR, Size: 10, Number: 267
< Type: SSH_FXP_HANDLE, Size: 17, Number: 267
> Type: SSH_FXP_READDIR, Size: 17, Number: 524
< Type: SSH_FXP_NAME, Size: 911, Number: 524
> Type: SSH_FXP_READDIR, Size: 17, Number: 780
< Type: SSH_FXP_STATUS, Size: 9, Number: 780
< Status/error code: 1
> Type: SSH_FXP_CLOSE, Size: 17, Number: 1028
< Type: SSH_FXP_STATUS, Size: 9, Number: 1028
< Status/error code: 0
. Startup conversation with host finished.
. Changing directory to "OneTimeFTP".
. Getting real path for '/OneTimeFTP'
> Type: SSH_FXP_REALPATH, Size: 20, Number: 1296
< Type: SSH_FXP_NAME, Size: 145, Number: 1296
. Real path is '///hf1fs1/users1$/server12/support/test/onetimeftp'
. Trying to open directory "///hf1fs1/users1$/server12/support/test/onetimeftp".
> Type: SSH_FXP_OPENDIR, Size: 71, Number: 1547
< Type: SSH_FXP_STATUS, Size: 9, Number: 1547
< Status/error code: 4, Message: 1547, Server: None, Language: ? 
* (ECommand) Error changing directory to 'OneTimeFTP'.
* General failure.
* Error code: 4
* Error message from server: None (?)
* Request code: 11
. Changing directory to "PostProcessed".
. Getting real path for '/PostProcessed'
> Type: SSH_FXP_REALPATH, Size: 23, Number: 1808
< Type: SSH_FXP_NAME, Size: 151, Number: 1808
. Real path is '///hf1fs1/users1$/server12/support/test/postprocessed'
. Trying to open directory "///hf1fs1/users1$/server12/support/cui_test/postprocessed".
> Type: SSH_FXP_OPENDIR, Size: 74, Number: 2059
< Type: SSH_FXP_STATUS, Size: 9, Number: 2059
< Status/error code: 4, Message: 2059, Server: None, Language: ? 
* (ECommand) Error changing directory to 'PostProcessed'.
* General failure.
* Error code: 4
* Error message from server: None (?)
* Request code: 11

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: change directory

Anonymous wrote:

One of my colleague tried winscp with an older version, he said he didn't get this error. I've tried both english and international multilanguage installation with the same problem. After he upgraded to the 3.5 version, he got the same problem. Can we still download the previous version of Winscp somewhere?
What version does work? Does it work with SCP or SFTP protocol? You may download older version on Sourceforge.

From the log I believe that WinSCP behaves correctly. It ask server to cannonize path /PostProcessed because you enter the PostProcessed directory from the root. The server replies that actual full path is ///hf1fs1/users1$/server12/support/test/postprocessed, but then it refuses to sent a directory listing for it. The responsed full path is rather strange, does it have some meaning on your server?

Also, you have not still answered me, if you are able to enter at least some directory. Thanks.

Reply with quote

Guest

Re: change directory

I can not access any directories. They all gave me the same error message. I don't really know the meaning of the full path on our server.

My colleague didn't say what older version he's using. I will download an older version and let you know if it works.

Thanks

cu

Reply with quote

martin
Site Admin
martin avatar

Re: change directory

Anonymous wrote:

My colleague didn't say what older version he's using. I will download an older version and let you know if it works.
Thanks in advance. I'm really interested in this.

Reply with quote

Other Guest
Guest

Re: change directory

Hi all,

i'm a new WinSCP user. I have the same problem with f-secure ssh server on windows NT server.
I'll give you more information.
I have tried to log on on my ssh server with psftp. I am able to change directory using this command: cd \dirname. From WinSCP i receive this message:
--------------------------------------------------------------------------
WinSCP Version 3.5.6 (Build 213)
Login time: Wednesday, April 28, 2004 10:21:49 AM
--------------------------------------------------------------------------
Session name: 
Host name:  (Port: 22)
User name: (Password: Yes, Key file: No)
Transfer Protocol: SFTP (SCP)
SSH protocol version: 2; Compression: No
Agent forwarding: No; TIS/CryptoCard: No; KI: Yes
Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
SSH Bugs: -,-,-,-,-,-,-,-,
Proxy: none
Return code variable: Autodetect; Lookup user groups: Yes
Shell: /bin/bash, EOL: 0
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
--------------------------------------------------------------------------
Looking up host ""
Connecting to  port 22
Server version: SSH-2.0-2.4.0 F-Secure SSH Windows NT Server
We claim version: SSH-2.0-WinSCP-release-3.5.6
Using SSH protocol version 2
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-dss 1024 df:5b:1a:db:fd:ba:e6:7f:3c:f3:24:5f:8a:68:27:94
Initialised Blowfish client->server encryption
Initialised Blowfish server->client encryption
Using username "".
Session password prompt (@'s password: )
Using stored password.
Sent password
Access granted
Opened channel for session
Started a shell/command
--------------------------------------------------------------------------
Using SFTP protocol.
Doing startup conversation with host.
Type: SSH_FXP_INIT, Size: 5, Number: -1
Type: SSH_FXP_VERSION, Size: 5, Number: -1
SFTP version 2 negotiated.
Getting current directory name.
Getting real path for '.'
Type: SSH_FXP_REALPATH, Size: 10, Number: 10512
Type: SSH_FXP_NAME, Size: 23, Number: 10512
Real path is '/'
Listing directory "/".
Type: SSH_FXP_OPENDIR, Size: 10, Number: 10763
Type: SSH_FXP_HANDLE, Size: 17, Number: 10763
Type: SSH_FXP_READDIR, Size: 17, Number: 11020
Type: SSH_FXP_NAME, Size: 737, Number: 11020
Type: SSH_FXP_READDIR, Size: 17, Number: 11276
Type: SSH_FXP_STATUS, Size: 9, Number: 11276
Status/error code: 1
Type: SSH_FXP_CLOSE, Size: 17, Number: 11524
Type: SSH_FXP_STATUS, Size: 9, Number: 11524
Status/error code: 0
Startup conversation with host finished.
Changing directory to "VF-ES".
Getting real path for '/VF-ES'
Type: SSH_FXP_REALPATH, Size: 15, Number: 11792
Type: SSH_FXP_NAME, Size: 63, Number: 11792
Real path is '/D:/sftp/vosedc/vf-es'
Trying to open directory "/D:/sftp/vosedc/vf-es".
Type: SSH_FXP_OPENDIR, Size: 30, Number: 12043
Type: SSH_FXP_STATUS, Size: 9, Number: 12043
Status/error code: 4, Message: 12043, Server: None, Language: * 
(ECommand) Error changing directory to 'VF-ES'.
General failure.
Error code: 4
Error message from server: None (*)
Request code: 11
Changing directory to "VF-ES".
Getting real path for '/VF-ES'
Type: SSH_FXP_REALPATH, Size: 15, Number: 12304
Type: SSH_FXP_NAME, Size: 63, Number: 12304
Real path is '/D:/sftp/vosedc/vf-es'
Trying to open directory "/D:/sftp/vosedc/vf-es".
Type: SSH_FXP_OPENDIR, Size: 30, Number: 12555
Type: SSH_FXP_STATUS, Size: 9, Number: 12555
Status/error code: 4, Message: 12555, Server: None, Language: * 
(ECommand) Error changing directory to 'VF-ES'.
General failure.
Error code: 4
Error message from server: None (*)
Request code: 11
Have you any suggestion?

Thank's in advance.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: change directory

Other Guest wrote:

i'm a new WinSCP user. I have the same problem with f-secure ssh server on windows NT server.
I'll give you more information.
I have tried to log on on my ssh server with psftp. I am able to change directory using this command: cd \dirname.
If the only way how you can enter the directory is cd \dirname than it is bug of the server. SFTP specification says that the server must support at least normal slashes (/). So you should be able to enter the directory with cd /dirname too. Are you?

Note that it is not forbidden to use backslashes, but normal slashes must be supported!

Anyway, the problem is just the same as it he post above: WinSCP asks server for fullpath to directory you enter. The server replies what that the fullpath is, but subsequently refuses to list its content. I do not understand this.

Does it happen with every directory on your server?
Can you create a test account for me?

BTW, I have deleted your duplicate post.

Reply with quote

Guest
Guest

Re: change directory

Yes it happens on every directory on the home direcotory of the user. It's very very strange.... :?

I have also verified that with f-secure ssh file transfer all works fine...

thanks

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: change directory

Yes it happens on every directory on the home direcotory of the user. It's very very strange.... :?

I have also verified that with f-secure ssh file transfer all works fine...
Can you create a test account for me?

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: change directory

No, I can't... because ssh server is behind firewall and i'm not system administrator.... sorry.
OK, I have downloaded evaluation version of the F-Secure server. Maybe it will help me to solve this.

Reply with quote

martin
Site Admin
martin avatar

Re: change directory

Other Guest wrote:

I have tried to log on on my ssh server with psftp. I am able to change directory using this command: cd \dirname.
BTW: Are you able to enter the directory by typing \dirname to "Open directory" window (Ctrl-O)?

Reply with quote

Guest

Re: change directory

Hi,

Apologies for delay...
I have closed this issue installing new version of F-Secure SSH Server (5.3 build 20).
This problem is caused by a bug in the older version of SSH Server.

Thank you.

Reply with quote

algernon
Guest

cannot change dir from root

hi,

i have just experienced the same problem.
cannot change to any dir after login.
unfortunately i do not know what server type i am connecting to. i try to find out.
i am sure it is an incompatibility to be blamed to the server, but it is true, the older 3.6.8 of winscp version works! all 3.7.x do not.

using the goto>opendir and typing \dirname or /dirname does not do the trick.

a truely lovely program! btw, what kind of free ssl-ftp server would you recommend if i want to set one up for my own use?

algernon

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: cannot change dir from root

algernon wrote:

i have just experienced the same problem.
cannot change to any dir after login.
unfortunately i do not know what server type i am connecting to. i try to find out.
i am sure it is an incompatibility to be blamed to the server, but it is true, the older 3.6.8 of winscp version works! all 3.7.x do not.

using the goto>opendir and typing \dirname or /dirname does not do the trick.
I'm not very clever from your post. What problem are you exactly having?

btw, what kind of free ssl-ftp server would you recommend if i want to set one up for my own use?
WinSCP has nothing to do with SSL. It is SSH. I use OpenSSH for Windows.

Reply with quote

Guest

it is a problem similar to what user "cu" reports!
Error changing directory to 'xxx'

The server does not support the operation.
Error code: 8
Error message from server: Operation unsupported
Request code: 7
the old version winscp 3.6.8. does not give this error!

in case you want to reproduce the error, here is some info.
the server i connect to is called ftpshellserver:
https://www.ftpshell.com/
<invalid hyperlink removed by admin>

greetings,
algernon

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

it is a problem similar to what user "cu" reports!
...
This is completely different problem.
I have downloaded the server and its SFTP implementation seems terrible.

I have implemented workaround for this particular lack of functionality. In other words WinSCP returns back to pre-3.7.2 approach when entering subdirectories when server fails to support the newer approach. The change in 3.7.2 was that since this version WinSCP allows entering traverse-only directories (chmod 110).

However it seems that the server does not support many other features.

Reply with quote

algernon
Guest

thank you.

Nice support! :D

I do not have any choice in this particular case, but what (free) SFTP server would you recommend to install and use together with WinSCP ?

Another question, do you consider writing a plugin for "Total Commander"?
https://www.ghisler.com/

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: thank you.

algernon wrote:

I do not have any choice in this particular case, but what (free) SFTP server would you recommend to install and use together with WinSCP?
OpenSSH for Windows, see one of my posts above.

Another question, do you consider writing a plugin for "Total Commander"?
https://www.ghisler.com/
No. Or at least not now. This was discussed here many times, please search the forum.

Reply with quote

uologic
Joined:
Posts:
5
Location:
Pakistan

Resolved

I removed
[Sessions\Default%20Settings]
....
from winscp.ini and error code 2 can't change directory is gone. hope that help you.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: can not change directory

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum