controlbox2 / siren-of-shame

Automatically exported from code.google.com/p/siren-of-shame
0 stars 0 forks source link

Can't connect to TeamCity 7.0.3 #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We are able to login and connect to pull the list of projects, but the build 
status always indicates that it failed to connect to the build server.

I'm running on Windows 7 64-bit SP1.

Running SoS 1.6, there is no error message, just a failed to contact the build 
server message when refreshing the status.

In SoS 1.5.8, we get the follow error message:

SirenOfShame.Lib.Exceptions.SosException: Couldn't parse XML when trying to 
connect to http://teamcity.triu.com/ajax.html?getRunningBuilds=1:

<!DOCTYPE html>
<html id="htmlId">

<head>
  <title>Log in to TeamCity -- TeamCity</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge" >

<link rel="Shortcut Icon" href="/favicon20.ico" type="image/x-icon"/>

<meta name="application-name" content="TeamCity (Log in to TeamCity -- 
TeamCity)"/>
<meta name="description" content="Powerful Continuous Integration and Build 
Server"/>
<link rel="icon" href="/img/icons/TeamCity512.png" sizes="512x512"/>
<link rel="icon" href="/img/icons/TeamCity128.png" sizes="128x128"/>
<link rel="icon" href="/img/icons/TeamCity48.png" sizes="48x48"/>
<link rel="icon" href="/img/icons/TeamCity32.png" sizes="32x32"/>

<link rel="icon" href="/img/icons/TeamCity16.png" sizes="16x16"/>

  <!-- :linkCSS --><style type="text/css">
  @import "/res/5519527726661553067.css?v=1341862444824";
</style>
  <script type="text/javascript">
  var base_uri=window.location.protocol+"//"+window.location.host+"";
</script>

  <!-- :linkScript --><script type="text/javascript" src="/res/-5538290049147127437.js?v=1341862444824"></script>

  <script type="text/javascript">
    window.$j = jQuery.noConflict();
  </script>

  <!-- :linkScript --><script type="text/javascript" src="/res/2097618478661654410.js?v=1341862444824"></script>

  <!-- :linkCSS --><style type="text/css">
  @import "/res/-7047022519376031888.css?v=1341862444824";
</style>
    <!-- :linkScript --><script type="text/javascript" src="/res/-4045289697674020822.js?v=1341862444824"></script>
    <script type="text/javascript" xml:space="preserve">
      $j(document).ready(function() {
        $("username").focus();

        if (BS.Cookie.get("__test") != "1") {
          BS.Util.show("noCookiesEnabledMessage");
        }

        if ($('fading')) {
          BS.Highlight('fading');
        }
      });
    </script>

</head>

<body>

<div id="noJavaScriptEnabledMessage" class="noJavaScriptEnabledMessage">
      Please enable JavaScript in your browser to proceed with login.
    </div>
    <script type="text/javascript" xml:space="preserve">
      BS.Util.hide("noJavaScriptEnabledMessage");
    </script>

    <div id="noCookiesEnabledMessage" class="noCookiesEnabledMessage" style="display: none;">
      Please enable cookies in your browser to proceed with login.
    </div>
    <span id="testCookie"></span>

    <div id="loginPage">
      <span class="logo"><img src="/img/logoLogin.gif" alt="TeamCity" width="61" height="102"/></span>
      <div id="pageContent">

      <h1 id="header">Log in to TeamCity</h1>
      <span class="versionTag"><span class="vWord">Version</span> 7.0.3 (build 21424)</span>

      <div id="errorMessage"></div>

        <p id="loginDescription">Welcome to TeamCity! Login with your Active Directory Account Name (without the domain name).</p>

      <form action="/loginSubmit.html" onsubmit="return BS.LoginForm.submitLogin();" method="post">
        <table class="loginCredentials">
          <tr>
            <th><label for="username">Username:</label></th>
            <td><input class="text" id="username" type="text" name="username"></td>
          </tr>
          <tr>
            <th><label for="password">Password:</label></th>
            <td><input class="text" id="password" type="password" name="password"></td>
          </tr>
          <tr>
            <th>&nbsp;</th>
            <td><input style="vertical-align:middle;" class="checkbox" id="remember" type="checkbox" name="remember" checked="checked" value="true"> <label style="vertical-align:bottom;" class="rememberMe" for="remember">Remember me</label></td>
          </tr>
          <tr>
            <th><img id="saving" style="display: none; padding-top: 0.1em; float: right;" class="progressRing" src="/img/ajax-loader.gif" width="16" height="16" alt="Please wait..." title="Please wait..."/></th>
            <td><input class="but" type="submit" name="submitLogin" value="Login"></td>
          </tr>
        </table>

        <input type="hidden" id="publicKey" name="publicKey" value="009c3d612fd8fcd0ca65f674b0edd441a8352788ef6d656a6efb4d47561cc4c4e59da6e102cb163c2fe5a0e1c1f8e876760fcac8825c44b986a192c90508bbb952a16660c5135878273a06efebb3cb3b7aed5112e72ae2540e4f876569bae2918fa22d8d9c0e4d36545599c15a67a57aacd21d6f46fc4345d3e744a538badd42f1"/>
      </form>

   </div>
 </div>

