LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

sgoffman

all messages by user

9/6/2014
Topic:
Installer stops at 95%

Scott Goffman
Scott Goffman
Hi, trying to do a first-time install of CastleOS Core Service 1.1.1801, and it hangs with the progress bar at around 95%.


The error log indicates that Castle OS wants to use the default port 80 for its web server, but that port is in use. Is this what's causing the failure?


-Scott

<error timestamp="9/6/2014 1:27:33 PM">

<note>Unable to start the Unsecured web service service host.</note>
<data>System.Collections.ListDictionaryInternal</data>
<message>HTTP could not register URL http://+:80/CastleOS/service2/ because TCP port 80 is being used by another application.</message>
<innerException>System.Net.HttpListenerException (0x80004005): The process cannot access the file because it is being used by another process
at System.Net.HttpListener.AddAllPrefixes()
at System.Net.HttpListener.Start()
at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()</innerException>
<source>System.ServiceModel</source>
<stackTrace> at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at s.OnStart(String[] args)</stackTrace>
<targetSite>Void OnOpen()</targetSite>
</error>
9/6/2014
Topic:
Installer stops at 95%

Scott Goffman
Scott Goffman
Well, sure, It's my primary server, it's running all kinds of web services, including Apache on port 80. Can CastleOS's web server port(s) only be changed after installation, not before?
9/6/2014
Topic:
Installer stops at 95%

Scott Goffman
Scott Goffman
Shutting down Apache during the install worked. After install, I removed port 80 from UltiDev's web app.

EDIT: Some additional info for anyone else who runs into this:
UltiDev always listens on Port 80, and is happy to share that port with other programs. Apache, on the other hand, does not like to share, and if it detects anything else on that port it will fail to start up. So to make this work, you'll have to move Apache to another port by changing the "Listen" value in \apache\conf\httpd.conf.
edited by sgoffman on 9/7/2014
9/7/2014
Topic:
Newb Qs

Scott Goffman
Scott Goffman
Hi Chris,

I've been evaluating switching to CastleOS, and so far I'm really liking it. Coming from Girder (which is incredibly powerful, but with a terrible interface), CastleOS is a solid UI upgrade for me.

A few questions have come up that I haven't seen answers to on the forums:

1) How active is the development at this point? I see a lot of feature reqs answered with "coming soon!", but the last Core version was from 2013.

2) Is the 30-day eval version lacking any features that would be enabled in the full version? I.e., am I testing with every feature available?

3) How do you handle IR controls? Your demo video shows turning on/off IR-controlled devices, but I don't see anything in the UI for that. Do you use Insteon-to-IR adapters? My current setup uses USB-UIRT transmitters on each room's mini-PC, does CastleOS support something similar to that?


4) Is the scripting system actually functional? I can't find any info on it.

Thanks!

-Scott
9/8/2014
Topic:
Newb Qs

Scott Goffman
Scott Goffman
Excellent, thanks for the info! I'm looking forward to being able to use C# for scripting (much better than having to use LUA, which I can't stand).
What kind of hardware are you using for your IR development? Are you sending the IR codes from the CastleOS Core, or from local Kinect apps?
-Scott
9/10/2014
Topic:
Exceptions

Scott Goffman
Scott Goffman
Running into a few unhandled exception crashes with the Kinect service. Testing on two different PCs, both running Windows 7, one with a Kinect + drivers, the other without. Neither have the Core service installed.

First, the latest Kinect Beta Configurator crashes on startup with the same exception, but called from different locations in code:

PC 1 (with Kinect + driver) Exception Info: System.TypeInitializationException
Stack:

at Microsoft.Kinect.KinectSensorCollection.get_Instance()
at ae.f()
at ae.b(System.Object)
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart(System.Object)

PC 2 (no Kinect) Exception Info: System.TypeInitializationException
Stack:
at Microsoft.Kinect.KinectSensorCollection.get_Instance()
at s.p()
at s.a(System.Object)
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart(System.Object)




(Edit: After installing MSSpeech_TTS, the below crash went away.)
The other crash was in the release Kinect Configurator, occurs when clicking "Advanced":

Both PCs Exception Info: System.PlatformNotSupportedException
Stack:
at Microsoft.Speech.Synthesis.SpeechSynthesizer.get_InstalledVoices()
at CastleOSKinectServiceConfigurator.Pages.Apex.AdvancedSettingsView.BindVoicesToComboBox()
at CastleOSKinectServiceConfigurator.Pages.Apex.AdvancedSettingsView.UserControl_Loaded(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
at System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject, System.Windows.RoutedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(System.Object)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at CastleOSKinectServiceConfigurator.App.Main()

Hope that helps!

-Scott
edited by sgoffman on 9/10/2014
9/14/2014
Topic:
Bug with Sunset scheduled event

Scott Goffman
Scott Goffman
Steps:

1) Create a scheduled event.
2) Set the event time for 0 minutes before (or after) sunset.
3) Save.
4) View the newly created event. Note that Sunset has been changed to Sunrise.

