tramp-devel
[Top][All Lists]
Advanced

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

Re: Cannot execute org babel shell script over tramp to remote termux (A


From: Matt Mello
Subject: Re: Cannot execute org babel shell script over tramp to remote termux (Android) due to tmpdir issues
Date: Thu, 5 Jul 2018 11:13:48 -0700

Thanks, Michael!  

However, it did not work.  

First, I made the change you recommended in my init file and closed emacs.
I then reopened it and set-variable tramp-verbose 6.
I then opened the remote file.
I then hit C-c C-c in the org babel block.
Here is the complete contents of the debug buffer, with a few blank lines inserted in that location that I believe is between the end of the file load and the beginning of running the org babel block:

;; Emacs: 26.1 Tramp: 2.3.3.26.1 -*- mode: outline; -*-
11:06:35.747666 tramp-maybe-send-script (5) # Sending script ‘tramp_perl_file_name_all_completions’...
11:06:35.748577 tramp-maybe-open-connection (3) # Opening connection for phone using scp...
11:06:35.805065 tramp-ssh-controlmaster-options (4) # Computing ControlMaster options...
11:06:35.805188 tramp-call-process (6) # ‘ssh -o ControlMaster’ nil  *temp*
11:06:35.858542 tramp-call-process (6) # 255
command-line line 0: missing argument.
11:06:35.858692 tramp-call-process (6) # ‘ssh -o ConnectTimeout=1 -o ControlPath=%C 0.0.0.1’ nil  *temp*
11:06:35.879500 tramp-call-process (6) # 255
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh: connect to host 0.0.0.1 port 22: No route to host
11:06:35.879633 tramp-call-process (6) # ‘ssh -o ControlPersist’ nil  *temp*
11:06:35.890047 tramp-call-process (6) # 255
command-line line 0: Missing ControlPersist argument.
11:06:35.890143 tramp-ssh-controlmaster-options (4) # Computing ControlMaster options...done
11:06:35.898724 tramp-maybe-open-connection (6) # /bin/sh -i
11:06:35.908748 tramp-wait-for-regexp (6) # 
#$ 
11:06:35.920302 tramp-maybe-open-connection (3) # Sending command ‘exec ssh  -p 8022 -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none phone’
11:06:35.920441 tramp-send-command (6) # exec ssh  -p 8022 -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no -e none phone
11:06:35.921139 tramp-process-actions (3) # Waiting for prompts from remote shell...
11:06:36.574294 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
11:06:36.575257 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
11:06:36.575874 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
11:06:36.576196 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
11:06:36.576383 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^]#$%>
]*#?[]#$%>] *\( \[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
11:06:36.576624 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
11:06:36.576774 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
11:06:36.576925 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
11:06:36.577093 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
11:06:36.577203 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
11:06:36.723515 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
11:06:36.724343 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
11:06:36.724881 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
11:06:36.725144 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
11:06:36.725303 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^]#$%>
]*#?[]#$%>] *\( \[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
11:06:36.725497 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
11:06:36.725617 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
11:06:36.725756 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
11:06:36.725881 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
11:06:36.725992 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
11:06:37.731812 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
11:06:37.732865 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
11:06:37.733528 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
11:06:37.733894 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
11:06:37.734079 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^]#$%>
]*#?[]#$%>] *\( \[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
11:06:37.734304 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
11:06:37.734453 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
11:06:37.734591 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
11:06:37.734717 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
11:06:37.734838 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
11:06:38.599688 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
11:06:38.600761 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
11:06:38.601435 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
11:06:38.601729 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
11:06:38.601882 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^]#$%>
]*#?[]#$%>] *\( \[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
11:06:38.602074 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
11:06:38.602180 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
11:06:38.602293 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
11:06:38.602403 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
11:06:38.602501 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
11:06:39.605851 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
11:06:39.606911 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
11:06:39.607562 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
11:06:39.607889 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
11:06:39.608048 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\|
\)[^]#$%>
]*#?[]#$%>] *\( \[[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell
11:06:39.608281 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell
11:06:39.608400 tramp-process-one-action (5) # Looking for regexp "\(\(\(?:Store key in cache\? (y/\|Update cached key\? (y/n, Return cancels connectio\)n)\)\s-*\)\'" from remote shell
11:06:39.608530 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell
11:06:39.608658 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
11:06:39.608779 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’
11:06:39.737844 tramp-process-one-action (5) # Looking for regexp "\(.*\(user\|login\)\( .*\)?: *\)\'" from remote shell
11:06:39.738928 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
11:06:39.739598 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
11:06:39.739924 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%>
]*[#$%>] *\)\'" from remote shell
11:06:39.740022 tramp-process-one-action (5) # Call ‘tramp-action-succeed’
11:06:39.740122 tramp-process-actions (6) # 
Welcome to Termux!

Wiki:            https://wiki.termux.com
IRC channel:     #termux on freenode
Mailing list:    address@hidden

Search packages:   pkg search <query>
Install a package: pkg install <package>
Upgrade packages:  pkg upgrade
Learn more:        pkg help
localhost/music:pjm,pfm,pcm,pxm,pmjm
localhost/music:pjm,pfm,pcm,pxm,pmjm
[yotafone2:~]
11:06:39.740832 tramp-process-actions (3) # Waiting for prompts from remote shell...done
11:06:39.741294 tramp-maybe-open-connection (3) # Found remote shell prompt on ‘phone’
11:06:39.748200 tramp-open-shell (5) # Opening remote shell ‘/data/data/com.termux/files/usr/bin/bash’...
11:06:39.748404 tramp-send-command (6) # exec env TERM='dumb' INSIDE_EMACS='26.1,tramp:2.3.3.26.1' ENV='' HISTFILE=~/.tramp_history PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /data/data/com.termux/files/usr/bin/bash -norc -noprofile
11:06:39.805205 tramp-wait-for-regexp (6) # 
#$ 
11:06:39.805434 tramp-send-command (6) # (cd ~/) 2>/dev/null; echo tramp_exit_status $?
11:06:39.814095 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
#$ 
11:06:39.814288 tramp-open-shell (5) # Opening remote shell ‘/data/data/com.termux/files/usr/bin/bash’...done
11:06:39.814379 tramp-open-connection-setup-interactive-shell (5) # Setting up remote shell environment
11:06:39.814501 tramp-send-command (6) # stty -inlcr -onlcr -echo kill '^U' erase '^H'
11:06:39.834196 tramp-wait-for-regexp (6) # 
#$ 
11:06:39.834351 tramp-send-command (6) # echo foo
11:06:39.838044 tramp-wait-for-regexp (6) # 
foo
#$ 
11:06:39.838221 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt
11:06:39.838387 tramp-send-command (6) # PS1=///556f40c17205af9824ec24506e248e63\#\$ PS2='' PS3='' PROMPT_COMMAND=''
11:06:39.842295 tramp-wait-for-regexp (6) # 
///556f40c17205af9824ec24506e248e63#$
11:06:39.842516 tramp-open-connection-setup-interactive-shell (5) # Checking system information
11:06:39.842683 tramp-send-command (6) # echo \"`uname -sr`\" 2>/dev/null; echo tramp_exit_status $?
11:06:39.864769 tramp-wait-for-regexp (6) # 
"Linux 3.4.0-ge2cffa8-02163-gcced8d7"
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:39.865013 tramp-open-connection-setup-interactive-shell (5) # Determining coding system
11:06:39.865445 tramp-send-command (6) # echo foo ; echo bar
11:06:39.869211 tramp-wait-for-regexp (6) # 
foo
bar
///556f40c17205af9824ec24506e248e63#$
11:06:39.869418 tramp-open-connection-setup-interactive-shell (5) # Setting coding system to ‘utf-8-unix’ and ‘utf-8-unix’
11:06:39.869544 tramp-send-command (6) # set +o vi +o emacs
11:06:39.873094 tramp-wait-for-regexp (6) # 
///556f40c17205af9824ec24506e248e63#$
11:06:39.873265 tramp-open-connection-setup-interactive-shell (5) # Checking remote host type for ‘send-process-string’ bug
11:06:39.873374 tramp-set-remote-path (5) # Setting $PATH environment variable
11:06:39.873492 tramp-send-command (6) # PATH=/data/data/com.termux/files/usr/bin; export PATH
11:06:39.877912 tramp-wait-for-regexp (6) # 
///556f40c17205af9824ec24506e248e63#$
11:06:39.878111 tramp-send-command (6) # mesg n 2>/dev/null; biff n 2>/dev/null
11:06:39.887564 tramp-wait-for-regexp (6) # 
///556f40c17205af9824ec24506e248e63#$
11:06:39.887762 tramp-send-command (6) # stty tab0
11:06:39.906539 tramp-wait-for-regexp (6) # 
///556f40c17205af9824ec24506e248e63#$
11:06:39.906722 tramp-send-command (6) # stty iutf8 2>/dev/null
11:06:39.926695 tramp-wait-for-regexp (6) # 
///556f40c17205af9824ec24506e248e63#$
11:06:39.926859 tramp-send-command (6) # echo \"`tty`\" 2>/dev/null; echo tramp_exit_status $?
11:06:39.947633 tramp-wait-for-regexp (6) # 
"/dev/pts/0"
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:39.947794 tramp-open-connection-setup-interactive-shell (5) # Setting default environment
11:06:39.947933 tramp-send-command (6) # while read var val; do export $var="$val"; done <<'08ea1d255989513e5b468d5f9e960597'
LC_ALL C
ENV ''
TMOUT 0
LC_CTYPE ''
PAGER cat
08ea1d255989513e5b468d5f9e960597
11:06:39.953251 tramp-wait-for-regexp (6) # 
///556f40c17205af9824ec24506e248e63#$
11:06:39.953396 tramp-send-command (6) # unset CDPATH HISTORY MAIL MAILCHECK MAILPATH autocorrect correct
11:06:39.956851 tramp-wait-for-regexp (6) # 
///556f40c17205af9824ec24506e248e63#$
11:06:39.957507 tramp-maybe-open-connection (3) # Opening connection for phone using scp...done
11:06:39.957589 tramp-send-command (6) # tramp_perl_file_name_all_completions () {
/data/data/com.termux/files/usr/bin/perl -e '
opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n");
@files = readdir(d); closedir(d);
foreach $f (@files) {
 if (-d "$ARGV[0]/$f") {
  print "$f/\n";
 }
 else {
  print "$f\n";
 }
}
print "ok\n"
' "$1" 2>/dev/null
} 2>/dev/null; echo tramp_exit_status $?
11:06:39.961994 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:39.962129 tramp-maybe-send-script (5) # Sending script ‘tramp_perl_file_name_all_completions’...done
11:06:39.962288 tramp-send-command (6) # tramp_perl_file_name_all_completions /data/data/com.termux/files/home/
11:06:39.999728 tramp-wait-for-regexp (6) # 
./
../
.bash_history
storage/
.bashrc
.termux/
notes/
.bash_profile
.ssh/
.emacs.d/
RCS
test.txt
.config/
tmp/
.lesshst
downloads/
.rclone.conf
.gnupg/
.rnd
mail/
.addressbook
.tramp_history
ok
///556f40c17205af9824ec24506e248e63#$
11:06:41.183082 tramp-send-command (6) # test -d /data/data/com.termux/files/home/notes 2>/dev/null; echo tramp_exit_status $?
11:06:41.487124 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:41.488286 tramp-do-file-attributes-with-perl (5) # file attributes with perl: /data/data/com.termux/files/home/notes/
11:06:41.488400 tramp-maybe-send-script (5) # Sending script ‘tramp_perl_file_attributes’...
11:06:41.488590 tramp-send-command (6) # tramp_perl_file_attributes () {
/data/data/com.termux/files/usr/bin/perl -e '
@stat = lstat($ARGV[0]);
if (address@hidden) {
    print "nil\n";
    exit 0;
}
if (($stat[2] & 0170000) == 0120000)
{
    $type = readlink($ARGV[0]);
    $type =~ s/"/\\"/g;
    $type = "\"$type\"";
}
elsif (($stat[2] & 0170000) == 040000)
{
    $type = "t";
}
else
{
    $type = "nil"
};
$uid = ($ARGV[1] eq "integer") ? $stat[4] : "\"" . getpwuid($stat[4]) . "\"";
$gid = ($ARGV[1] eq "integer") ? $stat[5] : "\"" . getgrgid($stat[5]) . "\"";
printf(
    "(%s %u %s %s (%u %u) (%u %u) (%u %u) %u.0 %u t (%u . %u) -1)\n",
    $type,
    $stat[3],
    $uid,
    $gid,
    $stat[8] >> 16 & 0xffff,
    $stat[8] & 0xffff,
    $stat[9] >> 16 & 0xffff,
    $stat[9] & 0xffff,
    $stat[10] >> 16 & 0xffff,
    $stat[10] & 0xffff,
    $stat[7],
    $stat[2],
    $stat[1] >> 16 & 0xffff,
    $stat[1] & 0xffff
);' "$1" "$2" 2>/dev/null
} 2>/dev/null; echo tramp_exit_status $?
11:06:41.516491 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:41.516752 tramp-maybe-send-script (5) # Sending script ‘tramp_perl_file_attributes’...done
11:06:41.516953 tramp-send-command (6) # tramp_perl_file_attributes /data/data/com.termux/files/home/notes/ string 2>/dev/null; echo tramp_exit_status $?
11:06:41.561533 tramp-wait-for-regexp (6) # 
(t 2 "u0_a784" "u0_a784" (23246 9607) (23358 23913) (23358 23913) 4096.0 16832 t (23 . 10203) -1)
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:41.562602 tramp-do-file-attributes-with-perl (5) # file attributes with perl: /data/data/com.termux/files/home/notes/
11:06:41.562810 tramp-send-command (6) # tramp_perl_file_attributes /data/data/com.termux/files/home/notes/ integer 2>/dev/null; echo tramp_exit_status $?
11:06:41.599859 tramp-wait-for-regexp (6) # 
(t 2 10784 10784 (23246 9607) (23358 23913) (23358 23913) 4096.0 16832 t (23 . 10203) -1)
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:42.176872 tramp-send-command (6) # test -d /data/data/com.termux/files/home/notes/data.org 2>/dev/null; echo tramp_exit_status $?
11:06:42.406289 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///556f40c17205af9824ec24506e248e63#$
11:06:42.431850 tramp-sh-handle-file-truename (4) # Finding true name for ‘/scp:phone#8022:/data/data/com.termux/files/home/notes/data.org
11:06:42.431989 tramp-send-command (6) # /data/data/com.termux/files/usr/bin/readlink --canonicalize-missing /data/data/com.termux/files/home/notes/data.org 2>/dev/null; echo tramp_exit_status $?
11:06:42.465528 tramp-wait-for-regexp (6) # 
/data/data/com.termux/files/home/notes/data.org
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:42.466792 tramp-do-file-attributes-with-perl (5) # file attributes with perl: /data/data/com.termux/files/home/notes/data.org
11:06:42.466989 tramp-send-command (6) # tramp_perl_file_attributes /data/data/com.termux/files/home/notes/data.org integer 2>/dev/null; echo tramp_exit_status $?
11:06:42.504246 tramp-wait-for-regexp (6) # 
(nil 1 10784 10784 (23358 23913) (23358 23913) (23358 23914) 617007.0 33252 t (23 . 8254) -1)
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:42.504582 tramp-sh-handle-file-truename (4) # True name of ‘/data/data/com.termux/files/home/notes/data.org’ is ‘/data/data/com.termux/files/home/notes/data.org
11:06:42.511214 tramp-handle-insert-file-contents (3) # Inserting ‘/scp:phone#8022:/data/data/com.termux/files/home/notes/data.org’...
11:06:42.514093 tramp-find-inline-encoding (5) # Checking local encoding function ‘base64-encode-region’
11:06:42.514208 tramp-find-inline-encoding (5) # Checking local decoding function ‘base64-decode-region’
11:06:42.514303 tramp-find-inline-encoding (5) # Checking remote encoding command ‘base64’ for sanity
11:06:42.514428 tramp-send-command (6) # ( base64 </dev/null 2>/dev/null; echo tramp_exit_status $? )
11:06:42.541830 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:42.542055 tramp-find-inline-encoding (5) # Checking remote decoding command ‘base64 -d -i’ for sanity
11:06:42.542190 tramp-send-command (6) # ( echo xyzzy | base64 | base64 -d -i 2>/dev/null; echo tramp_exit_status $? )
11:06:42.581516 tramp-wait-for-regexp (6) # 
xyzzy
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:42.581748 tramp-find-inline-encoding (5) # Using local encoding ‘base64-encode-region’
11:06:42.581852 tramp-find-inline-encoding (5) # Using local decoding ‘base64-decode-region’
11:06:42.581951 tramp-find-inline-encoding (5) # Using remote encoding ‘base64’
11:06:42.582044 tramp-find-inline-encoding (5) # Using remote decoding ‘base64 -d -i’
11:06:42.582171 tramp-find-inline-compress (5) # Checking local compress commands ‘gzip’, ‘gzip -d’ for sanity
11:06:42.582307 tramp-call-process (6) # ‘/bin/sh -c echo xyzzy | gzip | gzip -d’ nil nil
11:06:42.593183 tramp-call-process (6) # 0
xyzzy
11:06:42.593266 tramp-find-inline-compress (5) # Checking remote compress commands ‘gzip’, ‘gzip -d’ for sanity
11:06:42.593368 tramp-send-command (6) # ( echo xyzzy | gzip | gzip -d 2>/dev/null; echo tramp_exit_status $? )
11:06:42.613736 tramp-wait-for-regexp (6) # 
bash: gzip: command not found
bash: echo: write error: Broken pipe
tramp_exit_status 127
///556f40c17205af9824ec24506e248e63#$
11:06:42.613938 tramp-find-inline-compress (5) # Checking local compress commands ‘bzip2’, ‘bzip2 -d’ for sanity
11:06:42.614081 tramp-call-process (6) # ‘/bin/sh -c echo xyzzy | bzip2 | bzip2 -d’ nil nil
11:06:42.623793 tramp-call-process (6) # 0
xyzzy
11:06:42.623879 tramp-find-inline-compress (5) # Checking remote compress commands ‘bzip2’, ‘bzip2 -d’ for sanity
11:06:42.623987 tramp-send-command (6) # ( echo xyzzy | bzip2 | bzip2 -d 2>/dev/null; echo tramp_exit_status $? )
11:06:42.639174 tramp-wait-for-regexp (6) # 
bash: bzip2: command not found
bash: echo: write error: Broken pipe
tramp_exit_status 127
///556f40c17205af9824ec24506e248e63#$
11:06:42.639330 tramp-find-inline-compress (5) # Checking local compress commands ‘xz’, ‘xz -d’ for sanity
11:06:42.639438 tramp-call-process (6) # ‘/bin/sh -c echo xyzzy | xz | xz -d’ nil nil
11:06:42.644392 tramp-call-process (6) # 127
/bin/sh: xz: command not found
/bin/sh: xz: command not found
11:06:42.644475 tramp-find-inline-compress (5) # Checking local compress commands ‘compress’, ‘compress -d’ for sanity
11:06:42.644570 tramp-call-process (6) # ‘/bin/sh -c echo xyzzy | compress | compress -d’ nil nil
11:06:42.651458 tramp-call-process (6) # 0
xyzzy
11:06:42.651539 tramp-find-inline-compress (5) # Checking remote compress commands ‘compress’, ‘compress -d’ for sanity
11:06:42.651636 tramp-send-command (6) # ( echo xyzzy | compress | compress -d 2>/dev/null; echo tramp_exit_status $? )
11:06:42.664628 tramp-wait-for-regexp (6) # 
bash: compress: command not found
bash: echo: write error: Broken pipe
tramp_exit_status 127
///556f40c17205af9824ec24506e248e63#$
11:06:42.665418 tramp-find-inline-compress (2) # Couldn’t find an inline transfer compress command
11:06:42.668690 tramp-do-copy-or-rename-file (0) # Copying /scp:phone#8022:/data/data/com.termux/files/home/notes/data.org to /var/folders/jg/11hqnz8x0nlbvgmy4sjjv5cw5w462y/T/tramp.zme0xY.org...
11:06:42.677878 tramp-do-copy-or-rename-file-out-of-band (6) # scp -P 8022 -p -q -r -o ControlMaster=auto -o ControlPath='tramp.%C' -o ControlPersist=no phone:/data/data/com.termux/files/home/notes/data.org /var/folders/jg/11hqnz8x0nlbvgmy4sjjv5cw5w462y/T/tramp.zme0xY.org
11:06:42.678919 tramp-process-actions (3) # Waiting for prompts from remote shell...
11:06:43.680218 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
11:06:43.680397 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
11:06:43.680492 tramp-process-one-action (5) # Looking for regexp "\(\(.+: \(No such file or directory\|Permission denied\|is a directory\|not a regular file\)\)\s-*\)\'" from remote shell
11:06:43.680566 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
11:06:43.680679 tramp-process-one-action (5) # Call ‘tramp-action-out-of-band’
11:06:44.352648 tramp-process-one-action (5) # Looking for regexp "\(^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|pa\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*:? *\)\'" from remote shell
11:06:44.352778 tramp-process-one-action (5) # Looking for regexp "\(^.*\(Connection \(?:\(?:clo\|refu\)sed\)\|Host key verification failed\.\|Login \(?:[Ii]ncorrect\)\|N\(?:ame or service not known\|o supported authentication methods left to try!\)\|Permission denied\|\(?:Sorry, try again\|Timeout, server not responding\)\.\).*\|^.*\(Received signal [0-9]+\).*\)\'" from remote shell
11:06:44.352881 tramp-process-one-action (5) # Looking for regexp "\(\(.+: \(No such file or directory\|Permission denied\|is a directory\|not a regular file\)\)\s-*\)\'" from remote shell
11:06:44.352960 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell
11:06:44.353031 tramp-process-one-action (5) # Call ‘tramp-action-out-of-band’
11:06:44.353555 tramp-action-out-of-band (3) # Process has finished.
11:06:44.353643 tramp-process-actions (6) # 
11:06:44.354755 tramp-do-copy-or-rename-file (0) # Copying /scp:phone#8022:/data/data/com.termux/files/home/notes/data.org to /var/folders/jg/11hqnz8x0nlbvgmy4sjjv5cw5w462y/T/tramp.zme0xY.org...done
11:06:44.363287 tramp-handle-insert-file-contents (3) # Inserting ‘/scp:phone#8022:/data/data/com.termux/files/home/notes/data.org’...done
11:06:44.364340 tramp-do-file-attributes-with-perl (5) # file attributes with perl: /data/data/com.termux/files/home/notes/data.org
11:06:44.364471 tramp-send-command (6) # tramp_perl_file_attributes /data/data/com.termux/files/home/notes/data.org string 2>/dev/null; echo tramp_exit_status $?
11:06:44.400196 tramp-wait-for-regexp (6) # 
(nil 1 "u0_a784" "u0_a784" (23358 23913) (23358 23913) (23358 23914) 617007.0 33252 t (23 . 8254) -1)
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:44.401127 tramp-do-file-attributes-with-perl (5) # file attributes with perl: /data/data/com.termux/files/home/notes/data.org
11:06:44.401263 tramp-send-command (6) # tramp_perl_file_attributes /data/data/com.termux/files/home/notes/data.org integer 2>/dev/null; echo tramp_exit_status $?
11:06:44.428285 tramp-wait-for-regexp (6) # 
(nil 1 10784 10784 (23358 23913) (23358 23913) (23358 23914) 617007.0 33252 t (23 . 8254) -1)
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:45.364211 tramp-sh-handle-vc-registered (3) # Checking ‘vc-registered’ for /scp:phone#8022:/data/data/com.termux/files/home/notes/data.org...
11:06:45.406478 tramp-maybe-send-script (5) # Sending script ‘tramp_vc_registered_read_file_names’...
11:06:45.406616 tramp-send-command (6) # tramp_vc_registered_read_file_names () {
echo "("
while read file; do
    if test -e "$file"; then
        echo "(\"$file\" \"file-exists-p\" t)"
    else
        echo "(\"$file\" \"file-exists-p\" nil)"
    fi
    if test -r "$file"; then
        echo "(\"$file\" \"file-readable-p\" t)"
    else
        echo "(\"$file\" \"file-readable-p\" nil)"
    fi
