Error changing permissions despite feature being turned off.

Advertisement

Tor
Guest

Error changing permissions despite feature being turned off.

I'm trying to copy some files to a server. It had worked for years, but then it starts producing the following error.

but error occurred while setting the permissions and/or timestamp

Looking at the FAQ and the forum, I found I needed to turn off permission changing. Looking at the GUI, it is turned off. Looking at the ini file, it is turned off:

[Configuration\Interface\CopyParam]
AddXToDirectories=0
Masks=%2A.%2Ahtml;%20%2A.htm;%20%2A.txt;%20%2A.php;%20%2A.php3;%20%2A.cgi;%20%2A.c;%20%2A.cpp;%20%2A.h;%20%2A.pas;%20%2A.bas;%20%2A.tex;%20%2A.pl;%20%2A.js;%20.htaccess;%20%2A.xtml;%20%2A.css;%20%2A.cfg;%20%2A.ini;%20%2A.sh;%20%2A.xml
FileNameCase=0
PreserveReadOnly=0
PreserveTime=0
PreserveRights=0
IgnorePermErrors=0
TransferMode=2
ResumeSupport=1
ResumeThreshold=102400
ReplaceInvalidChars=1
LocalInvalidChars=/%5C:%2A%3F"<>|
CalculateSize=1
ExcludeFileMask=
NegativeExclude=0
ClearArchive=0
CPSLimit=0
Queue=0
QueueNoConfirmation=1
QueueIndividually=0
NewerOnly=0
CopyParamList=3
Text=---------

I was able to run the script successfully by setting a default for the text file-type, which had those settings. It ran once, then a week later when I tried to run it again, it produced the same permission change error.

The default type is still there, the changes to the .ini file are still there, and I've tried adding those settings into the session section to see if it was an issue with the saved connection not having those settings enabled.

How can I turn off these settings to prevent an attempt at changing the permissions?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Error changing permissions despite feature being turned off.

Please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. 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.

Reply with quote

T
Guest

