Changes between Version 6 and Version 7 of Documentation/Howto/SetupHiveServer


Ignore:
Timestamp:
09/06/11 17:12:03 (9 years ago)
Author:
ascheibe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Howto/SetupHiveServer

    v6 v7  
    22This page gives you instructions about how to setup and run a Hive server.
    33
    4 Certificate and Authentication:
     4== Certificate and Authentication ==
    55 * Follow DevelopersHowtosDevelopServices
     6 * Notes on using SQL Server 2008 R2:
     7     * In the connection string the `.\SQLEXPRESS` should be changed to `.` . For example in the command to create the ASP.NET authentication database:
     8       `aspnet_regsql.exe -C "data source=.;Integrated Security=SSPI" -A all -d HeuristicLab.Authentication`.
     9     * If the above mentioned command fails with a timeout, the error could be a compatibility problem between the 2005 and 2008R2 SQL Server versions.
     10       SQL Server Management Studio offers the option in the database properties to set the compatibility level to SQL Server 2005 and this should fix the problem.
    611 * Goto Windows Services > start `Distributed Transaction Coordinator` service (needed to use transactions over multiple databases)
    712
    8 Enable net.tcp protocols:
    9  * Control Panel > Programs & Features > Turn Windows features on or off
    10  * Expand Microsoft .NET Framework 3.x.x
    11  * Check the "Windows Communication Foundation Non-HTTP Activation" check box.
    12  * Open Visual Studio command prompt as administrator and run this command: `%windir%\Microsoft.NET\Framework\v4.xxxx\ServiceModelReg.exe" -r`
    13 
    14 Setup IIS:
     13== Setup IIS ==
    1514 * Open IIS Manager
    1615 * Create an application pool (Hive-3.3, .net 4.x, integrated)
    17   * Open advanced settings of the application pool and select `NetworkService` as identity (if you don't have your own identities for IIS AppPools)
     16  * Open advanced settings of the application pool and select `NetworkService` as identity (if you don't have your own identities for IIS `AppPools`)
    1817  * Set `Disable Overlapping Recycle` to true. This avoids that multiple `AppDomains` are created which causes problems in Hive-3.3.
    1918 * Create a new website (or use an existing one)
    2019 * Go to bindings of the website.
    21   * Add a http-binding with port 9000.
    22   * Add a net.tcp binding with `9001:*` in the binding information.
     20  * Add a http-binding with port 80.
    2321 * Create a new application within the website and call it Hive-3.3 and use the already created appPool Hive-3.3
    24  * Open advanced settings of the application and enter `http, net.tcp` as enabled protocols
     22 * Open advanced settings of the application and enter `http` as enabled protocols
    2523 * Grant the usergroup `IIS_IUSRS` read-permissions on the application directory
     24 * Grant the `NetworkService` user read access to the certificate you created in DevelopersHowtosDevelopServices
    2625
    2726
    28 Problem:
     27== Add groups and users to the authentication db ==
     28 * Open the Hive Visual Studio solution
     29 * Click on the Hive-3.3 Web project. In the solution explorer the ASP.NET Configuration button shows up. As mentioned in DevelopersHowtosDevelopServices this allows to configure users and groups. On the configuration website, first add the groups:
     30   * Hive Administrator
     31   * Hive Slave
     32   * Hive User
     33   * Hive `IsAllowedPrivileged`
     34 * Users can now be added to the appropriate groups.
     35 * A special user for hive slaves must be added. This user has to be in the `Hive Slave` group. The default configuration is
     36   * User: `hiveslave`
     37   * Password: `hiveslave`
     38
     39== Webservice client setup ==
     40 * All clients (slave, administration, experiment manager) have an `app.config` file which contains a `certificate` tag under `<identity>`.
     41   To get this value for the local server execute `svcutil.exe http://localhost/Hive-3.4/HiveService.svc?wsdl`. This generates the client stub for the hive webservice. In the `output.config` file you will find the `certificate` tag with the right value. Replace all keys in the hive clients with this key of your machine. 
     42
     43
     44== Problems and solutions ==
    2945 * Exception `Could Not Load Type System.ServiceModel.Activation.HttpModule`
    3046  * run `aspnet_regiis.exe -iru`