done
echo ")"
} 2>/dev/null; echo tramp_exit_status $?
11:06:45.484637 tramp-wait-for-regexp (6) # 
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:45.484823 tramp-maybe-send-script (5) # Sending script ‘tramp_vc_registered_read_file_names’...done
11:06:45.485331 tramp-send-command (6) # tramp_vc_registered_read_file_names <<'08ea1d255989513e5b468d5f9e960597'
/data/data/com.termux/files/home/notes/CVS/Entries
/data/data/com.termux/files/home/notes/data.org/.svn
/data/data/com.termux/files/home/notes/.svn
/data/data/com.termux/files/home/.svn
/data/data/com.termux/files/.svn
/data/data/com.termux/.svn
/data/data/.svn
/data/.svn
/.svn
/data/data/com.termux/files/home/notes/SCCS/s.data.org
/data/data/com.termux/files/home/notes/s.data.org
/data/data/com.termux/files/home/notes/.src/data.org\,v
/data/data/com.termux/files/home/notes/data.org/.bzr/checkout/format
/data/data/com.termux/files/home/notes/.bzr/checkout/format
/data/data/com.termux/files/home/.bzr/checkout/format
/data/data/com.termux/files/.bzr/checkout/format
/data/data/com.termux/.bzr/checkout/format
/data/data/.bzr/checkout/format
/data/.bzr/checkout/format
/.bzr/checkout/format
/data/data/com.termux/files/home/notes/data.org/.git
/data/data/com.termux/files/home/notes/.git
/data/data/com.termux/files/home/.git
/data/data/com.termux/files/.git
/data/data/com.termux/.git
/data/data/.git
/data/.git
/.git
/data/data/com.termux/files/home/notes/data.org/.hg
/data/data/com.termux/files/home/notes/.hg
/data/data/com.termux/files/home/.hg
/data/data/com.termux/files/.hg
/data/data/com.termux/.hg
/data/data/.hg
/data/.hg
/.hg
/data/data/com.termux/files/home/notes/data.org/_MTN/format
/data/data/com.termux/files/home/notes/_MTN/format
/data/data/com.termux/files/home/_MTN/format
/data/data/com.termux/files/_MTN/format
/data/data/com.termux/_MTN/format
/data/data/_MTN/format
/data/_MTN/format
/_MTN/format
08ea1d255989513e5b468d5f9e960597
11:06:45.611028 tramp-wait-for-regexp (6) # 
(
("/data/data/com.termux/files/home/notes/CVS/Entries" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/CVS/Entries" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/data.org/.svn" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/data.org/.svn" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/.svn" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/.svn" "file-readable-p" nil)
("/data/data/com.termux/files/home/.svn" "file-exists-p" nil)
("/data/data/com.termux/files/home/.svn" "file-readable-p" nil)
("/data/data/com.termux/files/.svn" "file-exists-p" nil)
("/data/data/com.termux/files/.svn" "file-readable-p" nil)
("/data/data/com.termux/.svn" "file-exists-p" nil)
("/data/data/com.termux/.svn" "file-readable-p" nil)
("/data/data/.svn" "file-exists-p" nil)
("/data/data/.svn" "file-readable-p" nil)
("/data/.svn" "file-exists-p" nil)
("/data/.svn" "file-readable-p" nil)
("/.svn" "file-exists-p" nil)
("/.svn" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/SCCS/s.data.org" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/SCCS/s.data.org" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/s.data.org" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/s.data.org" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/.src/data.org,v" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/.src/data.org,v" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/data.org/.bzr/checkout/format" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/data.org/.bzr/checkout/format" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/.bzr/checkout/format" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/.bzr/checkout/format" "file-readable-p" nil)
("/data/data/com.termux/files/home/.bzr/checkout/format" "file-exists-p" nil)
("/data/data/com.termux/files/home/.bzr/checkout/format" "file-readable-p" nil)
("/data/data/com.termux/files/.bzr/checkout/format" "file-exists-p" nil)
("/data/data/com.termux/files/.bzr/checkout/format" "file-readable-p" nil)
("/data/data/com.termux/.bzr/checkout/format" "file-exists-p" nil)
("/data/data/com.termux/.bzr/checkout/format" "file-readable-p" nil)
("/data/data/.bzr/checkout/format" "file-exists-p" nil)
("/data/data/.bzr/checkout/format" "file-readable-p" nil)
("/data/.bzr/checkout/format" "file-exists-p" nil)
("/data/.bzr/checkout/format" "file-readable-p" nil)
("/.bzr/checkout/format" "file-exists-p" nil)
("/.bzr/checkout/format" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/data.org/.git" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/data.org/.git" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/.git" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/.git" "file-readable-p" nil)
("/data/data/com.termux/files/home/.git" "file-exists-p" nil)
("/data/data/com.termux/files/home/.git" "file-readable-p" nil)
("/data/data/com.termux/files/.git" "file-exists-p" nil)
("/data/data/com.termux/files/.git" "file-readable-p" nil)
("/data/data/com.termux/.git" "file-exists-p" nil)
("/data/data/com.termux/.git" "file-readable-p" nil)
("/data/data/.git" "file-exists-p" nil)
("/data/data/.git" "file-readable-p" nil)
("/data/.git" "file-exists-p" nil)
("/data/.git" "file-readable-p" nil)
("/.git" "file-exists-p" nil)
("/.git" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/data.org/.hg" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/data.org/.hg" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/.hg" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/.hg" "file-readable-p" nil)
("/data/data/com.termux/files/home/.hg" "file-exists-p" nil)
("/data/data/com.termux/files/home/.hg" "file-readable-p" nil)
("/data/data/com.termux/files/.hg" "file-exists-p" nil)
("/data/data/com.termux/files/.hg" "file-readable-p" nil)
("/data/data/com.termux/.hg" "file-exists-p" nil)
("/data/data/com.termux/.hg" "file-readable-p" nil)
("/data/data/.hg" "file-exists-p" nil)
("/data/data/.hg" "file-readable-p" nil)
("/data/.hg" "file-exists-p" nil)
("/data/.hg" "file-readable-p" nil)
("/.hg" "file-exists-p" nil)
("/.hg" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/data.org/_MTN/format" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/data.org/_MTN/format" "file-readable-p" nil)
("/data/data/com.termux/files/home/notes/_MTN/format" "file-exists-p" nil)
("/data/data/com.termux/files/home/notes/_MTN/format" "file-readable-p" nil)
("/data/data/com.termux/files/home/_MTN/format" "file-exists-p" nil)
("/data/data/com.termux/files/home/_MTN/format" "file-readable-p" nil)
("/data/data/com.termux/files/_MTN/format" "file-exists-p" nil)
("/data/data/com.termux/files/_MTN/format" "file-readable-p" nil)
("/data/data/com.termux/_MTN/format" "file-exists-p" nil)
("/data/data/com.termux/_MTN/format" "file-readable-p" nil)
("/data/data/_MTN/format" "file-exists-p" nil)
("/data/data/_MTN/format" "file-readable-p" nil)
("/data/_MTN/format" "file-exists-p" nil)
("/data/_MTN/format" "file-readable-p" nil)
("/_MTN/format" "file-exists-p" nil)
("/_MTN/format" "file-readable-p" nil)
)
///556f40c17205af9824ec24506e248e63#$
11:06:45.642952 tramp-sh-handle-vc-registered (3) # Checking ‘vc-registered’ for /scp:phone#8022:/data/data/com.termux/files/home/notes/data.org...done




11:06:56.547154 tramp-send-command (6) # test -e /tmp/ob-input-7Jl9Hd 2>/dev/null; echo tramp_exit_status $?
11:06:56.845611 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///556f40c17205af9824ec24506e248e63#$
11:06:56.846472 tramp-do-file-attributes-with-perl (5) # file attributes with perl: /tmp/ob-input-7Jl9Hd
11:06:56.846660 tramp-send-command (6) # tramp_perl_file_attributes /tmp/ob-input-7Jl9Hd integer 2>/dev/null; echo tramp_exit_status $?
11:06:56.908227 tramp-wait-for-regexp (6) # 
nil
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:56.908459 tramp-do-file-attributes-with-ls (5) # file attributes with ls: /tmp/ob-input-7Jl9Hd
11:06:56.908629 tramp-send-command (6) # test -e /tmp/ob-input-7Jl9Hd 2>/dev/null; echo tramp_exit_status $?
11:06:56.912429 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///556f40c17205af9824ec24506e248e63#$
11:06:56.912696 tramp-send-command (6) # test -h /tmp/ob-input-7Jl9Hd 2>/dev/null; echo tramp_exit_status $?
11:06:56.917125 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///556f40c17205af9824ec24506e248e63#$
11:06:56.918373 tramp-sh-handle-file-truename (4) # Finding true name for ‘/scp:phone#8022:/tmp/ob-input-7Jl9Hd’
11:06:56.918526 tramp-send-command (6) # /data/data/com.termux/files/usr/bin/readlink --canonicalize-missing /tmp/ob-input-7Jl9Hd 2>/dev/null; echo tramp_exit_status $?
11:06:56.943194 tramp-wait-for-regexp (6) # 
/tmp/ob-input-7Jl9Hd
tramp_exit_status 0
///556f40c17205af9824ec24506e248e63#$
11:06:56.944354 tramp-sh-handle-file-truename (4) # True name of ‘/tmp/ob-input-7Jl9Hd’ is ‘/tmp/ob-input-7Jl9Hd’
11:06:56.953170 tramp-sh-handle-write-region (3) # Encoding local file ‘/var/folders/jg/11hqnz8x0nlbvgmy4sjjv5cw5w462y/T/tramp.1HLGmi’ using ‘base64-encode-region’...
11:06:56.955406 tramp-sh-handle-write-region (3) # Encoding local file ‘/var/folders/jg/11hqnz8x0nlbvgmy4sjjv5cw5w462y/T/tramp.1HLGmi’ using ‘base64-encode-region’...done
11:06:56.956840 tramp-sh-handle-write-region (3) # Decoding remote file ‘/scp:phone#8022:/tmp/ob-input-7Jl9Hd’ using ‘base64 -d -i >%s’...
11:06:56.957701 tramp-send-command (6) # base64 -d -i >/tmp/ob-input-7Jl9Hd <<'08ea1d255989513e5b468d5f9e960597'
08ea1d255989513e5b468d5f9e960597
11:06:56.964770 tramp-wait-for-regexp (6) # 
bash: /tmp/ob-input-7Jl9Hd: No such file or directory
///556f40c17205af9824ec24506e248e63#$
11:06:56.964938 tramp-send-command (6) # echo tramp_exit_status $?
11:06:56.968381 tramp-wait-for-regexp (6) # 
tramp_exit_status 1
///556f40c17205af9824ec24506e248e63#$
11:06:56.968793 tramp-barf-unless-okay (1) # File error: Couldn’t write region to ‘/scp:phone#8022:/tmp/ob-input-7Jl9Hd’, decode using ‘base64 -d -i >%s’ failed
11:06:56.969774 tramp-sh-handle-write-region (3) # Decoding remote file ‘/scp:phone#8022:/tmp/ob-input-7Jl9Hd’ using ‘base64 -d -i >%s’...failed 


​I hope ​that isn't too spammy.  ;)

​-- Matt​



On Thu, Jul 5, 2018 at 9:48 AM Michael Albinus <address@hidden> wrote:
Matt Mello <address@hidden> writes:

Hi Matt,

> When I hit C-c C-c in the bash script, it attempts to run it on the
> remote termux/Android environment and always gives this error:
>
> "
> Tramp: Decoding remote file ‘/scp:phone#8022:/tmp/ob-input-NNFaG8’
> using ‘base64 -d -i >%s’...failed
> tramp-file-name-handler: Couldn’t write region to
> ‘/scp:phone#8022:/tmp/ob-input-NNFaG8’, decode using ‘base64 -d -i
>>%s’ failed
> "
>
> I noticed in
> https://www.gnu.org/software/emacs/manual/html_node/tramp/Android-shell-setup.html#Android-shell-setup
>
> that the following is recommended:
>
> "
> When the Android device is not ‘rooted’, specify a writable directory
> for temporary files:
>      (add-to-list 'tramp-remote-process-environment "TMPDIR=$HOME")
> "
>
> So, I have added that to my init script, but I still get the error.
> No matter what I do, tramp always has tramp-tmpdir set to /tmp.

Setting a remote $TMPDIR is good for the programs which run on a remote
host. Tramp itself does not use $TMPDIR on that remote machine, because
it must now about the location of a remote tmpdir much earlier.

Tramp can be configured to use a dedicated temporary directory on a
remote host. See
<https://www.gnu.org/software/emacs/manual/html_node/tramp/Predefined-connection-information.html#Predefined-connection-information>
for information how connection related information could be
specified. In your case, I would try

(add-to-list 'tramp-connection-properties
             (list (regexp-quote "/scp:phone#8022:")
                   "tmpdir" "/path/to/tmpdir"))

If this doean't help, set `tramp-verbose' to 6, and show the resulting
Tramp debug buffer.

> Thanks!
> --- Matt

Best regards, Michael.

reply via email to

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