Put files on FTP server don't work

Advertisement

rafall
Joined:
Posts:
3
Location:
P:oland

Put files on FTP server don't work

I have a problem with WinScp dll. I try to add files on ftp from 2 virtual machines. Both machines are in the same domain. On 1st machine, everything works correctly, but on second don't. I compare session logs and first thing i saw was that:
On machine where script work, in log I have information about PORT command
On second machine is EPSV and switching to passive mode.

Any solution for this?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,262
Location:
Prague, Czechia

Re: Put files on FTP server don't work

You didn't post any actual error message.

Please attach a full session log files from both machines (using the latest version of WinSCP).

Reply with quote

rafall
Joined:
Posts:
3
Location:
P:oland

This is error
Error: Exception calling "Check" with "0" argument(s): "Error transferring file '\\igedevad\AUTOMATIC-TESTS\AT_Databases\
EDB\4.76\EDB_After_ZeroTest.bak'.
Copying files to remote side failed."
System.Management.Automation.MethodInvocationException: Exception calling "Check" with "0" argument(s): "Error transferri
ng file '\\igedevad\AUTOMATIC-TESTS\AT_Databases\EDB\4.76\EDB_After_ZeroTest.bak'.
Copying files to remote side failed." ---> WinSCP.SessionRemoteException: Error transferring file '\\igedevad\AUTOMATIC-T
ESTS\AT_Databases\EDB\4.76\EDB_After_ZeroTest.bak'.
Copying files to remote side failed.
   at WinSCP.OperationResultBase.Check()
   at CallSite.Target(Closure , CallSite , Object )
   --- End of inner exception stack trace ---
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exce
ption)
   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
  • NotWorkingMachine.log (8.09 KB, Private file)

Reply with quote

rafall
Joined:
Posts:
3
Location:
P:oland

Here's correct log for not working machine. I forgot to change ftp mode back to active
  • NotWorkingMachine_correct.log (8.22 KB, Private file)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,262
Location:
Prague, Czechia

> 2021-11-04 12:17:23.025 EPRT |2|fe80:0000:0000:0000:48f4:bde2:c473:a484|53686|
< 2021-11-04 12:17:23.025 500 Bad EPRT protocol.
The above means that for WinSCP, it's IPv6 connection, so WinSCP has to use EPRT, instead of PORT. But the vsftpd server sees the connection as IPv4. That can happen if the network between you and the server changes between IPv4 and IPv6. The solution is not to use the active mode in the first place. Or are you able to use the active mode with any other FTP client?

Reply with quote

Advertisement

You can post new topics in this forum