2
Solved

Gears Spin Indefinitely upon first setup

I'm the DevOps guy and for me CatLight installed perfectly fine. But I asked my developers to install CatLight so they can see very quickly if/when their checkins break builds. For many of them upon opening setup.exe, the dashboard shows gears spinning indefinitely.

14 replies

Hi J,

Can you collect logs from one of the users that have problems and send it to [email protected] , so we can investigate this further? 

Logs are at %appdata%\Catlight\logs 

I'm having the same issue. Also on a developer machine. The error log keeps showing this:

 

[2016-04-16 18:22:54.920] [DEBUG] main - Starting web on port 50505
[2016-04-16 18:22:55.162] [INFO] console - web stderr: Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web.

[2016-04-16 18:22:55.184] [FATAL] main - web closed soon after start. code: 1
[2016-04-16 18:22:55.948] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:50505
[2016-04-16 18:22:57.041] [DEBUG] main - Process exited successfully.

BC & J,

If those users have Windows 7/8, please make sure that they have latest Windows updates are installed. We have identified a problem - the app will not run on clean Windows 7/8 without recent Windows updates. This happens because .Net Core relies on updated versions of Windows system libraries and cannot work with old ones.

Thanks for the reply. The issue occurs on a Windows 10 machine with all available updates installed. Is it possile that any installed SDK's may be conflicting? I have had the ASP.NET 5 RC 1 update 1 installed. Or maybe IIS or Visual Studio's IIS Express conflicts with the bindings?

That is possible, app currently uses ASP.NET 5 RC 1 update 2, and maybe it tries to load packages of previous version from some shared location. We'll investigate this further. 

We made some changes that should make app compatible with parallel installation of ASP.NET 5 RC 1 update 1.

Please try version 1.3.15 or higher.  https://catlight.io/downloads 

Thanks for the info. FYI: Just installed on another windows 10 pc without ASP.NET 5, IIS and VS. Seems to run fine there. If any additional log info is needed from the development PC, let me know. You guys are doing an awesome job with Catlight! I can't believe Microsoft doesn't support vNext builds with their BuilNotificationApp...

Thanks for the update. Still no luck though. Now i'm getting a blue screen (BSOD?) saying cannot start the app, error logs in APPDATA. My logs attached below:

 

[2016-04-17 21:18:51.417] [INFO] main - Starting app
[2016-04-17 21:18:51.528] [DEBUG] main - Starting tray. OS: win32 10.0.10586 . App version: 1.3.15 ia32. App path: C:\Users\*****\AppData\Local\CatLight\app-1.3.15\resources\app.asar. Total mem: 17132208128
[2016-04-17 21:18:51.529] [INFO] main - Processing command: --squirrel-install
[2016-04-17 21:18:51.530] [DEBUG] main - "C:\Users\*****\AppData\Local\CatLight\update.exe" --createShortcut="C:\Users\*****\AppData\Local\CatLight\app-1.3.15\CatLight.exe"  --process-start-args="--show-dashboard"  --shortcut-locations=Desktop,StartMenu
[2016-04-17 21:18:51.549] [DEBUG] main - Command started.
[2016-04-17 21:18:51.550] [DEBUG] main - Handling startup event.
[2016-04-17 21:18:51.866] [DEBUG] main - Process exited successfully.
[2016-04-17 21:18:51.866] [DEBUG] main - StdOut: 
[2016-04-17 21:18:51.866] [DEBUG] main - "C:\Users\*****\AppData\Local\CatLight\update.exe" --createShortcut="C:\Users\*****\AppData\Local\CatLight\app-1.3.15\CatLight.exe"  --process-start-args="--on-startup"  --shortcut-locations=Startup
[2016-04-17 21:18:52.111] [DEBUG] main - Process exited successfully.
[2016-04-17 21:18:52.111] [DEBUG] main - StdOut: 
[2016-04-17 21:18:53.739] [INFO] main - Starting app
[2016-04-17 21:18:53.763] [DEBUG] main - Starting tray. OS: win32 10.0.10586 . App version: 1.3.15 ia32. App path: C:\Users\*****\AppData\Local\CatLight\app-1.3.15\resources\app.asar. Total mem: 17132208128
[2016-04-17 21:18:53.764] [INFO] main - Processing command: --squirrel-firstrun
[2016-04-17 21:18:53.764] [DEBUG] main - Launching and showing dashboard
[2016-04-17 21:18:53.764] [INFO] main - App ready
[2016-04-17 21:18:53.801] [DEBUG] main - Display scale factor: 100
[2016-04-17 21:18:53.872] [DEBUG] main - Starting SelfUpdateManager
[2016-04-17 21:18:53.873] [DEBUG] main - Update channel: beta from C:\Users\*****\AppData\Local\CatLight\app-1.3.15\resources/update_channel.txt
[2016-04-17 21:18:53.874] [DEBUG] main - Updater configured
[2016-04-17 21:18:53.874] [DEBUG] main - Starting SetupManager
[2016-04-17 21:18:53.875] [DEBUG] main - Starting AppServiceManager
[2016-04-17 21:18:53.881] [DEBUG] main - Starting web on port 53171
[2016-04-17 21:18:54.143] [INFO] console - web stderr: Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web.

