|
From: | Bad Blue Bull |
Subject: | bug#50399: TRAMP can't connect to Win 2000 (smb, ftp, telnet) |
Date: | Fri, 17 Sep 2021 01:47:11 +0300 |
Hi, I applied patch to tramp-smb.el,here's tail of debug buffer:---start---00:48:03.466290 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 [[:digit:]]+\).*\)\'" from remote shell00:48:03.466435 tramp-process-one-action (5) # Looking for regexp "\(Connection\( to \S-+\)? failed\|Read from server failed, maybe it closed the connection\|Call timed out: server did not respond\|\S-+: command not found\|Server doesn't support UNIX CIFS calls\|\(?:ERR\(?:DOS\|HRD\|SRV\|bad\(?:file\|pw\)\|filexists\|no\(?:access\|mem\|suchshare\)\)\|NT_STATUS_\(?:ACC\(?:ESS_DENIED\|OUNT_LOCKED_OUT\)\|BAD_NETWORK_NAME\|C\(?:ANNOT_DELETE\|ONNECTION_\(?:DISCONNECTED\|RE\(?:FUSED\|SET\)\)\)\|D\(?:IRECTORY_NOT_EMPTY\|UPLICATE_NAME\)\|FILE_IS_A_DIRECTORY\|HOST_UNREACHABLE\|I\(?:MAGE_ALREADY_LOADED\|NVALID_\(?:LEVEL\|PARAMETER\(?:_MIX\)?\)\|O_TIMEOUT\)\|LOGON_FAILURE\|N\(?:ETWORK_ACCESS_DENIED\|O\(?:T_\(?:A_DIRECTORY\|\(?:IMPLEMEN\|SUPPOR\)TED\)\|_\(?:LOGON_SERVERS\|SUCH_\(?:FILE\|USER\)\)\)\)\|OBJECT_\(?:NAME_\(?:COLLISION\|\(?:INVALI\|NOT_FOUN\)D\)\|PATH_SYNTAX_BAD\)\|PASSWORD_MUST_CHANGE\|RE\(?:SOURCE_NAME_NOT_FOUND\|VISION_MISMATCH\)\|SHARING_VIOLATION\|TRUSTED_RELATIONSHIP_FAILURE\|UNSUCCESSFUL\|WRONG_PASSWORD\)\)\)\'" from remote shell00:48:03.893989 tramp-smb-maybe-open-connection (3) # Opening connection for //nicolas@win2k/C$...failed---end---here's *tramp/smb nicolas@win2k* content:---start---Try "help" to get a list of possible commands.[?2004hsmb: \>
---end---I guess patch is applied, in tramp-smb.el I see from line 2049:---start---(let* ((coding-system-for-read nil)(process-connection-type tramp-process-connection-type)(p (let ((default-directory(tramp-compat-temporary-file-directory))(process-environment(cons (concat "TERM=" tramp-terminal-type)process-environment)))(apply #'start-process(tramp-get-connection-name vec)(tramp-get-connection-buffer vec)(if argumenttramp-smb-winexe-program tramp-smb-program)args))))---end---this happens when pass file name as argument to Emacs, when browsing with C-x C-f, I don't know, sometimes it's success sometimes fail.Just right now I tried to open a file, first I got error message(tree connect failed: NT_STATUS_BAD_NETWORK_NAME etc) suggesting to use tramp-cleanup-connection, then maybe half minute after the file was opened in buffer (I didn't even touch anything).Debug buffer attached if it can help...16.09.2021, 20:33, "Michael Albinus" <michael.albinus@gmx.de>:Bad Blue Bull <ibmbull@yandex.ru> writes:
Hi,
I tried emacs --eval '(setq tramp-verbose 6)' /smb:nicolas@win2k:/C$/boot.ini
debug buffer (very big, 12M this time)
https://drive.google.com/file/d/1hSgQ2XUaZLGg8NSbb1sI1zluotn4Z4ye/view?usp=sharing
Very strange:
--8<---------------cut here---------------start------------->8---
19:29:40.987633 tramp-smb-maybe-open-connection (6) # smbclient //win2k/C$ -U nicolas -s /dev/null --option client min protocol=NT1
19:29:49.233560 tramp-search-regexp (1) # Quit: "Quit", ""
Try "help" to get a list of possible commands.
^[[?2004hsmb: \>
--8<---------------cut here---------------end--------------->8---
Very strange. There are ANSI ESCAPE sequences prior the "smb: >" prompt,
which are unknown to Tramp. I can reproduce the problem locally.
The appended patch fixes this for me, could you pls test?
Best regards, Michael.
2021-09-17-014509_841x539_scrot.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |