* bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command
@ 2020-05-24 5:33 Jean Louis
2020-05-24 8:48 ` Michael Albinus
0 siblings, 1 reply; 8+ messages in thread
From: Jean Louis @ 2020-05-24 5:33 UTC (permalink / raw)
To: 41496
I am trying to use Tramp to access Termux on Android/Replicant, by using
this command:
/ssh:192.168.43.1#8022:/storage/emulated/0/
Yet I get faced with the error:
File error: Couldn't find a proper `ls' command
I have installed there "ls" command from coreutils, and I tried these
checks:
ls -lnd /
drwxr-xr-x 20 0 0 0 Feb 6 1970 /
ls --color=never -al /dev/null
crw-rw-rw- 1 root root 1, 3 Feb 6 1970 /dev/null
$ which ls
/data/data/com.termux/files/usr/bin/ls
Thus ls is there and is working so far, it is from coreutils, not from
busybox. The busybox version did not work.
The ssh connection from terminal works just fine, including the sftp
connection.
It would be nice to be able to access Android/Replicant devices over
sshd by using Tramp.
In GNU Emacs 28.0.50 (build 9, x86_64-pc-linux-gnu, X toolkit, cairo version 1.14.8, Xaw3d scroll bars)
of 2020-05-07 built on protected.rcdrun.com
Repository revision: b2581eea1be1468a15927be00ba2f3f399af33a1
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.11907000
System Description: Hyperbola GNU/Linux-libre
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --prefix=/package/text/emacs-2020-05-07 --with-modules
--without-gpm --with-x-toolkit=lucid
PKG_CONFIG_PATH=/home/data1/protected/GNUstep/Library/Libraries/pkgconfig:/usr/lib/pkgconfig'
Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB
TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS JSON PDUMPER
LCMS2 GMP
Important settings:
value of $LC_ALL: de_DE.UTF-8
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-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
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort hashcash mail-extr emacsbug message rmc puny dired
dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache
epa derived epg epg-config gnus-util rmail rmail-loaddefs
text-property-search time-date subr-x seq byte-opt gv bytecomp
byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded 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 threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting cairo x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 46634 10093)
(symbols 48 6086 1)
(strings 32 16423 1836)
(string-bytes 1 526914)
(vectors 16 10157)
(vector-slots 8 133373 10264)
(floats 8 24 36)
(intervals 56 246 0)
(buffers 992 11))
--
Thanks,
Jean Louis
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command
2020-05-24 5:33 bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command Jean Louis
@ 2020-05-24 8:48 ` Michael Albinus
2020-05-24 14:46 ` Jean Louis
0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2020-05-24 8:48 UTC (permalink / raw)
To: Jean Louis; +Cc: 41496
Jean Louis <bugs@gnu.support> writes:
Hi,
> $ which ls
> /data/data/com.termux/files/usr/bin/ls
>
> Thus ls is there and is working so far, it is from coreutils, not from
> busybox. The busybox version did not work.
I guess you need to add that directory to your remote PATH. See variable
`tramp-remote-path'.
Best regards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command
2020-05-24 8:48 ` Michael Albinus
@ 2020-05-24 14:46 ` Jean Louis
2020-05-24 14:58 ` Michael Albinus
0 siblings, 1 reply; 8+ messages in thread
From: Jean Louis @ 2020-05-24 14:46 UTC (permalink / raw)
To: Michael Albinus; +Cc: 41496
* Michael Albinus <michael.albinus@gmx.de> [2020-05-24 11:49]:
> Jean Louis <bugs@gnu.support> writes:
>
> Hi,
>
> > $ which ls
> > /data/data/com.termux/files/usr/bin/ls
> >
> > Thus ls is there and is working so far, it is from coreutils, not from
> > busybox. The busybox version did not work.
>
> I guess you need to add that directory to your remote PATH. See variable
> `tramp-remote-path'.
Thank you, I did change that, and I still get the same error.
If I start emacs -Q, then I can login, it works well, provided I have
changed that path.
Do you know maybe how can I debug that? I need my Emacs settings and
with it, I get this same error.
I have no other options set for tramp, and still same error.
Jean
tramp-remote-path is a variable defined in ‘tramp-sh.el’.
Its value is
(tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin" "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin" "/opt/bin" "/opt/sbin" "/opt/local/bin" "/data/data/com.termux/files/usr/bin")
Original value was
(tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin" "/usr/local/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin" "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin" "/opt/bin" "/opt/sbin" "/opt/local/bin")
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command
2020-05-24 14:46 ` Jean Louis
@ 2020-05-24 14:58 ` Michael Albinus
2020-05-24 16:27 ` Jean Louis
0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2020-05-24 14:58 UTC (permalink / raw)
To: Jean Louis; +Cc: 41496
Jean Louis <bugs@gnu.support> writes:
Hi Jean,
>> I guess you need to add that directory to your remote PATH. See variable
>> `tramp-remote-path'.
>
> Thank you, I did change that, and I still get the same error.
>
> If I start emacs -Q, then I can login, it works well, provided I have
> changed that path.
>
> Do you know maybe how can I debug that? I need my Emacs settings and
> with it, I get this same error.
Usually, you should bisect your ~/.emacs. That is, comment half of the
settings, and check whether it works.
If it works, you know the problem is in the commented part, which you
can bisect, again.
If it doesn't work, comment the other part of your ~/.emacs, and check
again. And so on, until you know the problematic setting in your ~/.emacs.
> tramp-remote-path is a variable defined in ‘tramp-sh.el’.
> Its value is
> (tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin"
> "/usr/local/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin"
> "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin"
> "/opt/bin" "/opt/sbin" "/opt/local/bin"
> "/data/data/com.termux/files/usr/bin")
Maybe it is better to move "/data/data/com.termux/files/usr/bin to the
begin of that list?
> Jean
Best regards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command
2020-05-24 14:58 ` Michael Albinus
@ 2020-05-24 16:27 ` Jean Louis
2020-05-24 17:14 ` Michael Albinus
0 siblings, 1 reply; 8+ messages in thread
From: Jean Louis @ 2020-05-24 16:27 UTC (permalink / raw)
To: Michael Albinus; +Cc: 41496
Hello Michael,
Thanks for helping.
* Michael Albinus <michael.albinus@gmx.de> [2020-05-24 17:59]:
> Jean Louis <bugs@gnu.support> writes:
>
> Hi Jean,
>
> >> I guess you need to add that directory to your remote PATH. See variable
> >> `tramp-remote-path'.
> >
> > Thank you, I did change that, and I still get the same error.
> >
> > If I start emacs -Q, then I can login, it works well, provided I have
> > changed that path.
> >
> > Do you know maybe how can I debug that? I need my Emacs settings and
> > with it, I get this same error.
>
> Usually, you should bisect your ~/.emacs. That is, comment half of the
> settings, and check whether it works.
>
> If it works, you know the problem is in the commented part, which you
> can bisect, again.
>
> If it doesn't work, comment the other part of your ~/.emacs, and check
> again. And so on, until you know the problematic setting in your ~/.emacs.
>
> > tramp-remote-path is a variable defined in ‘tramp-sh.el’.
> > Its value is
> > (tramp-default-remote-path "/bin" "/usr/bin" "/sbin" "/usr/sbin"
> > "/usr/local/bin" "/usr/local/sbin" "/local/bin" "/local/freeware/bin"
> > "/local/gnu/bin" "/usr/freeware/bin" "/usr/pkg/bin" "/usr/contrib/bin"
> > "/opt/bin" "/opt/sbin" "/opt/local/bin"
> > "/data/data/com.termux/files/usr/bin")
>
> Maybe it is better to move "/data/data/com.termux/files/usr/bin to the
> begin of that list?
That did not work.
Now I found that I cannot login when `emacs -q' and I can only login
without problems when I am using `emacs -Q'
I have then removed the non existent site-start.el it was dangling
symbolic link, and then it started working with `emacs -q'
I will try bisecting, but I am not sure. Each time I need to kill the
ssh tramp process in background as well to debug what is wrong.
Jean
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command
2020-05-24 16:27 ` Jean Louis
@ 2020-05-24 17:14 ` Michael Albinus
2020-05-24 17:21 ` Jean Louis
0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2020-05-24 17:14 UTC (permalink / raw)
To: Jean Louis; +Cc: 41496
Jean Louis <bugs@gnu.support> writes:
> Hello Michael,
Hi Jean,
> Now I found that I cannot login when `emacs -q' and I can only login
> without problems when I am using `emacs -Q'
>
> I have then removed the non existent site-start.el it was dangling
> symbolic link, and then it started working with `emacs -q'
>
> I will try bisecting, but I am not sure. Each time I need to kill the
> ssh tramp process in background as well to debug what is wrong.
Maybe the Tramp cache is in the way. Try "M-x tramp-cleanup-all-connections".
> Jean
Best regards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command
2020-05-24 17:14 ` Michael Albinus
@ 2020-05-24 17:21 ` Jean Louis
2020-05-24 17:41 ` Michael Albinus
0 siblings, 1 reply; 8+ messages in thread
From: Jean Louis @ 2020-05-24 17:21 UTC (permalink / raw)
To: Michael Albinus; +Cc: 41496
* Michael Albinus <michael.albinus@gmx.de> [2020-05-24 20:15]:
> Jean Louis <bugs@gnu.support> writes:
>
> > Hello Michael,
>
> Hi Jean,
>
> > Now I found that I cannot login when `emacs -q' and I can only login
> > without problems when I am using `emacs -Q'
> >
> > I have then removed the non existent site-start.el it was dangling
> > symbolic link, and then it started working with `emacs -q'
> >
> > I will try bisecting, but I am not sure. Each time I need to kill the
> > ssh tramp process in background as well to debug what is wrong.
>
> Maybe the Tramp cache is in the way. Try "M-x tramp-cleanup-all-connections".
Thank you, that made it working.
But I do wonder, because I have restarted Emacs, and killed sshd
connections in background.
At least now I got it working with my full setup.
Thanks.
Jean
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command
2020-05-24 17:21 ` Jean Louis
@ 2020-05-24 17:41 ` Michael Albinus
0 siblings, 0 replies; 8+ messages in thread
From: Michael Albinus @ 2020-05-24 17:41 UTC (permalink / raw)
To: Jean Louis; +Cc: 41496-done
Jean Louis <bugs@gnu.support> writes:
Hi Jean,
>> Maybe the Tramp cache is in the way. Try "M-x tramp-cleanup-all-connections".
>
> Thank you, that made it working.
Good, so I'm closing the bug.
> But I do wonder, because I have restarted Emacs, and killed sshd
> connections in background.
The Tramp cache is kept persistently in a file. Only "emacs -Q" doesn't
load it.
> At least now I got it working with my full setup.
>
> Thanks.
>
> Jean
Best regards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-05-24 17:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-24 5:33 bug#41496: 28.0.50; When accessing sshd via Tramp via Termux on Android: File error: Couldn't find a proper `ls' command Jean Louis
2020-05-24 8:48 ` Michael Albinus
2020-05-24 14:46 ` Jean Louis
2020-05-24 14:58 ` Michael Albinus
2020-05-24 16:27 ` Jean Louis
2020-05-24 17:14 ` Michael Albinus
2020-05-24 17:21 ` Jean Louis
2020-05-24 17:41 ` Michael Albinus
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).