Error message from server: The message file is not extractable!

Advertisement

plspb
Joined:
Posts:
3

Error message from server: The message file is not extractable!

Hi,

Since three months I have a problem with transferring file into SSH server of our partner.
When we try to put files automatically I got error code 2 and message:
Error message from server: The message file is not extractable!
> 2023-03-06 11:19:44.651 Script: put -delete *.* -resumesupport=off -rawtransfersettings PreserveTimeDirs=1
. 2023-03-06 11:19:44.651 Copying 2 files/directories to remote directory "/In"
. 2023-03-06 11:19:44.651   PrTime: Yes+Dirs; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: N (102400); CalcS: No; Mask: 
. 2023-03-06 11:19:44.651   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2023-03-06 11:19:44.651   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2023-03-06 11:19:44.651 File: 'file1.csv' [2023-02-03T15:46:00.000Z] [25534]
. 2023-03-06 11:19:44.651 Copying "file1.csv" to remote directory started.
. 2023-03-06 11:19:44.651 Binary transfer mode selected.
. 2023-03-06 11:19:44.651 Opening remote file.
> 2023-03-06 11:19:44.651 Type: SSH_FXP_OPEN, Size: 57, Number: 771
< 2023-03-06 11:19:45.106 Type: SSH_FXP_HANDLE, Size: 10, Number: 771
> 2023-03-06 11:19:45.106 Type: SSH_FXP_WRITE, Size: 25556, Number: 1286
> 2023-03-06 11:19:45.106 Type: SSH_FXP_CLOSE, Size: 10, Number: 1540
> 2023-03-06 11:19:45.106 Type: SSH_FXP_SETSTAT, Size: 53, Number: 1033
< 2023-03-06 11:19:45.184 Type: SSH_FXP_STATUS, Size: 49, Number: 1286
< 2023-03-06 11:19:45.184 Status code: 0
< 2023-03-06 11:19:45.556 Type: SSH_FXP_STATUS, Size: 40, Number: 1540
< 2023-03-06 11:19:45.556 Status code: 0
. 2023-03-06 11:19:45.556 Preserving timestamp [2023-02-03T15:46:00.000Z]
< 2023-03-06 11:19:45.638 Type: SSH_FXP_STATUS, Size: 82, Number: 1033
< 2023-03-06 11:19:45.638 Status code: 2, Message: 1033, Server: The message [/In/file1.csv] is not extractable!, Language:  
* 2023-03-06 11:19:45.638 (ETerminal) No such file or directory.
* 2023-03-06 11:19:45.638 Error code: 2
* 2023-03-06 11:19:45.638 Error message from server: The message [/In/file1.csv] is not extractable!
. 2023-03-06 11:19:45.638 Asking user:
. 2023-03-06 11:19:45.638 **Upload of file 'file1.csv' was successful, but error occurred while setting the permissions and/or timestamp.**
. 2023-03-06 11:19:45.638 
. 2023-03-06 11:19:45.638 If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option. ("No such file or directory.
. 2023-03-06 11:19:45.638 Error code: 2
. 2023-03-06 11:19:45.638 Error message from server: The message [/In/file1.csv] is not extractable!")
< 2023-03-06 11:19:45.638 Script: Upload of file 'file1.csv' was successful, but error occurred while setting the permissions and/or timestamp.
< 2023-03-06 11:19:45.638 If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option.
< 2023-03-06 11:19:45.638 Script: No such file or directory.
< 2023-03-06 11:19:45.638 Error code: 2
< 2023-03-06 11:19:45.638 Error message from server: The message [/In/file1.csv] is not extractable!
. 2023-03-06 11:19:45.638 Answer: Abort
* 2023-03-06 11:19:45.638 (ESkipFile) **Upload of file 'file1.csv' was successful, but error occurred while setting the permissions and/or timestamp.**
* 2023-03-06 11:19:45.638 
* 2023-03-06 11:19:45.638 If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option.
* 2023-03-06 11:19:45.638 No such file or directory.
* 2023-03-06 11:19:45.638 Error code: 2
* 2023-03-06 11:19:45.638 Error message from server: The message [/In/file1.csv] is not extractable!
. 2023-03-06 11:19:45.638 Copying finished: Transferred: 25 534, Elapsed: 0:00:00, CPS: 25 870/s
. 2023-03-06 11:19:45.638 Script: Failed
. 2023-03-06 11:19:45.638 Script: Exit code: 1
. 2023-03-06 11:19:45.638 Closing connection.
. 2023-03-06 11:19:45.638 Sending special code: 1
. 2023-03-06 11:19:45.654 Session sent command exit status 0
. 2023-03-06 11:19:45.654 Main session channel closed
. 2023-03-06 11:19:45.654 All channels closed
Both turn off setting permissions or preserving timestamp doesn't work. File is transferred correctly but because of returned error the file is not deleted in original location.
The same happens on GUI and command line.
So my question is if this is a problem with SFTP server or WinSCP application? The SFTP server is out of my organization so I can't manage it.

Best regards
James
Last edited by plspb on 2023-03-14 09:58; edited 1 time in total

Reply with quote

Advertisement

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

Re: Error message from server: The message file is not extractable!

It's some proprietary feature/message of the SFTP server. I've never seen it before, and I'm not sure what it means.
Please post logs of behavior with "turned off setting permissions or preserving timestamp".

Reply with quote

plspb
Joined:
Posts:
3

Re: Error message from server: The message file is not extractable!

As you can see in first line those option were enabled during this session
 2023-03-06 11:19:44.651 Script: put -delete *.* -resumesupport=off -rawtransfersettings PreserveTimeDirs=1

Reply with quote

plspb
Joined:
Posts:
3

Re: Error message from server: The message file is not extractable!

I run it with -nopreservetime -nopermissions options and it looks much better.
But I am wondering why rawsettings didn't work.

I will wait for few transfers to confirm this solution.
Thank you very much for helping me :D

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Error message from server: The message file is not extractable!

The PreserveTimeDirs is about directories (and it's off by default anyway). For files, you would have to use PreserveTime=0.

Reply with quote

Advertisement

You can post new topics in this forum