Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to TeamCity server since it was upgraded to 8.x #24

Closed
DamianEdwards opened this issue Nov 6, 2013 · 4 comments
Closed

Comments

@DamianEdwards
Copy link

We upgraded our TeamCity server to 8.x from 7.x and now SOS can't update build status. Error message is shown in status bar:

image

The configure screen is able to connect OK and list the projects and build configurations:

image

TeamCity changed it's REST API surface in 8.x so it's possible the issue is caused by that.

@lprichar
Copy link
Member

lprichar commented Nov 7, 2013

I'm looking into this now Damian. FYI in general you can hit that little yellow triangle to get more detail, but no need in this case since, if like you say they changed the REST API surface, that will require me to do some digging anyway.

@lprichar
Copy link
Member

Hey Damian,

Siren of Shame 2.1.3 is connecting successfully to a fresh installation of TeamCity 8 for me. It's reading successful and failed build states.

Can you please provide error logs? There's an older screenshot on our blog that shows how to get them: http://sirenofshame.blogspot.com/2012/01/how-to-report-errors.html.

Thanks,
Lee

@lprichar lprichar closed this as completed Jan 1, 2014
@DamianEdwards
Copy link
Author

Just tried again and still not working. Here is the log:

2014-01-01 10:56:10,904 [1] INFO SirenOfShame.Lib.MyLogManager [(null)] - Logging configured
2014-01-01 10:56:11,035 [1] DEBUG SirenOfShame.Program [(null)] - OnInitialize() starting; mockSos = False; showSplash = True, startMinimized = False
2014-01-01 10:56:11,284 [1] DEBUG SirenOfShame.Lib.Device.SirenOfShameDevice [(null)] - device not found
2014-01-01 10:56:11,287 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\SirenOfShame.exe (LinkerTimestamp: 5/30/2013 6:30:17 PM)
2014-01-01 10:56:11,287 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\SirenOfShame.Lib.dll (LinkerTimestamp: 5/30/2013 6:30:15 PM)
2014-01-01 10:56:11,287 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\BambooServices.dll (Timestamp: 5/30/2013 6:30:17 PM)
2014-01-01 10:56:11,287 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\BuildBotServices.dll (Timestamp: 5/30/2013 6:30:17 PM)
2014-01-01 10:56:11,287 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\CruiseControlNetServices.dll (Timestamp: 5/30/2013 6:30:17 PM)
2014-01-01 10:56:11,288 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\HudsonServices.dll (Timestamp: 5/30/2013 6:30:17 PM)
2014-01-01 10:56:11,288 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\log4net.dll (Timestamp: 3/30/2006 5:24:26 AM)
2014-01-01 10:56:11,288 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\Newtonsoft.Json.dll (Timestamp: 9/8/2012 3:00:12 AM)
2014-01-01 10:56:11,288 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\SignalR.Client.dll (Timestamp: 8/22/2012 1:58:12 PM)
2014-01-01 10:56:11,288 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\SirenOfShame.Lib.dll (Timestamp: 5/30/2013 6:30:15 PM)
2014-01-01 10:56:11,288 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\SoxLib.dll (Timestamp: 5/3/2013 6:04:51 AM)
2014-01-01 10:56:11,288 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\System.Linq.Dynamic.dll (Timestamp: 12/12/2011 10:50:00 AM)
2014-01-01 10:56:11,288 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\TeamCityServices.dll (Timestamp: 5/30/2013 6:30:17 PM)
2014-01-01 10:56:11,289 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\TeensyHidBootloaderLib.dll (Timestamp: 5/3/2013 6:04:52 AM)
2014-01-01 10:56:11,289 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\TfsServices.dll (Timestamp: 5/30/2013 6:30:16 PM)
2014-01-01 10:56:11,289 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\TravisCiServices.dll (Timestamp: 5/30/2013 6:30:17 PM)
2014-01-01 10:56:11,289 [1] INFO SirenOfShame.Lib.Helpers.IocContainer [(null)] - C:\Program Files (x86)\Siren of Shame\Plugins\UsbLib.dll (Timestamp: 5/3/2013 6:04:51 AM)
2014-01-01 10:56:11,412 [1] INFO SirenOfShame.MainForm [(null)] - MainForm Open
2014-01-01 10:56:11,935 [1] DEBUG SirenOfShame.MainForm [(null)] - Form1 loaded
2014-01-01 10:56:11,947 [CiWatcher] DEBUG SirenOfShame.Lib.Watcher.WatcherBase [(null)] - Started watching build status, poling interval: 5 seconds
2014-01-01 10:56:11,955 [1] WARN SirenOfShame.Lib.Watcher.BuildStatus [(null)] - Start time or stop time was null for bt116, and the build was not in progress, this should only happen at startup
2014-01-01 10:56:11,955 [CiWatcher] DEBUG TeamCityServices.TeamCityService [(null)] - SetCookie rootUrl=http://ci.signalr.net; userName=sos
2014-01-01 10:56:11,958 [1] WARN SirenOfShame.Lib.Settings.SirenOfShameSettings [(null)] - Tried to add a person with a null RawName
2014-01-01 10:56:11,961 [1] WARN SirenOfShame.Lib.Watcher.BuildStatus [(null)] - Start time or stop time was null for bt10, and the build was not in progress, this should only happen at startup
2014-01-01 10:56:11,961 [1] WARN SirenOfShame.Lib.Settings.SirenOfShameSettings [(null)] - Tried to add a person with a null RawName
2014-01-01 10:56:11,961 [1] WARN SirenOfShame.Lib.Watcher.BuildStatus [(null)] - Start time or stop time was null for bt115, and the build was not in progress, this should only happen at startup
2014-01-01 10:56:11,961 [1] WARN SirenOfShame.Lib.Settings.SirenOfShameSettings [(null)] - Tried to add a person with a null RawName
2014-01-01 10:56:11,961 [1] WARN SirenOfShame.Lib.Settings.SirenOfShameSettings [(null)] - Tried to add a person with a null RawName
2014-01-01 10:56:11,992 [10] DEBUG TeamCityServices.TeamCityService [(null)] - Begin navigating to: http://ci.signalr.net/login.html
2014-01-01 10:56:12,075 [1] DEBUG SirenOfShame.Lib.Services.SosOnlineService [(null)] - Sos Online: Connecting
2014-01-01 10:56:12,466 [8] DEBUG SirenOfShame.Lib.Services.SosOnlineService [(null)] - Sos Online: Connected
2014-01-01 10:56:12,723 [10] DEBUG TeamCityServices.TeamCityService [(null)] - login.html State: 0 Cookie: __test=1
2014-01-01 10:56:13,637 [10] DEBUG TeamCityServices.TeamCityService [(null)] - login.html State: 1 Cookie: __test=1
2014-01-01 10:56:15,334 [CiWatcher] ERROR SirenOfShame.Lib.Watcher.WebClientXml [(null)] - Error connecting to server with the following url: http://ci.signalr.net/httpAuth/app/rest/builds/buildType:bt115

