简体   繁体   English

尝试访问TFS 2010服务器时,Linux中的TF CLC命令没有任何反馈

[英]We aren't getting any feedback from the TF CLC command in Linux when trying to access our TFS 2010 server

I have been working with one of our Linux administrators to get command-line access to our TFS server from our Linux environment, and we aren't being very successful. 我一直在与我们的Linux管理员之一合作,以从Linux环境中对TFS服务器进行命令行访问,但是我们并不是很成功。

When using the TF command to log in, we receive no feedback at all from it, nothing as to whether the login was successful or not, nor are we prompted for a password. 使用TF命令登录时,我们根本没有收到任何反馈,也没有关于登录是否成功的提示,也没有提示您输入密码。 We are able to get normal feedback from it if we use the Help command, in which case, we get the help for whichever command we're looking for. 如果使用“帮助”命令,我们可以从中获得正常的反馈,在这种情况下,我们将为所要查找的命令获得帮助。

There is nothing in the Event Viewer logs on the TFS server, nor on the Linux machine pertaining to these attempted and (failed?) login attempts. TFS服务器上的事件查看器日志中没有任何内容,Linux机器上也没有与这些尝试的(失败的?)登录尝试有关的日志。 We have confirmed that we can access the TFS web service from the Linux machine, and that the person testing has access to at least one Team Project. 我们已经确认可以从Linux机器访问TFS Web服务,并且测试人员可以访问至少一个Team Project。

Per the article here: http://msdn.microsoft.com/en-us/library/hh190725(v=vs.100).aspx we should receive a prompt for credentials, or at least a password, if either/both are not specified: 根据此处的文章: http : //msdn.microsoft.com/zh-cn/library/hh190725(v=vs.100).aspx,我们应该收到提示输入凭据的提示,或者至少输入一个密码(如果二者之一)未标明:

"You will be prompted to specify your credentials if you have not stored them and you try to run a tf command without this option. If you try to run a tf command with this option but you do not specify a password, you will be prompted to specify one." “如果尚未存储凭据,则会提示您指定凭据,并且尝试不使用此选项运行tf命令。如果尝试使用此选项运行tf命令,但未指定密码,则会提示您指定一个。”

Current setup: 当前设置:

TFS Server is running Windows Server 2008 R2 with Team Foundation Server 2010 TFS服务器运行Windows Server 2008 R2和Team Foundation Server 2010

Linux environment is running Red Hat Enterprise Linux Server release 5.8 (Tikanga) with JRE 1.7 and Team Explorer Everywhere CLC 12.0.1 downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=40785 Linux环境正在运行带有JRE 1.7和Team Explorer Everywhere CLC 12.0.1的Red Hat Enterprise Linux Server 5.8(Tikanga),可从http://www.microsoft.com/zh-cn/download/details.aspx?id=40785下载

The TEE CLC was installed per instructions in the download page, and we do not use Eclipse. 根据下载页面中的指示安装了TEE CLC,并且我们不使用Eclipse。 Exact install steps (Which were less than helpful): 确切的安装步骤(没有帮助的步骤):

To install the Cross-Platform Command-Line Client for Team Foundation Server
1) Unzip the archive (TEE-CLC-12.0.0.zip file) that contains the client.
2) Configure your shell or system path to include the folder to which you unzipped the archive.
3) To verify that the client is working, at a command prompt, type tf, and then press the ENTER key.
If the client is correctly installed, output appears, starting with "Microsoft Team Explorer Everywhere Command-line Client (version 12.0.0)".

We do get the "Microsoft Team Explorer Everywhere Command-line Client (version 12.0.0)" verbiage when we run tf by itself.

Here are the list of commands tried on the Linux machine: 以下是在Linux计算机上尝试的命令列表:

tf -login
tf -login:<username>
tf -login:<username>@<companyurl>.com
tf -login:<username>@<domain>
tf -login: <username>@<domain>
tf -login:<username>@<domain>
tf -login:<username>@<tfsservername>
tf -login:<username>@<tfsservername>.<companyurl>.com
tf -login: <username>@<tfsservername>.<companyurl>.com
tf -login:http://<tfsservername>:8080/tfs/<username>
tf -login: <username>@http://<tfsservername>:8080/tfs
tf -login: <username>@<tfsservername>
tf -login:<username>@<tfsservername>
tf -login:<username>@http://<tfsservername>:8080/tfs
tf -login:<username>@http://<tfsservername>:8080/tfs,<password>
tf -login:<username>@<tfsservername>
tf -login|<username>@<tfsservername>
tf -login|<username>@<domain>
tf -login:<username>@<domain>,<password>
tf -login:<username>@<domain>,
tf -login:<username>@<companyurl>
tf -login:<username>@<domain>
tf -login:<username>@<domain>,<password>
tf -login:<username>@<domain>,
tf -login:<username>@<domain>,
tf -login:
tf -login:<domain>\<username>,<password>
tf -login:<domain>\<username>,<password>
tf -login:<username>@<domain>
tf -login:<username>@<domain>
tf -login:<username>
tf -login:<domain>\<username>
tf -login:http://<tfsservername>:8080/tfs\<username>
tf -login:<domain>\<username> -server:http://<tfsservername>:8080/tfs
tf -login:<domain>\<username> -server:http://<tfsservername>/tfs
tf -login:<username>@<domain> -server:http://<tfsservername>/tfs
tf -login:<username>@<domain> -server:http://<tfsservername>/tfs
tf -login:<username>@<domain>,<password>
tf -login:<username>@<domain>,
tf -login:<username>@<domain> -server:sudo less /var/log/messages
tf -login:<domain>\<username> -server:http://<tfsservername>:8080/tfs
tf -login:<username>@<domain>  -server:http://<tfsservername>:8080/tfs
tf -login:<username>@<domain>  -server:http://<tfsservername>
tf -login:<username>@<domain>  -server:http://<tfsservername>/tfs
tf -login:<username>@<domain>  -server:http://<tfsservername>/
tf -login:<username>@<domain>  -server:http://<tfsservername>:8080/tfs/
tf -login:<username>@<companyurl>.com  -server:http://<tfsservername>:8080/tfs/
tf -login:<username>@<companyurl>  -server:http://<tfsservername>:8080/tfs/
tf -login:<username>@<domain>  -server:http://<tfsservername>:8080/tfs/