. 2011-11-21 12:25:50.128 --------------------------------------------------------------------------
. 2011-11-21 12:25:50.128 WinSCP Version 4.3.5 (Build 1463) (OS 5.0.2195 Service Pack 4)
. 2011-11-21 12:25:50.128 Configuration: C:\progra~1\WinSCP\WinSCP.ini
. 2011-11-21 12:25:50.128 Local account: DOMAIN\username
. 2011-11-21 12:25:50.128 Login time: Monday, November 21, 2011 12:25:50 PM
. 2011-11-21 12:25:50.128 --------------------------------------------------------------------------
. 2011-11-21 12:25:50.128 Session name: account@server.domain2.com (Stored session)
. 2011-11-21 12:25:50.128 Host name: 255.255.255.255 (Port: 22)
. 2011-11-21 12:25:50.128 User name: accountname (Password: Yes, Key file: No)
. 2011-11-21 12:25:50.128 Tunnel: No
. 2011-11-21 12:25:50.128 Transfer Protocol: SFTP (SCP)
. 2011-11-21 12:25:50.128 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2011-11-21 12:25:50.128 Proxy: none
. 2011-11-21 12:25:50.128 SSH protocol version: 2; Compression: No
. 2011-11-21 12:25:50.128 Bypass authentication: No
. 2011-11-21 12:25:50.128 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2011-11-21 12:25:50.128 Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2011-11-21 12:25:50.128 SSH Bugs: -,-,-,-,-,-,-,-,-
. 2011-11-21 12:25:50.128 SFTP Bugs: -,-
. 2011-11-21 12:25:50.128 Return code variable: Autodetect; Lookup user groups: Yes
. 2011-11-21 12:25:50.128 Shell: default
. 2011-11-21 12:25:50.128 EOL: 0, UTF: 2
. 2011-11-21 12:25:50.128 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2011-11-21 12:25:50.128 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2011-11-21 12:25:50.128 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-11-21 12:25:50.128 Cache directory changes: Yes, Permanent: Yes
. 2011-11-21 12:25:50.128 DST mode: 1
. 2011-11-21 12:25:50.128 --------------------------------------------------------------------------
. 2011-11-21 12:25:50.128 Looking up host "255.255.255.255"
. 2011-11-21 12:25:50.128 Connecting to 255.255.255.255 port 22
. 2011-11-21 12:25:53.550 Server version: SSH-2.0-VShell_3_0_1_478 VShell
. 2011-11-21 12:25:53.550 We believe remote version has SSH-2 ignore bug
. 2011-11-21 12:25:53.550 Using SSH protocol version 2
. 2011-11-21 12:25:53.550 We claim version: SSH-2.0-WinSCP_release_4.3.5
. 2011-11-21 12:25:53.612 Doing Diffie-Hellman group exchange
. 2011-11-21 12:25:53.956 Doing Diffie-Hellman key exchange with hash SHA-1
. 2011-11-21 12:25:54.862 Host key fingerprint is:
. 2011-11-21 12:25:54.862 ssh-dss 1024 ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff
. 2011-11-21 12:25:54.862 Initialised AES-256 CBC client->server encryption
. 2011-11-21 12:25:54.862 Initialised HMAC-SHA1 client->server MAC algorithm
. 2011-11-21 12:25:54.862 Initialised AES-256 CBC server->client encryption
. 2011-11-21 12:25:54.862 Initialised HMAC-SHA1 server->client MAC algorithm
! 2011-11-21 12:25:55.159 Using username "accountname".
. 2011-11-21 12:25:55.237 Prompt (7, SSH password, , &Password: )
. 2011-11-21 12:25:55.237 Using stored password.
. 2011-11-21 12:25:55.237 Sent password
. 2011-11-21 12:25:55.315 Access granted
. 2011-11-21 12:25:55.378 Opened channel for session
. 2011-11-21 12:25:55.690 Started a shell/command
. 2011-11-21 12:25:55.690 --------------------------------------------------------------------------
. 2011-11-21 12:25:55.690 Using SFTP protocol.
. 2011-11-21 12:25:55.690 Doing startup conversation with host.
> 2011-11-21 12:25:55.690 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2011-11-21 12:25:56.612 Type: SSH_FXP_VERSION, Size: 772, Number: -1
. 2011-11-21 12:25:56.612 SFTP version 4 negotiated.
. 2011-11-21 12:25:56.628 Unknown server extension newline@vandyke.com=0x000000020D0A
. 2011-11-21 12:25:56.628 Server requests EOL sequence "\r\n".
. 2011-11-21 12:25:56.628 Unknown server extension default-fs-attribs@vandyke.com=0x00...
. 2011-11-21 12:25:56.628 Server support information:
. 2011-11-21 12:25:56.628 Attribute mask: 800003F9, Attribute bits: 17, Open flags: 83F
. 2011-11-21 12:25:56.628 Access mask: FFFFFF, Open block masks: 0, Block masks: 0, Max read size: 32768
. 2011-11-21 12:25:56.628 Attribute extensions (0)
. 2011-11-21 12:25:56.628 Extensions (5)
. 2011-11-21 12:25:56.628 text-seek
. 2011-11-21 12:25:56.628 fs-multiple-roots-supported@vandyke.com
. 2011-11-21 12:25:56.628 space-available
. 2011-11-21 12:25:56.628 version-select
. 2011-11-21 12:25:56.628 vendor-id
. 2011-11-21 12:25:56.628 Server support information:
. 2011-11-21 12:25:56.628 Attribute mask: 800003F9, Attribute bits: 17, Open flags: 83F
. 2011-11-21 12:25:56.628 Access mask: FFFFFF, Open block masks: FFFFFFFF, Block masks: 0, Max read size: 32768
. 2011-11-21 12:25:56.628 Attribute extensions (0)
. 2011-11-21 12:25:56.628 Extensions (5)
. 2011-11-21 12:25:56.628 text-seek
. 2011-11-21 12:25:56.628 fs-multiple-roots-supported@vandyke.com
. 2011-11-21 12:25:56.628 space-available
. 2011-11-21 12:25:56.628 version-select
. 2011-11-21 12:25:56.628 vendor-id
. 2011-11-21 12:25:56.628 Server software: VShell 3.0.1 (x64 build 478 Unicode) (478) by VanDyke Software, Inc.
. 2011-11-21 12:25:56.628 SFTP versions supported by the server: 3,4,draft-ietf-secsh-filexfer-11@vandyke.com,partial-v6@vandyke.com
> 2011-11-21 12:25:56.628 Type: SSH_FXP_EXTENDED, Size: 63, Number: 200
. 2011-11-21 12:25:56.628 We will use UTF-8 strings when appropriate
. 2011-11-21 12:25:56.628 Getting current directory name.
. 2011-11-21 12:25:56.628 Getting real path for '.'
> 2011-11-21 12:25:56.628 Type: SSH_FXP_REALPATH, Size: 10, Number: 272
< 2011-11-21 12:25:56.675 Type: SSH_FXP_STATUS, Size: 57, Number: 200
. 2011-11-21 12:25:56.675 Discarding reserved response
< 2011-11-21 12:25:56.722 Type: SSH_FXP_NAME, Size: 19, Number: 272
. 2011-11-21 12:25:56.722 Real path is '/'
. 2011-11-21 12:25:56.722 Startup conversation with host finished.
< 2011-11-21 12:25:56.737 Script: Active session: [1] accountname@server.domain2.com
> 2011-11-21 12:25:56.737 Script: cd /DIR/DIR2/dest
. 2011-11-21 12:25:56.737 Cached directory change via "/DIR/DIR2/dest" to "/DIR/DIR2/dest".
. 2011-11-21 12:25:56.737 Getting current directory name.
< 2011-11-21 12:25:56.737 Script: /DIR/DIR2/dest
> 2011-11-21 12:25:56.737 Script: lcd f:/lDIR/lDIR2/lDIR2/lsource
< 2011-11-21 12:25:56.737 Script: f:/lDIR/lDIR2/lDIR2/lsource
> 2011-11-21 12:25:56.737 Script: PUT *.*
. 2011-11-21 12:25:56.737 Copying 25 files/directories to remote directory "/DIR/DIR2/dest"
. 2011-11-21 12:25:56.737 PrTime: No; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2011-11-21 12:25:56.737 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2011-11-21 12:25:56.737 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2011-11-21 12:25:56.737 File: "Filename.csv"
. 2011-11-21 12:25:56.737 Copying "Filename.csv" to remote directory started.
. 2011-11-21 12:25:56.737 Binary transfer mode selected.
. 2011-11-21 12:25:56.737 Checking existence of file.
> 2011-11-21 12:25:56.737 Type: SSH_FXP_LSTAT, Size: 80, Number: 519
< 2011-11-21 12:25:56.800 Type: SSH_FXP_ATTRS, Size: 164, Number: 519
. 2011-11-21 12:25:56.800 Checking existence of partially transfered file.
> 2011-11-21 12:25:56.800 Type: SSH_FXP_LSTAT, Size: 89, Number: 775
< 2011-11-21 12:25:56.862 Type: SSH_FXP_STATUS, Size: 62, Number: 775
< 2011-11-21 12:25:56.862 Status code: 2
. 2011-11-21 12:25:56.862 Opening remote file.
> 2011-11-21 12:25:56.862 Type: SSH_FXP_OPEN, Size: 102, Number: 1027
< 2011-11-21 12:25:56.940 Type: SSH_FXP_HANDLE, Size: 13, Number: 1027
> 2011-11-21 12:25:56.940 Type: SSH_FXP_WRITE, Size: 4121, Number: 1542
. 2011-11-21 12:25:57.581 15 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2011-11-21 12:25:57.581 Type: SSH_FXP_CLOSE, Size: 13, Number: 4100
< 2011-11-21 12:25:57.659 Type: SSH_FXP_STATUS, Size: 34, Number: 3078
< 2011-11-21 12:25:57.784 Type: SSH_FXP_STATUS, Size: 34, Number: 3334
< 2011-11-21 12:25:57.925 Type: SSH_FXP_STATUS, Size: 34, Number: 3590
< 2011-11-21 12:25:58.128 Type: SSH_FXP_STATUS, Size: 34, Number: 3846
< 2011-11-21 12:25:58.128 Type: SSH_FXP_STATUS, Size: 34, Number: 4100
< 2011-11-21 12:25:58.128 Status code: 0
> 2011-11-21 12:25:58.128 Type: SSH_FXP_REMOVE, Size: 76, Number: 4365
< 2011-11-21 12:25:58.222 Type: SSH_FXP_STATUS, Size: 34, Number: 4365
< 2011-11-21 12:25:58.222 Status code: 0
> 2011-11-21 12:25:58.222 Type: SSH_FXP_RENAME, Size: 156, Number: 4626
< 2011-11-21 12:25:58.643 Type: SSH_FXP_STATUS, Size: 34, Number: 4626
< 2011-11-21 12:25:58.643 Status code: 0
> 2011-11-21 12:25:58.643 Type: SSH_FXP_SETSTAT, Size: 85, Number: 1289
< 2011-11-21 12:25:58.690 Type: SSH_FXP_STATUS, Size: 49, Number: 1289
< 2011-11-21 12:25:58.690 Status code: 8, Message: 1289, Server: The request is not supported. , Language: en
* 2011-11-21 12:25:58.690 (ETerminal) The server does not support the operation.
* 2011-11-21 12:25:58.690 Error code: 8
* 2011-11-21 12:25:58.706 Error message from server (en): The request is not supported.
* 2011-11-21 12:25:58.706 Request code: 9
. 2011-11-21 12:25:58.706 Asking user:
. 2011-11-21 12:25:58.706 Upload of file 'Filename.csv' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option. ("The server does not support the operation.
. 2011-11-21 12:25:58.706 Error code: 8
. 2011-11-21 12:25:58.706 Error message from server (en): The request is not supported.
. 2011-11-21 12:25:58.706 Request code: 9")
* 2011-11-21 12:25:58.706 (EScpSkipFile) Upload of file 'Filename.csv' was successful, but error occurred while setting the permissions and/or timestamp. If the problem persists, turn on 'Ignore permission errors' option.
* 2011-11-21 12:25:58.706 The server does not support the operation.
* 2011-11-21 12:25:58.706 Error code: 8
* 2011-11-21 12:25:58.706 Error message from server (en): The request is not supported.
* 2011-11-21 12:25:58.706 Request code: 9
. 2011-11-21 12:25:58.706 Script: Failed
> 2011-11-21 12:25:58.706 Script: close
. 2011-11-21 12:25:58.706 Closing connection.
. 2011-11-21 12:25:58.706 Sending special code: 12
. 2011-11-21 12:25:58.706 Sent EOF message

Reply with quote

Advertisement

You can post new topics in this forum