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.

image-20230828150728-1.png

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.

image-20230828150742-2.png

Select “Add a user without a Microsoft account”. Password 12345!

image-20230828150754-3.png

image-20230828150803-4.png

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.

image-20230828150811-5.png

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

image-20230828150825-6.png

image-20230828150841-7.png

image-20230828150849-8.png

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.

image-20230828150929-9.png

Make sure to clear checkbox “Install 1C:Enterprise 8 server as a Windows service (Recommended)” before installing.

image-20230828150939-10.png

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.

image-20230828150955-11.png

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.

@echo off
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++ :

image-20230828151013-12.png

Run the file as Administrator.

image-20230828151026-13.png

As soon as the file has been run, this message will be shown.

image-20230828151035-14.png

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.

image-20230828151043-15.png

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.

image-20230828151052-16.png

Run the new service by right-clicking it in Task manager and clicking Run in the context menu.

image-20230828151101-17.png

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:

image-20230828151111-18.png

You need to add the new server:

image-20230828151123-19.png

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.

image-20230828151131-20.png

Try to open the new server's hierarchy. An error is displayed:

image-20230828151139-21.png

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.

image-20230828151151-22.png

Step 10: Explicitly specify the corresponding server cluster port number in your infobase list.

image-20230828151200-23.png

Icon/Social/001 Icon/Social/006 Icon/Social/005 Icon/Social/004 Icon/Social/002