all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#20233: 24.5rc1; tramp error opening file
@ 2015-03-30 17:05 David Hull
  2015-03-31  6:31 ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: David Hull @ 2015-03-30 17:05 UTC (permalink / raw)
  To: 20233

I am running the emacs 24.5-rc1 version I downloaded from
http://emacsformacosx.com/emacs-builds/Emacs-pretest-24.5-rc1-universal.dmg

I started emacs with "emacs -Q".  I used tramp to open a remote directory
in dired by typing "C-x C-f /cos6:src/ds-advertiser-server/src/", where
cos6 is the hostname of a VM running on my Mac.  The VM is running
CentOS 6.5.  The dired buffer opened normally.  I then moved the cursor
to the filename "ds_adv_ox3_lineitem_v3.erl" and pressed the Enter key
to open it, and I got the error, "Error copying: `tramp_exit_status 1'".

This works correctly under emacs 24.4.

The directory /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/ on the
Mac exists, and appears to contain temporary files from a variety of
programs.  However, the file
/var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.81932-Q0.erl does
not exist in the directory.

------------------------------------------------------------------------

In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)
 of 2015-03-27 on builder10-9.porkrind.org
Windowing system distributor `Apple', version 10.3.1344
Configured using:
 `configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp''

Important settings:
  value of $EMACSDATA: /Users/david.hull/Applications/Emacs.app/Contents/Resources/etc
  value of $EMACSLOADPATH: /Users/david.hull/Applications/Emacs.app/Contents/Resources/lisp:/Users/david.hull/Applications/Emacs.app/Contents/Resources/leim
  value of $LC_COLLATE: C
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Dired by name

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Tramp: Found remote shell prompt on `cos6'
Tramp: Opening connection for cos6 using scp...done
ls does not support --dired; see `dired-use-ls-dired' for more details.
Tramp: Inserting `/scp:cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl'...
Copying /scp:cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl to /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.81932-Q0.erl...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying /scp:cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl to /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.81932-Q0.erl...failed
Tramp: Inserting `/scp:cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl'...failed
Error copying: `tramp_exit_status 1'

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rfc822 mml easymenu mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils dired
tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt
bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core
gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver
shell pcomplete comint ansi-color ring format-spec advice help-fns
time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel ns-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment lisp-mode prog-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process cocoa ns multi-tty emacs)

Memory information:
((conses 16 99732 7013)
 (symbols 48 20448 0)
 (miscs 40 44 185)
 (strings 32 21088 4084)
 (string-bytes 1 646140)
 (vectors 16 13719)
 (vector-slots 8 450685 3688)
 (floats 8 265 111)
 (intervals 56 546 158)
 (buffers 960 15))





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#20233: 24.5rc1; tramp error opening file
  2015-03-30 17:05 bug#20233: 24.5rc1; tramp error opening file David Hull
@ 2015-03-31  6:31 ` Michael Albinus
       [not found]   ` <CACMKctMFUVfqYp1AqT4snRiiAKe0gd21XtDOnrb4r7F0YuoxsA@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2015-03-31  6:31 UTC (permalink / raw)
  To: David Hull; +Cc: 20233

David Hull <david.hull@openx.com> writes:

Hi David,

> I am running the emacs 24.5-rc1 version I downloaded from
> http://emacsformacosx.com/emacs-builds/Emacs-pretest-24.5-rc1-universal.dmg
>
> I started emacs with "emacs -Q".  I used tramp to open a remote directory
> in dired by typing "C-x C-f /cos6:src/ds-advertiser-server/src/", where
> cos6 is the hostname of a VM running on my Mac.  The VM is running
> CentOS 6.5.  The dired buffer opened normally.  I then moved the cursor
> to the filename "ds_adv_ox3_lineitem_v3.erl" and pressed the Enter key
> to open it, and I got the error, "Error copying: `tramp_exit_status 1'".
>
> This works correctly under emacs 24.4.

