2 or more instances of Rapid SCADA on the same server

Forum Home Forums Installation Issues 2 or more instances of Rapid SCADA on the same server

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #9105
    Matt3
    Participant

    Dear Mikhail

    I want to install multiple instances of Rapid SCADA on one server.

    I want:
    C:\SCADA_1
    C:\SCADA_2

    C:\SCADA_n

    Such that customers can access their data via

    http://www.mydomain.com/SCADA_1 // for customer 1
    http://www.mydomain.com/SCADA_2 // for customer 2

    http://www.mydomain.com/SCADA_3 // for customer n

    When I run the install program for the first time (5.8.3), the installation completes with no errors.

    When I run it again for SCADA_2, I get the below error for the apps…

    Install Server application
    Unzip files from C:\scada_5.8.3_full_en\Arc\ScadaServer.zip
    Install service ScadaServerService
    Process completed with an error
    Installation of Server application has completed with a error:
    Service ScadaServerService hasn’t been installed

    Install Communicator application
    Unzip files from C:\scada_5.8.3_full_en\Arc\ScadaComm.zip
    Install service ScadaCommService
    Process completed with an error
    Installation of Communicator application has completed with a error:
    Service ScadaCommService hasn’t been installed

    Install Agent application
    Unzip files from C:\scada_5.8.3_full_en\Arc\ScadaAgent.zip
    Install service ScadaAgentService
    Process completed with an error
    Installation of Agent application has completed with a error:
    Service ScadaAgentService hasn’t been installed

    I’m assuming it clashes with existing apps.

    How do you recommend installing multiple versions of Rapid SCADA on the same server?

    Thanks
    Matt

    #9106
    Mikhail
    Moderator

    Hello,

    It’s possible only if you install manually.

    In addition to the instruction, you should copy Rapid SCADA files to different folders, create svc_config.xml for each service (example), and update svc_*.bat files to have different services for different instances.

    #9107
    Mikhail
    Moderator

    May be it’s better to deploy cheap Linux machine for each customer instead of using the single server.

    #9125
    Matt3
    Participant

    Hi Mikhail

    Thank you for your feedback.
    I can follow all parts except for the last 2 lines of your feedback.

    “(1) create svc_config.xml for each service (example), and
    (2) update svc_*.bat files to have different services for different instances.”

    With regards to item (1), I can see the file in github but I can’t find it in the 5.8.3 download. What is it used for and how do I use it? Is this file only needed in the ScadaServer folder?

    An example of how to use the above files for the installation of 2 different instances would be great.

    Kind regards
    Matt

    #9129
    Mikhail
    Moderator

    Hi Matt,

    You should download svc_config.xml from GitHub and put them into the folders of ScadaServer and ScadaComm.

    Also you should specify your own service names in svc_config.xml and svc_*.bat
    For example, ScadaServerService-Customer1
    As a beginning, try this actions with a one service.

    #9137
    Matt3
    Participant

    Hi Mikhail

    Thanks for your feedback again.
    I’ve copied the SCADA files to C:\Customer1\<folders>

    I downloaded the 2 xml files and changed the ServiceName to “ScadaServerService-Cus1”

    svc_config.xml
    <?xml version=”1.0″ encoding=”utf-8″?>
    <ServiceConfig>
    <ServiceName>ScadaServerService-Cus1</ServiceName>
    <Description></Description>
    </ServiceConfig>

    In svc_install.bat, I added

    cd /d “%~dp0″
    C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /servicename=”ScadaServerService-Cus1” ScadaServerSvc.exe
    Pause

    The install log file is
    Installing assembly ‘C:\Customer1\ScadaServer\ScadaServerSvc.exe’.
    Affected parameters are:
    logtoconsole =
    logfile = C:\Customer1\ScadaServer\ScadaServerSvc.InstallLog
    assemblypath = C:\Customer1\ScadaServer\ScadaServerSvc.exe
    servicename = ScadaServerService-Cus1
    Installing service ScadaServerService…
    Service ScadaServerService has been successfully installed.
    Creating EventLog source ScadaServerService in log Application…
    Committing assembly ‘C:\Customer1\ScadaServer\ScadaServerSvc.exe’.
    Affected parameters are:
    logtoconsole =
    logfile = C:\Customer1\ScadaServer\ScadaServerSvc.InstallLog
    assemblypath = C:\Customer1\ScadaServer\ScadaServerSvc.exe
    servicename = ScadaServerService-Cus1

    However, when I run the “Task Manager” and look at the service installed, it says ScadaServerService and not ScadaServerSerice-Cus1?

    Kind regards
    Matt

    #9146
    Mikhail
    Moderator

    Hi,
    Is there ScadaServerService-Cus1 if you run services.msc ?

    #9151
    Matt3
    Participant

    Hi, No. I just see ScadaServerService

    Kind regards
    Matt

    #9153
    Mikhail
    Moderator

    Hi Matt,

    To be honest, you are the 1st who asked about that non-official feature.
    I can try to fix it via remote connection. But this is a paid service.

    #9161
    Matt3
    Participant

    Hi Mikhail

    I’ve been working on this issue today and I have some feedback for you.

    I removed Rapid Scada from the server.

    I then used your install file to install a new version (5.8.3).

    I changed the install folder to SCADA2

    I changed the web link from Scada to Scada2

    Once installed, I tested and it worked.

    I then used the sc.exe program to remove the 3 scada services

    sc delete ScadaServerService
    sc delete ScadaCommService
    sc delete ScadaAgentService

    I then installed the 3 services again but this time with an extension of 2

    sc create ScadaServerService2 binPath= “C:\SCADA2\ScadaServer\ScadaServerSvc.exe –service” DisplayName= “ScadaServerService2”

    sc create ScadaCommService2 binPath= “C:\SCADA2\ScadaComm\ScadaCommSvc.exe –service” DisplayName= “ScadaCommService2”

    sc create ScadaAgentService2 binPath= “C:\Customer1\ScadaAgent\ScadaAgentSvc.exe –service” DisplayName= “ScadaAgentService2″

    In the svc_config.xml, in each service folder, I added the following…

    <?xml version=”1.0″ encoding=”utf-8″?>
    <ServiceConfig>
    <ServiceName>ScadaServerService2</ServiceName>
    <Description></Description>
    </ServiceConfig>

    <?xml version=”1.0″ encoding=”utf-8″?>
    <ServiceConfig>
    <ServiceName>ScadaCommService2</ServiceName>
    <Description></Description>
    </ServiceConfig>

    <?xml version=”1.0″ encoding=”utf-8”?>
    <ServiceConfig>
    <ServiceName>ScadaAgentService2</ServiceName>
    <Description></Description>
    </ServiceConfig>

    I started each service from the service control panel. They started.

    I managed to login via localhost/scada2

    Next, I run ScadaAdmin.exe
    I loaded the HelloWorld project
    I click the Upload Configuration button
    In the profile section, I updated the Web station URL to http://localhost/scada2
    In Server / Common Parameters, I update the folders to point to Scada2… C:\SCADA2\BaseDAT\ … etc..

    I click the Upload Configuration button and then click the Upload button

    I get the error…
    Error uploading configuration.
    Unable to login – invalid username or password.

    Also,
    when I select Deploy / Deployment Profile and click the Test button, I get the same error message “Unable to login – invalid username or password.”

    when I select Deploy / Instance Status, for status server and communicator I get…
    “Unable to login – Error validating user” and “Unable to create session” for both.

    Any ideas?

    Thanks for all you support Mikhail

    Kind regards
    Matt

    #9162
    Mikhail
    Moderator

    Hi,

    So you successfully installed the services different than the default?

    Important note:
    You need only one ScadaAgentService on the server. I suggest to install it in C:\SCADA\ScadaAgent as usual.

    “Unable to login – Error validating user” and “Unable to create session” for both

    Check that the name of the instances are the same in the agent settings and in the deployment profiles. Also check ScadaAgent.log for error details.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.