==== What is it? ==== HomeGate is a service that runs on a SSLIP server and implements the [[:cyrious_cloud_connector|]] on the local SSLIP computer. When enabled in Control, HomeGate establishes the cyrious_cloud_connector link which allows Control Cloud Apps to function. It is best explained with this simplified diagram: {{:cyrious_cloud_connector_diagram_-_simplified.png?nolink&}} HomeGate "dial out" to establish a connection to Cyrious Cloud (CloudSpace). After authenticating using a public-private encryption key (for which only you have the private key), the connection establishes a secure SSH tunnel that then allows Cyrious' CloudSpace to access your local information to provide approved services. HomeGate **does not** host the [[:document_management_api|]], that is handled by the Cyrious Document Access Service. ==== Status Monitoring ==== HomeGate has a very useful web front end that is accessible at [[http://localhost:12555|http://localhost:12555]] on machines it is installed on. It is NOT possible to get to this webpage via other machines, only the machine that the HomeGate is running on. The web site has two pages: the Status page and the Configuration page. The web site will only be available when the service is running. ==== Home Page ==== The home page is the primary monitoring page for HomeGate. |{{:homegate_-_home_page.png?nolink&}}||Actions available on this page are: \\ * **Refresh**. This refreshes the monitoring page with the latest information. Note: The status page does not refresh automatically. \\ * **Connect**. This connects the HomeGate to the Cyrious CloudSpace. This option is only available is the service is disconnected. \\ * **Restart**. This disconnected and reconnects the HomeGate. This will interrupt any existing CloudApp connection, but allow new connections to take place. \\ * **Disconnect**. This disconnects the HomeGate from the Cyrious CloudSpace. \\ >> //Warning//: Disconnecting the HomeGate will close the Cyrious Cloud Connected and prevent any CloudApps from running. Any CloudApps already running will be interrupted.|| ==== Configuration Page ==== \\ The configuration page give a read-only listing of the configuration information.\\ || {{:homegate_-_config_page.png?nolink&}}|| The information contained on this page shows: * **Enabled**. This indicates if the connection is enabled in Control. If the cyrious_cloud_connector is not enabled in Control, it will not attempt to establish a connection with Cyrious CloudSpace. * **Cloud URL**, The address HomeGate dials out to connect to the Cyrious' CloudSpace. * **CHAPI Port**. The port the HomeGate uses to connect to the local CHAPI. * **Database**. The name of the local SQL database HomeGate is connecting to. * **SQL Port**. The port for the local SQL database HomeGate is connecting to. || ==== Normal Operation ==== These steps illustrate normal operation of the HomeGate - HomeGate is installed - When the cyrious_cloud_connector module is available, a "cyrious_cloud_connector Options" frame is accessible in Control System Setup - A Control user can enable CCubed. - On save of the CCubed options, if the option is enabled, the HomeGate service will be started. - On startup of the service, HomeGate will start the status website - If configured to connect (defaults to tru) HomeGate will attempt to contact CHAPI - HomeGate **requires** a 5.6 CHAPI with Public/Private Keypairs set in order to function correctly - After contacting CHAPI, HomeGate will attempt to contact the SQL Database * This will occur on port 1433 only on versions prior to 1.3.2. * Versions of HomeGate 1.3.2 and above will use the SQL port that Chapi has assigned. - After gathering information from both CHAPI and SQL, HomeGate will attempt to connect to Cloudspace - If successful, HomeGate will maintain the connection to Cloudspace - If unsuccessful, HomeGate will retry with delays as specified in the configuration - When manually disconnected, HomeGate will enter 'hibernate' mode and check every 15 minutes to see if it has been turned back on. - While in 'hibernate' the status website will still be available ==== Installation ==== HomeGate requires four files to properly install: * vcredist_x86_110.exe * vcredist_x86_120.exe * NDP451-KB2859818-Web.exe * HomeGate.Installer.msi. The first two are C++ runtimes, and the third one is the .NET 4.5.1 runtime. If any of the runtime installations fail to install, HomeGate will not function correctly. HomeGate.Installer.msi will install all files and register the service, but does not set the service to automatically start. **NOTE**: In order for HomeGate to function properly, all related files __will need to be located on the same computer__. * These include CHAPI, HomeGate, SSLIP, Control, and the SQL Server instance where your database is located. ==== Troubleshooting ==== Troubleshooting tools are built into HomeGate! The easiest way to diagnose most problems (other than installation related problems) is to open the HomeGate monitoring page at [[http://localhost:12555|http://localhost:12555]]. **Step 1 - Check if HomeGate is Installed, Enabled, and Running** - Go into your Services application and make sure HomeGate is in the list - Go into Control and make sure the Cloud Connector is Enabled