Quantcast

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Affects Versions: current
Assignee: redsolo
Components: tfs
Created: 12/Sep/12 4:43 PM
Description:

I have installed Visual Studio on the Windows slave and can access TFS with Visual Studio as well as the tf executable. I have added the following path environment variable on the Windows slave

"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" and shutdown and restarted Hudson.

The problem is with running with the TFS plugin and supplying all the credentials in the job configuration I cannot connect to the TFS server.

I also tried including the full path in the tf command line executable variable. In the test job, the first command the plugin generates is

"[tfs-emd-test] $ "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe" workspaces -format:brief -server:http://tfs.**********.com:8080/tfs/tfs01 ********"

I get the error message "Unable to connect to the remote server" and then "FATAL: Executable returned an unexpected result code [100]".

I have also tried creating a cmd file with all the tf commands embedded, however this also fails with error message "Unable to connect to the remote server"

Due Date: 14/Sep/12 12:00 AM
Environment: Hudson slave running as service on Windows 32 bit server
Project: Jenkins
Priority: Blocker Blocker
Reporter: Duane Walker
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
Change By: Duane Walker (19/Sep/12 8:02 PM)
Environment: Hudson slave running as service on Windows  32  64  bit server
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Duane Walker (20/Sep/12 11:53 AM)
Description: I have installed Visual Studio on the Windows slave and can access TFS with Visual Studio as well as the tf executable on the server. I have added the following path environment variable on the Windows slave .  

"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" and shutdown and restarted Hudson. 

The problem is with running with the TFS plugin in Hudson and supplying all the credentials in the job configuration Hudson cannot connect to the TFS server. 

I also tried including the full path in the tf command line executable variable. In the test job, the first command the plugin generates is 

"[tfs-emd-test] $ "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe" workspaces -format:brief -server:http://tfs.**********.com:8080/tfs/tfs01 ********" 

I get the error message "Unable to connect to the remote server" and then "FATAL: Executable returned an unexpected result code [100]". 

I have also tried creating a cmd file with all the tf commands embedded, however this also fails with error message "Unable to connect to the remote server"
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: Duane Walker (20/Sep/12 11:52 AM)
Description: I have installed Visual Studio on the Windows slave and can access TFS with Visual Studio as well as the tf executable  on the server . I have added the following path environment variable on the Windows slave 

"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE" and shutdown and restarted Hudson. 

The problem is with running with the TFS plugin
 in Hudson  and supplying all the credentials in the job configuration  I  Hudson  cannot connect to the TFS server. 

I also tried including the full path in the tf command line executable variable. In the test job, the first command the plugin generates is 

"[tfs-emd-test] $ "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\tf.exe" workspaces -format:brief -server:http://tfs.**********.com:8080/tfs/tfs01 ********" 

I get the error message "Unable to connect to the remote server" and then "FATAL: Executable returned an unexpected result code [100]". 

I have also tried creating a cmd file with all the tf commands embedded, however this also fails with error message "Unable to connect to the remote server"
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

I am facing the exact same problem. Need a solution for this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
redsolo commented on Bug JENKINS-15145

Im guessing that it works if you remote desktop into the slave and run the command there? How is the slave started as a windows service or Web start?

If it is started as a windows service, perhaps you could start it as a JNLP/Web start slave? ie, logon to the machine and run {{java -jar slave.jar -jnlpUrl http://localhost:8080/computer/blaj/slave-agent.jnlp}} in a command prompt. This allows the slave to run in the same environment that you are using when testing the tf command.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
redsolo commented on Bug JENKINS-15145

Duane, Mikael has confirmed that his problem was related to user access issues when the service was run as the System local user. Could it be the same problem for you?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

I don't think it is the same problem as the current service is setup as JNLP with the settings in the Service itself. I want to add that the tf command does work under the Hudson Linux VMs.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Redsolo, We did the change of user service to user hudson and it works now. Thanks for that advice and this ticket can now be closed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Duane Walker closed Bug JENKINS-15145 as Fixed

change service to user=hudson versus system

Change By: Duane Walker (01/Oct/12 4:19 PM)
Status: Open Closed
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-15145) Unable to connect to the remote TFS server

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
redsolo commented on Bug JENKINS-15145

Good to hear that you got it working!

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...