I am uploading files from Core FTP LE 2.2 to a server via SFTP using putty compatibility. Running the GUI transfer manually works fine, but when run via a script using the site, I get an error message: /test/ already contains a file named " (no file name, just the one quote). Overwrite/resume/rename/skip etc. There is no file extant in the test directory, hidden/system or otherwise. No matter which option I choose, zero files transfer. There are 5 test files in the local directory. they are .txt and .pdf. When I set the script for just those extentions, I have the same issue. I can script downloads from the same folder with no issues.
Script is currently: "C:\Program Files\CoreFTP\coreftp.exe" -site <sitename> -u *.* -log testlog.txt
I have tried switches -RA, -OS, and -O with no change in results. I have switched off and on all reasonable options in the advance tab. I have tried using the root directory instead of test, and get the same result. Logs below. I will also be contacting Cerberus support, but have a feeling this is a Core FTP client configuration issue. Does anyone have any hints? TIA.
Core FTP log shows:
Current directory is '/'
CWD /test/
Transferred 115 bytes in 0.001 seconds
File exists, prompting user...
overwritten...
file skipped (zero bytes)...Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0
Cerberus server log shows:
2019/03/14 12:55:49 [112] Incoming connection request on SSH SFTP interface 7 at ---.---.---.--- accepted from ---.---.---.---
2019/03/14 12:55:49 [112] Client Identification: SSH-2.0-PuTTY_Local:_Nov__6_2014_12:22:50
2019/03/14 12:55:49 [112] Algorithm negotiation complete: Proceeding with key exchange
2019/03/14 12:55:49 [112] Kex: 'diffie-hellman-group-exchange-sha256' Host Key: 'ssh-rsa' C2S : 'aes256-ctr, hmac-sha2-256, none' S2C : 'aes256-ctr, hmac-sha2-256, none'
2019/03/14 12:55:50 [112] DH Key sizes: Server Public '4096', Private '4095', Client Public '4095'
2019/03/14 12:55:51 [112] Authenticating password for user 'reece'
2019/03/14 12:55:51 [112] Native user 'user' authenticated
2019/03/14 12:55:51 [112] Channel Open: 'session', Sender Channel: 256, Init Window Size: 2147483647, Max Packet Size: 16384
2019/03/14 12:55:51 [112] Creating local channel: 1312
2019/03/14 12:55:51 [112] Channel Request: 'simple@putty.projects.tartarus.org', Recipient Channel: 1312, Subsystem Name: '', Reply: false
2019/03/14 12:55:51 [112] Channel Request: 'subsystem', Recipient Channel: 1312, Subsystem Name: 'sftp', Reply: true
2019/03/14 12:55:51 [112] [user] Client SFTP version: 3
2019/03/14 12:55:51 [112] [user] Real Path for '.'
2019/03/14 12:55:51 [112] [user] Real Path for '.'
2019/03/14 12:55:51 [112] [user] Opening directory handle to '/test/'
2019/03/14 12:55:51 [112] Directory handle '/test/' closed
2019/03/14 12:55:51 [112] [user] Opening directory handle to '/test/'
2019/03/14 12:55:51 [112] Directory handle '/test/' closed
2019/03/14 12:55:52 [112] [user] Stat: /test/
2019/03/14 12:55:52 [112] [user] Stat: /test/
2019/03/14 12:56:22 [112] The client closed the connection
2019/03/14 12:56:22 [112] Connection terminated
Core FTP - upload via SFTP site and command line script
-
- Site Admin
- Posts: 987
- Joined: Mon Mar 24, 2003 4:37 am
Re: Core FTP - upload via SFTP site and command line script
it sounds like the file is locked remotely (is open by another process) and can't be overwritten. Or you have another process uploading already.