Error has occurred during request processing (Not Found).
Error: jetbrains.buildServer.server.rest.errors.NotFoundException: No build found by filter: Builds filter (buildType:SignalR :: Pull Requests - Full Build {id=bt115, internal id=bt115}, personal:false, canceled:false, running:false, count:1).
Could not find the entity requested. Check the reference is correct and the user has permissions to access the entity.
System.Net.WebException: The remote server returned an error: (404) Not Found.
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
at System.Net.WebClient.DownloadString(Uri address)
at System.Net.WebClient.DownloadString(String address)
at SirenOfShame.Lib.Watcher.WebClientXml.DownloadXml(String url, String userName, String password, String cookie)
2014-01-01 10:56:15,349 [CiWatcher] WARN SirenOfShame.Lib.Watcher.BuildStatus [(null)] - Start time or stop time was null for bt116, and the build was not in progress, this should only happen at startup
2014-01-01 10:56:15,349 [CiWatcher] WARN SirenOfShame.Lib.Settings.SirenOfShameSettings [(null)] - Tried to add a person with a null RawName
2014-01-01 10:56:15,349 [CiWatcher] WARN SirenOfShame.Lib.Watcher.BuildStatus [(null)] - Start time or stop time was null for bt10, and the build was not in progress, this should only happen at startup
2014-01-01 10:56:15,349 [CiWatcher] WARN SirenOfShame.Lib.Settings.SirenOfShameSettings [(null)] - Tried to add a person with a null RawName
2014-01-01 10:56:15,350 [CiWatcher] WARN SirenOfShame.Lib.Watcher.BuildStatus [(null)] - Start time or stop time was null for bt115, and the build was not in progress, this should only happen at startup
2014-01-01 10:56:15,350 [CiWatcher] WARN SirenOfShame.Lib.Settings.SirenOfShameSettings [(null)] - Tried to add a person with a null RawName
2014-01-01 10:56:15,350 [CiWatcher] WARN SirenOfShame.Lib.Settings.SirenOfShameSettings [(null)] - Tried to add a person with a null RawName

@DamianEdwards
Copy link
Author

OK I think I figured it out. A build configuration had been deleted and thus a 404 was being thrown which isn't being handled nicely by SOS. I changed the SOS configuration to monitor the existing build configurations and now it's fine.

Might want to look at how you deal with build configurations being deleted.

lprichar added a commit that referenced this issue Jun 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants