Topic "Error getting name of current remote directory"

Author Message
Kaktusfan1707
[View user's profile]

Joined: 2014-02-10
Posts: 5
Hello,
i´m trying to connect to another device over SCP and C#. I try it 5 times and at some time it works on first and on other time it works on 4. try. If it´s not connecting the exception will be written in a logfile.
Here the LogEntry:
Error getting name of current remote directory. ---> WinSCP.SessionRemoteException: Command "pwd"
failed with return code 0 and error message
-sh: groups: not found.

Why happens this sometimes and sometimes not?

Thank you for help
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate log file, set Session.SessionLogPath. 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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

_________________
Martin Prikryl
Kaktusfan1707
[View user's profile]

Joined: 2014-02-10
Posts: 5
So, latest Version is used an logfile is attached.
test.log (70.58 KB) [Download]

Description: (none)

Kaktusfan1707
[View user's profile]

Joined: 2014-02-10
Posts: 5
Now, i know that the device which i would connecting with, isn´t supporting groups. How can i disable it in C#?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Obviously I need a log for a run that failed.
I do not think your problem is related to group command.
_________________
Martin Prikryl
Kaktusfan1707
[View user's profile]

Joined: 2014-02-10
Posts: 5
I have already posted a logfile where the connection doesn´t work.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
OK, I didn't notice that the log includes multiple sessions (some failing some not) and that the error is in German.
Your server delays printing of error message for group command, what makes WinSCP confuse the error with output of following pwd command.
So you need to turn off Lookup user groups.
http://winscp.net/eng/docs/ui_login_scp#other_options
To turn it off from .NET assembly, see:
http://winscp.net/eng/docs/rawsettings
Kaktusfan1707
[View user's profile]

Joined: 2014-02-10
Posts: 5
Thank you Very Happy
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