Subject: Re: bug#57044: 29.0.50; tramp-error: Reading directory: Permission denied, /scp:motorolausb:/storage/emulated/0/

From: Jean Louis <[email-masked]>
Date: Fri, 16 Sep 2022 00:42:47 +0300

I have compiled latest Emacs Version.

I did this:

(add-to-list 'tramp-remote-path "/data/data/com.termux/files/usr/bin")

(add-to-list 'tramp-remote-path "/data/data/com.termux/files/usr/bin")

(setq tramp-verbose 10
      tramp-connection-properties '(("scp:motorola" "tmpdir" "/storage/emulated/0/tmp") ("ssh:motorola" "tmpdir" "/storage/emulated/0/tmp")))

Error is that it cannot find `ls' command. I had never problems with
it before.

Problem is with scp method. 
============================

If I use ssh method, I can enter. I can enter with rsync method.

If I use scp method, with the above information, I get missing `ls'
command.

;; Emacs: 29.0.50 Tramp: 2.6.0-pre -*- mode: outline; coding: utf-8; -*-
;; Location: /home/data1/protected/Programming/Software/emacs/lisp/net/tramp.elc Git: master/3c1579697ff03d3991b41ead503211cffac0998f
00:35:29.346675 tramp-get-file-property (8) # /storage/emulated/0 file-readable-p undef; inhibit: 10; cache used: nil; cached at: nil
00:35:29.347006 tramp-get-file-property (8) # /storage/emulated/0 file-attributes undef; inhibit: 10; cache used: nil; cached at: nil
00:35:29.347327 tramp-get-connection-property (7) # test test; cache used: t
00:35:29.347633 tramp-get-connection-property (7) # null-device /dev/null; cache used: t
00:35:29.347791 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.347936 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.348335 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.348494 tramp-get-connection-property (7) # last-cmd-time (25379 39509 20209 665000); cache used: t
00:35:29.348672 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.388768 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
00:35:29.388933 tramp-send-command (6) # echo are you awake
00:35:29.389091 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.389231 tramp-get-connection-property (7) # chunksize 0; cache used: t
00:35:29.389379 tramp-set-connection-property (7) # last-cmd-time (25379 39585 389326 872000)
00:35:29.389519 tramp-send-string (10) # echo are you awake
00:35:29.389648 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.389795 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.389907 tramp-set-connection-property (7) # locked t
00:35:29.390078 tramp-flush-connection-property (7) # locked
00:35:29.390277 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.390409 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.390595 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.390819 tramp-set-connection-property (7) # locked t
00:35:29.393147 tramp-accept-process-output (10) # *tramp/scp motorolausb* nil run t
are you awake
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.393299 tramp-flush-connection-property (7) # locked
00:35:29.393440 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.393557 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.393702 tramp-wait-for-regexp (6) # 
are you awake
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.393994 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.394132 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
00:35:29.394256 tramp-send-command (6) # test -r /storage/emulated/0/ 2>/dev/null; echo tramp_exit_status $?
00:35:29.394389 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.394550 tramp-get-connection-property (7) # chunksize 0; cache used: t
00:35:29.394695 tramp-set-connection-property (7) # last-cmd-time (25379 39585 394643 387000)
00:35:29.394837 tramp-send-string (10) # test -r /storage/emulated/0/ 2>/dev/null; echo tramp_exit_status $?
00:35:29.394973 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.395117 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.395230 tramp-set-connection-property (7) # locked t
00:35:29.395372 tramp-flush-connection-property (7) # locked
00:35:29.395564 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.395685 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.395805 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.395921 tramp-set-connection-property (7) # locked t
00:35:29.398521 tramp-accept-process-output (10) # *tramp/scp motorolausb* nil run t
tramp_exit_status 0
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.398677 tramp-flush-connection-property (7) # locked
00:35:29.398798 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.398914 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.399049 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.399286 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.399531 tramp-set-file-property (8) # /storage/emulated/0 file-readable-p t
00:35:29.400856 tramp-get-connection-property (7) # case-insensitive nil; cache used: t
00:35:29.401001 tramp-get-connection-property (7) # case-insensitive nil; cache used: t
00:35:29.401144 tramp-get-connection-property (7) # case-insensitive nil; cache used: t
00:35:29.401370 tramp-get-connection-property (7) # ~ /data/data/com.termux/files/home; cache used: t
00:35:29.402672 tramp-get-file-property (8) # /storage/emulated/0 file-directory-p undef; inhibit: 10; cache used: nil; cached at: nil
00:35:29.402892 tramp-get-file-property (8) # /storage/emulated/0 file-truename nil; inhibit: 10; cache used: nil; cached at: nil
00:35:29.403111 tramp-get-connection-property (7) # test test; cache used: t
00:35:29.403391 tramp-get-connection-property (7) # null-device /dev/null; cache used: t
00:35:29.403544 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.403683 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.403822 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.403973 tramp-get-connection-property (7) # last-cmd-time (25379 39585 394643 387000); cache used: t
00:35:29.404147 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.404287 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
00:35:29.404416 tramp-send-command (6) # test -d /storage/emulated/0 2>/dev/null; echo tramp_exit_status $?
00:35:29.404562 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.404701 tramp-get-connection-property (7) # chunksize 0; cache used: t
00:35:29.404850 tramp-set-connection-property (7) # last-cmd-time (25379 39585 404797 315000)
00:35:29.404994 tramp-send-string (10) # test -d /storage/emulated/0 2>/dev/null; echo tramp_exit_status $?
00:35:29.405129 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.405273 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.405389 tramp-set-connection-property (7) # locked t
00:35:29.405536 tramp-flush-connection-property (7) # locked
00:35:29.405724 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.405845 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.405977 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.406090 tramp-set-connection-property (7) # locked t
00:35:29.408395 tramp-accept-process-output (10) # *tramp/scp motorolausb* nil run t
tramp_exit_status 0
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.408551 tramp-flush-connection-property (7) # locked
00:35:29.408671 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.408786 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.408923 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.409171 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.409405 tramp-set-file-property (8) # /storage/emulated/0 file-directory-p t
00:35:29.411413 tramp-get-connection-property (7) # case-insensitive nil; cache used: t
00:35:29.411570 tramp-get-connection-property (7) # case-insensitive nil; cache used: t
00:35:29.411714 tramp-get-connection-property (7) # case-insensitive nil; cache used: t
00:35:29.411980 tramp-get-connection-property (7) # ~ /data/data/com.termux/files/home; cache used: t
00:35:29.422287 tramp-get-file-property (8) # /storage/emulated/0 file-truename undef; inhibit: 10; cache used: nil; cached at: nil
00:35:29.422441 tramp-sh-handle-file-truename (4) # Finding true name for ‘/scp:motorolausb:/storage/emulated/0/’
00:35:29.422573 tramp-get-connection-property (7) # readlink nil; cache used: t
00:35:29.422706 tramp-get-connection-property (7) # perl nil; cache used: t
00:35:29.424675 tramp-get-file-property (8) # /storage/emulated/0 file-truename undef; inhibit: 10; cache used: nil; cached at: nil
00:35:29.425942 tramp-get-file-property (8) # /storage/emulated/0 file-attributes-integer undef; inhibit: 10; cache used: nil; cached at: nil
00:35:29.426152 tramp-get-file-property (8) # /storage/emulated/0 file-attributes undef; inhibit: 10; cache used: nil; cached at: nil
00:35:29.426300 tramp-get-connection-property (7) # stat nil; cache used: t
00:35:29.426427 tramp-get-connection-property (7) # perl nil; cache used: t
00:35:29.426550 tramp-do-file-attributes-with-ls (5) # file attributes with ls: /storage/emulated/0/
00:35:29.426759 tramp-get-connection-property (7) # file-exists test -e; cache used: t
00:35:29.426908 tramp-get-connection-property (7) # test test; cache used: t
00:35:29.427259 tramp-get-connection-property (7) # null-device /dev/null; cache used: t
00:35:29.427401 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.427534 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.427661 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.427799 tramp-get-connection-property (7) # last-cmd-time (25379 39585 404797 315000); cache used: t
00:35:29.427957 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.428088 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
00:35:29.428208 tramp-send-command (6) # cd /storage/emulated/0/ && (test -e . || test -h .) 2>/dev/null; echo tramp_exit_status $?
00:35:29.428338 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.428465 tramp-get-connection-property (7) # chunksize 0; cache used: t
00:35:29.428600 tramp-set-connection-property (7) # last-cmd-time (25379 39585 428556 504000)
00:35:29.428733 tramp-send-string (10) # cd /storage/emulated/0/ && (test -e . || test -h .) 2>/dev/null; echo tramp_exit_status $?
00:35:29.428867 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.429011 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.429136 tramp-set-connection-property (7) # locked t
00:35:29.429288 tramp-flush-connection-property (7) # locked
00:35:29.429479 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.429604 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.429757 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.429882 tramp-set-connection-property (7) # locked t
00:35:29.434527 tramp-accept-process-output (10) # *tramp/scp motorolausb* nil run t
tramp_exit_status 0
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.434695 tramp-flush-connection-property (7) # locked
00:35:29.434819 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.434939 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.435087 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.435330 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.435494 tramp-get-connection-property (7) # ls undef; cache used: nil
00:35:29.435613 tramp-get-ls-command (5) # Finding a suitable ‘ls’ command
00:35:29.435737 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.435869 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.436085 tramp-get-connection-property (7) # remote-path (/sbin); cache used: t
00:35:29.436236 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.436389 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.436517 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.436652 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.436780 tramp-get-connection-property (7) # last-cmd-time (25379 39585 428556 504000); cache used: t
00:35:29.436940 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.437069 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
00:35:29.437188 tramp-send-command (6) # while read d; do if test -x $d/ls && test -f $d/ls; then echo tramp_executable $d/ls; break; fi; done <<'513da84da12329ef0c7e572c6af641c3'
/sbin
513da84da12329ef0c7e572c6af641c3
00:35:29.437316 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.437437 tramp-get-connection-property (7) # chunksize 0; cache used: t
00:35:29.437581 tramp-set-connection-property (7) # last-cmd-time (25379 39585 437536 702000)
00:35:29.437716 tramp-send-string (10) # while read d; do if test -x $d/ls && test -f $d/ls; then echo tramp_executable $d/ls; break; fi; done <<'513da84da12329ef0c7e572c6af641c3'
/sbin
513da84da12329ef0c7e572c6af641c3
00:35:29.437848 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.437993 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.438115 tramp-set-connection-property (7) # locked t
00:35:29.438273 tramp-flush-connection-property (7) # locked
00:35:29.438445 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.438574 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.438702 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.438823 tramp-set-connection-property (7) # locked t
00:35:29.440914 tramp-accept-process-output (10) # *tramp/scp motorolausb* nil run t
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.441076 tramp-flush-connection-property (7) # locked
00:35:29.441205 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.441331 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.441475 tramp-wait-for-regexp (6) # 
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.441714 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.441880 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.442074 tramp-get-connection-property (7) # remote-path (/sbin); cache used: t
00:35:29.442223 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.442382 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.442523 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.442653 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.442785 tramp-get-connection-property (7) # last-cmd-time (25379 39585 437536 702000); cache used: t
00:35:29.442941 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.443071 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
00:35:29.443191 tramp-send-command (6) # while read d; do if test -x $d/gnuls && test -f $d/gnuls; then echo tramp_executable $d/gnuls; break; fi; done <<'513da84da12329ef0c7e572c6af641c3'
/sbin
513da84da12329ef0c7e572c6af641c3
00:35:29.443326 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.443455 tramp-get-connection-property (7) # chunksize 0; cache used: t
00:35:29.443600 tramp-set-connection-property (7) # last-cmd-time (25379 39585 443555 921000)
00:35:29.443733 tramp-send-string (10) # while read d; do if test -x $d/gnuls && test -f $d/gnuls; then echo tramp_executable $d/gnuls; break; fi; done <<'513da84da12329ef0c7e572c6af641c3'
/sbin
513da84da12329ef0c7e572c6af641c3
00:35:29.443862 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.444014 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.444145 tramp-set-connection-property (7) # locked t
00:35:29.444295 tramp-flush-connection-property (7) # locked
00:35:29.444480 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.444608 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.444737 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.444858 tramp-set-connection-property (7) # locked t
00:35:29.447418 tramp-accept-process-output (10) # *tramp/scp motorolausb* nil run t
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.447591 tramp-flush-connection-property (7) # locked
00:35:29.447725 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.447851 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.448000 tramp-wait-for-regexp (6) # 
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.448248 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.448386 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.448577 tramp-get-connection-property (7) # remote-path (/sbin); cache used: t
00:35:29.448725 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.448883 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.449020 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.449152 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.449283 tramp-get-connection-property (7) # last-cmd-time (25379 39585 443555 921000); cache used: t
00:35:29.449443 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.449575 tramp-get-connection-property (7) # remote-echo nil; cache used: nil
00:35:29.449693 tramp-send-command (6) # while read d; do if test -x $d/gls && test -f $d/gls; then echo tramp_executable $d/gls; break; fi; done <<'513da84da12329ef0c7e572c6af641c3'
/sbin
513da84da12329ef0c7e572c6af641c3
00:35:29.449822 tramp-get-connection-property (7) # process-name nil; cache used: nil
00:35:29.449946 tramp-get-connection-property (7) # chunksize 0; cache used: t
00:35:29.450089 tramp-set-connection-property (7) # last-cmd-time (25379 39585 450044 178000)
00:35:29.450225 tramp-send-string (10) # while read d; do if test -x $d/gls && test -f $d/gls; then echo tramp_executable $d/gls; break; fi; done <<'513da84da12329ef0c7e572c6af641c3'
/sbin
513da84da12329ef0c7e572c6af641c3
00:35:29.450359 tramp-get-connection-property (7) # process-buffer nil; cache used: t
00:35:29.489016 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.489190 tramp-set-connection-property (7) # locked t
00:35:29.489326 tramp-flush-connection-property (7) # locked
00:35:29.489480 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.489603 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.489714 tramp-get-connection-property (7) # locked nil; cache used: nil
00:35:29.489813 tramp-set-connection-property (7) # locked t
00:35:29.491802 tramp-accept-process-output (10) # *tramp/scp motorolausb* nil run t
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.491932 tramp-flush-connection-property (7) # locked
00:35:29.492021 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.492109 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil
00:35:29.492215 tramp-wait-for-regexp (6) # 
///13ae492c6b62858f8b06f7a4e4accc0b#$
00:35:29.593388 tramp-get-ls-command (10) # 
  backtrace()
  tramp-error((tramp-file-name "scp" nil nil "motorolausb" nil "/storage/emulated/0/" nil) file-error "Couldn't find a proper `ls' command")
  tramp-get-ls-command((tramp-file-name "scp" nil nil "motorolausb" nil "/storage/emulated/0/" nil))
  tramp-do-file-attributes-with-ls((tramp-file-name "scp" nil nil "motorolausb" nil "/storage/emulated/0/" nil) "/storage/emulated/0/")
  tramp-sh-handle-file-attributes("/scp:motorolausb:/storage/emulated/0/")
  apply(tramp-sh-handle-file-attributes "/scp:motorolausb:/storage/emulated/0/")
  tramp-sh-file-name-handler(file-attributes "/scp:motorolausb:/storage/emulated/0/")
  apply(tramp-sh-file-name-handler file-attributes "/scp:motorolausb:/storage/emulated/0/")
  tramp-file-name-handler(file-attributes "/scp:motorolausb:/storage/emulated/0/")
  file-attributes("/scp:motorolausb:/storage/emulated/0/")
  tramp-handle-file-symlink-p("/scp:motorolausb:/storage/emulated/0/")
  apply(tramp-handle-file-symlink-p "/scp:motorolausb:/storage/emulated/0/")
  tramp-sh-file-name-handler(file-symlink-p "/scp:motorolausb:/storage/emulated/0/")
  apply(tramp-sh-file-name-handler file-symlink-p "/scp:motorolausb:/storage/emulated/0/")
  tramp-file-name-handler(file-symlink-p "/scp:motorolausb:/storage/emulated/0/")
  file-symlink-p("/scp:motorolausb:/storage/emulated/0/")
  tramp-handle-file-truename("/scp:motorolausb:/storage/emulated/0/")
  tramp-sh-handle-file-truename("/scp:motorolausb:/storage/emulated/0/")
  apply(tramp-sh-handle-file-truename "/scp:motorolausb:/storage/emulated/0/")
  tramp-sh-file-name-handler(file-truename "/scp:motorolausb:/storage/emulated/0/")
  apply(tramp-sh-file-name-handler file-truename "/scp:motorolausb:/storage/emulated/0/")
  tramp-file-name-handler(file-truename "/scp:motorolausb:/storage/emulated/0/")
  file-truename("/scp:motorolausb:/storage/emulated/0/")
  tramp-handle-access-file("/scp:motorolausb:/storage/emulated/0/" "Reading directory")
  apply(tramp-handle-access-file ("/scp:motorolausb:/storage/emulated/0/" "Reading directory"))
  tramp-sh-file-name-handler(access-file "/scp:motorolausb:/storage/emulated/0/" "Reading directory")
  apply(tramp-sh-file-name-handler access-file ("/scp:motorolausb:/storage/emulated/0/" "Reading directory"))
  tramp-file-name-handler(access-file "/scp:motorolausb:/storage/emulated/0/" "Reading directory")
  access-file("/scp:motorolausb:/storage/emulated/0/" "Reading directory")
  tramp-sh-handle-insert-directory("/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t)
  apply(tramp-sh-handle-insert-directory ("/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t))
  tramp-sh-file-name-handler(insert-directory "/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t)
  apply(tramp-sh-file-name-handler insert-directory ("/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t))
  tramp-file-name-handler(insert-directory "/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t)
  #f(compiled-function (file switches &optional wildcard full-directory-p) "Insert directory listing for FILE, formatted according to SWITCHES.\nLeaves point after the inserted text.\nSWITCHES may be a string of options, or a list of strings\nrepresenting individual options.\nOptional third arg WILDCARD means treat FILE as shell wildcard.\nOptional fourth arg FULL-DIRECTORY-P means file is a directory and\nswitches do not contain `d', so that a full listing is expected.\n\nThis works by running a directory listing program\nwhose name is in the variable `insert-directory-program'.\nIf WILDCARD, it also runs the shell specified by `shell-file-name'.\n\nWhen SWITCHES contains the long `--dired' option, this function\ntreats it specially, for the sake of dired.  However, the\nnormally equivalent short `-D' option is just passed on to\n`insert-directory-program', as any other option." #<bytecode -0xa996ba429223073>)("/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t)
  ls-lisp--insert-directory(#f(compiled-function (file switches &optional wildcard full-directory-p) "Insert directory listing for FILE, formatted according to SWITCHES.\nLeaves point after the inserted text.\nSWITCHES may be a string of options, or a list of strings\nrepresenting individual options.\nOptional third arg WILDCARD means treat FILE as shell wildcard.\nOptional fourth arg FULL-DIRECTORY-P means file is a directory and\nswitches do not contain `d', so that a full listing is expected.\n\nThis works by running a directory listing program\nwhose name is in the variable `insert-directory-program'.\nIf WILDCARD, it also runs the shell specified by `shell-file-name'.\n\nWhen SWITCHES contains the long `--dired' option, this function\ntreats it specially, for the sake of dired.  However, the\nnormally equivalent short `-D' option is just passed on to\n`insert-directory-program', as any other option." #<bytecode -0xa996ba429223073>) "/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t)
  apply(ls-lisp--insert-directory #f(compiled-function (file switches &optional wildcard full-directory-p) "Insert directory listing for FILE, formatted according to SWITCHES.\nLeaves point after the inserted text.\nSWITCHES may be a string of options, or a list of strings\nrepresenting individual options.\nOptional third arg WILDCARD means treat FILE as shell wildcard.\nOptional fourth arg FULL-DIRECTORY-P means file is a directory and\nswitches do not contain `d', so that a full listing is expected.\n\nThis works by running a directory listing program\nwhose name is in the variable `insert-directory-program'.\nIf WILDCARD, it also runs the shell specified by `shell-file-name'.\n\nWhen SWITCHES contains the long `--dired' option, this function\ntreats it specially, for the sake of dired.  However, the\nnormally equivalent short `-D' option is just passed on to\n`insert-directory-program', as any other option." #<bytecode -0xa996ba429223073>) ("/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t))
  insert-directory("/scp:motorolausb:/storage/emulated/0/" "--dired -al" nil t)
  dired-insert-directory("/scp:motorolausb:/storage/emulated/0/" "-al" nil nil t)
  dired-readin-insert()
  #f(compiled-function () #<bytecode 0x111b9d7964ba9940>)()
  combine-change-calls-1(1 1 #f(compiled-function () #<bytecode 0x111b9d7964ba9940>))
  dired-readin()
  dired-internal-noselect("/scp:motorolausb:/storage/emulated/0/" nil)
  dired-noselect("/scp:motorolausb:/storage/emulated/0/")
  run-hook-with-args-until-success(dired-noselect "/scp:motorolausb:/storage/emulated/0/")
  find-file-noselect("/scp:motorolausb:/storage/emulated/0/")
  bookmark-default-handler((#("LineageOS USB" 0 13 (bmkp-full-record #1)) (filename . "/scp:motorolausb:/storage/emulated/0/") (front-context-string . "Music\n  drwxrwx-") (rear-context-string . "0K Sep  4 07:21 ") (position . 642)))
  bookmark-handle-bookmark("LineageOS USB")
  bookmark--jump-via("LineageOS USB" pop-to-buffer-same-window)
  bookmark-jump("LineageOS USB")
  funcall-interactively(bookmark-jump "LineageOS USB")
  call-interactively(bookmark-jump nil nil)
  command-execute(bookmark-jump)
00:35:29.594010 tramp-get-ls-command (1) # File error: Couldn't find a proper `ls' command

Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/