Forum Home › Forums › Installation Issues › 2 or more instances of Rapid SCADA on the same server
- This topic has 10 replies, 2 voices, and was last updated 2 years, 10 months ago by Mikhail.
-
AuthorPosts
-
June 17, 2021 at 1:28 pm #9105Matt3Participant
Dear Mikhail
I want to install multiple instances of Rapid SCADA on one server.
I want:
C:\SCADA_1
C:\SCADA_2C:\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 2http://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 installedInstall 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 installedInstall 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 installedI’m assuming it clashes with existing apps.
How do you recommend installing multiple versions of Rapid SCADA on the same server?
Thanks
MattJune 18, 2021 at 9:30 am #9106MikhailModeratorHello,
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.
June 18, 2021 at 9:32 am #9107MikhailModeratorMay be it’s better to deploy cheap Linux machine for each customer instead of using the single server.
June 21, 2021 at 7:44 pm #9125Matt3ParticipantHi 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
MattJune 22, 2021 at 3:21 pm #9129MikhailModeratorHi 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.June 22, 2021 at 11:54 pm #9137Matt3ParticipantHi 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
PauseThe 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-Cus1However, when I run the “Task Manager” and look at the service installed, it says ScadaServerService and not ScadaServerSerice-Cus1?
Kind regards
MattJune 23, 2021 at 11:58 am #9146MikhailModeratorHi,
Is there ScadaServerService-Cus1 if you run services.msc ?June 23, 2021 at 12:59 pm #9151Matt3ParticipantHi, No. I just see ScadaServerService
Kind regards
MattJune 24, 2021 at 12:46 pm #9153MikhailModeratorHi 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.June 25, 2021 at 10:17 pm #9161Matt3ParticipantHi 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 ScadaAgentServiceI 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
MattJune 27, 2021 at 6:24 am #9162MikhailModeratorHi,
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.
-
AuthorPosts
- You must be logged in to reply to this topic.