tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error when opening files with sudo method


From: Michael Albinus
Subject: Re: error when opening files with sudo method
Date: Thu, 03 Dec 2015 12:20:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Brice Waegenire <address@hidden> writes:

> Hello,

Hi Brice,

> When I try to open a file of more than a couple of ko in size, via
> TRAMP, it fail the first time with a "setq: Args out of range". Then
> if I try to open it again it wrok.
> This doesn't happen on very little files.
>
> Here is the *Messages* buffer:
> Tramp: Opening connection for address@hidden using sudo...
> Tramp: Sending command `exec env SHELL=/bin/sh sudo -u root -s -H -p
> P""a""s""s""w""o""r""d"":'
> Tramp: Waiting for prompts from remote shell...done
> Tramp: Found remote shell prompt on `noisette'
> Tramp: Opening connection for address@hidden using sudo...done
> C-x C-j is undefined
> Tramp: Inserting 
> `/sudo:address@hidden:/srv/salt/workstation/service.sls'...done
> setq: Args out of range:
> "/sudo:address@hidden:/srv/salt/workstation/service.sls", 4111, 53

After the message "Inserting
`/sudo:address@hidden:/srv/salt/workstation/service.sls'...done", the
following comands are performed by Tramp:

> 00:36:20.592778 tramp-send-command (6) # tramp_perl_file_attributes 
> /srv/salt/workstation/service.sls string 2>/dev/null; echo tramp_exit_status 
> $?
> 00:36:20.599921 tramp-wait-for-regexp (6) # 
> (nil 1 "root" "root" (22111 8011) (22111 8011) (22111 8272) 4335.0 33188 t (2 
> . 52285) -1)
> tramp_exit_status 0
> ///4642cb3906879fe03b03b5c9127cedb3#$

> 00:36:20.604129 tramp-send-command (6) # tramp_perl_file_attributes 
> /srv/salt/workstation/service.sls integer 2>/dev/null; echo tramp_exit_status 
> $?
> 00:36:20.609856 tramp-wait-for-regexp (6) # 
> (nil 1 0 0 (22111 8011) (22111 8011) (22111 8272) 4335.0 33188 t (2 . 52285) 
> -1)
> tramp_exit_status 0
> ///4642cb3906879fe03b03b5c9127cedb3#$

> 00:36:20.618067 tramp-send-command (6) # ( cd /srv/salt/workstation/ && git 
> rev-parse --is-inside-work-tree </dev/null; echo tramp_exit_status $? )
> 00:36:20.621611 tramp-wait-for-regexp (6) # 
> fatal: Not a git repository (or any of the parent directories): .git
> tramp_exit_status 128
> ///4642cb3906879fe03b03b5c9127cedb3#$

> 00:36:20.631895 tramp-send-command (6) # test -d /srv/salt/workstation 
> 2>/dev/null; echo tramp_exit_status $?
> 00:36:20.633313 tramp-wait-for-regexp (6) # 
> tramp_exit_status 0
> ///4642cb3906879fe03b03b5c9127cedb3#$

> 00:36:20.634719 tramp-send-command (6) # ( cd /srv/salt/workstation/ && git 
> rev-parse --is-inside-work-tree </dev/null; echo tramp_exit_status $? )
> 00:36:20.637897 tramp-wait-for-regexp (6) # 
> fatal: Not a git repository (or any of the parent directories): .git
> tramp_exit_status 128
> ///4642cb3906879fe03b03b5c9127cedb3#$

For me, the git command and its return message / value look
suspicious. Could you, pls perform

(setq tramp-debug-on-error t debug-on-error t)

and rerun the test? This might tell us, whether the error happens inside
a git action as suspected. I believe it could be `vc-registered'.

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]