Could you, please, apply (setq tramp-verbose 6) and rerun your test?
There will be a Tramp debug buffer *debug tramp/scp cos6*; pls show it here.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#20233: 24.5rc1; tramp error opening file
       [not found]       ` <CACMKctPn+++gVY0Or0KdgSEdoRVaOwAMVntexQLXX9wmQ3MPYA@mail.gmail.com>
@ 2015-04-01  6:51         ` Michael Albinus
  2015-04-01 16:35           ` David Hull
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2015-04-01  6:51 UTC (permalink / raw)
  To: David Hull; +Cc: 20233

[Please keep the Cc, for the public]

David Hull <david.hull@openx.com> writes:

Hi David,

> The scp command succeeded:
>
> $ cd /tmp
> $ rm -f
> /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl
> $ scp -p -q -r -o ControlMaster=auto -o ControlPath='tramp.%r@%h:%p' -
> o ControlPersist=no
> cos6\:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl
> /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl
> $ echo $?
> 0
> $ ls -l
> /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl
> -rw-r--r-- 1 david.hull staff 11905 Mar 31 14:02
> /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl
>
> I wonder if the problem could be that the ControlPath option doesn't
> specify a directory?

Yes, indeed. This was changed back in February due to Bug#19861.

> I did a test. I put a "scp" shell script in my $HOME/bin directory
> with the following contents:
>
> #! /bin/bash
> WD=`pwd`
> echo "$WD: scp $*" >>/tmp/scp.out
> /usr/bin/scp "$@"
>
> When I attempted to use tramp, /tmp/scp.out had the following
> contents:
>
> /: scp -p -q -r -o ControlMaster=auto -o ControlPath=tramp.%r@%h:%p -o
> ControlPersist=no
> cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl
> /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.16189hTW.erl
>
> Note that the first thing on the line, the working directory, is "/".

Could you, pls, check whether the following patch works for you? It is a
backport from Emacs 25.0.50:

--8<---------------cut here---------------start------------->8---
*** /home/albinus/src/emacs-24/lisp/net/tramp.el.~emacs-24~	2015-04-01 08:47:21.556209883 +0200
--- /home/albinus/src/emacs-24/lisp/net/tramp.el	2015-04-01 08:47:21.660211724 +0200
***************
*** 3355,3364 ****
  
  (defun tramp-handle-unhandled-file-name-directory (_filename)
    "Like `unhandled-file-name-directory' for Tramp files."
!   ;; With Emacs 23, we could simply return `nil'.  But we must keep it
!   ;; for backward compatibility.  "~/" cannot be returned, because
!   ;; there might be machines without a HOME directory (like hydra).
!   "/")
  
  (defun tramp-handle-set-visited-file-modtime (&optional time-list)
    "Like `set-visited-file-modtime' for Tramp files."