When we try these we get an error (Which is expected, the arguments are wrong): 当我们尝试这些时,我们得到一个错误(这是预期的,参数是错误的):

tf workspaces /collection:http://<servername>:8080/tfs/<collectionname>
An input validation error occurred: The workspace name '/collection:http://<servername>:8080/tfs/<collectionname>' contains invalid characters.  Only valid NTFS characters are permitted.
tf workspaces collection:http://<servername>:8080/tfs/<collectionname>
An input validation error occurred: The workspace name '/collection:http://<servername>:8080/tfs/<collectionname>' contains invalid characters.  Only valid NTFS characters are permitted.

(NOTE: the server and collection names are simple alphanumeric strings, no special characters at all) (注意:服务器和集合名称是简单的字母数字字符串,完全没有特殊字符)

When we try the following commands, we get no feedback whatsoever (again): 当我们尝试以下命令时,我们(再次)没有任何反馈:

tf workspaces -collection:http://<servername>:8080/tfs/<collectionname>

tf dir $/<projectname>

tf dir $/<project name> -collection:http://<servername>:8080/tfs/<collectionname>

Per another recommendation, we looked for the ~/Microsoft/Team Foundation/4.0/Logs folder under the user profile, which doesn't exist. 根据另一项建议,我们在用户配置文件下查找〜/ Microsoft / Team Foundation / 4.0 / Logs文件夹,该文件夹不存在。 In fact, no folder with the case-insensitive word "Foundation" exists anywhere on the Linux machine. 实际上,Linux机器上的任何地方都不存在带有不区分大小写的单词“ Foundation”的文件夹。

Since we aren't receiving any feedback from the command, we have no idea what the problem could be or where our troubleshooting should take us next. 由于我们没有从命令中收到任何反馈,因此我们不知道问题可能出在哪里,或者下一步应该在哪里进行故障排除。

Logs are not in ~/Microsoft , they're in ~/.microsoft . 日志不在 ~/Microsoft而是~/.microsoft (Note the dot.) (注意点。)

It's difficult to say what the problem is without the logs: you're not specifying a command in the first examples, as -login is not a command, it's an option. 很难说没有日志的问题是什么:在第一个示例中您没有指定命令,因为-login不是命令,而是一个选项。 You need to specify the login credentials option along with a command. 您需要指定登录凭据选项以及命令。 For example: 例如:

tf workspaces -login:... -collection:...

But without the logs, it's difficult to tell what the problem is. 但是,如果没有日志,很难说出问题所在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从Linux访问Team Foundation Server(TFS) - How to access Team Foundation Server (TFS) from Linux 我们可以在应用程序中使用linux的任何功能吗? - Can we use any feature of linux in our app? linux中的join命令表示文件没有排序,但它们是 - join command in linux says that files aren't sorted but they are 无法从我的 linux 服务器访问 Jenkins 上的目录 - Can't access directories from my linux server on Jenkins 我们如何检查我们的 mongodb 是否在 EC2 linux 服务器上运行? - How can we check if our mongodb is running on EC2 linux server? 尝试推送到Linux AWS服务器上的裸仓库时出现“权限不足...”错误 - I'm getting a 'insufficient permission…' error when trying to push to my bare repo on my linux AWS server 从TypeScript运行任何Linux终端命令吗? - Run any Linux terminal command from TypeScript? linux 命令的输出没有从控制台被抑制 - The output of linux command is not getting suppressed from console 尝试使用C ++在Linux上执行命令时被阻塞 - Getting blocked while trying to execute a command on Linux using c++ 尝试从Java的Linux命令行读取文件时发生ArrayIndexOutOfBoundsException:0? - ArrayIndexOutOfBoundsException:0 occurs when trying to read in a file from the Linux command line in Java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM