How to set up two minor versions of 1C:Enterprise Platform to work on the same computer in client/server mode
Question: Currently I have 1C:Enterprise Platform 8.3.22.1750 server installed on my computer. Recently, I needed to install 8.3.16.1786 server too on the same computer, due to the fact that another configuration I need to use requires this older platform version. Is it possible to install 1C:Enterprise Platform 8.3.16.1876 server on the same computer so that it works in parallel with 1C:Enterprise Platform 8.3.22.1750 server?
Answer: Yes, this is possible. Let’s assume you have 1C:Enterprise Platform 8.3.22.1750 server already installed with the following parameters:
- 1C:Enterprise main server IP port: 1540
- Local cluster IP port: 1541
as seen on the screenshot below.
Now, install the 8.3.16.1786 server with the following parameters:
- 1C:Enterprise main server IP port: 2540
- Local cluster IP port: 2541
Step 1: Create a new user (USR1CV8_8_3_16) on whose behalf the 1C:Enterprise Server 8.3.16.1786 service will run.
Select “Add a user without a Microsoft account”. Password 12345!
The user is created.
Step 2: Assign the required local group security policies to the new user.
In Windows start menu, select “Run” or press Win+R. The Run dialog will open. Type secpol.msc and click OK.
Local security policy window will open. Under User rights assignment, assign all the policies which have been assigned to user USR1CV8 to the new user USR1CV8_8_3_16 too. The screenshots below show how to assign the “Log on as a batch job” policy. Assign all required policies in the same way. These policies are mandatory:
- Log on as a batch job
- Log on as a service
- Deny logon locally
- Deny access to this computer from the network
Step 3: Grant user USR1CV8_8_3_16 the rights to create databases in MS SQL.
Step 4: Install 1C:Enterprise Platform server version 8.3.16.1876.
IMPORTANT: Do not install it as a Windows service. Doing so would erase the parameters of the current server version 8.3.22.1750 and make it unusable.
Make sure to clear checkbox “Install 1C:Enterprise 8 server as a Windows service (Recommended)” before installing.
Step 5: Create a new folder named srvinfo_8_3_16 for the new server agent (as seen on the screenshot below) and give user USR1CV8_8_3_16 full access rights for this folder.
Step 6: Register the new 1C:Enterprise server agent and set up the new ports for the new server and cluster.
For this purpose, create a .bat file using a text editor such as Notepad or Notepad++, and copy the following text to it. Please keep in mind that actual version numbers, port numbers, catalogs etc. in the text would change depending on your particular case.
chcp 1251
set SrvcName="1C:Enterprise 8.3.16 Server Agent"
set BinPath="\"C:\Program Files\1cv8\8.3.16.1876\bin\ragent.exe\" -srvc -agent -regport 2541 -port 2540 -range 2560:2591 -d \"C:\Program Files\1cv8\srvinfo_8_3_16\""
set Desctiption="1C:Enterprise 8.3.16 Server Agent"
sc create %SrvcName% binPath= %BinPath% start= auto displayname= %Desctiption% depend= Tcpip/Dnscache/lanmanworkstation/lanmanserver/
pause
The file should look like this in Notepad++ :
Run the file as Administrator.
As soon as the file has been run, this message will be shown.
Press Space to close the command line window.
Please find an example .bat file as attachment to this article.
Open Task Manager and go to the Services tab. Check that the service has been created.
Step 7: Set up auto the new server to automatically run on behalf of the new user.
Open Task Manager and go to the Services tab. Right-click the new service and open its properties. Go to the Log On tab and assign the new user for running the service automatically upon computer restart.
Run the new service by right-clicking it in Task manager and clicking Run in the context menu.
Step 8: Check Administration of 1C:Enterprise Server if everything working correctly.
To open Administration of 1C:Enterprise Server, press Win+R and type C:\Program Files\1cv8\common\1CV8 Servers (x86-64).msc
For now, you see the first server only:
You need to add the new server:
The server's name must be either localhost or the network name of the computer. The name will be same as the name of the first server. Only the port number should change to the port number which we had assigned to the new server.
Try to open the new server's hierarchy. An error is displayed:
That´s because you cannot access a platform version from Administration of 1C:Enterprise Server until the corresponding radmin.dll file for the platform is registered, and technically we cannot register the radmin.dll files for two platform versions that have the same major version (i.e. both 8.3.x or both 8.2.x).
Step 9: Alternating between minor platform versions.
To access the first server (8.3.22) from Administration of 1C:Enterprise Server, register the corresponding radmin.dll file by running C:\Program Files\1cv8\8.3.22.1750\bin\RegMSC.cmd and then running C:\Program Files\1cv8\common\1CV8 Servers (x86-64).msc
To access the second server (8.3.16) from Administration of 1C:Enterprise Server, register the corresponding radmin.dll file by running C:\Program Files\1cv8\8.3.16.1876\bin\RegMSC.cmd and then running C:\Program Files\1cv8\common\1CV8 Servers (x86-64).msc
IMPORTANT: Always run RegMSC.cmd as administrator. Otherwise you will get an error.
Step 10: Explicitly specify the corresponding server cluster port number in your infobase list.