* tramp mode not working on OSX with dev HEAD @ 2010-03-05 22:15 Randal L. Schwartz 2010-03-06 8:03 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-05 22:15 UTC (permalink / raw) To: emacs-devel I'm using /scp: mode (the default) with Tramp trying to connect from my box to both an OpenSolaris box and a FreeBSD box. I can get directory listings, but when I try to get a specific file, I get a process buffer that shows that my scp has exited abnormally with code 255. Is there something I can do to get more diagnostic info, or is this a known problem and being worked on? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: tramp mode not working on OSX with dev HEAD 2010-03-05 22:15 tramp mode not working on OSX with dev HEAD Randal L. Schwartz @ 2010-03-06 8:03 ` Michael Albinus 2010-03-07 22:39 ` Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-06 8:03 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: > I'm using /scp: mode (the default) with Tramp trying to connect from my box to > both an OpenSolaris box and a FreeBSD box. I can get directory listings, but > when I try to get a specific file, I get a process buffer that shows that my > scp has exited abnormally with code 255. Is there something I can do to get > more diagnostic info, or is this a known problem and being worked on? Start a fresh Emacs via "emacs -Q". Eval (setq tramp-verbose 8) The resulting buffer *debug tramp/scp user@host* shall give the required information. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: tramp mode not working on OSX with dev HEAD 2010-03-06 8:03 ` Michael Albinus @ 2010-03-07 22:39 ` Randal L. Schwartz 2010-03-08 8:00 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-07 22:39 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> Start a fresh Emacs via "emacs -Q". Eval (setq tramp-verbose 8) Michael> The resulting buffer *debug tramp/scp user@host* shall give the required Michael> information. Trying to find-file on /root/SAVE on opensolaris 2009.06: ;; GNU Emacs: 23.1.93.4 Tramp: 2.1.18-pre -*- mode: outline; -*- 14:37:47.842360 tramp-flush-file-property (8) # /root/ 14:37:47.844978 tramp-get-file-property (8) # /root/SAVE file-attributes-integer (nil 1 0 0 (19182 39028) (19182 39028) (19182 39028) 3779 -rw-r--r-- nil (3 . 39269) (-1 . 0)) 14:37:47.847136 tramp-get-file-property (8) # /root/SAVE file-exists-p t 14:37:47.848257 tramp-get-file-property (8) # /root/SAVE file-exists-p t 14:37:47.848509 tramp-get-connection-property (7) # remote-encoding nil 14:37:47.848744 tramp-find-inline-encoding (5) # Checking local encoding function `base64-encode-region' 14:37:47.848969 tramp-find-inline-encoding (5) # Checking local decoding function `base64-decode-region' 14:37:47.849193 tramp-find-inline-encoding (5) # Checking remote encoding command `base64' for sanity 14:37:47.849429 tramp-get-connection-property (7) # process-name nil 14:37:47.849962 tramp-maybe-open-connection (3) # Opening connection for insightcruises.com using scp... 14:37:47.850325 tramp-get-connection-property (7) # process-name nil 14:37:47.850560 tramp-get-connection-property (7) # process-buffer nil 14:37:47.855036 tramp-maybe-open-connection (6) # /bin/sh 14:37:47.856346 tramp-maybe-open-connection (3) # Waiting 60s for local shell to come up... 14:37:47.856866 tramp-get-connection-property (7) # check-remote-echo nil 14:37:47.857133 tramp-get-connection-property (7) # check-remote-echo nil 14:37:47.858787 tramp-get-connection-property (7) # check-remote-echo nil 14:37:47.859034 tramp-get-connection-property (7) # check-remote-echo nil 14:37:47.859305 tramp-wait-for-regexp (6) # Process *tramp/scp insightcruises.com* exited abnormally with code 255 #$ 14:37:47.859547 tramp-get-file-property (8) # gateway nil 14:37:47.859895 tramp-set-connection-property (7) # temp-file /var/folders/i4/i4U0-F6w2RWBFk+8ZKVcg++++TI/-Tmp-/tramp.65314FCM 14:37:47.860297 tramp-flush-file-property (8) # /root/ 14:37:47.860612 tramp-flush-file-property (8) # /root/ 14:37:47.860979 tramp-flush-file-property (8) # /root/ 14:37:47.861280 tramp-flush-file-property (8) # /root/ 14:37:47.861623 tramp-flush-file-property (8) # /root/ 14:37:47.861892 tramp-flush-file-property (8) # /root/ 14:37:47.862165 tramp-flush-file-property (8) # /root/ 14:37:47.862405 tramp-flush-file-property (8) # /root/ 14:37:47.862827 tramp-maybe-open-connection (3) # Sending command `exec ssh insightcruises.com -q -e none' 14:37:47.863037 tramp-get-connection-property (7) # process-name nil 14:37:47.863310 tramp-get-connection-property (7) # remote-echo nil 14:37:47.863504 tramp-send-command (6) # exec ssh insightcruises.com -q -e none 14:37:47.863686 tramp-get-connection-property (7) # process-name nil 14:37:47.863914 tramp-get-connection-property (7) # chunksize nil 14:37:47.864106 tramp-set-connection-property (7) # last-cmd-time (19348 10939 864014) 14:37:47.864332 tramp-get-connection-property (7) # process-buffer nil 14:37:47.864551 tramp-set-connection-property (7) # first-password-request t 14:37:47.864933 tramp-process-actions (3) # Waiting for prompts from remote shell 14:37:48.865358 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell 14:37:48.865728 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.866043 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.866338 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]assword\|[pP]assphrase\).*:? *\)\'" from remote shell 14:37:48.866660 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.866957 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.867292 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 14:37:48.867666 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.868025 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.868327 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%> ]*[#$%>] *\)\'" from remote shell 14:37:48.868616 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.868925 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.869209 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\| \)[^#$%> ]*#?[#$%>] *\([[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell 14:37:48.869524 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.869835 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.870072 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell 14:37:48.870320 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.870577 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.870891 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 14:37:48.871191 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.871454 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.871690 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from remote shell 14:37:48.871927 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.872226 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.872456 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 14:37:48.872725 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.873063 tramp-get-connection-property (7) # check-remote-echo nil 14:37:48.873430 tramp-process-one-action (5) # Call `tramp-action-process-alive' 14:37:49.338303 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( .*\)?: *\)\'" from remote shell 14:37:49.338505 tramp-get-connection-property m remote shell 14:37:49.340165 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.340354 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.340533 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\| \)[^#$%> ]*#?[#$%>] *\([[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell 14:37:49.340698 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.340855 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.341048 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell 14:37:49.341209 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.341365 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.341536 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 14:37:49.341697 tramp-get-connection-property (7) # check-remote-echo nil 1e-action (5) # Looking for regexp "\(\(?:^\| \)[^#$%> ]*#?[#$%>] *\([[0-9;]*[a-zA-Z] *\)*\)\'" from remote shell 14:37:49.375662 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.375811 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.376018 tramp-process-one-action (5) # Looking for regexp "\(\(Are you sure you want to continue connecting (yes/no)\?\)\s-*\)\'" from remote shell 14:37:49.376180 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.376330 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.376477 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 14:37:49.376638 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.376807 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.397470 tramp-process-one-action (5) # Looking for regexp "\(\(TERM = (.*)\|Terminal type\? \[.*\]\)\s-*\)\'" from from 74-93-191-66-or Sun Microsystems Inc. SunOS 5.11 snv_111b November 2008 Authorized uses only. All activity may be monitored and reported. root@domU-12-31-39-06-4E-01:~# 14:37:49.422268 tramp-maybe-open-connection (3) # Found remote shell prompt on `insightcruises.com' 14:37:49.422437 tramp-get-connection-property (7) # process-name nil 14:37:49.422606 tramp-get-connection-property (7) # remote-echo nil 14:37:49.422732 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh 14:37:49.422859 tramp-get-connection-property (7) # process-name nil 14:37:49.423020 tramp-get-connection-property (7) # chunksize nil 14:37:49.423168 tramp-set-connection-property (7) # last-cmd-time (19348 10941 423097) 14:37:49.423399 tramp-get-connection-property (7) # process-buffer nil 14:37:49.423644 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.423793 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.534599 tramp-get-connection-property4:37:49.653847 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.654194 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.754739 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.755002 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.755255 tramp-wait-for-regexp (6) # foo #$ 14:37:49.755479 tramp-open-connection-setup-interactive-shell (5) # Setting shell prompt 14:37:49.755714 tramp-get-connection-property (7) # process-name nil 14:37:49.755992 tramp-get-connection-property (7) # remote-echo nil 14:37:49.756197 tramp-send-command (6) # PS1=///846578aa9346240d73161aa549bdb0d2\#\$ 14:37:49.756405 tramp-get-connection-property (7) # process-name nil 14:37:49.756664 tramp-get-connection-property (7) # chunksize nil 14:37:49.756986 tramp-set-connection-property (7) # last-cmd-time (19348 10941 756789) 14:37:49.757240 tramp-get-connection-property (7) # process-buffer nil 14:37:49.757573 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.757786 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.854736 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.855227 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.855564 tramp-wait-for-regexp (6) # ///846578aa9346240d73161aa549bdb0d2#$ 14:37:49.855994 tramp-get-connection-property (7) # process-name nil 14:37:49.856338 tramp-get-connection-property (7) # remote-echo nil 14:37:49.856576 tramp-send-command (6) # PS2='' 14:37:49.856805 tramp-get-connection-property (7) # process-name nil 14:37:49.857102 tramp-get-connection-property (7) # chunksize nil 14:37:49.857371 tramp-set-connection-property (7) # last-cmd-time (19348 10941 857241) 14:37:49.857718 tramp-get-connection-property (7) # process-buffer nil 14:37:49.858097 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.858370 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.955518 tramp-get-connection-property (7) # check-remote-echo nil 14:37:49.95602.1.18-pre; export INSIDE_EMACS 14:37:51.342077 tramp-get-connection-property (7) # process-name nil 14:37:51.342375 tramp-get-connection-property (7) # chunksize 0 14:37:51.342660 tramp-set-connection-property (7) # last-cmd-time (19348 10943 342530) 14:37:51.342920 tramp-get-connection-property (7) # process-buffer nil 14:37:51.343355 tramp-get-connection-property (7) # check-remote-echo nil 14:37:51.343629 tramp-get-connection-property (7) # check-remote-echo nil 14:37:51.443635 tramp-get-connection-property (7) # check-remote-echo nil 14:37:51.444215 tramp-get-connection-property (7) # check-remote-echo nil 14:37:51.444580 tramp-wait-for-regexp (6) # ///846578aa9346240d73161aa549bdb0d2#$ 14:37:51.445078 tramp-get-connection-property (7) # process-name nil 14:37:51.445433 tramp-get-connection-property (7) # last-cmd-time (19348 10943 342530) 14:37:51.445709 tramp-get-connection-property (7) # process-name nil 14:37:51.446075 tramp-get-connection-property (7) # remote-echo nil 14:37:51.446315 tramp-send-command (6) # unset correct autocorrect MAILPATH MAILCHECK MAIL HISTORY CDPATH 14:37:51.446555 tramp-get-connection-property (7) # process-name nil 14:37:51.446872 tramp-get-connection-property (7) # chunksize 0 14:37:51.447158 tramp-set-connection-property (7) # last-cmd-time (19348 10943 447027) 14:37:51.447416 tramp-get-connection-property (7) # process-buffer nil 14:37:51.447839 tramp-get-connection-property (7) # check-remote-echo nil 14:37:51.448186 tramp-get-connection-property (7) # check-remote-echo nil 14:37:51.546873 tramp-get-connection-property (7) # check-remote-echo nil 14:37:51.547224 tramp-get-connection-property (7) # check-remote-echo nil 14:37:51.547578 tramp-wait-for-regexp (6) # ///846578aa9346240d73161aa549bdb0d2#$ 14:37:51.547955 tramp-get-connection-property (7) # process-name nil 14:37:51.548294 tramp-get-connection-property (7) # remote-echo nil 14:37:51.548553 tramp-send-command (6) # ( base64 </dev/null 2>/dev/null; echo tramp_exit_status $? ) 14:37:51.548796 tramp-get-connecti.120216 tramp-get-connection-property (7) # process-name nil 14:37:52.120515 tramp-get-connection-property (7) # scripts nil 14:37:52.120778 tramp-maybe-send-script (5) # Sending script `tramp_perl_encode_with_module'... 14:37:52.121017 tramp-get-connection-property (7) # perl /usr/bin/perl 14:37:52.121279 tramp-get-connection-property (7) # process-name nil 14:37:52.121582 tramp-get-connection-property (7) # last-cmd-time (19348 10944 20202) 14:37:52.121853 tramp-get-connection-property (7) # process-name nil 14:37:52.122152 tramp-get-connection-property (7) # remote-echo nil 14:37:52.122385 tramp-send-command (6) # tramp_perl_encode_with_module () { /usr/bin/perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' 2>/dev/null } 2>/dev/null; echo tramp_exit_status $? 14:37:52.122631 tramp-get-connection-property (7) # process-name nil 14:37:52.122925 tramp-get-connection-property (7) # chunksize 0 14:37:52.123212 tramp-set-connection-property (7) # last-cmd-time (19348 10944 123080) 14:37:52.123472 tramp-gennection-property (7) # process-buffer nil 14:37:52.123970 tramp-get-connection-property (7) # check-remote-echo nil 14:37:52.124290 tramp-get-connection-property (7) # check-remote-echo nil 14:37:53.059278 tramp-wait-for-regexp (1) # File error: Process has died 14:37:55.293013 tramp-flush-file-property (8) # /root/ -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: tramp mode not working on OSX with dev HEAD 2010-03-07 22:39 ` Randal L. Schwartz @ 2010-03-08 8:00 ` Michael Albinus 2010-03-08 15:24 ` Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-08 8:00 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: > > Michael> Start a fresh Emacs via "emacs -Q". Eval (setq tramp-verbose 8) > > Michael> The resulting buffer *debug tramp/scp user@host* shall give the required > Michael> information. > > Trying to find-file on /root/SAVE on opensolaris 2009.06: The traces do not look complete. Did you start a fresh Emacs, and did you copy all traces? I need traces from a clean Tramp run! > ;; GNU Emacs: 23.1.93.4 Tramp: 2.1.18-pre -*- mode: outline; -*- > 14:37:47.842360 tramp-flush-file-property (8) # /root/ > 14:37:47.844978 tramp-get-file-property (8) # /root/SAVE file-attributes-integer (nil 1 0 0 (19182 39028) (19182 39028) (19182 39028) 3779 -rw-r--r-- nil (3 . 39269) (-1 . 0)) > 14:37:47.847136 tramp-get-file-property (8) # /root/SAVE file-exists-p t > 14:37:47.848257 tramp-get-file-property (8) # /root/SAVE file-exists-p t This is an indication, that the traces do not start from the beginning. Tramp reads from its cache. > 14:37:47.855036 tramp-maybe-open-connection (6) # /bin/sh > 14:37:47.856346 tramp-maybe-open-connection (3) # Waiting 60s for local shell to come up... > 14:37:47.856866 tramp-get-connection-property (7) # check-remote-echo nil > 14:37:47.857133 tramp-get-connection-property (7) # check-remote-echo nil > 14:37:47.858787 tramp-get-connection-property (7) # check-remote-echo nil > 14:37:47.859034 tramp-get-connection-property (7) # check-remote-echo nil > 14:37:47.859305 tramp-wait-for-regexp (6) # > > Process *tramp/scp insightcruises.com* exited abnormally with code 255 > #$ Oops, what's that? When Tramp calls *locally* "/bin/sh", this shouldn't happen. And "#$" looks like a prompt from a previous run. Again, I cannot analyze these traces. Please start a fresh "emacs -Q", as I have said last email. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: tramp mode not working on OSX with dev HEAD 2010-03-08 8:00 ` Michael Albinus @ 2010-03-08 15:24 ` Randal L. Schwartz 2010-03-08 16:58 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-08 15:24 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: >> Michael> Start a fresh Emacs via "emacs -Q". Eval (setq tramp-verbose 8) >> Michael> The resulting buffer *debug tramp/scp user@host* shall give the required Michael> information. >> >> Trying to find-file on /root/SAVE on opensolaris 2009.06: Michael> The traces do not look complete. Did you start a fresh Emacs, and did Michael> you copy all traces? I need traces from a clean Tramp run! Sorry.. I did a few things that worked (finding a directory works). I then truncated the logs, and failed on finding a file that was there. I've redone it with just (setq tramp-verbose 8) (find-file "/insightcruises.com:NOW") and uploaded the resulting file (too large for email) to http://www.stonehenge.com/pic/TRAMP-DEBUG-LOG Sorry for the earlier mis-report. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: tramp mode not working on OSX with dev HEAD 2010-03-08 15:24 ` Randal L. Schwartz @ 2010-03-08 16:58 ` Michael Albinus 2010-03-08 17:03 ` Randal L. Schwartz 2010-03-09 21:26 ` tramp mode not working on OSX with dev HEAD Andreas Schwab 0 siblings, 2 replies; 35+ messages in thread From: Michael Albinus @ 2010-03-08 16:58 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: > Sorry.. I did a few things that worked (finding a directory works). > I then truncated the logs, and failed on finding a file that was there. No problem. The traces can be analyzed now. If you want to do it yourself, check for the level (6) traces. These are the sent commands, and their reply. 07:20:10.701231 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh 07:20:10.816572 tramp-wait-for-regexp (6) # #$ On your remote host, /bin/sh has been opened. The next commands are fine. Until here: 07:20:12.899867 tramp-send-command (6) # tramp_perl_file_name_all_completions () { /usr/bin/perl -e 'sub case { my $str = shift; if ($ARGV[2]) { return lc($str); } else { return $str; } } opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); @files = readdir(d); closedir(d); foreach $f (@files) { if (case(substr($f, 0, length($ARGV[1]))) eq case($ARGV[1])) { if (-d "$ARGV[0]/$f") { print "$f/\n"; } else { print "$f\n"; } } } print "ok\n" ' "$1" "$2" "$3" 2>/dev/null } 2>/dev/null; echo tramp_exit_status $? Tramp tries to declare a script in the shell. 07:20:13.748322 tramp-wait-for-regexp (1) # File error: Process has died And there was an error; the shell died. It looks like your shell does not like bourne-shell syntax. Please check the following: Open a terminal on the remote host, and call "/bin/sh". Then paste the following lines literally: --8<---------------cut here---------------start------------->8--- tramp_perl_file_name_all_completions () { /usr/bin/perl -e 'sub case { my $str = shift; if ($ARGV[2]) { return lc($str); } else { return $str; } } opendir(d, $ARGV[0]) || die("$ARGV[0]: $!\nfail\n"); @files = readdir(d); closedir(d); foreach $f (@files) { if (case(substr($f, 0, length($ARGV[1]))) eq case($ARGV[1])) { if (-d "$ARGV[0]/$f") { print "$f/\n"; } else { print "$f\n"; } } } print "ok\n" ' "$1" "$2" "$3" 2>/dev/null } --8<---------------cut here---------------end--------------->8--- See, whether there is an error. If there is no error, test the script in the shell: --8<---------------cut here---------------start------------->8--- tramp_perl_file_name_all_completions /tmp --8<---------------cut here---------------end--------------->8--- That's it. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: tramp mode not working on OSX with dev HEAD 2010-03-08 16:58 ` Michael Albinus @ 2010-03-08 17:03 ` Randal L. Schwartz 2010-03-08 17:19 ` Michael Albinus 2010-03-09 21:26 ` tramp mode not working on OSX with dev HEAD Andreas Schwab 1 sibling, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-08 17:03 UTC (permalink / raw) To: Michael Albinus; +Cc: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> See, whether there is an error. If there is no error, test the script in Michael> the shell: No error. Michael> --8<---------------cut here---------------start------------->8--- Michael> tramp_perl_file_name_all_completions /tmp Michael> --8<---------------cut here---------------end--------------->8--- And that reports a bunch of files in /tmp, just fine. {boggle} What can I try next? Is it possible that a pty-based /bin/sh is acting differently from a non-pty-based shell? No... just tried that... ssh insightcruises.com /bin/sh (paste those two things) And that worked as well. Gaah. What else can I do to help? Unfortunately, I can't hand out accounts on that machine. :( -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: tramp mode not working on OSX with dev HEAD 2010-03-08 17:03 ` Randal L. Schwartz @ 2010-03-08 17:19 ` Michael Albinus 2010-03-08 17:40 ` Tramp Mode not working connecting to OpenSolaris (was Re: tramp mode not working on OSX with dev HEAD) Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-08 17:19 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: > What can I try next? Remove the "exec" from the /bin/sh call: *** /tmp/ediff34033ry 2010-03-08 18:17:48.000000000 +0100 --- /home/albinus/src/emacs/lisp/net/tramp.el 2010-03-08 18:16:13.000000000 +0100 *************** *** 6426,6432 **** (let ((tramp-end-of-output tramp-initial-end-of-output)) (tramp-send-command vec ! (format "PROMPT_COMMAND='' PS1=%s PS2='' PS3='' exec %s" (shell-quote-argument tramp-end-of-output) shell) t)) ;; Setting prompts. --- 6426,6432 ---- (let ((tramp-end-of-output tramp-initial-end-of-output)) (tramp-send-command vec ! (format "PROMPT_COMMAND='' PS1=%s PS2='' PS3='' %s" (shell-quote-argument tramp-end-of-output) shell) t)) ;; Setting prompts. Increase tramp-verbose to 10 (much more traces). Maybe, we see more. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Tramp Mode not working connecting to OpenSolaris (was Re: tramp mode not working on OSX with dev HEAD) 2010-03-08 17:19 ` Michael Albinus @ 2010-03-08 17:40 ` Randal L. Schwartz 2010-03-08 17:48 ` Tramp Mode not working connecting to OpenSolaris Randal L. Schwartz 2010-03-08 21:35 ` Michael Albinus 0 siblings, 2 replies; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-08 17:40 UTC (permalink / raw) To: Michael Albinus; +Cc: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> Remove the "exec" from the /bin/sh call: Did that. Didn't help Michael> Increase tramp-verbose to 10 (much more traces). Maybe, we see more. New trace uploaded to same place http://www.stonehenge.com/pic/TRAMP-DEBUG-LOG Thanks. By the way, just to isolate operating system issues, I tried the same thing from a FreeBSD source to the same OpenSolaris box, and got the same error. So this isn't an OSX problem, or a problem with HEAD, despite the subject line. This problem exists in Emacs 23.1.1 connecting to OpenSolaris, so I updated the subject line. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-08 17:40 ` Tramp Mode not working connecting to OpenSolaris (was Re: tramp mode not working on OSX with dev HEAD) Randal L. Schwartz @ 2010-03-08 17:48 ` Randal L. Schwartz 2010-03-08 18:11 ` David Kastrup 2010-03-08 21:35 ` Michael Albinus 1 sibling, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-08 17:48 UTC (permalink / raw) To: emacs-devel >>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes: Randal> This problem exists in Emacs 23.1.1 connecting to OpenSolaris, so Randal> I updated the subject line. And if it helps, /bin/sh there is actually ksh93. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-08 17:48 ` Tramp Mode not working connecting to OpenSolaris Randal L. Schwartz @ 2010-03-08 18:11 ` David Kastrup 2010-03-08 21:38 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: David Kastrup @ 2010-03-08 18:11 UTC (permalink / raw) To: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes: > > Randal> This problem exists in Emacs 23.1.1 connecting to OpenSolaris, so > Randal> I updated the subject line. > > And if it helps, /bin/sh there is actually ksh93. I'd expect the problem being with /usr/bin/perl rather. -- David Kastrup ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-08 18:11 ` David Kastrup @ 2010-03-08 21:38 ` Michael Albinus 0 siblings, 0 replies; 35+ messages in thread From: Michael Albinus @ 2010-03-08 21:38 UTC (permalink / raw) To: David Kastrup; +Cc: emacs-devel David Kastrup <dak@gnu.org> writes: > I'd expect the problem being with /usr/bin/perl rather. As far as I can read the traces, Perl isn't involved (yet). The error happens, when Tramp declares a shell function. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-08 17:40 ` Tramp Mode not working connecting to OpenSolaris (was Re: tramp mode not working on OSX with dev HEAD) Randal L. Schwartz 2010-03-08 17:48 ` Tramp Mode not working connecting to OpenSolaris Randal L. Schwartz @ 2010-03-08 21:35 ` Michael Albinus 2010-03-08 21:43 ` Randal L. Schwartz 1 sibling, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-08 21:35 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: > > Michael> Remove the "exec" from the /bin/sh call: > > Did that. Didn't help > > Michael> Increase tramp-verbose to 10 (much more traces). Maybe, we see more. > > New trace uploaded to same place http://www.stonehenge.com/pic/TRAMP-DEBUG-LOG Looks like there is still the same trace I did analyze already. Could you, please, upload the new trace? > This problem exists in Emacs 23.1.1 connecting to OpenSolaris, so > I updated the subject line. Interesting. There is already a patch in Tramp just because of OpenSolaris. Search for "solaris" in tramp.el. Maybe we have found even more. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-08 21:35 ` Michael Albinus @ 2010-03-08 21:43 ` Randal L. Schwartz 2010-03-09 6:34 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-08 21:43 UTC (permalink / raw) To: Michael Albinus; +Cc: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> Looks like there is still the same trace I did analyze already. Could Michael> you, please, upload the new trace? The problem was caching... my reverse-proxy caches files for a few hours. Try again, or add a "2" on the end, which is a second copy. :) Michael> Interesting. There is already a patch in Tramp just because of Michael> OpenSolaris. Search for "solaris" in tramp.el. Maybe we have found even Michael> more. Yeah, when I first chose OpenSolaris for this project, I went "oh goody, real Unix again". And now I've abandoned it in favor of FreeBSD, which is real *modern* Unix. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-08 21:43 ` Randal L. Schwartz @ 2010-03-09 6:34 ` Michael Albinus 2010-03-09 15:49 ` Randal L. Schwartz 2010-03-09 15:51 ` Randal L. Schwartz 0 siblings, 2 replies; 35+ messages in thread From: Michael Albinus @ 2010-03-09 6:34 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: > Michael> Looks like there is still the same trace I did analyze already. Could > Michael> you, please, upload the new trace? > > The problem was caching... my reverse-proxy caches files for a few hours. > > Try again, or add a "2" on the end, which is a second copy. :) That's OK now. However, there is nothing new, because the shell is still called with "exec": 09:31:23.036109 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh Did you apply the patch I've sent yesterday? Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-09 6:34 ` Michael Albinus @ 2010-03-09 15:49 ` Randal L. Schwartz 2010-03-09 15:51 ` Randal L. Schwartz 1 sibling, 0 replies; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-09 15:49 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> 09:31:23.036109 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh Michael> Did you apply the patch I've sent yesterday? I'm pretty sure I used the patch version. I repeated again... see http://www.stonehenge.com/pic/TRAMP-DEBUG-LOG3 Thanks. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-09 6:34 ` Michael Albinus 2010-03-09 15:49 ` Randal L. Schwartz @ 2010-03-09 15:51 ` Randal L. Schwartz 2010-03-10 17:04 ` Michael Albinus 1 sibling, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-09 15:51 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> That's OK now. However, there is nothing new, because the shell is still Michael> called with "exec": Michael> 09:31:23.036109 tramp-send-command (6) # exec env ENV='' PROMPT_COMMAND='' PS1=\#\$\ PS2='' PS3='' /bin/sh Michael> Did you apply the patch I've sent yesterday? By the way, the "exec" in that line is unaffected by your patch, which takes out the "exec" between PS3='' and /bin/sh (which you'll notice is gone). -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-09 15:51 ` Randal L. Schwartz @ 2010-03-10 17:04 ` Michael Albinus 2010-03-10 17:08 ` Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-10 17:04 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: > Michael> Did you apply the patch I've sent yesterday? > > By the way, the "exec" in that line is unaffected by your patch, > which takes out the "exec" between PS3='' and /bin/sh (which you'll > notice is gone). You're right, it was the wrong place. Sorry. The following patch shall remove the right "exec": --8<---------------cut here---------------start------------->8--- *** /tmp/ediff6873HcD 2010-03-10 17:55:23.000000000 +0100 --- /home/albinus/src/emacs/lisp/net/tramp.el 2010-03-10 17:55:07.000000000 +0100 *************** *** 6719,6725 **** (tramp-send-command vec (format ! "exec env ENV='' PROMPT_COMMAND='' PS1=%s PS2='' PS3='' %s" (shell-quote-argument tramp-end-of-output) (tramp-get-method-parameter (tramp-file-name-method vec) 'tramp-remote-sh)) --- 6719,6725 ---- (tramp-send-command vec (format ! "env ENV='' PROMPT_COMMAND='' PS1=%s PS2='' PS3='' %s" (shell-quote-argument tramp-end-of-output) (tramp-get-method-parameter (tramp-file-name-method vec) 'tramp-remote-sh)) --8<---------------cut here---------------end--------------->8--- Please test it, again. If Tramp goes into an infinite loop, kill it by C-g. There is also another buffer *tramp/scp user@host*, which shall show us the last message of the remote shell. The suspicion of Andreas sounds promising; but before changing the code I would like to see that problem. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-10 17:04 ` Michael Albinus @ 2010-03-10 17:08 ` Randal L. Schwartz 2010-03-10 20:20 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-10 17:08 UTC (permalink / raw) To: Michael Albinus; +Cc: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> Did you apply the patch I've sent yesterday? >> >> By the way, the "exec" in that line is unaffected by your patch, >> which takes out the "exec" between PS3='' and /bin/sh (which you'll >> notice is gone). Michael> You're right, it was the wrong place. Sorry. Michael> The following patch shall remove the right "exec": I did that (by hand) already, similar result. Do you want the trace? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-10 17:08 ` Randal L. Schwartz @ 2010-03-10 20:20 ` Michael Albinus 2010-03-11 16:53 ` Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-10 20:20 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: > Michael> The following patch shall remove the right "exec": > > I did that (by hand) already, similar result. Do you want the trace? Nope, I believe you. It does not go this way. Please revert the previous patch. Let's assume, the default shell in OpenSolaris is buggy. It's not the first time, Tramp is confronted by this. Consequently, we shall use another shell like bash, instead of applying several workarounds for those bugs. The appended patch does exactly this. Note that I couldn't test it with a remote OpenSolaris machine ... Before you test this, you must call "M-x tramp-cleanup-all-connections". This flushes Tramp's caches, which is necessary. --8<---------------cut here---------------start------------->8--- *** /tmp/ediff3714iRe 2010-03-10 21:07:27.054171338 +0100 --- /home/albinus/src/emacs/lisp/net/tramp.el 2010-03-10 21:06:13.924172486 +0100 *************** *** 6403,6414 **** (with-current-buffer (tramp-get-buffer vec) (tramp-send-command vec "echo ~root" t) (cond ! ((string-match "^~root$" (buffer-string)) (setq shell (or (tramp-find-executable ! vec "bash" (tramp-get-remote-path vec) t) (tramp-find-executable ! vec "ksh" (tramp-get-remote-path vec) t))) (unless shell (tramp-error vec 'file-error --- 6403,6417 ---- (with-current-buffer (tramp-get-buffer vec) (tramp-send-command vec "echo ~root" t) (cond ! ((or (string-match "^~root$" (buffer-string)) ! ;; The default shell (ksh93) of OpenSolaris is buggy. ! (string-equal (tramp-get-connection-property vec "uname" "") ! "SunOS 5.11")) (setq shell (or (tramp-find-executable ! vec "bash" (tramp-get-remote-path vec) t t) (tramp-find-executable ! vec "ksh" (tramp-get-remote-path vec) t t))) (unless shell (tramp-error vec 'file-error *************** *** 6851,6858 **** ;; On OpenSolaris, there is a bug when HISTFILE is changed in place ;; <http://bugs.opensolaris.org/view_bug.do?bug_id=6834184>. We ;; apply the workaround. ! (if (string-equal (tramp-get-connection-property vec "uname" "") "SunOS 5.11") ! (tramp-send-command vec "unset HISTFILE" t)) (let ((env (copy-sequence tramp-remote-process-environment)) unset item) --- 6854,6861 ---- ;; On OpenSolaris, there is a bug when HISTFILE is changed in place ;; <http://bugs.opensolaris.org/view_bug.do?bug_id=6834184>. We ;; apply the workaround. ! ;(if (string-equal (tramp-get-connection-property vec "uname" "") "SunOS 5.11") ! ;(tramp-send-command vec "unset HISTFILE" t)) (let ((env (copy-sequence tramp-remote-process-environment)) unset item) --8<---------------cut here---------------end--------------->8--- Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-10 20:20 ` Michael Albinus @ 2010-03-11 16:53 ` Randal L. Schwartz 2010-03-11 17:53 ` Davis Herring 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-11 16:53 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> Let's assume, the default shell in OpenSolaris is buggy. It's not the Michael> first time, Tramp is confronted by this. Consequently, we shall use Michael> another shell like bash, instead of applying several workarounds for Michael> those bugs. The appended patch does exactly this. Note that I couldn't Michael> test it with a remote OpenSolaris machine ... Michael> Before you test this, you must call "M-x tramp-cleanup-all-connections". Michael> This flushes Tramp's caches, which is necessary. I started a brand new emacs... I presume that's the same thing. But no, different but still fatal failure: http://www.stonehenge.com/pic/TRAMP-DEBUG-LOG4 You should probably stop trying to call "biff" too. Not there. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-11 16:53 ` Randal L. Schwartz @ 2010-03-11 17:53 ` Davis Herring 2010-03-11 17:58 ` Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Davis Herring @ 2010-03-11 17:53 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel > Michael> Before you test this, you must call "M-x > tramp-cleanup-all-connections". > Michael> This flushes Tramp's caches, which is necessary. > > I started a brand new emacs... I presume that's the same thing. No, that's not the same. Tramp caches things (like remote OS versions and so forth) on disk. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-11 17:53 ` Davis Herring @ 2010-03-11 17:58 ` Randal L. Schwartz 2010-03-11 19:37 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-11 17:58 UTC (permalink / raw) To: herring; +Cc: emacs-devel >>>>> "Davis" == Davis Herring <herring@lanl.gov> writes: Michael> Before you test this, you must call "M-x >> tramp-cleanup-all-connections". Michael> This flushes Tramp's caches, which is necessary. >> >> I started a brand new emacs... I presume that's the same thing. Davis> No, that's not the same. Tramp caches things (like remote OS versions and Davis> so forth) on disk. Still fails. :) http://www.stonehenge.com/pic/TRAMP-DEBUG-LOG5 if it matters. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-11 17:58 ` Randal L. Schwartz @ 2010-03-11 19:37 ` Michael Albinus 2010-03-11 19:49 ` Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-11 19:37 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Davis" == Davis Herring <herring@lanl.gov> writes: > > Michael> Before you test this, you must call "M-x >>> tramp-cleanup-all-connections". > Michael> This flushes Tramp's caches, which is necessary. >>> >>> I started a brand new emacs... I presume that's the same thing. > > Davis> No, that's not the same. Tramp caches things (like remote OS versions and > Davis> so forth) on disk. > > Still fails. :) > > http://www.stonehenge.com/pic/TRAMP-DEBUG-LOG5 if it matters. In both traces, Tramp has read values from the cache. Example in TRAMP-DEBUG-LOG5: 09:57:43.040036 tramp-get-connection-property (7) # remote-shell /bin/sh OK, let's do it with a sledge-hammer approach: - Close any Emacs session. It is important to do it first, because Tramp saves its cache when Emacs exits. - Remove ~/.emacs.d/tramp (this is the saved cache). - Start "emacs -Q", and run your test. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-11 19:37 ` Michael Albinus @ 2010-03-11 19:49 ` Randal L. Schwartz 2010-03-11 20:11 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-11 19:49 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> OK, let's do it with a sledge-hammer approach: Michael> - Close any Emacs session. It is important to do it first, because Tramp Michael> saves its cache when Emacs exits. Michael> - Remove ~/.emacs.d/tramp (this is the saved cache). Michael> - Start "emacs -Q", and run your test. Michael> Best regards, Michael. Yeay! That works. Your patch is good. Now the next problem: /scp:insightcruises.com:/root $ *date Couldn't find a shell which groks tilde expansion -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-11 19:49 ` Randal L. Schwartz @ 2010-03-11 20:11 ` Michael Albinus 2010-03-11 21:21 ` Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-11 20:11 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: > Yeay! That works. Your patch is good. OK, I prepare it for commit to the emacs-23 branch. > Now the next problem: > > /scp:insightcruises.com:/root $ *date > Couldn't find a shell which groks tilde expansion What's that? Eshell? I need traces, as usual :-) Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-11 20:11 ` Michael Albinus @ 2010-03-11 21:21 ` Randal L. Schwartz 2010-03-12 5:38 ` Michael Albinus 0 siblings, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-11 21:21 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> What's that? Eshell? Yeah. Michael> I need traces, as usual :-) http://www.stonehenge.com/TRAMP-DEBUG-LOG6 -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-11 21:21 ` Randal L. Schwartz @ 2010-03-12 5:38 ` Michael Albinus 2010-03-12 16:24 ` Chong Yidong 2010-03-14 18:35 ` Randal L. Schwartz 0 siblings, 2 replies; 35+ messages in thread From: Michael Albinus @ 2010-03-12 5:38 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel [-- Attachment #1: Type: text/plain, Size: 523 bytes --] merlyn@stonehenge.com (Randal L. Schwartz) writes: > Michael> I need traces, as usual :-) > > http://www.stonehenge.com/TRAMP-DEBUG-LOG6 Thanks. There was indeed another error, not related to OpenSolaris, but you have trapped it as the first one. Appended is an updated patch, which shall fix your problems. When confirmed by you, I will submit it to the emacs-23 branch. Chong: is this OK? It is not a regression wrt Emacs 23.1. For Emacs 22.3 I don't know; Tramp 2.0 and 2.1 differ too much. Best regards, Michael. [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #2: Type: text/x-patch, Size: 4050 bytes --] *** /tmp/ediff2198r4N 2010-03-12 06:32:58.165822018 +0100 --- /home/albinus/src/emacs/lisp/net/tramp.el 2010-03-12 06:29:07.744569594 +0100 *************** *** 6294,6300 **** Returns the absolute file name of PROGNAME, if found, and nil otherwise. This function expects to be in the right *tramp* buffer." ! (with-current-buffer (tramp-get-buffer vec) (let (result) ;; Check whether the executable is in $PATH. "which(1)" does not ;; report always a correct error code; therefore we check the --- 6294,6300 ---- Returns the absolute file name of PROGNAME, if found, and nil otherwise. This function expects to be in the right *tramp* buffer." ! (with-current-buffer (tramp-get-connection-buffer vec) (let (result) ;; Check whether the executable is in $PATH. "which(1)" does not ;; report always a correct error code; therefore we check the *************** *** 6302,6308 **** (unless ignore-path (tramp-send-command vec (format "which \\%s | wc -w" progname)) (goto-char (point-min)) ! (if (looking-at "^1$") (setq result (concat "\\" progname)))) (unless result (when ignore-tilde --- 6302,6308 ---- (unless ignore-path (tramp-send-command vec (format "which \\%s | wc -w" progname)) (goto-char (point-min)) ! (if (looking-at "^\\s-*1$") (setq result (concat "\\" progname)))) (unless result (when ignore-tilde *************** *** 6403,6414 **** (with-current-buffer (tramp-get-buffer vec) (tramp-send-command vec "echo ~root" t) (cond ! ((string-match "^~root$" (buffer-string)) (setq shell (or (tramp-find-executable ! vec "bash" (tramp-get-remote-path vec) t) (tramp-find-executable ! vec "ksh" (tramp-get-remote-path vec) t))) (unless shell (tramp-error vec 'file-error --- 6403,6417 ---- (with-current-buffer (tramp-get-buffer vec) (tramp-send-command vec "echo ~root" t) (cond ! ((or (string-match "^~root$" (buffer-string)) ! ;; The default shell (ksh93) of OpenSolaris is buggy. ! (string-equal (tramp-get-connection-property vec "uname" "") ! "SunOS 5.11")) (setq shell (or (tramp-find-executable ! vec "bash" (tramp-get-remote-path vec) t t) (tramp-find-executable ! vec "ksh" (tramp-get-remote-path vec) t t))) (unless shell (tramp-error vec 'file-error *************** *** 6837,6845 **** ;; "test foo; echo $?" to check if various conditions hold, and ;; there are buggy /bin/sh implementations which don't execute the ;; "echo $?" part if the "test" part has an error. In particular, ! ;; the Solaris /bin/sh is a problem. I'm betting that all systems ! ;; with buggy /bin/sh implementations will have a working bash or ! ;; ksh. Whee... (tramp-find-shell vec) ;; Disable unexpected output. --- 6840,6850 ---- ;; "test foo; echo $?" to check if various conditions hold, and ;; there are buggy /bin/sh implementations which don't execute the ;; "echo $?" part if the "test" part has an error. In particular, ! ;; the OpenSolaris /bin/sh is a problem. There are also other ! ;; problems with /bin/sh of OpenSolaris, like redirection of stderr ! ;; in in function declarations, or changing HISTFILE in place. ! ;; Therefore, OpenSolaris' /bin/sh is replaced by bash, when ! ;; detected. (tramp-find-shell vec) ;; Disable unexpected output. *************** *** 6848,6859 **** ;; Set the environment. (tramp-message vec 5 "Setting default environment") - ;; On OpenSolaris, there is a bug when HISTFILE is changed in place - ;; <http://bugs.opensolaris.org/view_bug.do?bug_id=6834184>. We - ;; apply the workaround. - (if (string-equal (tramp-get-connection-property vec "uname" "") "SunOS 5.11") - (tramp-send-command vec "unset HISTFILE" t)) - (let ((env (copy-sequence tramp-remote-process-environment)) unset item) (while env --- 6853,6858 ---- ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-12 5:38 ` Michael Albinus @ 2010-03-12 16:24 ` Chong Yidong 2010-03-13 19:34 ` Michael Albinus 2010-03-14 18:35 ` Randal L. Schwartz 1 sibling, 1 reply; 35+ messages in thread From: Chong Yidong @ 2010-03-12 16:24 UTC (permalink / raw) To: Michael Albinus; +Cc: emacs-devel, Randal L. Schwartz Michael Albinus <michael.albinus@gmx.de> writes: > Thanks. There was indeed another error, not related to OpenSolaris, but > you have trapped it as the first one. > > Appended is an updated patch, which shall fix your problems. When > confirmed by you, I will submit it to the emacs-23 branch. > > Chong: is this OK? It is not a regression wrt Emacs 23.1. For Emacs 22.3 > I don't know; Tramp 2.0 and 2.1 differ too much. I think it is OK. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-12 16:24 ` Chong Yidong @ 2010-03-13 19:34 ` Michael Albinus 2010-03-13 19:56 ` Stefan Monnier 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-13 19:34 UTC (permalink / raw) To: Chong Yidong; +Cc: emacs-devel, Randal L. Schwartz Chong Yidong <cyd@stupidchicken.com> writes: >> Appended is an updated patch, which shall fix your problems. When >> confirmed by you, I will submit it to the emacs-23 branch. >> >> Chong: is this OK? It is not a regression wrt Emacs 23.1. For Emacs 22.3 >> I don't know; Tramp 2.0 and 2.1 differ too much. > > I think it is OK. Installed in the emacs-23 branch. Is it automatically propagated to the trunk, or shall I install it there manually? Randal: if you still have problems with the patch, you could take it from here. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-13 19:34 ` Michael Albinus @ 2010-03-13 19:56 ` Stefan Monnier 0 siblings, 0 replies; 35+ messages in thread From: Stefan Monnier @ 2010-03-13 19:56 UTC (permalink / raw) To: Michael Albinus; +Cc: Chong Yidong, Randal L. Schwartz, emacs-devel > Installed in the emacs-23 branch. Thanks. > Is it automatically propagated to the trunk, The emacs-23 branch will be occasionally merged back into trunk, so it's not automatic, but it will happen. > or shall I install it there manually? No, please don't. But you (or anyone else) can do the merge, if you want to (I'll do it every once in a while anyway, so there's no real need to): cd ...myemacs/trunk bzr merge sftp://..../emacs-23 <resolve conflicts (e.g. in ChangeLogs)> bzr diff <check that it's indeed what you expected> bzr commit -m 'Merge bug fixes from emacs-23' Of course, it should be done with extra care, since it's easy to make a silly mistake and you might be merging changes written by other people. Stefan ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-12 5:38 ` Michael Albinus 2010-03-12 16:24 ` Chong Yidong @ 2010-03-14 18:35 ` Randal L. Schwartz 2010-03-14 18:51 ` Michael Albinus 1 sibling, 1 reply; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-14 18:35 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> Appended is an updated patch, which shall fix your problems. When Michael> confirmed by you, I will submit it to the emacs-23 branch. still getting an error in the middle of the patch: ~/Applications/Emacs.app/Contents/Resources/lisp/net $ cat ~/next-patch | patch -l patching file tramp.el Hunk #1 succeeded at 6295 (offset 1 line). Hunk #2 succeeded at 6303 (offset 1 line). Hunk #3 succeeded at 6404 (offset 1 line). Hunk #4 succeeded at 6841 (offset 1 line). patch unexpectedly ends in middle of line /usr/bin/patch: **** unexpected end of file in patch -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-14 18:35 ` Randal L. Schwartz @ 2010-03-14 18:51 ` Michael Albinus 2010-03-15 0:03 ` Randal L. Schwartz 0 siblings, 1 reply; 35+ messages in thread From: Michael Albinus @ 2010-03-14 18:51 UTC (permalink / raw) To: Randal L. Schwartz; +Cc: emacs-devel merlyn@stonehenge.com (Randal L. Schwartz) writes: >>>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: > > Michael> Appended is an updated patch, which shall fix your problems. When > Michael> confirmed by you, I will submit it to the emacs-23 branch. > > still getting an error in the middle of the patch: Hmm, there are incompatibilities on the patch formats I guess ... You might take a recent version of tramp.el from <http://cvs.savannah.gnu.org/viewvc/*checkout*/tramp/lisp/tramp.el?revision=2.778&root=tramp>. It is not exactly the version I have committed to the Emacs tree, but for your test it might be sufficient. Best regards, Michael. ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: Tramp Mode not working connecting to OpenSolaris 2010-03-14 18:51 ` Michael Albinus @ 2010-03-15 0:03 ` Randal L. Schwartz 0 siblings, 0 replies; 35+ messages in thread From: Randal L. Schwartz @ 2010-03-15 0:03 UTC (permalink / raw) To: emacs-devel >>>>> "Michael" == Michael Albinus <michael.albinus@gmx.de> writes: Michael> You might take a recent version of tramp.el from Michael> <http://cvs.savannah.gnu.org/viewvc/*checkout*/tramp/lisp/tramp.el?revision=2.778&root=tramp>. Michael> It is not exactly the version I have committed to the Emacs tree, but Michael> for your test it might be sufficient. Yeah, I got that, and it looks good. Thanks! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ^ permalink raw reply [flat|nested] 35+ messages in thread
* Re: tramp mode not working on OSX with dev HEAD 2010-03-08 16:58 ` Michael Albinus 2010-03-08 17:03 ` Randal L. Schwartz @ 2010-03-09 21:26 ` Andreas Schwab 1 sibling, 0 replies; 35+ messages in thread From: Andreas Schwab @ 2010-03-09 21:26 UTC (permalink / raw) To: Michael Albinus; +Cc: emacs-devel, Randal L. Schwartz Michael Albinus <michael.albinus@gmx.de> writes: > } 2>/dev/null; echo tramp_exit_status $? ^^^^^^^^^^^ Perhaps the shell does not like the redirection on the function definition. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ^ permalink raw reply [flat|nested] 35+ messages in thread
end of thread, other threads:[~2010-03-15 0:03 UTC | newest] Thread overview: 35+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-03-05 22:15 tramp mode not working on OSX with dev HEAD Randal L. Schwartz 2010-03-06 8:03 ` Michael Albinus 2010-03-07 22:39 ` Randal L. Schwartz 2010-03-08 8:00 ` Michael Albinus 2010-03-08 15:24 ` Randal L. Schwartz 2010-03-08 16:58 ` Michael Albinus 2010-03-08 17:03 ` Randal L. Schwartz 2010-03-08 17:19 ` Michael Albinus 2010-03-08 17:40 ` Tramp Mode not working connecting to OpenSolaris (was Re: tramp mode not working on OSX with dev HEAD) Randal L. Schwartz 2010-03-08 17:48 ` Tramp Mode not working connecting to OpenSolaris Randal L. Schwartz 2010-03-08 18:11 ` David Kastrup 2010-03-08 21:38 ` Michael Albinus 2010-03-08 21:35 ` Michael Albinus 2010-03-08 21:43 ` Randal L. Schwartz 2010-03-09 6:34 ` Michael Albinus 2010-03-09 15:49 ` Randal L. Schwartz 2010-03-09 15:51 ` Randal L. Schwartz 2010-03-10 17:04 ` Michael Albinus 2010-03-10 17:08 ` Randal L. Schwartz 2010-03-10 20:20 ` Michael Albinus 2010-03-11 16:53 ` Randal L. Schwartz 2010-03-11 17:53 ` Davis Herring 2010-03-11 17:58 ` Randal L. Schwartz 2010-03-11 19:37 ` Michael Albinus 2010-03-11 19:49 ` Randal L. Schwartz 2010-03-11 20:11 ` Michael Albinus 2010-03-11 21:21 ` Randal L. Schwartz 2010-03-12 5:38 ` Michael Albinus 2010-03-12 16:24 ` Chong Yidong 2010-03-13 19:34 ` Michael Albinus 2010-03-13 19:56 ` Stefan Monnier 2010-03-14 18:35 ` Randal L. Schwartz 2010-03-14 18:51 ` Michael Albinus 2010-03-15 0:03 ` Randal L. Schwartz 2010-03-09 21:26 ` tramp mode not working on OSX with dev HEAD Andreas Schwab
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).