1
Solved

CatLight stop working after some time

CatLight stops working after some time without explicit error. It usually takes less than 10 minutes to stop after I started it. I checked the log and I found that :

2016-07-19 20:25:17.0747 | WARN | ClientSpaceManager | Exception in SpaceUpdaterHandler System.Net.Http.HttpRequestException: Response status code does not indicate success: 502 (badgateway).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at Web.Services.Spaces.ClientSpaceManager.EnsureResponseSuccess(HttpResponseMessage response)
at Web.Services.Spaces.ClientSpaceManager.<ApiPost>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Web.Services.Spaces.ClientSpaceManager.<LoadSpaceChanges>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Web.Services.Spaces.ClientSpaceManager.<SpaceUpdaterHandler>d__31.MoveNext()

I have this exception 4 times and 30 seconds after the last one Catligth closes : 

2016-07-19 20:32:06.9757 | INFO | Startup | Tray process closed. Closing...
2016-07-19 20:32:06.9757 | INFO | EventLogger | {"e":"App.TrayClosed","p":null}
2016-07-19 20:32:07.9888 | INFO | Startup | Tray process closed. Closing...
2016-07-19 20:32:07.9888 | INFO | EventLogger | {"e":"App.TrayClosed","p":null}

If it may help, I currently use CatLight to monitor TFS builds from a private installation of TFS (not VSTS).

Also, the log time doesn't use the local time, it seems too use GMT 0.

Thanks

2 replies

"badgateway" errors may happen when where is a proxy server that blocks certain requests. Catlight app connects to online service to exchange information about build investigations between clients. Usually, proxy server parameters are detected automatically, but you can also configure them manually in app settings.

Closing the app may be caused by auto-update that starts to install new version, but cannot complete installation for some reason. Maybe it gets blocked by restrictions set on that computer. Please make sure that you have at least version 1.8.6 installed. You can see this in about window. 

If you have earlier version, you can download the latest one from https://catlight.io/downloads 

E

I had version 1.8.2 and I updated to 1.8.7. So far it doesn't close but there is still "badgatewayerror" in the log a every ±2 minutes. Is there a way to disable that feature because I can't change my firewall settings? Or it could stop trying to send these requests after some repeated failures.

Anyway, with the latest version it doesn't seems to close anymore so thank you and thanks for that nice app!

Currently, the app will try to connect until it succeeds. That should not affect the build monitoring features, so you can leave it as it is.