[2016-04-17 21:18:54.186] [FATAL] main - web closed soon after start. code: 1
[2016-04-17 21:18:54.205] [FATAL] main - Showed app failed to start window
[2016-04-17 21:18:54.911] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:18:56.012] [DEBUG] main - Process exited successfully.
[2016-04-17 21:18:56.012] [DEBUG] main - StdOut: Showing tray icon for C:\Users\*****\AppData\Local\CatLight\app-1.3.15\CatLight.exe
Icon set

[2016-04-17 21:18:56.917] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:18:58.920] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:00.925] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:02.930] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:04.949] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:06.956] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:08.960] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:10.965] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:12.970] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:14.975] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:16.978] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:18.986] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:20.991] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:22.996] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:25.004] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:27.008] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171
[2016-04-17 21:19:29.014] [DEBUG] main - Waiting for service start: RequestError: Error: connect ECONNREFUSED 127.0.0.1:53171

Yep, that is our new shiny blue screen that pops up when a problem is detected. 

My guess would be that there are some environment variables that override the DNX/.Net core configuration.

Can you send us the list of environment variables from this PC? You can send it to [email protected] , if you don't want to post it here.

You can get that list by typing "set" into command prompt.

Just checked the path environment var. Seems i had one pointing to 

C:\Users\*****\.dnx\bin

However, removing it does not seem to fix the issue :(

And do you have environment variables with DNX/ASP-related names, like HOME_DNX, DNX_HOME, DNX_PATH ?

Nope, no other DNX path vars found. I'm currently trying to setup a basic ASP.NET 5 app with DNX and Kestrel, but getting the same error there. When running 

dnx web

I get:

 

Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web, ef.

 

You can try upgrading dnx to update 2 with "dnvm upgrade" command, maybe this will fix something system-wide.

·

Good thought, already tried that though. Somehow dnx web keeps failing.

I have discovered that my problem lies with the clr runtime by doing some trial&error testing on my custom ASP.NET 5 app. Whenever i use the coreclr by entering the cmd dnvm use 1.0.0-rc1-update1 -a x86 -r coreclr followed by dnx web, the app runs just fine. But when the default clr is used, it won't. I'm pretty sure this is the same issue for CatLight.

I've tried reinstalling the clr, installing both update1 and update2 for both x64 and x86, but the error remains. Only the coreclr seems to work....

Would it be possible to build Catlight against the coreclr runtime instead of the default clr? I'm curious if then I'd be able to run Catlight.

We use coreclr for mac app, but just plain clr for windows, because including coreclr doubles the setup size.

It looks like you experience some obscure dnx bug. We'll be moving to .Net Core RC2 as soon as it becomes available, and dnx is replaced with "dotnet" toolchain there. It will likely behave differently.  Microsoft does not provide a date for this release, but it seems like it will happen in a couple of weeks.

We've migrated the app to .Net Core RC2, it should no longer have problems with dnx. You can try the early version from https://catlight.io/dl/win/beta/1.7.4/setup.exe 

·

Nice! Just installed and it works for me too now, thanks!!

Thanks, i will wait for the new version then :)

 

Just a side note -- would it be possible to make the listening url for the client exe configurable? That way it will be possible to host the kestrel server (localhost:5000) on another machine than the machine the exe client runs. And thus I'd be able to run Catlight without the local hosting part... ;)

AH

Hi,

 

I have the same problem with my users, however eventually it gives us errors regarding downloading files.  We have to connect via a proxy, and I think this is where it is failing.  Is there any way of telling Catlight to go through the proxy?  I need to go through the proxy to reach AppVeyor as well.

 

Thanks.

Andrew.

Hi Andrew,

Recent app versions should show blue cannot-start-app screen instead of the gears, so please make sure that you are running the latest one - https://catlight.io/downloads .

Proxy without authentication should work fine, if it is configured in internet explorer settings (In Internet Explorer, go to Internet Options -> Connections -> LAN settings). 

If your proxy requires credentials, then this would probably not work at the time and you can vote for this idea - http://catlight.helprace.com/i27-proxy-authentication 

J

Thank you all for your responses. This is now resolved. The issue was that CatLight was looking for a file that lives on their encrypted drives. So, they have to decrypt before running CatLight. It's kind of annoying, but at least we can work with it.

OK after updating to latest version, I am unable to use Catlight at all.

Running Windows 10 (1607)
TFS 2015 Update 3

This error just keeps getting thrown but no idea why.

[2016-11-03 12:35:45.322] [DEBUG] main - Waiting for service start: RequestError: Error: ETIMEDOUT

Hi Jason, can you send all logs from the %appdata%\catlight\logs to [email protected] ? There should be more info in another log file.

Oddly enough, it just started working.