Invalid Access to Memory error on scripted 'Get'

Advertisement

TLWilliams
Guest

Invalid Access to Memory error on scripted 'Get'

I'm converting some MS FTP transfers in DOS batch files to Winscp.com using scripts. Several have run successfully, but today (new script) I get an "Invalid Access to Memory" error when script does a Get command. Destination folder is AS400 file system which only allows 8.3 names, if that is pertinent. File on site is 7.3 name

Reply with quote

Advertisement

TLWilliams
Joined:
Posts:
4
Location:
Richmond, VA, USA

Re: Invalid Access to Memory error on scripted 'Get'

I have tested using get to local server file system, so AS400 file system is not issue. I can put files, list files, delete files, get a 3 byte file, but get error on 102 byte file and original larger 100KB file. This is a production server, so can't reboot during day; will try that this evening.

Reply with quote

TLWilliams
Joined:
Posts:
4
Location:
Richmond, VA, USA

Re: Invalid Access to Memory error on scripted 'Get'

martin wrote:

What version of WinSCP are you using? Can you post a log file?

Started with 4.05, now on 4.06. Also fails on another machine still on 4.05. Can copy file in GUI, not in Batch. Have tried Binary and ASCII transfer. (Identifying data obscured)

BATCH STATEMENT:
c:\progra~1\winscp\winscp.com SITE /script=y:\Get$tst.SPT /log=y:\Memory.log

SCRIPT:
option batch on
option confirm off
option transfer binary
cd XXXXXX.com/agentsonly/tempfiles
get sweep1.txt
exit

LOG FILE:

. 2008-04-03 08:15:29.523 --------------------------------------------------------------------------
. 2008-04-03 08:15:29.773 WinSCP Version 4.0.6 (Build 358) (OS 5.0.2195 Service Pack 4)
. 2008-04-03 08:15:29.929 Login time: Thursday, April 03, 2008 8:15:29 AM
. 2008-04-03 08:15:30.117 --------------------------------------------------------------------------
. 2008-04-03 08:15:30.273 Session name: SITE
. 2008-04-03 08:15:30.445 Host name: ftp.XXXXX.com (Port: 21)
. 2008-04-03 08:15:30.617 User name: USER (Password: Yes, Key file: No)
. 2008-04-03 08:15:30.773 Tunnel: No
. 2008-04-03 08:15:30.929 Transfer Protocol: FTP
. 2008-04-03 08:15:31.101 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2008-04-03 08:15:31.257 Proxy: none
. 2008-04-03 08:15:31.414 FTP: Passive: Yes
. 2008-04-03 08:15:31.585 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2008-04-03 08:15:31.742 Cache directory changes: Yes, Permanent: Yes
. 2008-04-03 08:15:31.898 DST mode: 1
. 2008-04-03 08:15:32.070 --------------------------------------------------------------------------
. 2008-04-03 08:15:32.273 Connecting to ftp.XXXXX.com ...
. 2008-04-03 08:15:32.617 Connected with ftp.XXXXX.com. Waiting for welcome message...
< 2008-04-03 08:15:32.789 220 Microsoft FTP Service
> 2008-04-03 08:15:32.945 USER USER
< 2008-04-03 08:15:33.117 331 Password required for USER.
> 2008-04-03 08:15:33.273 PASS *********
< 2008-04-03 08:15:33.429 230 User USER logged in.
> 2008-04-03 08:15:33.601 SYST
< 2008-04-03 08:15:33.757 215 Windows_NT
> 2008-04-03 08:15:33.929 FEAT
< 2008-04-03 08:15:34.101 211-FEAT
< 2008-04-03 08:15:34.257 SIZE
< 2008-04-03 08:15:34.429 MDTM
< 2008-04-03 08:15:34.585 211 END
. 2008-04-03 08:15:34.757 Connected
. 2008-04-03 08:15:34.914 --------------------------------------------------------------------------
. 2008-04-03 08:15:35.085 Using FTP protocol.
. 2008-04-03 08:15:35.257 Doing startup conversation with host.
> 2008-04-03 08:15:35.414 PWD
< 2008-04-03 08:15:35.570 257 "/XXXXX" is current directory.
. 2008-04-03 08:15:35.742 Getting current directory name.
. 2008-04-03 08:15:35.898 Startup conversation with host finished.
. 2008-04-03 08:15:36.085 Cached directory change via "XXXXX.com/agentsonly/tempfiles" to "/USER/XXXXXX.com/agentsonly/tempfiles".
. 2008-04-03 08:15:36.242 Getting current directory name.
. 2008-04-03 08:15:36.414 Listing file "sweep1.txt".
. 2008-04-03 08:15:36.585 Retrieving directory listing...
> 2008-04-03 08:15:36.742 CWD /USER/XXXXX.com/agentsonly/tempfiles/
< 2008-04-03 08:15:36.914 250 CWD command successful.
> 2008-04-03 08:15:37.070 PWD
< 2008-04-03 08:15:37.226 257 "/USER/XXXXXX.com/agentsonly/tempfiles" is current directory.
> 2008-04-03 08:15:37.398 TYPE A
< 2008-04-03 08:15:37.554 200 Type set to A.
> 2008-04-03 08:15:37.726 PASV
< 2008-04-03 08:15:37.882 227 Entering Passive Mode (69,25,92,181,21,201).
> 2008-04-03 08:15:38.039 LIST -a
< 2008-04-03 08:15:38.210 125 Data connection already open; Transfer starting.
< 2008-04-03 08:15:38.367 226 Transfer complete.
. 2008-04-03 08:15:38.539 Directory listing successful
. 2008-04-03 08:15:38.710 Disconnected from server

SCREEN PRINT:
Connecting to ftp.XXXXX.com ...
Connected with ftp.XXXXX.com. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] SITE
batch on
confirm off
transfer binary
/USER/XXXXXX.com/agentsonly/tempfiles
Invalid access to memory

Reply with quote

TLWilliams

Re: Invalid Access to Memory error on scripted 'Get'

Another user with Invalid Access to Memory problem downgraded version to 4.05 to fix/bypass problem. As it has occured for me with 4.05, I have downgraded to 4.04, and still get error on Get command. I will try to go up to 4.10

Reply with quote

Advertisement

TLWilliams
Joined:
Posts:
4
Location:
Richmond, VA, USA

Re: Invalid Access to Memory error on scripted 'Get'

martin wrote:

I'll send you a debug version soon.

I found my Corp. email filter put your message of 4/11 in dumpster, as it was foreign domain, and then removed it. :cry: Can you resend message, and I will watch closely to retrieve it. I'll also look for your email address in profile, and send you a message with a personal email address.

Reply with quote

Advertisement

mo-z
Guest

WinSCP - Invalid Access to Memory error on scripted 'Get'

We were getting 'invalid access to memory' errors when downloading filenames with 54-character names and running WinSCP 4.0.6 on our server. The error did not occur using WinSCP 4.1.9 on a PC. We upgraded the version on the server and the error no longer occurred on the server.

Reply with quote

Advertisement

You can post new topics in this forum