Topic "Could not change directory... Starts in "/""

Author Message
orabrush
[View user's profile]

Joined: 2014-07-27
Posts: 1
Using latest WinSCP
Windows 7 Ultimate
FTP w/ SSL
Using GUI: Commander
To reproduce, all I do is connect to my server on port 21 and it asks me for the users password and I give it.
I have a log:
[code]. 2014-07-26 23:05:02.125 --------------------------------------------------------------------------
. 2014-07-26 23:05:02.125 WinSCP Version 5.5.4 (Build 4433) (OS 6.1.7601 Service Pack 1 - Windows 7 Ultimate)
. 2014-07-26 23:05:02.125 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2014-07-26 23:05:02.125 Local account: Jake-PC\Jake
. 2014-07-26 23:05:02.125 Working directory: C:\Program Files (x86)\WinSCP
. 2014-07-26 23:05:02.125 Process ID: 3396
. 2014-07-26 23:05:02.125 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2014-07-26 23:05:02.125 Time zone: Current: GMT-7, Standard: GMT-8 (Pacific Standard Time), DST: GMT-7 (Pacific Daylight Time), DST Start: 3/9/2014, DST End: 11/2/2014
. 2014-07-26 23:05:02.125 Login time: Saturday, July 26, 2014 23:05:02
. 2014-07-26 23:05:02.125 --------------------------------------------------------------------------
. 2014-07-26 23:05:02.125 Session name: AVS (Modified site)
. 2014-07-26 23:05:02.125 Host name: andersenvan.com (Port: 21)
. 2014-07-26 23:05:02.125 User name: web (Password: No, Key file: No)
. 2014-07-26 23:05:02.125 Tunnel: No
. 2014-07-26 23:05:02.125 Transfer Protocol: FTP
. 2014-07-26 23:05:02.125 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2014-07-26 23:05:02.125 Proxy: none
. 2014-07-26 23:05:02.125 Send buffer: 262144
. 2014-07-26 23:05:02.125 UTF: 2
. 2014-07-26 23:05:02.125 FTP: FTPS: Explicit SSL; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
. 2014-07-26 23:05:02.125 Session reuse: Yes
. 2014-07-26 23:05:02.125 TLS/SSL versions: SSLv2-TLSv1.2
. 2014-07-26 23:05:02.125 Local directory: C:\Users\Jake\Documents, Remote directory: /home/web, Update: No, Cache: Yes
. 2014-07-26 23:05:02.125 Cache directory changes: Yes, Permanent: Yes
. 2014-07-26 23:05:02.125 DST mode: 1; Timezone offset: 0h 0m
. 2014-07-26 23:05:02.125 --------------------------------------------------------------------------
. 2014-07-26 23:05:02.194 Connecting to andersenvan.com ...
. 2014-07-26 23:05:02.248 Connected with andersenvan.com, negotiating TLS connection...
< 2014-07-26 23:05:02.297 220 Welcome to Andersen Van & Storage FTP
> 2014-07-26 23:05:02.297 AUTH SSL
< 2014-07-26 23:05:02.381 234 Proceed with negotiation.
. 2014-07-26 23:05:02.554 Verifying certificate for "Andersen Van & Storage" with fingerprint 88:41:d6:f2:74:5d:bb:51:71:cc:55:e7:b2:8f:7e:ba:d9:79:41:af
. 2014-07-26 23:05:02.554 Certificate common name "andersenvan.com" matches hostname
. 2014-07-26 23:05:02.554 Certificate for "Andersen Van & Storage" matches cached fingerprint
. 2014-07-26 23:05:02.554 Using TLSv1.2, cipher TLSv1/SSLv3: DES-CBC3-SHA, 1024 bit RSA
. 2014-07-26 23:05:02.599 TLS connection established. Waiting for welcome message...
> 2014-07-26 23:05:02.599 USER web
< 2014-07-26 23:05:02.637 331 Please specify the password.
> 2014-07-26 23:05:04.995 PASS ***************************************************************
< 2014-07-26 23:05:05.103 230 Login successful.
> 2014-07-26 23:05:05.103 SYST
< 2014-07-26 23:05:05.188 215 UNIX Type: L8
> 2014-07-26 23:05:05.188 FEAT
< 2014-07-26 23:05:05.272 211-Features:
< 2014-07-26 23:05:05.272 AUTH TLS
< 2014-07-26 23:05:05.272 EPRT
< 2014-07-26 23:05:05.272 EPSV
< 2014-07-26 23:05:05.272 MDTM
< 2014-07-26 23:05:05.272 PASV
< 2014-07-26 23:05:05.272 PBSZ
< 2014-07-26 23:05:05.272 PROT
< 2014-07-26 23:05:05.272 REST STREAM
< 2014-07-26 23:05:05.272 SIZE
< 2014-07-26 23:05:05.355 TVFS
< 2014-07-26 23:05:05.356 UTF8
< 2014-07-26 23:05:05.356 211 End
> 2014-07-26 23:05:05.356 OPTS UTF8 ON
< 2014-07-26 23:05:05.440 200 Always in UTF8 mode.
> 2014-07-26 23:05:05.440 PBSZ 0
< 2014-07-26 23:05:05.524 200 PBSZ set to 0.
> 2014-07-26 23:05:05.524 PROT P
< 2014-07-26 23:05:05.609 200 PROT now Private.
. 2014-07-26 23:05:05.646 Connected
. 2014-07-26 23:05:05.646 --------------------------------------------------------------------------
. 2014-07-26 23:05:05.646 Using FTP protocol.
. 2014-07-26 23:05:05.646 Doing startup conversation with host.
> 2014-07-26 23:05:05.697 PWD
< 2014-07-26 23:05:05.780 257 "/"
. 2014-07-26 23:05:05.799 Changing directory to "/home/web".
> 2014-07-26 23:05:05.799 CWD /home/web
< 2014-07-26 23:05:05.882 550 Failed to change directory.
* 2014-07-26 23:05:05.882 (ECommand) Error changing directory to '/home/web'.
* 2014-07-26 23:05:05.882 Failed to change directory.
. 2014-07-26 23:05:07.083 Getting current directory name.
. 2014-07-26 23:05:07.235 Retrieving directory listing...
> 2014-07-26 23:05:07.235 TYPE A
< 2014-07-26 23:05:07.268 200 Switching to ASCII mode.
> 2014-07-26 23:05:07.268 PASV
< 2014-07-26 23:05:07.351 227 Entering Passive Mode (192,99,169,167,239,127).
> 2014-07-26 23:05:07.351 LIST -a
. 2014-07-26 23:05:22.398 Timeout detected.
. 2014-07-26 23:05:22.398 Could not retrieve directory listing
. 2014-07-26 23:05:22.398 LIST with -a failed, will try pure LIST
. 2014-07-26 23:05:22.491 Connecting to andersenvan.com ...
. 2014-07-26 23:05:22.543 Connected with andersenvan.com, negotiating TLS connection...
< 2014-07-26 23:05:22.610 220 Welcome to Andersen Van & Storage FTP
> 2014-07-26 23:05:22.610 AUTH SSL
< 2014-07-26 23:05:22.693 234 Proceed with negotiation.
. 2014-07-26 23:05:22.867 Verifying certificate for "Andersen Van & Storage" with fingerprint 88:41:d6:f2:74:5d:bb:51:71:cc:55:e7:b2:8f:7e:ba:d9:79:41:af
. 2014-07-26 23:05:22.867 Certificate common name "andersenvan.com" matches hostname
. 2014-07-26 23:05:22.868 Certificate for "Andersen Van & Storage" matches cached fingerprint
. 2014-07-26 23:05:22.868 Using TLSv1.2, cipher TLSv1/SSLv3: DES-CBC3-SHA, 1024 bit RSA
. 2014-07-26 23:05:22.895 TLS connection established. Waiting for welcome message...
> 2014-07-26 23:05:22.895 USER web
< 2014-07-26 23:05:22.951 331 Please specify the password.
. 2014-07-26 23:05:24.165 Attempt to close connection due to fatal exception:
* 2014-07-26 23:05:24.371 (ESshFatal)
. 2014-07-26 23:05:24.372 Connection failed.
. 2014-07-26 23:05:24.372 Terminated by user.
[/code]

I will delete the log after the problem is solved.

For some reason, this keeps happening and I am using passive mode...

Thanks in advance
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
I see more issues in the log. So I'm not sure which one you ask about. Is it about you specifying initial directory /home/web, yet starting in /? I can only see that your server rejects a change to that directory:

Quote:
> 2014-07-26 23:05:05.799 CWD /home/web
< 2014-07-26 23:05:05.882 550 Failed to change directory.


Are you sure the path is correct? Can you attach a log showing how you enter the directory from GUI?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License