</body>
</html>
 ---> System.Xml.XmlException: The 'meta' start tag on line 12 position 4 does not match the end tag of 'head'. Line 60, position 3.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowTagMismatch(NodeData startTag)
   at System.Xml.XmlTextReaderImpl.ParseEndElement()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
   at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
   at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
   at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
   at System.Xml.Linq.XDocument.Parse(String text)
   at SirenOfShame.Lib.Watcher.ServiceBase.DownloadXml(String url, String userName, String password, String cookie)
   --- End of inner exception stack trace ---
   at SirenOfShame.Lib.Watcher.ServiceBase.DownloadXml(String url, String userName, String password, String cookie)
   at TeamCityServices.TeamCityService.GetBuildsStatuses(String rootUrl, String userName, String password, BuildDefinitionSetting[] watchedBuildDefinitions)
   at TeamCityServices.Watcher.TeamCityWatcher.GetBuildStatus()
   at SirenOfShame.Lib.Watcher.WatcherBase.GetBuildStatusAndFireEvents()
   at SirenOfShame.Lib.Watcher.WatcherBase.StartWatching()

Original issue reported on code.google.com by lon...@gmail.com on 16 Jul 2012 at 10:54

GoogleCodeExporter commented 9 years ago
We use LDAP authentication and it might be that it's not passing the 
authentication token back to TeamCity correctly since we are getting the login 
page again when calling the ajax.html?getRunningBuilds=1 method.

If I login and go to that URL directly, I get the proper XML response.

Like I said, it IS able to connect initially and pull the list of projects

Original comment by lon...@gmail.com on 16 Jul 2012 at 11:06

GoogleCodeExporter commented 9 years ago
Thank you so much for the detailed error description.  We'll get a patch out 
for you ASAP.

Original comment by lpric...@gmail.com on 17 Jul 2012 at 12:12

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 4475901bd1b9.

Original comment by lpric...@gmail.com on 18 Jul 2012 at 1:09

GoogleCodeExporter commented 9 years ago
Hey longwa, I believe I’ve got this one fixed.  Please download and install 
1.6.1 from here:

http://code.google.com/p/siren-of-shame/downloads/detail?name=SirenOfShame-1-6-1
.msi&can=2&q=#makechanges

Please let me know how it works for you.  Best, Lee.

Original comment by lpric...@gmail.com on 18 Jul 2012 at 1:17

GoogleCodeExporter commented 9 years ago
Holy crap, you guys don't mess around. I may have to crank up my donation when 
I buy my siren today :)

Downloaded 1.6.1 and it connected fine, seems to be working great.

Original comment by lon...@gmail.com on 18 Jul 2012 at 3:14

GoogleCodeExporter commented 9 years ago
lol, so glad to hear that did the trick.

Original comment by lpric...@gmail.com on 18 Jul 2012 at 3:21