--- 3355,3365 ----
  
  (defun tramp-handle-unhandled-file-name-directory (_filename)
    "Like `unhandled-file-name-directory' for Tramp files."
!   ;; Starting with Emacs 23, we must simply return `nil'.  But we must
!   ;; keep backward compatibility, also with XEmacs.  "~/" cannot be
!   ;; returned, because there might be machines without a HOME
!   ;; directory (like hydra).
!   (and (< emacs-major-version 23) "/"))
  
  (defun tramp-handle-set-visited-file-modtime (&optional time-list)
    "Like `set-visited-file-modtime' for Tramp files."
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#20233: 24.5rc1; tramp error opening file
  2015-04-01  6:51         ` Michael Albinus
@ 2015-04-01 16:35           ` David Hull
  2015-04-01 17:32             ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: David Hull @ 2015-04-01 16:35 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 20233

[-- Attachment #1: Type: text/plain, Size: 3235 bytes --]

Yes, that patch fixes the problem for me. Thanks!

On Tue, Mar 31, 2015 at 11:51 PM, Michael Albinus <michael.albinus@gmx.de>
wrote:

> [Please keep the Cc, for the public]
>
> David Hull <david.hull@openx.com> writes:
>
> Hi David,
>
> > The scp command succeeded:
> >
> > $ cd /tmp
> > $ rm -f
> > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl
> > $ scp -p -q -r -o ControlMaster=auto -o ControlPath='tramp.%r@%h:%p' -
> > o ControlPersist=no
> >
> cos6\:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl
> > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl
> > $ echo $?
> > 0
> > $ ls -l
> > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl
> > -rw-r--r-- 1 david.hull staff 11905 Mar 31 14:02
> > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.110640VR.erl
> >
> > I wonder if the problem could be that the ControlPath option doesn't
> > specify a directory?
>
> Yes, indeed. This was changed back in February due to Bug#19861.
>
> > I did a test. I put a "scp" shell script in my $HOME/bin directory
> > with the following contents:
> >
> > #! /bin/bash
> > WD=`pwd`
> > echo "$WD: scp $*" >>/tmp/scp.out
> > /usr/bin/scp "$@"
> >
> > When I attempted to use tramp, /tmp/scp.out had the following
> > contents:
> >
> > /: scp -p -q -r -o ControlMaster=auto -o ControlPath=tramp.%r@%h:%p -o
> > ControlPersist=no
> >
> cos6:/home/david.hull/src/ds-advertiser-server/src/ds_adv_ox3_lineitem_v3.erl
> > /var/folders/y9/k3f9vqgn73gf64x8ktywlkd10r0222/T/tramp.16189hTW.erl
> >
> > Note that the first thing on the line, the working directory, is "/".
>
> Could you, pls, check whether the following patch works for you? It is a
> backport from Emacs 25.0.50:
>
> --8<---------------cut here---------------start------------->8---
> *** /home/albinus/src/emacs-24/lisp/net/tramp.el.~emacs-24~     2015-04-01
> 08:47:21.556209883 +0200
> --- /home/albinus/src/emacs-24/lisp/net/tramp.el        2015-04-01
> 08:47:21.660211724 +0200
> ***************
> *** 3355,3364 ****
>
>   (defun tramp-handle-unhandled-file-name-directory (_filename)
>     "Like `unhandled-file-name-directory' for Tramp files."
> !   ;; With Emacs 23, we could simply return `nil'.  But we must keep it
> !   ;; for backward compatibility.  "~/" cannot be returned, because
> !   ;; there might be machines without a HOME directory (like hydra).
> !   "/")
>
>   (defun tramp-handle-set-visited-file-modtime (&optional time-list)
>     "Like `set-visited-file-modtime' for Tramp files."
> --- 3355,3365 ----
>
>   (defun tramp-handle-unhandled-file-name-directory (_filename)
>     "Like `unhandled-file-name-directory' for Tramp files."
> !   ;; Starting with Emacs 23, we must simply return `nil'.  But we must
> !   ;; keep backward compatibility, also with XEmacs.  "~/" cannot be
> !   ;; returned, because there might be machines without a HOME
> !   ;; directory (like hydra).
> !   (and (< emacs-major-version 23) "/"))
>
>   (defun tramp-handle-set-visited-file-modtime (&optional time-list)
>     "Like `set-visited-file-modtime' for Tramp files."
> --8<---------------cut here---------------end--------------->8---
>
> Best regards, Michael.
>



-- 
David Hull

[-- Attachment #2: Type: text/html, Size: 4309 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#20233: 24.5rc1; tramp error opening file
  2015-04-01 16:35           ` David Hull
@ 2015-04-01 17:32             ` Michael Albinus
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Albinus @ 2015-04-01 17:32 UTC (permalink / raw)
  To: David Hull; +Cc: 20233-done

Version: 24.5

David Hull <david.hull@openx.com> writes:

> Yes, that patch fixes the problem for me. Thanks!

Thanks for testing, David! I'm closing the bug.

There will be an RC2 of Emacs 24.5, which should contain the fix.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-01 17:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-30 17:05 bug#20233: 24.5rc1; tramp error opening file David Hull
2015-03-31  6:31 ` Michael Albinus
     [not found]   ` <CACMKctMFUVfqYp1AqT4snRiiAKe0gd21XtDOnrb4r7F0YuoxsA@mail.gmail.com>
     [not found]     ` <87twx1rpcf.fsf@gmx.de>
     [not found]       ` <CACMKctPn+++gVY0Or0KdgSEdoRVaOwAMVntexQLXX9wmQ3MPYA@mail.gmail.com>
2015-04-01  6:51         ` Michael Albinus
2015-04-01 16:35           ` David Hull
2015-04-01 17:32             ` Michael Albinus

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.