LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

HomeBug Reports

A forum topic for reporting bugs and other issues with CastleOS

Core: Restarting Core service breaks it Messages in this topic - RSS

Phil Hawthorne
Phil Hawthorne
Posts: 400


2/5/2016
Phil Hawthorne
Phil Hawthorne
Posts: 400
This is at least on the CastleHUB, not sure if other systems are affected.

When pressing Settings -> About -> Reset Core Service, navigating to the Events page will result in a yellow error screen. Navigating to the portal, or just the Hub's IP address will result in the white screen of death.

Only way to get back into CastleOS is to kill the core service on the hub via task manager, and wait for a new process to be opened by the CastlrOSProecessWatcher.

I suspect this might be an issue with CastleOS running as a Windows service
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


2/5/2016
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
Hmm, it's passing our tests. This is simply using the Windows API to restart the service. So something may be causing it to not restart. Perhaps the cycle is happening too fast, and a resource isn't being cleared out fast enough.

You can manually control the service in Services in Windows. If you click on the CastleOSCoreService and press restart, does it give an error saying it couldn't start the service? Any errors from starting/stopping the service will be output to the Windows Error log.
0 link
Phil Hawthorne
Phil Hawthorne
Posts: 400


2/5/2016
Phil Hawthorne
Phil Hawthorne
Posts: 400
Hey Chris,

Just tried to restart the service from the Windows Services restart command. No error dialog came up, however the settings screen is now showing a yellow XML error.

In the event logs, there's this error


Failed to stop service. System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.HttpListener'.
at System.Net.HttpListener.CheckDisposed()
at System.Net.HttpListener.Stop()
at k.Dispose()
at v.af()
at System.ServiceProcess.ServiceBase.DeferredStop()


I'll have to kill CastleOSCore, then start the service again to access the Portal
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


2/5/2016
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
Is ZWave enabled? If so, disable it and try again. Might be because of that loading bug.
0 link
Phil Hawthorne
Phil Hawthorne
Posts: 400


2/5/2016
Phil Hawthorne
Phil Hawthorne
Posts: 400
Negative. Zwave is disabled
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390


2/5/2016
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3390
Can you send me the latest config file again?
0 link
Phil Hawthorne
Phil Hawthorne
Posts: 400


2/5/2016
Phil Hawthorne
Phil Hawthorne
Posts: 400
Sent
0 link
Phil Hawthorne
Phil Hawthorne
Posts: 400


2/5/2016
Phil Hawthorne
Phil Hawthorne
Posts: 400
Just to confirm, I have access to CastleOS again, as I killed and restarted it.

Its only when I press reset CastleOSCore from the web app, do the errors happen
0 link