GNU bug report logs - #35862
27.0.50; Tramp recent changes make saving large file via tramp-copy-program fails

Previous Next

Package: emacs;

Reported by: Shuguang Sun <shuguang79 <at> qq.com>

Date: Thu, 23 May 2019 02:11:01 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

Fixed in version 27.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35862 in the body.
You can then email your comments to 35862 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35862; Package emacs. (Thu, 23 May 2019 02:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shuguang Sun <shuguang79 <at> qq.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 23 May 2019 02:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shuguang Sun <shuguang79 <at> qq.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50;
 Tramp recent changes make saving large file via tramp-copy-program
 fails
Date: Thu, 23 May 2019 10:09:35 +0800
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 <at> 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 <at> 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






bug Marked as fixed in versions 27.1. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Fri, 24 May 2019 13:42:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35862; Package emacs. (Mon, 27 May 2019 09:14:01 GMT) Full text and rfc822 format available.

Message #10 received at 35862 <at> debbugs.gnu.org (full text, mbox):

From: Shuguang Sun <shuguang79 <at> qq.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 35862 <at> debbugs.gnu.org
Subject: Re: bug#35862: 27.0.50;
 Tramp recent changes make saving large file via tramp-copy-program
 fails
Date: Mon, 27 May 2019 17:12:50 +0800
Thanks. It fixes it and work well.


Michael Albinus <michael.albinus <at> gmx.de> writes:

> Shuguang Sun <shuguang79 <at> 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 <at> 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 <at> 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






Added tag(s) fixed. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Tue, 28 May 2019 14:23:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 35862 <at> debbugs.gnu.org and Shuguang Sun <shuguang79 <at> qq.com> Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Tue, 28 May 2019 14:23:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 26 Jun 2019 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.