* bug#35862: 27.0.50; Tramp recent changes make saving large file via tramp-copy-program fails
@ 2019-05-23 2:09 Shuguang Sun
[not found] ` <87ftp4ezse.fsf@gmx.de>
0 siblings, 1 reply; 2+ messages in thread
From: Shuguang Sun @ 2019-05-23 2:09 UTC (permalink / raw)
To: 35862
Hi,
The recent changes to tramp make the saving of large file (i.e., >10k,
via tramp-copy-program) fails, with message that like no temp files and
permission denied. It works on the version on March 3 2019, but not on
May 19 (detailed version information at end of the message).
Here is part of filtered message :
--8<---------------cut here---------------start------------->8---
18:45:46.539402 tramp-do-copy-or-rename-file-out-of-band (6) # pscp -l username -q -r c\:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv username@host.com:/path/username/bladder_rf.csv
c\:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv: No such file or directory
c\:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv: No such file or directory
18:45:46.778053 tramp-do-copy-or-rename-file (0) # Copying c:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv to /plink:username@host.com:/path/username/bladder_rf.csv...failed
--8<---------------cut here---------------end--------------->8---
Below is the settings:
using `plink/pscp`
--8<---------------cut here---------------start------------->8---
(push '("plink"
(tramp-login-program "plink")
(tramp-login-args
(("-l" "%u") ("-P" "%p") ("-ssh") ("-t") ("%h") ("\"")
("env 'TERM=dumb' 'PROMPT_COMMAND=' 'PS1=#$ '")
("/bin/sh") ("\"")))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-login ("-l"))
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "pscp")
(tramp-copy-args (("-l" "%u") ("-P" "%p")
;; ("-scp")
("-p" "%k") ("-q") ("-r")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t)
(tramp-default-port 22))
tramp-methods)
--8<---------------cut here---------------end--------------->8---
or using `plink/scp` (ssh.exe not works in windows box)
--8<---------------cut here---------------start------------->8---
(push '("plink"
(tramp-login-program "plink")
(tramp-login-args
(("-l" "%u") ("-P" "%p") ("-ssh") ("-t") ("%h") ("\"")
("env 'TERM=dumb' 'PROMPT_COMMAND=' 'PS1=#$ '")
("/bin/sh") ("\"") ))
(tramp-remote-shell "/bin/sh")
(tramp-remote-shell-login ("-l"))
(tramp-remote-shell-args ("-c"))
(tramp-copy-program "scp")
(tramp-copy-args (("-P" "%p") ("-p" "%k") ("-q") ("-r") ("%c")))
(tramp-copy-keep-date t)
(tramp-copy-recursive t)
(tramp-default-port 22))
tramp-methods)
--8<---------------cut here---------------end--------------->8---
Version with the bug:
In GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32)
of 2019-05-19
Repository revision: d7c8196c96fd4bb732d1336305943feb3badf27c
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.15063
Version without the bug:
In GNU Emacs 27.0.50 (build 1, x86_64-w64-mingw32)
of 2019-03-03
Repository revision: 8a64107f7de6db557a2c43147369c6a93adf6668
Best Regards,
Shuguang
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#35862: 27.0.50; Tramp recent changes make saving large file via tramp-copy-program fails
[not found] ` <87ftp4ezse.fsf@gmx.de>
@ 2019-05-27 9:12 ` Shuguang Sun
0 siblings, 0 replies; 2+ messages in thread
From: Shuguang Sun @ 2019-05-27 9:12 UTC (permalink / raw)
To: Michael Albinus; +Cc: 35862
Thanks. It fixes it and work well.
Michael Albinus <michael.albinus@gmx.de> writes:
> Shuguang Sun <shuguang79@qq.com> writes:
>
>> Hi,
>
> Hi Shuguang,
>
>> The recent changes to tramp make the saving of large file (i.e., >10k,
>> via tramp-copy-program) fails, with message that like no temp files and
>> permission denied. It works on the version on March 3 2019, but not on
>> May 19 (detailed version information at end of the message).
>>
>>
>> Here is part of filtered message :
>>
>> 18:45:46.539402 tramp-do-copy-or-rename-file-out-of-band (6) # pscp -l
>> username -q -r c\:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv
>> username@host.com:/path/username/bladder_rf.csv
>> c\:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv: No such file or directory
>> c\:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv: No such file or directory
>> 18:45:46.778053 tramp-do-copy-or-rename-file (0) # Copying
>> c:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv to
>> /plink:username@host.com:/path/username/bladder_rf.csv...failed
>
> I could reproduce it. The escaped colon in
> c\:/Users/username/AppData/Local/Temp/tramp.2Ky9Fj.csv looks suspicious.
>
> The reason is, that `w32-shell-name' uses `shell-file-name'. The latter
> variable is modified by Tramp for connection-local variables.
>
> I've pushed a fix to the repositories, could you pls check?
>
>> Best Regards,
>> Shuguang
>
> Best regards, Michael.
>
--
Best Regards
Shuguang Sun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-27 9:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-23 2:09 bug#35862: 27.0.50; Tramp recent changes make saving large file via tramp-copy-program fails Shuguang Sun
[not found] ` <87ftp4ezse.fsf@gmx.de>
2019-05-27 9:12 ` Shuguang Sun
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.