Setting the time for at least 1 minute before/after sunset prevents the error.

-Scott
9/15/2014
Topic:
Bug with Sunset scheduled event

Scott Goffman
Scott Goffman
Sure, I'd be happy to try a beta!
10/17/2014
Topic:
Android app

Scott Goffman
Scott Goffman
Regarding the CastleOS Android app: I have a port-forwarding setup so I can access CastleOS from anywhere (not just on my local Wi-Fi), plus a dynamic DNS name service, so I can always connect to my home regardless of the current IP.

But when trying to manually enter an IP address, the app doesn't accept either a named address (e.g. "myhouse.dyndns.org"), or an address with a port suffix (e.g. "192.168.1.1:58141").

-Scott
10/18/2014
Topic:
Android app

Scott Goffman
Scott Goffman
Ah, that's how I was doing it previously, so no setup required. Thanks Chris!

-Scott
11/24/2014
Topic:
Can't add group

Scott Goffman
Scott Goffman
Not sure when this started, but now when I try to add a new Group, after entering the name and clicking "Add Group" I'm taken to the login screen and the group isn't created.

Running version 1.2.1090 (RC).

Probably not related, but Errors.xml reports this for each CoreService startup:

Error during AddPortMapping action invocation

System.Runtime.InteropServices.COMException (0x80040210): The owner of the PerUser subscription is not logged on to the system specified (Exception from HRESULT: 0x80040210)
at UPNPLib.IUPnPService.InvokeAction(String bstrActionName, Object vInActionArgs, Object& pvOutActionArgs)
at ManagedUPnP.Service.InvokeAction(String name, Object[] inParams)


Error during AddPortMapping action invocation

System.Runtime.InteropServices.COMException (0x80040376): Exception from HRESULT: 0x80040376
at UPNPLib.IUPnPService.InvokeAction(String bstrActionName, Object vInActionArgs, Object& pvOutActionArgs)
at ManagedUPnP.Service.InvokeAction(String name, Object[] inParams)


-Scott
11/24/2014
Topic:
Can't add group

Scott Goffman
Scott Goffman
Some additional info:
1) Configuration.xml actually does show the newly added group in the Groups node, but it doesn't show up in any of the CastleOS UI.
2) The browser from which I was attempting to add the group is now stuck in the "This webpage has a redirect loop" state. Clearing history and restarting the core service have not fixed this. Other devices are still able to browse the UI.

-Scott
11/24/2014
Topic:
Can't add group

Scott Goffman
Scott Goffman
After more testing, all the problems seem to be with a single browser install; on another device I'm able to add groups successfully. Maybe I'll uninstall/reinstall Chrome.
12/14/2014
Topic:
Events not firing

Scott Goffman
Scott Goffman
Every since I updated to the latest Core Service yesterday, events (at least my most noticeable ones) haven't been firing. I can manually trigger the scenes/groups/devices connected to them, but the timed events don't seem to do anything.

I don't see anything reported in the Windows app logs or in errors.xml; what else can I do to debug this?

Thanks,

-Scott
12/15/2014
Topic:
Events not firing

Scott Goffman
Scott Goffman
Thanks, Chris! the files can be downloaded from here: http://goffman.net/docs/CastleOS_Files/

-Scott
12/15/2014
Topic:
Events not firing

Scott Goffman
Scott Goffman
>Looking deeper, the Sunrise and Midnight events did in fact fire as scheduled, but it appears the Sunset event did not. Is that the one you noticed?


That's the one I noticed tonight, but "Sunset" and "Midnight" didn't fire last night.

-Scott

12/15/2014
Topic:
Events not firing

Scott Goffman
Scott Goffman
I'm not sure what event that would be; I have a Sunrise - 10, which should be 6:47 am; Sunset - 20 = 4:23 pm; but nothing at 5:43 am that i'm aware of.
12/15/2014
Topic:
Events not firing

Scott Goffman
Scott Goffman
Looks like that 5:43 event was sunrise, since it's turning off device 1D.95.DE (which only happens at sunrise). Does the Core service just use the local Windows system time, or does it connect to an external time server?
12/15/2014
Topic:
Events not firing

Scott Goffman
Scott Goffman
Okay, I'll keep an eye on it for the next day/night cycle and report back.

Thanks for the help!

-Scott
12/15/2014
Topic:
Events not firing

Scott Goffman
Scott Goffman
Update: For testing purposes, I added an action to the 11pm Event to email me. It did correctly fire at 11pm last night; but then also twice at 6:51 am (sunrise). Could DawnGuard be causing that event to trigger?
1234 ..6